/* ───────────────────────────────────────────────────────────────────────────
   Konfia — le site public, direction « L'édition » (docs/plan-site-vitrine.md, lot A)

   Une maison d'édition de mathématiques : blanc, encre bleu nuit, filets fins, angles droits, Garamond pour les
   titres ; l'or de la marque ne sert qu'au surligneur. Remplace vitrine.css, qui reste sur le serveur sans être
   chargée par les pages du socle.

   Les anciens noms de variables (--navy, --muted, --border, --bg…) sont gardés : les vues les emploient dans leurs
   styles en ligne, et prennent ainsi les valeurs de la nouvelle charte sans être touchées.
─────────────────────────────────────────────────────────────────────────── */

/* Caractères hébergés ici (public/assets/fonts/LISEZ-MOI.txt) : aucune requête vers un autre site */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('/assets/fonts/eb-garamond-latin.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/eb-garamond-italique-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2'); }

:root {
  /* La charte */
  --paper:     #FFFFFF;
  --wash:      #F2F4F7;   /* lavis : bandeaux, fonds de figure */
  --ink:       #0F1C30;   /* texte */
  --ink-2:     #4B586B;   /* texte secondaire */
  --mute:      #7A8596;   /* légendes, surtitres */
  --line:      #D9DFE7;   /* filets */
  --gold-soft: #FBDA6B;   /* le surligneur */
  --ok:        #1E7A46;
  --display:   'EB Garamond', Garamond, 'Times New Roman', serif;
  --sans:      'Instrument Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --tete:      72px;      /* hauteur de l'en-tête fixe */

  /* Les noms de vitrine.css, aux valeurs de la charte */
  --navy:      #16335F;
  --navy-dk:   #0F1C30;
  --navy-lt:   #24487F;
  --gold:      #F7B703;
  --gold-lt:   #FBDA6B;
  --green:     #1E7A46;
  --green-lt:  #2B9159;
  --purple:    #7B3FA0;
  --text:      #0F1C30;
  --muted:     #4B586B;
  --border:    #D9DFE7;
  --bg:        #F2F4F7;
  --white:     #FFFFFF;
  --radius:    2px;
  --shadow:    none;
  --shadow-lg: none;
  --w:         1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tete) + 16px); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ── Boutons : angles droits, bleu nuit ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: #fff;
  font-family: inherit; font-size: .95rem; font-weight: 500; line-height: 1.3;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-primary, .btn-gold { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--wash); color: var(--navy); border-color: var(--navy); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
/* Le texte d'un bouton ne dépend jamais de la couleur des liens de la page : plusieurs vues écrivent « .page a { color: bleu nuit } »
   dans leurs styles, ce qui rendait un bouton plein illisible (bleu sur bleu). Deux classes pèsent plus qu'une classe et une balise. */
.btn.btn-primary, .btn.btn-gold, .btn:not(.btn-outline) { color: #fff; text-decoration: none; }
.btn.btn-outline { color: var(--navy); text-decoration: none; }

/* ── En-tête ──────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--tete);
  max-width: var(--w); margin: 0 auto; padding: 0 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex: none; font-family: var(--display); font-size: 1.7rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { font-size: .92rem; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex: none; font-size: .92rem; white-space: nowrap; }
.nav-cta .btn { padding: 8px 14px; font-size: .88rem; }
.nav-compte { color: var(--ink); }
.nav-compte:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-etroit { display: none; }
.nav-bouton { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 7px 12px; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; }

/* ── Les pièces de la charte (accueil et pages nouvelles, lots B et C) ── */
.s-label { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.s-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.s-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.s-h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.s-p { color: var(--ink-2); max-width: 62ch; }
.s-sec { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.s-tete { display: grid; gap: 14px; max-width: 720px; margin-bottom: 36px; }
.s-surl { background: linear-gradient(transparent 60%, var(--gold-soft) 60%, var(--gold-soft) 92%, transparent 92%); }
.s-lien { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.s-lien::after { content: " →"; }
.s-legende { font-family: var(--display); font-style: italic; font-size: .98rem; color: var(--ink-2); margin-top: 8px; }
.s-points { display: grid; gap: 10px; list-style: none; }
.s-points li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: .97rem; }
.s-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--ink); }
.s-points b, .s-points strong { color: var(--ink); font-weight: 600; }

/* ── L'accueil (lot B) ────────────────────────────────────────────────── */
.s-page { padding-top: var(--tete); }
.s-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: end; padding: clamp(36px, 6vw, 72px) 0; }
.s-hero .s-h1 { margin: 18px 0 22px; }
.s-hero .s-p { font-size: 1.08rem; }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.s-menus { font-size: .86rem; color: var(--mute); margin-top: 16px; }
.hero-visio { font-size: .92rem; color: var(--ink); margin-top: 8px; }
.hero-visio span { color: var(--mute); }
.s-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Sous la photo, une phrase entre guillemets, comme une citation : un court filet or, puis le Garamond en italique */
.s-fig figcaption { font-family: var(--display); font-style: italic; font-size: 1.32rem; line-height: 1.3; color: var(--ink); margin-top: 16px; padding-top: 14px; position: relative; text-wrap: balance; }
.s-fig figcaption::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 2px; background: var(--gold); }

.s-faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); list-style: none; }
.s-faits li { padding: 18px 16px 22px 0; display: grid; gap: 2px; align-content: start; }
.s-faits b { font-family: var(--display); font-weight: 400; font-size: 2.3rem; line-height: 1; font-variant-numeric: lining-nums; }
.s-faits span { font-size: .88rem; color: var(--ink-2); }
.s-bac { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; background: var(--wash); border-top: 1px solid var(--line); padding: 26px clamp(18px, 3vw, 32px); margin-bottom: clamp(32px, 5vw, 56px); }
.s-bac p { color: var(--ink-2); max-width: 62ch; margin-top: 6px; }

.s-dessin { overflow-x: auto; border: 1px solid var(--line); }
.s-dessin svg { display: block; width: 100%; min-width: 760px; height: auto; }
.s-dessin text { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); }
.s-dessin .fort { fill: var(--ink); font-weight: 600; }
.s-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 30px; list-style: none; }
.s-trois li { display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--ink); padding-top: 14px; }
.s-trois p { font-size: .95rem; color: var(--ink-2); }
.s-duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.s-duo.inv { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.s-duo > * { min-width: 0; }
.s-duo .s-tete, .s-prof .s-tete { margin-bottom: 0; }

.s-feuille { border: 1px solid var(--ink); padding: clamp(18px, 3vw, 30px); display: grid; gap: 14px; background: var(--paper); box-shadow: 8px 8px 0 var(--wash); }
.s-feuille .s-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.s-math { font-family: var(--display); font-size: 1.22rem; line-height: 1.5; }
.s-math i, .s-q i { font-family: var(--display); font-style: italic; font-size: 1.1em; }
.s-q { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.s-aide { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; }
.s-aide span { border: 1px solid var(--line); padding: 4px 10px; color: var(--ink-2); }
.s-aide .on { border-color: var(--ink); color: var(--ink); }
.s-indice { font-size: .92rem; color: var(--ink-2); border-left: 2px solid var(--gold); padding-left: 12px; }
.s-toi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; }
.s-toi b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.05rem; margin-right: 4px; }
.s-toi span { border: 1px solid var(--navy); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.s-toi .on { background: var(--navy); color: #fff; }

.s-cours { border-left: 1px solid var(--ink); padding-left: clamp(16px, 3vw, 28px); display: grid; gap: 12px; }
.s-cours h3 { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.s-cours-liens { margin-top: 26px; font-size: .92rem; color: var(--ink-2); max-width: 80ch; }
.s-cours-liens a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.s-prof { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.s-prof > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.s-prix-ligne { font-family: var(--display); font-size: 1.5rem; }
.s-creneau { font-size: .92rem; color: var(--ink-2); }
.s-avis { display: grid; gap: 16px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.s-avis blockquote { font-family: var(--display); font-size: 1.15rem; line-height: 1.45; color: var(--ink); }
.s-avis cite { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: .84rem; color: var(--mute); }

.s-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px clamp(28px, 5vw, 64px); }
.s-toc h3 { grid-column: 1 / -1; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.s-toc h3:first-child { margin-top: 0; }
.s-ligne { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; min-width: 0; }
.s-ligne .nom { font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.s-ligne .nom:hover { background: linear-gradient(transparent 60%, var(--gold-soft) 60%); }
.s-ligne i { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--mute); transform: translateY(-4px); }
.s-ligne span { font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.s-ligne .test { font-size: .86rem; font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.s-tarifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); max-width: 760px; }
.s-tarifs.s-tarifs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.s-tarif { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.s-tarif:first-child { border-left: 0; }
.s-tarif.milieu { background: var(--ink); color: #fff; border-left-color: var(--ink); }
.s-tarif.milieu p, .s-tarif.milieu li, .s-tarif.milieu .s-label { color: #C9D2DF; }
.s-tarif.milieu li::before { background: var(--gold); }
.s-tarif.milieu .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.s-somme { font-family: var(--display); font-size: 3rem; line-height: 1; font-variant-numeric: lining-nums; }
.s-somme small { font-family: var(--sans); font-size: .9rem; opacity: .75; margin-left: 4px; }
.s-tarif p { font-size: .92rem; color: var(--ink-2); }
.s-tarif p.s-somme { font-size: 3rem; color: var(--ink); }
.s-tarif.milieu p.s-somme { color: #fff; }
.s-tarif .s-points li { font-size: .92rem; }
.s-tarif .btn { justify-self: start; margin-top: 4px; }
/* Le médaillon du professeur, dans sa carte de tarif : le seul rond du site, avec le symbole */
.s-tarif > .s-label, .s-tarif-prof { min-height: 56px; display: flex; align-items: center; }   /* les trois prix restent sur une même ligne */
.s-tarif-prof { gap: 12px; }
.s-tarif-prof .s-label { display: block; }
.s-medaillon { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--line); }
.s-tarif-prof .s-label b { display: block; margin-top: 2px; font-family: var(--display); font-size: 1.15rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }

.s-parents { background: var(--wash); border-top: 1px solid var(--line); }
.s-parents .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.s-parents .s-tete { margin-bottom: 0; }
.s-faq { max-width: 760px; border-top: 1px solid var(--ink); }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.s-faq p { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }
.s-faq a { text-decoration: underline; text-underline-offset: 3px; }
.s-fin { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.s-fin > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .42; }
.s-fin .wrap { position: relative; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); display: grid; gap: 18px; justify-items: start; }
.s-fin .s-h2 { max-width: 16ch; }
.s-fin p { max-width: 48ch; color: #E3E8EF; }
.s-fin .btn { background: #fff; border-color: #fff; color: var(--ink); }
.s-fin .s-lien { color: #fff; }
.s-fin .btn-outline, .s-fin .btn-outline:hover { background: transparent; border-color: #fff; color: #fff; }
.s-fin .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.s-fin + footer.site-pied { border-top: 0; }

/* ── Les pages Tarifs, Méthode et Parents (lot C) ─────────────────────── */
.s-h1--page { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.04; }
.s-ouverture { display: grid; gap: 16px; max-width: 760px; padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.s-note { font-size: .9rem; color: var(--ink-2); max-width: 70ch; margin-top: 18px; }
.s-souligne { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--ink); }
.s-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* S'abonner : le choix entre l'année et le mois, chacun avec son bouton de paiement */
.s-abo { padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 32px); scroll-margin-top: calc(var(--tete) + 8px); }
.s-abo .s-tete { margin-bottom: 26px; }
.s-formules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); max-width: 760px; }
.s-formule { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; justify-items: start; border-left: 1px solid var(--line); min-width: 0; }
.s-formule:first-child { border-left: 0; }
.s-formule.principale { background: var(--wash); }
.s-formule p { font-size: .92rem; color: var(--ink-2); }
.s-formule p.s-somme { font-size: 3rem; color: var(--ink); }
.s-formule .btn { margin-top: 4px; }
.s-note strong { color: var(--ink); font-weight: 600; }
.s-comp-boite { overflow-x: auto; }
.s-comp { width: 100%; min-width: 560px; max-width: 860px; border-collapse: collapse; font-size: .95rem; }
.s-comp th, .s-comp td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.s-comp thead th { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border-bottom-color: var(--ink); }
.s-comp tbody th { font-weight: 400; color: var(--ink); }
.s-comp td { color: var(--ink-2); white-space: nowrap; }
.s-comp .oui { color: var(--ok); font-weight: 600; }
.s-comp .non { color: var(--mute); }
.s-comp tbody tr:last-child th, .s-comp tbody tr:last-child td { border-bottom-color: var(--ink); font-weight: 600; color: var(--ink); white-space: normal; }
.s-etapes { list-style: none; counter-reset: etape; border-top: 1px solid var(--line); }
.s-etape { counter-increment: etape; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.s-etape:last-child { border-bottom: 0; }
.s-etape .s-tete { margin-bottom: 0; align-content: start; }
.s-etape .s-label::before { content: counter(etape) " · "; }
.s-prose { display: grid; gap: 14px; align-content: start; color: var(--ink-2); max-width: 62ch; }
.s-prose strong { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .s-etape { grid-template-columns: minmax(0, 1fr); }
  .s-hero, .s-duo, .s-duo.inv, .s-prof { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .s-fig img { aspect-ratio: 16 / 10; }
  .s-prof > img { max-width: 240px; }
  .s-faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-trois, .s-tarifs, .s-tarifs.s-tarifs-3, .s-toc, .s-bac, .s-formules { grid-template-columns: minmax(0, 1fr); }
  .s-formule { border-left: 0; border-top: 1px solid var(--line); }
  .s-formule:first-child { border-top: 0; }
  .s-tarif { border-left: 0; border-top: 1px solid var(--line); }
  .s-tarif:first-child { border-top: 0; }
  .s-parents .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* Le tableau des tarifs tient dans l'écran : les deux colonnes de formules restent visibles sans défiler */
  .s-comp { min-width: 0; font-size: .86rem; table-layout: fixed; }
  .s-comp th, .s-comp td { padding: 10px 8px 10px 0; white-space: normal; overflow-wrap: anywhere; }
  .s-comp thead th:first-child, .s-comp tbody th { width: 46%; }
  .s-comp thead th { letter-spacing: .06em; font-size: .7rem; }
  .s-ligne { flex-wrap: wrap; }
  .s-ligne i { display: none; }
  .s-ligne .nom { flex: 1 1 100%; }
}

/* ── Les pages existantes (lot D) ─────────────────────────────────────────
   Programme, blog, visio, pages légales, « Qui conçoit les cours » : leurs styles en ligne fixent tailles et graisses
   mais jamais le caractère. Les titres de page passent donc en Garamond d'ici, sans toucher aux vues.
   Jamais dans un cours : les capsules et leurs titres restent en linéale, comme les formules. */
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
.cp-cours h1, .cp-cours h2, .cp-cours h3, .cp-capsule h2, .cp-capsule h3, .cp-inscription h3 { font-family: var(--sans); letter-spacing: 0; }
.legal { padding-top: calc(var(--tete) + 48px) !important; }

/* ── Pied de page ─────────────────────────────────────────────────────── */
footer.site-pied { border-top: 1px solid var(--ink); margin-top: 0; padding: 44px 0 28px; background: var(--paper); color: var(--ink-2); font-size: .9rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 40px; }
.pied-marque { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--ink); line-height: 1; }
.pied-marque img { height: 32px; width: auto; }
.pied-signature { margin-top: 12px; max-width: 30ch; line-height: 1.55; }
.pied-col h4 { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.pied-liens { list-style: none; display: grid; gap: 7px; }
.pied-liens a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pied-bas { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mute); }

/* ── Écrans étroits ───────────────────────────────────────────────────── */
/* Sous 1080 px, le menu se replie : l'en-tête porte trois actions (se connecter, s'inscrire, test de niveau) */
@media (max-width: 1080px) {
  .nav-bouton { display: inline-block; }
  .nav-inscrire { display: none; }
  .nav-etroit { display: block; }
  .nav-links .nav-etroit a { font-weight: 600; }
  .nav-links .nav-etroit + .nav-etroit a { font-weight: 400; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    padding: 6px 20px 14px;
  }
  #main-nav.nav-ouvert .nav-links { display: flex; }
  .nav-links a { display: block; padding: 11px 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .nav-links li:first-child a { border-top: 0; }
}
@media (max-width: 900px) {
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --tete: 60px; }
  .wrap { padding: 0 18px; }
  .btn { white-space: normal; max-width: 100%; justify-content: center; text-align: center; }   /* un libellé long passe à la ligne au lieu d'élargir la page */
  .nav-inner { padding: 0 14px; gap: 10px; }
  .nav-logo { font-size: 1.4rem; gap: 8px; }
  .nav-logo img { height: 30px; }
  .nav-cta { gap: 10px; }
  .nav-compte { display: none; }
  .nav-cta .btn { padding: 7px 10px; font-size: .82rem; }
  .nav-bouton { padding: 6px 10px; }
  .pied-grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
