:root {
  --brand:        #059669;
  --brand-dark:   #064e3b;
  --brand-hover:  #047857;
  --brand-light:  #ecfdf5;
  --brand-mid:    #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #fff;
  color: #1e293b;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar-afri {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.navbar-brand { display: flex; align-items: center; gap: 9px; margin-left: 4px; }
.navbar-brand .logo-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.navbar-brand .logo-text { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.navbar-brand .logo-text .air    { color: #0f172a; }
.navbar-brand .logo-text .pharma { color: var(--brand); }
.navbar-toggler { background: #f1f5f9 !important; border-radius: 8px; padding: 6px 10px; }
.navbar-toggler i { color: #0f172a; }

/* HERO */
main { flex: 1; display: flex; align-items: center; padding-top: 4.25rem; }
.hero {
  width: 100%; min-height: calc(100vh - 4.25rem);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem 3rem; position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background-color: #fff; z-index: -3; }

/* Blobs décoratifs (cohérent avec le reste du site) */
.hero-blob1 {
  position: absolute; top: -120px; left: -100px;
  width: 380px; height: 380px; background: var(--brand-mid); opacity: 0.18;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: -2;
}
.hero-blob2 {
  position: absolute; bottom: -140px; right: -80px;
  width: 320px; height: 320px; background: var(--brand); opacity: 0.10;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; z-index: -2;
}

.hero-content { max-width: 1100px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--brand); background: var(--brand-light);
  color: var(--brand-dark); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 0.85rem;
}
.hero-badge i { color: var(--brand); }

.hero-title { font-size: clamp(1.9rem, 3.1vw, 2.5rem); font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 0.95rem; color: #64748b; max-width: 500px; line-height: 1.6; }

/* CARD INSCRIPTION */
.register-card {
  background: #fff; border-radius: 1.5rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid #f1f5f9;
  padding: 1.8rem 1.7rem; color: #111827;
  position: relative; overflow: hidden;
}

.register-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.25rem; color: #0f172a; }
.register-subtitle { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }

.form-label { font-size: 0.8rem; font-weight: 600; color: #374151; }

.form-control, select.form-control, .register-card select, .register-card input[type=file] {
  font-size: 0.86rem; padding: 0.65rem 0.75rem; border-radius: 0.7rem;
  border: 1px solid #d1d5db; transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%; background: #fff; color: #1e293b; font-family: inherit;
}
.register-card select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.2rem; }
.register-card input[type=file] { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
.register-card input[type=file]::file-selector-button {
  border: none; background: var(--brand-light); color: var(--brand-dark);
  font-weight: 600; font-size: 0.78rem; padding: 0.45rem 0.8rem;
  border-radius: 0.5rem; margin-right: 0.6rem; cursor: pointer;
}

.form-control:focus, .register-card select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 0.12rem rgba(5,150,105,0.18); outline: none;
}

.input-group-text { border-radius: 0 0.7rem 0.7rem 0; background-color: #f3f4f6; border-color: #d1d5db; cursor: pointer; }
.toggle-password { color: #6b7280; transition: color .2s ease; }
.toggle-password:hover { color: var(--brand); }

.form-check-label { font-size: 0.8rem; color: #4b5563; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

.btn-afri-secondary {
  background: var(--brand); border: none; color: #fff;
  font-weight: 700; font-size: 0.92rem; padding: 0.75rem 0.9rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; width: 100%; transition: background .2s ease, transform .15s ease;
}
.btn-afri-secondary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-afri-secondary:active { transform: translateY(0); }

.btn-afri-outline {
  background: #fff; border: 1.5px solid #d1d5db; color: #374151;
  font-weight: 700; font-size: 0.88rem; padding: 0.7rem 0.9rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; transition: all .2s ease;
}
.btn-afri-outline:hover { border-color: var(--brand); color: var(--brand); }

.helper-text { font-size: 0.75rem; color: #6b7280; }
.text-accent { color: var(--brand); font-weight: 600; }

/* ===== ÉTAPES (wizard) ===== */
.step-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 1.4rem; }
.step-dot { flex: 1; height: 4px; border-radius: 4px; background: #e2e8f0; transition: background .25s ease; }
.step-dot.done, .step-dot.active { background: var(--brand); }
.step-label { font-size: 0.72rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 0.9rem; }

.form-step { display: none; animation: stepIn .25s ease; }
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.step-nav { display: flex; gap: 10px; margin-top: 0.4rem; }
.step-nav .btn-afri-outline, .step-nav .btn-afri-secondary { flex: 1; }

/* FOOTER */
footer { background: #0f172a; color: #94a3b8; font-size: 0.8rem; padding: 0.9rem 1.5rem; }
.footer-links a { color: #e2e8f0; text-decoration: none; margin-right: 1rem; font-weight: 500; font-size: 0.8rem; }
.footer-links a:hover { color: var(--brand-mid); }
.footer-social a { color: #e2e8f0; margin-left: 0.75rem; font-size: 1.05rem; transition: color .2s ease; }
.footer-social a:hover { color: var(--brand-mid); }

@media (min-width: 768px) {
  .hero { padding-inline: 3rem; }
  .register-card { padding: 2rem 2.1rem; }
}
@media (min-width: 992px) {
  .hero { padding-inline: 4.5rem; }
  .hero-title { font-size: 2.4rem; }
}
/* ============================================================
   AJOUT : à coller à la fin de login.css ET sign_in.css.
   Style du menu mobile (navbarNav) — auparavant inexistant
   puisque l'élément lui-même n'existait pas dans le HTML.
============================================================ */

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    margin: 0 -1rem;
    padding: 10px 1.25rem 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }
}

.navbar-nav .nav-link {
  color: #374151 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 4px !important;
}
.navbar-nav .nav-link:hover {
  color: var(--brand) !important;
}
