/* =========================================================================
   Prépa LCA anglais — Anglais Monde
   Design system : aubergine #4A1B3E · or #C9A227 · ivoire clair
   Un seul fichier, aucune dépendance externe.
   ========================================================================= */

/* ---------- Polices auto-hébergées ---------- */
/* Source Serif 4 : la serif des revues scientifiques, pour les titres.
   Inter : corps de texte, capitales espacées, interface. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourceserif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourceserif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  /* « aubergine » désigne désormais l'encre noire de la marque : le nom est
     conservé pour ne pas réécrire l'ensemble des règles. */
  --aubergine:      #1B1B1B;
  --aubergine-deep: #101010;
  --aubergine-soft: #8C8C8A;
  --or:             #B08D4F;
  --or-clair:       #C9AC77;
  --or-pale:        #F0E9DC;
  --ivoire:         #FFFFFF;
  --ivoire-chaud:   #F5F5F5;
  --blanc:          #FFFFFF;
  --encre:          #1B1B1B;
  --encre-douce:    #767674;
  --filet:          rgba(27, 27, 27, 0.10);
  --filet-fort:     rgba(27, 27, 27, 0.24);

  --serif:  'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --pas:    clamp(1rem, 0.6rem + 1.6vw, 1.6rem);
  --gouttiere: clamp(1.25rem, 5vw, 3.5rem);
  --largeur:   72rem;
  --largeur-texte: 38rem;

  --rayon:   0;
  --ombre:   none;
  --ombre-haute: 0 20px 60px -40px rgba(0, 0, 0, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.68;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--aubergine);
  line-height: 1.15;
  letter-spacing: -.018em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.6rem + 1.9vw, 3.15rem); line-height: 1.1; }
.heros h1 { text-wrap: pretty; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.05rem + .3vw, 1.25rem); }
h4 { font-size: .98rem; }

/* Le second membre du titre d'ouverture : contraste de ton, jamais d'italique. */
.heros h1 em { font-style: normal; font-weight: 400; color: var(--encre-douce); }

p { margin: 0 0 1.2em; max-width: var(--largeur-texte); }
p:last-child { margin-bottom: 0; }

a { color: var(--aubergine); text-decoration-color: var(--filet-fort); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--or); }

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

img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--filet); margin: 3rem 0; }

::selection { background: var(--or-pale); color: var(--aubergine-deep); }

.saut-contenu {
  position: absolute; left: -9999px; top: 0;
  background: var(--aubergine); color: var(--blanc);
  padding: .8rem 1.2rem; z-index: 200;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Grille ---------- */
.wrap {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.wrap--etroit { max-width: 46rem; }
.wrap--large  { max-width: 80rem; }

.section { padding-block: clamp(3rem, 2rem + 3.5vw, 5.5rem); }
.section--serree { padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.section--suite { padding-top: 0; }
.section--ivoire { background: var(--ivoire-chaud); }
.section--blanche { background: var(--blanc); }
.section--aubergine { background: var(--aubergine); color: rgba(255,255,255,.86); }
.section--aubergine h2,
.section--aubergine h3 { color: var(--blanc); }

/* ---------- Éléments éditoriaux ---------- */
.surtitre {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aubergine-soft);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.surtitre::before {
  content: '';
  width: 1.8rem; height: 1px;
  background: var(--or);
  flex: none;
}
.section--aubergine .surtitre { color: var(--or-clair); }

.chapo {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--encre-douce);
  max-width: 34rem;
}
.section--aubergine .chapo { color: rgba(255,255,255,.8); }

.mesure { max-width: var(--largeur-texte); }
/* .wrap et .mesure sur le même élément : le conteneur reste large, la ligne de texte reste courte. */
.wrap.mesure { max-width: var(--largeur); }
.wrap.mesure > * { max-width: var(--largeur-texte); }
.wrap.mesure.centre > * { margin-inline: auto; }
.centre { margin-inline: auto; text-align: center; }
.centre .surtitre { justify-content: center; }
.centre p { margin-inline: auto; }

.filet-or {
  width: 3.5rem; height: 2px;
  background: var(--or);
  border: 0; margin: 2rem 0;
}
.centre .filet-or { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--rayon);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--or {
  background: var(--or);
  color: var(--blanc);
}
.btn--or:hover { background: #9C7C43; }
.btn--aubergine { background: var(--aubergine); color: var(--blanc); }
.btn--aubergine:hover { background: var(--aubergine-deep); }
.btn--ligne {
  background: transparent;
  color: var(--aubergine);
  border-color: var(--filet-fort);
}
.btn--ligne:hover { border-color: var(--aubergine); background: rgba(74,27,62,.04); }
.section--aubergine .btn--ligne { color: var(--blanc); border-color: rgba(255,255,255,.35); }
.section--aubergine .btn--ligne:hover { background: rgba(255,255,255,.08); border-color: var(--blanc); }
/* Sur la photographie d'ouverture, le bouton secondaire a besoin d'un fond :
   un simple filet blanc disparaît dans les gris de l'image. */
/* Séparateur « ou » entre le formulaire et le canal de repli. */
.ou {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.4rem 0 1.1rem;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--encre-douce);
}
.ou::before, .ou::after {
  content: ''; flex: 1; height: 1px; background: var(--filet);
}
.btn--large { display: block; width: 100%; text-align: center; }

/* Passerelle vers la réservation, sous le formulaire de capture. */
.aimant__alternative {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--encre-douce);
}
.aimant__alternative { color: rgba(255,255,255,.62); }
.aimant__alternative a { color: rgba(255,255,255,.88); text-decoration-color: var(--or); }

/* Fond sombre : le bouton de repli et le séparateur s'inversent, sans quoi
   ils disparaissent purement et simplement. */
.aimant .ou { color: rgba(255,255,255,.55); }
.aimant .ou::before, .aimant .ou::after { background: rgba(255,255,255,.18); }
.aimant .btn--ligne {
  color: var(--blanc);
  border-color: rgba(255,255,255,.42);
  background: transparent;
}
.aimant .btn--ligne:hover {
  border-color: var(--blanc);
  background: rgba(255,255,255,.08);
  color: var(--blanc);
}

.heros--image .btn--ligne {
  color: var(--blanc);
  border-color: rgba(255,255,255,.55);
  background: rgba(16,16,16,.32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.heros--image .btn--ligne:hover { background: rgba(16,16,16,.55); border-color: var(--blanc); }

.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.centre .actions { justify-content: center; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--filet-fort);
  padding-bottom: .25rem;
}
.lien-fleche::after { content: '→'; transition: transform .18s ease; }
.lien-fleche:hover { border-color: var(--or); }
.lien-fleche:hover::after { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--filet);
}
.entete__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
}
.marque { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.marque__sceau { display: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__nom {
  font-family: var(--serif); font-size: 1.12rem; color: var(--aubergine);
  font-weight: 600; letter-spacing: .06em;
}
.marque__sous {
  font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--aubergine-soft); margin-top: .25rem;
}

.nav { display: flex; align-items: center; gap: clamp(.85rem, 1.5vw, 1.6rem); }
.nav a {
  font-size: .78rem; white-space: nowrap; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--encre-douce);
  padding-block: .3rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--aubergine); border-color: var(--or); }
.nav .btn { font-size: .7rem; padding: .75rem 1.25rem; border-bottom: 0; }
.nav a.btn--or { color: var(--blanc); }
.nav a.btn--or:hover { color: var(--blanc); border-bottom: 0; }

.burger {
  display: none;
  background: transparent; border: 1px solid var(--filet-fort);
  border-radius: var(--rayon); padding: .55rem .8rem;
  font: inherit; font-size: .85rem; color: var(--aubergine); cursor: pointer;
}
@media (max-width: 62rem) {
  .burger { display: inline-flex; align-items: center; gap: .5rem; }
  .nav {
    display: none;
    position: absolute; inset: 100% 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivoire);
    border-bottom: 1px solid var(--filet);
    padding: .5rem var(--gouttiere) 1.5rem;
  }
  .nav[data-ouvert='true'] { display: flex; }
  .nav a { padding-block: .9rem; border-bottom: 1px solid var(--filet); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Bandeau saisonnier ---------- */
.bandeau {
  background: var(--aubergine-deep);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  text-align: center;
  padding: .7rem var(--gouttiere);
}
.bandeau strong { color: var(--or-clair); font-weight: 600; }
.bandeau a { color: var(--blanc); text-decoration-color: rgba(255,255,255,.4); }

/* ---------- Héros ---------- */
.heros {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem);
  overflow: hidden;
}
.heros__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 60rem) { .heros__grille { grid-template-columns: 1fr; } }
.heros h1 em {
  font-style: normal;
  color: var(--aubergine-soft);
  font-variation-settings: 'opsz' 120, 'SOFT' 40, 'WONK' 1;
}
.heros__ornement { justify-self: center; width: min(100%, 26rem); }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: clamp(1.25rem, 2vw, 2rem); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.carte {
  background: transparent;
  border: 0; border-top: 1px solid var(--filet);
  padding: 2rem 0 0;
  display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
a.carte { text-decoration: none; color: inherit; }
a.carte:hover { border-top-color: var(--or); }
.carte__num {
  font-family: var(--sans); font-size: .68rem; color: var(--or);
  letter-spacing: .24em; margin-bottom: .9rem; display: block;
}
.carte h3 { margin-bottom: .5rem; }
.carte p { font-size: .96rem; color: var(--encre-douce); }
.carte .lien-fleche { margin-top: auto; padding-top: 1.4rem; align-self: flex-start; border-bottom: 0; }

/* ---------- Forfaits ---------- */
.forfaits { display: grid; gap: clamp(1.5rem, 2vw, 2.25rem); align-items: start; }
.forfaits--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.forfaits--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.forfait {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  display: flex; flex-direction: column;
  height: 100%;
}
.forfait--vedette {
  border-color: var(--or);
  box-shadow: var(--ombre-haute);
}
.forfait--vedette::before {
  content: '';
  position: absolute; inset-inline: -1px; top: -1px; height: 1px;
  background: var(--or);
}
.forfait__etiquette {
  position: absolute; top: -.9rem; left: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  background: var(--or); color: var(--blanc);
  font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .9rem;
}
.forfait__intitule { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); margin-bottom: .35rem; }
.forfait__resume { font-size: .95rem; color: var(--encre-douce); margin-bottom: 1.5rem; }
.forfait__prix {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--aubergine);
  line-height: 1; display: flex; align-items: baseline; gap: .4rem;
}
.forfait__prix .unite { font-family: var(--sans); font-size: .85rem; color: var(--encre-douce); font-weight: 400; }
.forfait__detail { font-size: .85rem; color: var(--encre-douce); margin-top: .5rem; }
.forfait ul {
  list-style: none; margin: 1.75rem 0; padding: 0;
  display: grid; gap: .75rem;
  border-top: 1px solid var(--filet); padding-top: 1.5rem;
}
.forfait li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.forfait li::before {
  content: ''; position: absolute; left: 0; top: .78em;
  width: .35rem; height: .35rem;
  background: var(--or);
}
.forfait .btn { margin-top: auto; width: 100%; }

/* ---------- Question / réponse ---------- */
.qa { border-top: 1px solid var(--filet); padding-block: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.qa:first-of-type { border-top: 0; }
.qa__q {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.15rem + .55vw, 1.6rem);
  font-weight: 600;
  color: var(--aubergine);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.qa__r > *:last-child { margin-bottom: 0; }
.qa ul, .qa ol { max-width: var(--largeur-texte); padding-left: 1.25rem; margin: 0 0 1.2em; }
.qa li { margin-bottom: .5rem; }
.qa li::marker { color: var(--or); }

.encadre {
  background: var(--ivoire-chaud);
  border-left: 1px solid var(--or);
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
  max-width: var(--largeur-texte);
  font-size: .96rem;
}
.encadre p:last-child { margin-bottom: 0; }
.encadre__titre {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--aubergine-soft);
  margin-bottom: .6rem;
}

blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--filet-fort);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--aubergine);
  max-width: var(--largeur-texte);
}
blockquote cite { display: block; margin-top: .8rem; font-family: var(--sans); font-size: .82rem; font-style: normal; color: var(--encre-douce); }

/* Terme anglais dans le corps de texte */
.en {
  font-style: italic;
  color: var(--aubergine-soft);
}

/* ---------- Sommaire de page ---------- */
.sommaire {
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--blanc);
  padding: 1.5rem 1.75rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.sommaire__titre {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--aubergine-soft);
  margin-bottom: .9rem;
}
.sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: som; display: grid; gap: .55rem; }
.sommaire li { counter-increment: som; padding-left: 2rem; position: relative; font-size: .95rem; }
.sommaire li::before {
  content: counter(som, decimal-leading-zero);
  position: absolute; left: 0; color: var(--or); font-family: var(--sans);
  font-size: .7rem; letter-spacing: .15em;
}
.sommaire a { text-decoration: none; }
.sommaire a:hover { text-decoration: underline; text-decoration-color: var(--or); }

/* ---------- Glossaire ---------- */
.glossaire { display: grid; gap: 0; margin: 0; }
.glossaire__entree {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: .5rem 2rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--filet);
  align-items: baseline;
}
@media (max-width: 44rem) { .glossaire__entree { grid-template-columns: 1fr; gap: .35rem; } }
.glossaire dt {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--aubergine);
}
.glossaire dt small { display: block; font-family: var(--sans); font-size: .76rem; color: var(--encre-douce); letter-spacing: .04em; margin-top: .2rem; }
.glossaire dd { margin: 0; font-size: .96rem; color: var(--encre-douce); }

/* ---------- Frise / étapes ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: et; }
.etapes li {
  counter-increment: et;
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid var(--filet);
}
.etapes li::before {
  content: counter(et, decimal-leading-zero);
  position: absolute; left: 0; top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; color: var(--or);
}
.etapes h3 { margin-bottom: .4rem; }
.etapes p { color: var(--encre-douce); margin-bottom: 0; font-size: .98rem; }

/* ---------- Capture email ---------- */
.aimant {
  background: var(--aubergine);
  color: rgba(255,255,255,.85);
  border-radius: var(--rayon);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 56rem) { .aimant { grid-template-columns: 1fr; } }
.aimant::after {
  content: '';
  position: absolute; right: -6rem; top: -6rem;
  width: 18rem; height: 18rem; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.35);
  pointer-events: none;
}
.aimant h2 { color: var(--blanc); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem); }
.aimant p { color: rgba(255,255,255,.78); font-size: .98rem; }
.aimant .surtitre { color: var(--or-clair); }

.formulaire { display: grid; gap: 1rem; position: relative; z-index: 1; }
.champ { display: grid; gap: .45rem; }
.champ label {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--encre-douce);
}
.aimant .champ label { color: rgba(255,255,255,.7); }
.champ input, .champ textarea, .champ select {
  width: 100%;
  font: inherit; font-size: .98rem;
  padding: .85rem 1rem;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
}
.aimant .champ input, .aimant .champ select { border-color: transparent; }
@media (hover: none), (max-width: 48rem) {
  /* Safari iOS zoome sur tout champ dont le texte descend sous 16 px.
     La page part alors de travers, et le visiteur doit repincer pour revenir. */
  .champ input, .champ textarea, .champ select { font-size: 16px; }
}
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: 2px solid var(--or); outline-offset: 1px; }
.champ textarea { min-height: 9rem; resize: vertical; }
.champ--requis label::after { content: ' *'; color: var(--or); }

.consentement {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .82rem; line-height: 1.5;
}
.consentement input { margin-top: .25rem; flex: none; width: 1rem; height: 1rem; accent-color: var(--or); }
.aimant .consentement { color: rgba(255,255,255,.72); }
.aimant .consentement a { color: var(--or-clair); }

.pot-de-miel { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.message-formulaire {
  font-size: .92rem;
  padding: .9rem 1.1rem;
  border-radius: var(--rayon);
  border: 1px solid var(--filet-fort);
  background: var(--blanc);
  color: var(--encre);
}
.message-formulaire[data-etat='succes'] { border-color: var(--or); background: var(--or-pale); color: var(--aubergine-deep); }
.message-formulaire[data-etat='erreur'] { border-color: #B3261E; background: #FDECEA; color: #7A1C15; }
.message-formulaire[hidden] { display: none; }

/* ---------- Preuve / chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.chiffre__valeur {
  font-family: var(--serif); font-size: clamp(2.2rem, 1.7rem + 1.5vw, 3.1rem);
  font-weight: 600; color: var(--aubergine); line-height: 1;
}
.section--aubergine .chiffre__valeur { color: var(--or-clair); }
.chiffre__libelle { font-size: .85rem; color: var(--encre-douce); margin-top: .6rem; }
.section--aubergine .chiffre__libelle { color: rgba(255,255,255,.7); }

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: .8rem; color: var(--encre-douce); padding-top: 1.75rem; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.ariane li::after { content: '·'; margin-left: .5rem; color: var(--or); }
.ariane li:last-child::after { content: ''; }
.ariane a { text-decoration: none; }
.ariane a:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--aubergine-deep);
  color: rgba(255,255,255,.66);
  font-size: .9rem;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.pied a { color: rgba(255,255,255,.82); text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
}
.pied h3 {
  color: var(--blanc); font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pied__mention {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .8rem;
}
.pied__marque { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.pied__marque .marque__nom { color: var(--blanc); }
.pied__marque .marque__sous { color: var(--or-clair); }
.pied p { color: rgba(255,255,255,.62); font-size: .88rem; }

/* ---------- Marquage des textes provisoires ---------- */
[data-tbd] {
  background-image: linear-gradient(transparent 88%, rgba(201,162,39,.55) 0);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
[data-tbd]::after {
  content: ' [À REMPLACER]';
  font-family: var(--sans);
  font-size: .62em;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--or);
  vertical-align: .2em;
}
.section--aubergine [data-tbd]::after,
.aimant [data-tbd]::after,
.pied [data-tbd]::after { color: var(--or-clair); }
html[data-brouillon='non'] [data-tbd] { background-image: none; }
html[data-brouillon='non'] [data-tbd]::after { content: ''; }

/* ---------- Saisonnalité ---------- */
/* La page rend les deux blocs ; l'ordre est piloté par data-saison sur <html>. */
[data-role='ordre-saison'] { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
html[data-saison='avant-epreuve'] [data-bloc='sprint'] { order: 1; }
html[data-saison='avant-epreuve'] [data-bloc='annuel'] { order: 2; }
html[data-saison='apres-epreuve'] [data-bloc='sprint'] { order: 2; }
html[data-saison='apres-epreuve'] [data-bloc='annuel'] { order: 1; }
html[data-saison='apres-epreuve'] [data-saison-seulement='avant'] { display: none; }
html[data-saison='avant-epreuve'] [data-saison-seulement='apres'] { display: none; }

/* ---------- Utilitaires ---------- */
.pile > * + * { margin-top: 1.5rem; }
.pile--large > * + * { margin-top: 2.5rem; }
.tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--aubergine-soft);
  border: 1px solid var(--filet-fort);
  border-radius: 999px;
  padding: .3rem .75rem;
}
.tag--or { color: var(--aubergine-deep); background: var(--or-pale); border-color: transparent; }

@media print {
  .entete, .pied, .aimant, .bandeau { display: none; }
  body { background: #fff; }
}

/* ---------- Visuels (photographies) ----------
   Trois formats : bande pleine largeur, bande dans la grille, portrait.
   Tant qu'aucune photo n'est fournie, l'emplacement s'affiche en réserve. */
.visuel {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ivoire-chaud);
}
.visuel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visuel--pleine {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 24 / 9;
  min-height: 18rem;
}
.visuel--bande { aspect-ratio: 16 / 9; }
.visuel--carre { aspect-ratio: 1 / 1; }
.duo .visuel--carre { max-width: 19rem; justify-self: center; width: 100%; }
.visuel--portrait {
  aspect-ratio: 4 / 5;
  max-width: 20rem;
  justify-self: center;
  width: 100%;
}
@media (max-width: 48rem) {
  .visuel--pleine { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Emplacement en réserve, en attendant la photographie définitive */
.visuel--vide {
  display: grid;
  place-items: center;
  border: 1px solid var(--filet);
  text-align: center;
  padding: 2rem;
}
.visuel--vide::before {
  content: '';
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(176, 141, 79, .35);
  pointer-events: none;
}
.visuel__reserve {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--aubergine-soft);
  line-height: 2.2;
}
.visuel__reserve strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--aubergine);
  margin-bottom: .4rem;
}
.visuel__legende {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-top: 1rem;
}

/* Héros photographique : le titre se pose sur l'image */
.heros--image {
  position: relative;
  min-height: min(56vh, 32rem);
  display: grid;
  align-items: end;
  padding-block: 0;
  background: var(--aubergine-deep);
}
.heros--image .visuel {
  position: absolute;
  inset: 0;
  background: var(--aubergine-deep);
}
.heros--image .visuel::after {
  content: '';
  position: absolute; inset: 0;
  /* Le voile est plus dense du côté du texte : la photographie d'ouverture est
     claire, et le surtitre doré doit rester lisible. */
  background:
    linear-gradient(100deg, rgba(16,16,16,.88) 0%, rgba(16,16,16,.70) 44%,
                            rgba(16,16,16,.24) 80%),
    linear-gradient(180deg, rgba(16,16,16,.10) 0%, rgba(16,16,16,.58) 100%);
}
@media (max-width: 52rem) {
  /* En colonne, le texte occupe toute la largeur : le voile redevient uniforme. */
  .heros--image .visuel::after {
    background: linear-gradient(180deg, rgba(16,16,16,.58) 0%, rgba(16,16,16,.80) 100%);
  }
}
.heros--image .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.heros--image h1,
.heros--image .chapo,
.heros--image .surtitre { color: var(--blanc); }
.heros--image .chapo { color: rgba(255,255,255,.82); }
.heros--image .surtitre { color: var(--or-clair); }
.heros--image h1 em { color: rgba(255,255,255,.62); }

/* Tant que la photographie n'est pas fournie, le héros reste clair et lisible :
   la réserve se range en haut, le titre reprend ses couleurs habituelles. */
.heros--image:has(.visuel--vide) { background: var(--blanc); align-items: center; }
.heros--image:has(.visuel--vide) .visuel { background: transparent; border: 0; }
.heros--image:has(.visuel--vide) .visuel::after { display: none; }
.heros--image:has(.visuel--vide) .visuel::before { inset: 1.5rem; }
.heros--image:has(.visuel--vide) .visuel--vide { display: block; padding: 0; }
/* La réserve se range dans un coin : elle ne doit jamais croiser le titre. */
.heros--image .visuel--vide .visuel__reserve {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  text-align: right;
  font-size: .6rem;
  line-height: 1.9;
}
.heros--image .visuel--vide .visuel__reserve strong { font-size: .95rem; margin-bottom: .1rem; }
.heros--image:has(.visuel--vide) h1 { color: var(--aubergine); }
.heros--image:has(.visuel--vide) h1 em { color: var(--aubergine-soft); }
.heros--image:has(.visuel--vide) .chapo { color: var(--encre-douce); }
.heros--image:has(.visuel--vide) .surtitre { color: var(--aubergine-soft); }

/* Image et texte côte à côte */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.duo--inverse > .visuel { order: 2; }
@media (max-width: 48rem) { .duo--inverse > .visuel { order: 0; } }

/* Signature et date de vérification, en fin de page pilier. */
.signature {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  max-width: var(--largeur-texte);
  font-family: var(--sans);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--encre-douce);
}
.signature a { color: inherit; }
