/* ===========================================================
   THE BRIDGE — feuille de styles partagée
   Basé sur les maquettes Figma : Page d'accueil (Frame 42)
   et onglet Orientation (Frame 43)
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #F4801F;
  --orange-dark: #D96A0B;
  --orange-lt:   #FDEEDD;
  --black:       #1A1A18;
  --gray-900:    #262622;
  --gray-700:    #55534C;
  --gray-400:    #9C9A92;
  --gray-200:    #E4E1D8;
  --gray-100:    #F1EFE9;
  --section-bg:  #EDEBE5;
  --white:       #FFFFFF;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 999px;
  --shadow:      0 2px 10px rgba(26, 26, 24, .06);
  --shadow-md:   0 6px 24px rgba(26, 26, 24, .10);
  --max-width:   1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  flex-shrink: 0;
}
.logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.nav-links a { transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--black); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-actions.hidden { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--gray-900);
  flex-shrink: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle:hover { background: var(--gray-100); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--white); color: var(--black); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--gray-400); }
.btn-text { color: var(--gray-700); font-size: 14px; font-weight: 500; padding: 11px 6px; }
.btn-text:hover { color: var(--black); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700);
}
.avatar svg { width: 18px; height: 18px; }

/* ===== HERO (Accueil) ===== */
.hero {
  text-align: center;
  padding: 64px 32px 44px;
  max-width: 760px;
  margin: 0 auto;
}
.hero-badge-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange-lt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.hero-badge-icon svg { width: 22px; height: 22px; }
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--black);
}
.hero h1 .accent { color: var(--orange); }
.hero p.sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 14px;
}
.hero p.desc {
  font-size: 13.5px;
  color: var(--gray-700);
  max-width: 480px;
  margin: 12px auto 0;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* ===== PARTNER LOGOS ===== */
.partners {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 26px 32px;
}
.partners-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  opacity: .85;
  transition: opacity .15s;
}
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 100%; width: auto; object-fit: contain; }
/* Le fichier source de ce logo a une grosse marge interne (mark centré dans un canevas carré) :
   sans ce correctif il paraît nettement plus petit que les logos voisins au même conteneur. */
.logo-bem-abidjan { transform: scale(2); }

/* ===== HERO IMAGE BAND (pleine largeur) ===== */
.hero-media { margin: 40px 0; }
.hero-media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 21 / 7;
  background: #2b2f36 center 25% / cover no-repeat;
}
.hero-media-frame img.bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.placeholder-label {
  position: relative; z-index: 1;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px 20px;
  border: 1.5px dashed rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
}
.hero-media-overlay {
  position: absolute;
  z-index: 2;
  top: 24px; right: 28px;
  text-align: right;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero-media-overlay div { margin-bottom: 4px; }
.hero-media-overlay div:nth-child(3) { color: var(--orange); }

/* ===== SECTION HEADINGS (bar + title) ===== */
.section-heading { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-heading .bar { width: 4px; align-self: stretch; background: var(--orange); border-radius: 4px; flex-shrink: 0; }
.section-heading h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.section-heading p { font-size: 13.5px; color: var(--gray-700); max-width: 640px; }

/* ===== STATS + HOW-IT-WORKS (Accueil) ===== */
.section-gray { background: var(--section-bg); padding: 56px 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 46px;
}
.stat-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.stat-card .stat-number { font-size: 30px; font-weight: 800; color: var(--black); }
.stat-card .stat-label { font-size: 12.5px; color: var(--gray-700); margin-top: 6px; }
.stat-card .stat-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 22px; height: 22px;
  color: var(--gray-400);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.step-item { text-align: center; }
.step-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--orange-lt);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-icon svg { width: 24px; height: 24px; }
.step-item h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 12.5px; color: var(--gray-700); }

.center-cta { text-align: center; }

/* ===== ORIENTATION — hero band with overlay text ===== */
.orientation-hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: #24302a center 30% / cover no-repeat;
}
.orientation-hero img.bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.orientation-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 5%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.orientation-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px 46px;
  max-width: 620px;
  border-left: 4px solid var(--orange);
  margin-left: 32px;
}
.orientation-hero-content h1 {
  color: var(--white);
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}
.orientation-hero-content p {
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.orientation-algo {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px 32px 60px;
}
.algo-list { margin-top: 6px; counter-reset: algo; }
.algo-list li {
  counter-increment: algo;
  padding: 12px 0 12px 34px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.algo-list li:last-child { border-bottom: none; }
.algo-list li::before {
  content: counter(algo) '.';
  position: absolute; left: 0; top: 12px;
  font-weight: 800;
  color: var(--orange);
  font-size: 13.5px;
}
.algo-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
}
.algo-desc {
  font-size: 13.5px;
  color: var(--gray-700);
  margin-top: 4px;
}

/* ===== WIZARD ===== */
.wizard-section { max-width: var(--max-width); margin: 0 auto; padding: 50px 32px 70px; }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.step-dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  transition: all .15s;
}
.step-dot svg { width: 20px; height: 20px; }
.step-dot.active { border-color: var(--orange); color: var(--orange); background: var(--orange-lt); }
.step-dot.done { border-color: var(--orange); color: var(--white); background: var(--orange); }
.step-line { width: 70px; height: 0; border-top: 1.5px dashed var(--gray-200); }

.wizard-section > h2 {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 26px;
}

.wizard-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.form-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--black);
  background: var(--gray-100);
}
.form-field input::placeholder { color: var(--gray-400); }
.form-field input:focus { outline: none; border-color: var(--orange); background: var(--white); }

.serie-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.serie-pill {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
}
.serie-pill:hover { border-color: var(--orange); }
.serie-pill.selected { background: var(--orange); border-color: var(--orange); color: var(--white); }

.wizard-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.wizard-nav .btn-secondary { min-width: 140px; }
.wizard-card.wide { max-width: 820px; }

/* ===== CARNET SCOLAIRE — tableau de notes par matière ===== */
.grades-section-title { font-size: 12.5px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 10px; }
.grades-section-title:first-child { margin-top: 0; }

.subject-grades-table { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.sgt-header, .sgt-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
}
.sgt-header { background: var(--gray-100); font-size: 11px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; }
.sgt-header span:not(:first-child) { text-align: center; }
.sgt-row { border-top: 1px solid var(--gray-100); }
.sgt-row label { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.sgt-row input {
  width: 100%;
  padding: 7px 8px;
  text-align: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 13px;
  background: var(--gray-100);
}
.sgt-row input:focus { outline: none; border-color: var(--orange); background: var(--white); }

.hidden { display: none !important; }

/* ===== WIZARD — étape finale "Presque prêt" ===== */
.wizard-final { text-align: center; max-width: 620px; margin: 20px auto 0; }
.wizard-final h2 { margin-bottom: 12px; }
.wizard-final p { font-size: 14px; color: var(--gray-700); line-height: 1.6; margin-bottom: 34px; }
.wizard-final-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wizard-final-actions .btn { min-width: 300px; }
.wizard-final-actions .btn-secondary { border-color: var(--gray-200); }

/* ===== RESULTATS DE FORMATIONS (wizard étape 3) ===== */
.result-formation-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.result-formation-card.match { border-color: var(--orange); background: var(--orange-lt); }
.result-formation-card .rf-name { font-size: 14.5px; font-weight: 700; }
.result-formation-card .rf-meta { font-size: 12px; color: var(--gray-700); margin-top: 3px; }
.result-formation-card .rf-rate { font-size: 17px; font-weight: 800; color: var(--orange-dark); text-align: right; flex-shrink: 0; }
.match-badge {
  font-size: 10.5px; font-weight: 700;
  background: var(--orange); color: #fff;
  padding: 3px 9px; border-radius: var(--radius-pill);
  margin-top: 4px; display: inline-block;
}

/* ===== BANDEAU CTA (vers test de personnalité) ===== */
.cta-banner {
  background: linear-gradient(135deg, #2b2f36, #454b52);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  margin-top: 40px;
}
.cta-banner h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.75); font-size: 13px; max-width: 420px; }

/* ===== TEST DE PERSONNALITÉ — présentation des 16 types (façon "Comment ça marche") ===== */
.type-group-label {
  font-size: 12.5px; font-weight: 800; color: var(--orange);
  text-transform: uppercase; letter-spacing: .04em;
  margin: 34px 0 16px;
}
.type-group-label:first-child { margin-top: 0; }
.type-explain-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 6px; }
.type-explain-item { text-align: center; padding: 0 18px; border-right: 1px solid var(--gray-200); }
.type-explain-item:last-child { border-right: none; }
.type-explain-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange-lt); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.type-explain-icon svg { width: 23px; height: 23px; }
.type-explain-item h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.type-explain-code { font-size: 10.5px; font-weight: 700; color: var(--gray-400); letter-spacing: .03em; margin-bottom: 10px; }
.type-explain-item p { font-size: 12.5px; color: var(--gray-700); line-height: 1.55; }

/* ===== ÉTABLISSEMENTS — cartes pleine largeur + détail ===== */
.school-grid { display: flex; flex-direction: column; gap: 16px; }
.school-card {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  text-align: left;
  transition: all .15s;
  cursor: pointer;
}
.school-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.school-card .school-logo { height: 58px; width: 130px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-start; }
.school-card .school-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.school-card .school-body { flex: 1; min-width: 0; }
.school-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.school-card .school-meta { font-size: 12.5px; color: var(--gray-700); margin-bottom: 6px; }
.school-card .school-desc { font-size: 13px; color: var(--gray-700); line-height: 1.5; max-width: 640px; }
.school-card .school-link { font-size: 13px; font-weight: 700; color: var(--orange); white-space: nowrap; flex-shrink: 0; }
.school-card .badge-soon {
  display: inline-block; margin-top: 8px;
  font-size: 10.5px; font-weight: 700; color: var(--gray-700);
  background: var(--gray-100); padding: 3px 10px; border-radius: var(--radius-pill);
}
@media (max-width: 700px) {
  .school-card { flex-wrap: wrap; }
  .school-card .school-link { margin-left: 130px; }
}

.school-detail-header {
  display: flex; align-items: center; gap: 20px;
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 30px;
}
.school-detail-header .school-logo-lg {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  padding: 10px; flex-shrink: 0;
}
.school-detail-header .school-logo-lg img { max-width: 100%; max-height: 100%; }
.school-detail-header h1 { font-size: 24px; font-weight: 800; }
.school-detail-header p { font-size: 13.5px; color: var(--gray-700); margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-top: 24px; }
.back-link:hover { color: var(--orange); }

.formation-detail-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.formation-detail-card .formation-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.formation-detail-card h3 { font-size: 15px; font-weight: 700; }
.domain-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--orange-lt); color: var(--orange-dark);
  white-space: nowrap; flex-shrink: 0;
}
.formation-detail-card .fd-meta { font-size: 12px; color: var(--gray-700); margin-bottom: 8px; }
.criteria-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.criteria-pill { font-size: 12px; font-weight: 600; color: var(--gray-700); background: var(--gray-100); padding: 5px 12px; border-radius: var(--radius-pill); }

/* ===== MON PROFIL ===== */
.profile-header { display: flex; align-items: center; gap: 20px; padding: 44px 0 34px; }
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--orange-lt); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; flex-shrink: 0;
}
.profile-header h1 { font-size: 22px; font-weight: 800; }
.profile-header p { font-size: 13px; color: var(--gray-700); margin-top: 2px; }

.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; padding-bottom: 60px; }
.profile-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.profile-card h2 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.profile-card-foot { display: flex; justify-content: flex-end; margin-top: 4px; }

.grades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grade-cell { background: var(--gray-100); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; }
.grade-cell .grade-label { font-size: 11px; color: var(--gray-700); }
.grade-cell .grade-value { font-size: 16px; font-weight: 800; margin-top: 2px; }

.personality-summary { display: flex; align-items: center; gap: 16px; }
.type-icon-lg {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange-lt); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.type-icon-lg svg { width: 28px; height: 28px; }
.personality-summary .p-type { font-size: 16px; font-weight: 800; }
.personality-summary .p-group { font-size: 12.5px; color: var(--gray-700); }

.candidature-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); gap: 10px; }
.candidature-item:last-child { border-bottom: none; }
.candidature-item .c-title { font-size: 13.5px; font-weight: 700; }
.candidature-item .c-sub { font-size: 12px; color: var(--gray-700); }
.status-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.status-badge.pending { background: #FAEEDA; color: #BA7517; }
.status-badge.accepted { background: #E1F5EE; color: #085041; }
.status-badge.rejected { background: #FCEBEB; color: #B02A2A; }

/* ===== CONNEXION / INSCRIPTION ===== */
.auth-shell { max-width: 480px; margin: 56px auto 90px; padding: 0 24px; }
.auth-shell h1 { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-shell p.sub { text-align: center; font-size: 13.5px; color: var(--gray-700); margin-bottom: 28px; }
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.auth-card .form-field { margin-bottom: 16px; }
.auth-card .btn-primary { width: 100%; padding: 12px; margin-top: 6px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--gray-700); margin-top: 20px; }
.auth-switch a { color: var(--orange); font-weight: 700; }
.auth-error {
  display: none;
  background: #FCEBEB; color: #B02A2A;
  font-size: 12.5px; font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.auth-error.visible { display: block; }

/* ===== TEST DE PERSONNALITÉ — explication des 4 (+1) lettres ===== */
.pref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-bottom: 30px; }
.pref-pair h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.pref-pair h3 .accent { color: var(--orange); }
.pref-pair ul { list-style: none; }
.pref-pair li { font-size: 13.5px; color: var(--gray-700); line-height: 1.6; margin-bottom: 10px; }
.pref-pair li:last-child { margin-bottom: 0; }
.pref-pair li strong { color: var(--black); }
.pref-example {
  background: var(--orange-lt);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-900);
  line-height: 1.8;
}
.pref-example strong { color: var(--orange-dark); }
.pref-note { font-size: 12.5px; color: var(--gray-700); text-align: center; margin-top: 14px; }

/* ===== TEST DE PERSONNALITÉ — quiz interactif ===== */
.quiz-progress-text { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--gray-400); margin-bottom: 8px; }
.quiz-progress-bar { max-width: 700px; margin: 0 auto 30px; height: 6px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--orange); border-radius: 4px; transition: width .25s ease; }

.quiz-question-text { font-size: 18px; font-weight: 700; color: var(--black); line-height: 1.4; margin-bottom: 26px; }

.likert-scale { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.likert-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 16px; font-weight: 700;
  transition: all .15s;
}
.likert-btn:hover { border-color: var(--orange); }
.likert-btn.selected { background: var(--orange); border-color: var(--orange); color: var(--white); }
.likert-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-400); max-width: 340px; margin: 0 auto; }

/* ===== RÉSULTAT DU TEST ===== */
.result-type-card { text-align: center; padding: 40px 24px 34px; }
.result-type-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--orange-lt); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.result-type-icon svg { width: 36px; height: 36px; }
.result-type-code { font-size: 13px; font-weight: 800; color: var(--gray-400); letter-spacing: .06em; }
.result-type-name { font-size: 26px; font-weight: 800; margin: 4px 0 6px; }
.result-type-group { font-size: 13px; font-weight: 700; color: var(--orange-dark); background: var(--orange-lt); display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: 18px; }
.result-type-desc { font-size: 14px; color: var(--gray-700); max-width: 560px; margin: 0 auto; line-height: 1.6; }

.trait-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.trait-row:last-child { margin-bottom: 0; }
.trait-label { width: 76px; font-size: 12.5px; font-weight: 700; color: var(--gray-700); flex-shrink: 0; }
.trait-track { flex: 1; height: 10px; background: var(--gray-100); border-radius: 6px; overflow: hidden; }
.trait-fill { height: 100%; background: var(--orange); border-radius: 6px; transition: width .4s ease; }
.trait-value { width: 160px; font-size: 12.5px; font-weight: 600; color: var(--gray-900); text-align: right; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }

  .navbar-inner { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; border-bottom: 1px solid var(--gray-100); }
  .nav-links a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .type-explain-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .type-explain-item { border-right: none; padding: 0 10px; }
  .type-explain-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .profile-grid { grid-template-columns: 1fr; }
  .grades-grid { grid-template-columns: repeat(2, 1fr); }
  .pref-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ===== RESPONSIVE — petits écrans (téléphones) ===== */
@media (max-width: 520px) {
  body { overflow-x: hidden; }

  .navbar-inner { padding: 12px 16px; gap: 10px 14px; }
  .logo img { height: 30px; }
  .nav-actions { gap: 8px; }
  .btn { padding: 9px 16px; font-size: 13px; }
  .btn-sm { padding: 7px 13px; font-size: 12px; }
  .user-chip .user-fullname { display: none; } /* l'avatar suffit, le nom complet prend trop de place */

  .container { padding: 0 18px; }
  .hero { padding: 44px 18px 32px; }
  .hero h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .section-gray, .wizard-section, .orientation-algo { padding-left: 18px; padding-right: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partners-inner { justify-content: center; gap: 26px 32px; }

  .orientation-hero-content { margin-left: 12px; padding: 26px 22px 30px; max-width: 100%; }
  .orientation-hero-content h1 { font-size: 21px; }

  .wizard-card { padding: 22px 18px; }
  .wizard-final-actions .btn { min-width: 0; width: 100%; }

  .subject-grades-table { font-size: 11px; }
  .sgt-header, .sgt-row { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 5px; padding: 7px 8px; }
  .sgt-row input { padding: 6px 4px; font-size: 12px; }

  .type-explain-grid { grid-template-columns: 1fr 1fr; }
  .type-explain-item { padding: 0 6px; }

  .school-card { padding: 18px; gap: 14px; }
  .school-card .school-logo { width: 90px; height: 46px; }
  .school-detail-header { flex-wrap: wrap; }

  .result-formation-card { flex-wrap: wrap; }
  .result-formation-card > div:last-child { width: 100%; justify-content: space-between; }

  .likert-scale { gap: 8px; }
  .likert-btn { width: 44px; height: 44px; font-size: 14px; }

  .cta-banner { padding: 26px 22px; flex-direction: column; align-items: flex-start; }
}
