/* ==========================================================================
   Bayo Bilingual Complex — site institutionnel
   Jetons repris de la charte de l'application BBC SMS (frontend/tailwind.config.js)
   pour que le site vitrine et l'espace parents se ressemblent.
   ========================================================================== */

:root {
  --brand-50:  #F1F5FA;
  --brand-100: #DCE6F1;
  --brand-200: #B7CADC;
  --brand-300: #7E9CBA;
  --brand-400: #4F75A0;
  --brand-500: #2D5586;
  --brand-600: #1B3A5C;
  --brand-700: #152F4B;
  --brand-800: #0F2238;
  --brand-900: #0A1828;

  --gold-100: #F5E9C1;
  --gold-200: #ECD58A;
  --gold-300: #E2C05A;
  --gold-400: #D4A843;
  --gold-500: #B98B25;

  --ink:     #0F2238;
  --mute:    #5B6B82;
  --line:    #E2E8F0;
  --surface: #F5F6FA;
  --white:   #FFFFFF;

  --ok:   #16A34A;
  --warn: #F59E0B;

  --shadow-card: 0 1px 2px rgba(15, 34, 56, .05), 0 4px 16px rgba(15, 34, 56, .06);
  --shadow-pop:  0 12px 32px rgba(15, 34, 56, .16);

  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --header-h:  76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-800);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-700); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- utilitaires de mise en page ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--surface { background: var(--surface); }
.section--brand {
  background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand-900) 100%);
  color: #E7EDF5;
}
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand p { color: #C3D0E0; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.section--brand .eyebrow { color: var(--gold-300); }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--mute);
  max-width: 66ch;
}
.section--brand .lead { color: #C3D0E0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: .95rem;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold-400); color: var(--brand-900); box-shadow: 0 6px 20px rgba(212, 168, 67, .32); }
.btn--primary:hover { background: var(--gold-300); color: var(--brand-900); }
.btn--dark { background: var(--brand-600); color: #fff; }
.btn--dark:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--brand-200); color: var(--brand-600); background: #fff; }
.btn--outline:hover { border-color: var(--brand-400); background: var(--brand-50); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- barre supérieure ---------- */
.topbar {
  background: var(--brand-900);
  color: #A9BBD0;
  font-size: .8rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #A9BBD0; }
.topbar a:hover { color: var(--gold-300); }
.topbar__tools { display: flex; align-items: center; gap: 14px; }

.langswitch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden;
}
.langswitch button {
  border: 0; background: transparent; color: #A9BBD0;
  font: inherit; font-weight: 800; font-size: .72rem; letter-spacing: .06em;
  padding: 4px 11px; cursor: pointer;
}
.langswitch button[aria-pressed="true"] { background: var(--gold-400); color: var(--brand-900); }

/* ---------- en-tête / navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; }
.brand__name {
  font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.06rem;
  line-height: 1.15; color: var(--brand-800);
}
.brand__tag {
  font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 700; color: var(--brand-700);
}
.nav a:hover { background: var(--brand-50); }
.nav a.is-active { color: var(--brand-600); background: var(--brand-100); }

.header__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 46px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--brand-700); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 12% -10%, #24466E 0%, transparent 60%),
              linear-gradient(155deg, var(--brand-700) 0%, var(--brand-900) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: auto -80px -160px auto;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, .22) 0%, transparent 68%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero__lead { color: #C7D5E6; font-size: clamp(1.03rem, 1.7vw, 1.2rem); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .78rem; font-weight: 700; color: #D7E2EF;
}
.pill b {
  background: var(--gold-400); color: var(--brand-900);
  padding: 2px 9px; border-radius: 999px; font-size: .7rem; letter-spacing: .04em;
}

.hero__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero__card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.hero__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero__card li { display: flex; gap: 12px; font-size: .93rem; color: #D2DDEB; }
.hero__card .tick {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(212, 168, 67, .18); color: var(--gold-300); font-size: .7rem; font-weight: 900;
}

/* ---------- bandeau de chiffres ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats > div { padding: 26px 8px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.stats > div:last-child { border-right: 0; }
.stats dt {
  font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--gold-300); line-height: 1;
}
.stats dd {
  margin: 8px 0 0; font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #9FB3C9;
}

/* ---------- cartes ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--brand-200); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-600);
  font-size: 1.25rem;
}
.card__icon--gold { background: var(--gold-100); color: var(--gold-500); }

.card--cycle { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.card--cycle .card__head {
  padding: 22px 26px; color: #fff;
  background: linear-gradient(140deg, var(--brand-600), var(--brand-800));
}
.card--cycle .card__head h3 { color: #fff; margin: 0; }
.card--cycle .card__head span { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.card--cycle .card__body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card--cycle ul { margin: 0 0 20px; padding-left: 20px; color: var(--mute); font-size: .93rem; }
.card--cycle li { margin-bottom: 7px; }
.card--cycle .btn { margin-top: auto; }

/* ---------- listes à puces dorées ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-500); font-size: .72rem; font-weight: 900;
}

/* ---------- étapes numérotées ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  position: relative; padding: 24px 26px 24px 76px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-600); color: #fff;
  font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .35em; }
.step p:last-child { margin-bottom: 0; color: var(--mute); font-size: .95rem; }

/* ---------- split (texte + encadré) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }

.panel {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-400);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
}
.panel--quiet { border-left-color: var(--brand-400); }
.section--brand .panel {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14);
  border-left-color: var(--gold-400); color: #D2DDEB; box-shadow: none;
}

/* ---------- tableaux ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .94rem; }
thead th {
  text-align: left; padding: 14px 18px; background: var(--brand-800); color: #fff;
  font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
tbody td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink); }
tbody tr:nth-child(even) td { background: var(--brand-50); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
details.qa {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px;
  box-shadow: var(--shadow-card);
}
details.qa summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 800; color: var(--brand-700);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--gold-500);
}
details.qa[open] summary::after { content: "–"; }
details.qa .qa__body { padding: 0 0 20px; color: var(--mute); font-size: .95rem; }
details.qa .qa__body p:last-child { margin-bottom: 0; }

/* ---------- citation ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-card);
}
.quote blockquote {
  margin: 0 0 18px; font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem; line-height: 1.6; color: var(--brand-700);
}
.quote figcaption { font-size: .86rem; color: var(--mute); }
.quote figcaption b { display: block; color: var(--ink); font-size: .95rem; }

/* ---------- formulaires ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 800; color: var(--brand-700); }
.field .req { color: #DC2626; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid #CBD5E1; border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.form__hint { font-size: .82rem; color: var(--mute); }
.form__note {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: .86rem; color: var(--brand-700);
}

/* ---------- bloc contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ci {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: var(--brand-50); color: var(--brand-600); font-size: 1.1rem;
}
.contact-list b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.contact-list span { color: var(--ink); font-weight: 600; }

.map-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, #EEF2F7 0 14px, #E7EDF4 14px 28px);
  min-height: 280px; display: grid; place-items: center; text-align: center; padding: 32px;
}

/* ---------- appel à l'action ---------- */
.cta {
  background: linear-gradient(140deg, var(--brand-600) 0%, var(--brand-900) 100%);
  border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); color: #fff;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: #C3D0E0; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- pied de page ---------- */
.footer { background: var(--brand-900); color: #93A7BE; font-size: .9rem; padding: 64px 0 0; }
.footer h4 {
  color: #fff; font-family: 'Manrope', sans-serif; font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px;
}
.footer a { color: #93A7BE; }
.footer a:hover { color: var(--gold-300); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.footer__brand img { width: 52px; }
.footer__brand .brand__name { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem;
}

/* ---------- bannière de page intérieure ---------- */
.pagehead {
  background: linear-gradient(150deg, var(--brand-700) 0%, var(--brand-900) 100%);
  color: #fff; padding: clamp(48px, 6vw, 84px) 0;
}
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead p { color: #C3D0E0; max-width: 62ch; margin: 0; font-size: 1.05rem; }
.breadcrumb { font-size: .82rem; color: #8FA5BE; margin-bottom: 18px; }
.breadcrumb a { color: #8FA5BE; }
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- i18n : masquage anti-FOUC ---------- */
[data-i18n] { display: revert; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-pop);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: var(--radius-sm); }
  .burger { display: block; }
  .header__cta .btn--dark { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .form__row { grid-template-columns: 1fr; }
  .topbar__contact { display: none; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- impression ---------- */
@media print {
  .topbar, .header, .footer, .cta, .btn { display: none !important; }
  body { color: #000; }
}

/* ---------- ajustements identité de marque ---------- */
.brand__name, .brand__tag { display: block; }
.brand > span { display: block; }

/* ==========================================================================
   Animations (GSAP) — voir assets/js/animations.js
   Le masquage initial est injecté par anim-init.js et retiré dès que GSAP
   prend la main : rien ici ne peut laisser un contenu invisible.
   ========================================================================== */

/* ---------- décor animé de la bannière ---------- */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora__blob {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(52px); opacity: .45; will-change: transform, opacity;
}
.aurora__blob--1 {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; left: -8%;
  background: radial-gradient(circle, rgba(79, 117, 160, .85) 0%, rgba(79, 117, 160, 0) 70%);
}
.aurora__blob--2 {
  width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; bottom: -20%; right: -6%;
  background: radial-gradient(circle, rgba(212, 168, 67, .55) 0%, rgba(212, 168, 67, 0) 70%);
}
.aurora__blob--3 {
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; top: 32%; right: 26%;
  background: radial-gradient(circle, rgba(45, 85, 134, .7) 0%, rgba(45, 85, 134, 0) 70%);
}

/* Le décor passe sous le contenu, jamais devant. */
.hero > .wrap, .pagehead > .wrap { position: relative; z-index: 1; }
.pagehead { position: relative; overflow: hidden; }

/* ---------- titre découpé en mots ---------- */
/* overflow:hidden coupe les jambages (« g », « j ») : on rend la place perdue. */
.w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- bandeau d'annonces défilantes ---------- */
.ticker {
  position: relative; display: inline-block; vertical-align: middle;
  height: 1.5em; min-width: 27ch; overflow: hidden;
}
.ticker__item { display: block; white-space: nowrap; }
/* Sans JavaScript, une seule annonce s'affiche — rien ne se superpose. */
.ticker__item + .ticker__item { display: none; }
html.anim .ticker__item,
html .ticker__item.is-stacked { display: block; }
html.anim .ticker__item + .ticker__item { display: block; }
html.anim .ticker__item { position: absolute; inset: 0; }

/* ---------- en-tête au défilement ---------- */
.header { transition: box-shadow .2s ease, background-color .2s ease; }
.header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 6px 24px rgba(15, 34, 56, .10);
}

/* ---------- barre de progression de lecture ---------- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  pointer-events: none; overflow: hidden;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- mouvement réduit ----------
   anim-init.js n'active alors aucune animation ; on neutralise aussi le
   décor, qui n'a plus de raison d'être si rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  .aurora { display: none; }
  .ticker { height: auto; min-width: 0; }
  .ticker__item + .ticker__item { display: none; }
}

/* ==========================================================================
   Page de connexion
   ========================================================================== */

/* Lien « Connexion » du menu : doublon du bouton d'en-tête, il ne sert que
   lorsque ce bouton est masqué, c'est-à-dire en menu mobile. */
.nav__login { display: none; }

.form__error {
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #FECACA;
  border-left: 4px solid #DC2626;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  color: #991B1B;
  font-size: .89rem;
  font-weight: 600;
}

/* Champ mot de passe + bouton « Afficher » intégré. */
.field-with-action { position: relative; display: block; }
.field-with-action input { padding-right: 92px; }
.field-action {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  border: 0; background: transparent;
  font: inherit; font-size: .78rem; font-weight: 800;
  color: var(--brand-500); cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
}
.field-action:hover { background: var(--brand-50); color: var(--brand-600); }

/* Le repli du <details> « mot de passe oublié » ne doit pas ressembler à une
   question de FAQ perdue au milieu d'un formulaire. */
.card > details.qa { border-color: var(--line); background: var(--brand-50); }
.card > details.qa summary { font-size: .9rem; }

@media (max-width: 860px) {
  .nav__login { display: block; }
}
