/* Polices auto-hébergées (public/fonts/, licence OFL à côté) : mêmes déclarations que dans
   public/style.css, sans passer par Google Fonts — voir le commentaire là-bas. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin-variable.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;
}
/* 24/09/2026 (refonte validée par le propriétaire) : Manrope porte le corps de texte, comme dans
   l'application ; Archivo reste aux titres, condensée à 88 %. Le fichier couvre 200 à 800 : on
   déclare 400 à 800, la graisse normale comprise. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-variable.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;
}

/* LES PAGES DU SITE SERVIES HORS DE L'APPLICATION (24/09/2026, refonte validée par le propriétaire,
   planches public-ApresGuides, -ApresGuideFiche, -ApresLegal, -ApresPage404, -ApresAccordParental) :
   la liste des guides, chaque guide, les quatre pages légales et leurs archives, la page 404, et la
   page que le parent ouvre depuis l'e-mail d'accord (src/services/pagesAccordParental.ts, qui la
   lie ici par son chemin absolu : elle n'a ni script ni thème, elle reste claire).
   Mêmes jetons que l'application (planche Systeme, « la charte ») : fond crème #F4F2EC, carte
   blanche, trait #E4E0D6, texte #1B1A17, brique #B5432D pour l'accent (encre #8F3221, doux
   #FBE9E4). Clair par défaut, sombre si l'athlète l'a choisi (theme.js) ; les couples texte/fond
   sont mesurés ≥ 4,5:1 par lisibiliteAccessibiliteUx.test.ts, dans les deux thèmes. Aucune couleur
   en dur hors de ces deux blocs de jetons, aucun emoji : des icônes en trait, écrites dans la page. */
:root {
  --bg: #f4f2ec;
  --panel: #ffffff;
  /* La tuile crème : le bloc de la case à cocher du parent, une pastille, une icône au repos. */
  --panel-2: #f4f2ec;
  --border: #e4e0d6;
  --separateur: #edeae1;
  --text: #1b1a17;
  --text-dim: #55544d;
  --text-faint: #6b6a63;      /* 5,3:1 sur le blanc, 4,8:1 sur le crème */
  --accent: #b5432d;
  --accent-ink: #8f3221;      /* l'accent, assombri pour lire dessus : 7,1:1 sur le crème */
  --accent-soft: #fbe9e4;
  /* Le lien de la page en cours (et celui qu'on survole) dans le menu du téléphone : écrit sur le
     doux, lui-même posé sur le panneau du menu (25/09/2026). 6,8:1 en clair. */
  --menu-actif-ink: #8f3221;
  --accent-surface: #b5432d;
  --on-accent: #ffffff;
  --info: #6fa8dc;
  --info-ink: #24578f;
  --info-soft: #e6f0fa;
  --realise: #1e8a5a;
  --realise-soft: #e3f4eb;
  --realise-ink: #1e6b47;
  --danger: #b42318;
  --on-danger: #ffffff;
  /* « Un peu à côté » de la charte : le bandeau des versions archivées (25/09/2026). 6,2:1. */
  --acote-soft: #fff4bf;
  --acote-ink: #7a5200;
  /* Sur une photo (bandeau des guides, de la 404) et dans le pied du site : un voile sombre et un
     texte clair, dans les deux thèmes. */
  --voile: 27, 26, 23;
  --sur-photo: #ffffff;
  --sur-photo-texte: #ece9e0;
  --sur-photo-doux: #cfcbc0;
  --sur-photo-surtitre: #f3b9aa;
  --pied: #1b1a17;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --duree-rapide: 150ms;
  --duree: 200ms;
  --display: "Archivo", "Arial Narrow", "Inter", sans-serif;
  --corps: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0f0e0c;
  --panel: #1a1917;
  --panel-2: #22211e;
  --border: #33312c;
  --separateur: #2a2824;
  --text: #f4f2ec;
  --text-dim: #b9b6ac;
  --text-faint: #a19e94;
  --accent: #d9664e;
  --accent-ink: #d9664e;      /* la brique éclaircie de l'application : 5,5:1 sur le fond sombre */
  --accent-soft: rgba(217, 102, 78, 0.16);
  /* 25/09/2026 : la brique claire sur le doux posé sur le panneau (#1a1917) tombait à 4,08:1 ; le
     texte clair y tient 12,8:1, et la page en cours garde son filet brique. */
  --menu-actif-ink: #f4f2ec;
  --accent-surface: #d9664e;
  --on-accent: #0f0e0c;
  --info-ink: #8bbbe6;
  --info-soft: rgba(111, 168, 220, 0.16);
  --realise: #3fb883;
  --realise-soft: rgba(63, 184, 131, 0.14);
  --realise-ink: #3fb883;
  --danger: #e5484d;
  --on-danger: #0f0e0c;
  --acote-soft: #2f260a;     /* l'ambre à 16 % sur le fond sombre ; le texte y est à 8,7:1 */
  --acote-ink: #e6c15a;
  --pied: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--corps);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Le pied du site reste en bas, même sur une page courte (la 404, la page du parent). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main, body > .lecture { flex: 1 0 auto; width: 100%; }

h1, h2, h3 { font-family: var(--display); font-stretch: 88%; font-weight: 700; letter-spacing: -0.01em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icone { flex-shrink: 0; }
/* Lu par un lecteur d'écran, invisible à l'œil. */
.lu-seulement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.surtitre { margin: 0; font-size: 12px; letter-spacing: 0.14em; font-weight: 800; text-transform: uppercase; color: var(--text-faint); }

/* Le lien d'évitement : invisible tant qu'on ne tabule pas dessus. */
.site-evitement { position: absolute; left: -9999px; top: 0; z-index: 20; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; background: var(--panel); color: var(--text); font-weight: 700; border-radius: 0 0 8px 0; }
.site-evitement:focus { left: 0; }

/* Le bord gauche de la page est le même partout : celui du contenu, 1184 px au plus, centré, avec
   48 px de gouttière au moins. La barre, les bandeaux et le pied s'alignent sur lui. */
.site-barre, .site-bandeau-texte, .site-pied, .legal-bande, .parent-barre { padding-left: max(48px, calc((100% - 1184px) / 2)); padding-right: max(48px, calc((100% - 1184px) / 2)); }

/* ---- La barre du site : la même en tête de chaque page (planches, 64 px, blanche) ---- */
.site-barre { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; background: var(--panel); border-bottom: 1px solid var(--border); }
.site-marque { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); text-decoration: none; font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.site-logo { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-surface); color: var(--on-accent); font-size: 15px; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-lien:hover { color: var(--accent-ink); }
.site-lien[aria-current="page"] { color: var(--accent-ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.site-bouton, .site-bouton-plein { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color var(--duree-rapide) ease, border-color var(--duree-rapide) ease; }
.site-bouton { border: 1px solid var(--border); background: var(--panel); color: var(--text); }
.site-bouton:hover { border-color: var(--accent); color: var(--accent-ink); }
.site-bouton-plein { border: 0; background: var(--accent-surface); color: var(--on-accent); }
.site-bouton-plein:hover { filter: brightness(1.06); }
/* Au téléphone, la navigation se replie dans un menu (un <details> : il marche sans script). */
.site-menu { display: none; position: relative; }
.site-menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu-liste { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 16px 40px -16px rgba(var(--voile), 0.35); }
.site-menu-liste a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.site-menu-liste a:hover, .site-menu-liste a[aria-current="page"] { background: var(--accent-soft); color: var(--menu-actif-ink); }
.site-menu-liste a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }

/* ---- Le bandeau photo voilé (liste des guides, 404) : la photo, le voile, puis le texte ---- */
.site-bandeau { position: relative; display: flex; align-items: center; min-height: 250px; background: rgb(var(--voile)); color: var(--sur-photo); overflow: hidden; }
.site-bandeau-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.site-bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--voile), 0.92) 0%, rgba(var(--voile), 0.72) 50%, rgba(var(--voile), 0.35) 100%); }
.site-bandeau-texte { position: relative; z-index: 1; display: grid; gap: 12px; width: 100%; padding-top: 36px; padding-bottom: 36px; }
.site-bandeau-texte > * { max-width: 720px; }
.site-bandeau-texte .surtitre { color: var(--sur-photo-surtitre); }
.site-bandeau-texte h1 { margin: 0; font-size: 44px; line-height: 1.02; letter-spacing: -0.015em; color: var(--sur-photo); text-wrap: balance; }
.site-bandeau-texte p:not(.surtitre) { margin: 0; font-size: 16px; line-height: 1.5; color: var(--sur-photo-texte); }

/* ---- Le pied du site ---- */
.site-pied { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; padding-bottom: 22px; background: var(--pied); color: var(--sur-photo-doux); }
.site-pied-marque { font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--sur-photo); }
.site-pied p { margin: 6px 0 0; max-width: 720px; font-size: 13px; line-height: 1.5; }
.site-pied nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-pied nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sur-photo); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-pied nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-pied a:focus-visible { outline-color: var(--sur-photo); }

/* ---- La liste des guides (planche public-ApresGuides) ---- */
.guides-contenu { display: grid; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 28px 48px 0; }
.guides-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guides-filtres[hidden] { display: none; }
.guides-filtres .surtitre { margin-right: 6px; }
.guides-filtre { position: relative; min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color var(--duree-rapide) ease, color var(--duree-rapide) ease; }
/* La pastille reste fine à l'œil ; la zone de clic, elle, fait 44 px de haut. */
.guides-filtre::before { content: ""; position: absolute; inset: -5px 0; }
.guides-filtre[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 800; }
.guides-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.guides-grille > li[hidden] { display: none; }
.guide-carte { display: flex; gap: 18px; height: 100%; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; transition: transform var(--duree-rapide) ease, border-color var(--duree-rapide) ease; }
.guide-carte:hover { transform: translateY(-2px); border-color: var(--accent); }
.guide-carte:hover .guide-carte-titre { text-decoration: underline; text-underline-offset: 3px; }
.guide-carte-icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.guide-carte-corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.guide-carte-reperes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-faint); }
.pastille-theme { padding: 1px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); }
.guide-carte-titre { font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 22px; line-height: 1.15; }
.guide-carte-resume { font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.guide-carte-lire { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
/* L'appel à s'inscrire, en bande : le texte à gauche, le bouton à droite. */
.bande-inscription { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.bande-inscription h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.bande-inscription p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-dim); }
.bouton-plein { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-md); background: var(--accent-surface); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.bouton-plein:hover { filter: brightness(1.06); }

/* ---- Une page de lecture : un guide, une page légale (planches -ApresGuideFiche, -ApresLegal) ---- */
.lecture { max-width: 1280px; margin: 0 auto; padding: 24px 48px 0; }
.fil-ariane { margin-bottom: 18px; font-size: 13px; color: var(--text-faint); }
.fil-ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fil-ariane li + li::before { content: "›"; margin-right: 8px; }
.fil-ariane a { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; color: var(--text-faint); text-decoration: none; font-weight: 700; }
.fil-ariane a:hover { color: var(--accent-ink); text-decoration: underline; }
.fil-ariane [aria-current="page"] { color: var(--text); font-weight: 700; }
/* Deux colonnes : le texte (dans le document, avant) et, à sa gauche, la colonne qui le suit. */
.lecture-colonnes { display: grid; grid-template-columns: 272px minmax(0, 1fr); column-gap: 48px; align-items: start; }
.lecture-texte { grid-column: 2; grid-row: 1; max-width: 68ch; min-width: 0; }
.lecture-cote { grid-column: 1; grid-row: 1; position: sticky; top: 24px; display: grid; gap: 14px; max-height: calc(100vh - 48px); overflow-y: auto; }
.page-legale .lecture-colonnes { grid-template-columns: 280px minmax(0, 1fr); }
.page-legale .lecture-texte { max-width: 68ch; }
/* Le sommaire : il souligne la section qu'on lit (lecture.js pose aria-current). Chaque ligne fait
   44 px de haut, comme toute cible de la charte (24/09/2026, relecture : la planche serrait les
   lignes à 35 px) ; elles se touchent, sans espace entre elles, pour que la liste reste compacte. */
.sommaire { padding: 16px 18px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.sommaire .surtitre { margin-bottom: 8px; }
.sommaire ol, .sommaire-replie ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sommaire a, .sommaire-replie a { display: flex; gap: 10px; min-height: 44px; align-items: center; padding: 4px 10px; margin-left: -10px; border-left: 3px solid transparent; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; transition: color var(--duree-rapide) ease, border-color var(--duree-rapide) ease; }
.sommaire a:hover, .sommaire-replie a:hover { color: var(--accent-ink); }
.sommaire-replie a[aria-current="location"], .sommaire a[aria-current="location"] { border-left-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.sommaire-numero { width: 18px; flex-shrink: 0; color: var(--text-faint); font-weight: 800; }
.sommaire a[aria-current="location"] .sommaire-numero { color: inherit; }
/* Le sommaire d'un guide, replié en une ligne sous le fil d'Ariane : au téléphone seulement, où la
   colonne passe sous le texte (voir plus bas). Au bureau, c'est la colonne qui le porte. */
.sommaire-replie { display: none; }
.sommaire-versions { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--separateur); font-size: 13px; }
.sommaire-versions summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.sommaire-versions summary::-webkit-details-marker { display: none; }
.sommaire-versions ul { margin: 0 0 4px; padding: 0 0 0 24px; list-style: none; }
.sommaire-versions li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
/* L'appel à créer son compte, dans la colonne : visible dès le premier écran. */
.carte-appel { display: grid; gap: 10px; padding: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.carte-appel h2 { margin: 0; font-family: var(--corps); font-stretch: 100%; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.carte-appel p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.carte-appel .site-bouton-plein { min-height: 44px; padding: 10px 14px; line-height: 1.3; text-align: center; }
.a-lire-aussi { display: grid; gap: 0; padding: 0 4px; }
.a-lire-aussi h2 { margin: 0 0 2px; font-family: var(--corps); font-stretch: 100%; font-size: 12px; letter-spacing: 0.14em; font-weight: 800; text-transform: uppercase; color: var(--text-faint); }
.a-lire-aussi a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; }
.a-lire-aussi a:hover { color: var(--accent-ink); text-decoration: underline; }
/* Le texte : une colonne de 68 caractères, corps 15 px à interligne 1,6. */
.lecture-texte .reperes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; font-size: 13px; font-weight: 800; color: var(--text-faint); }
/* Ce qui suit la pastille (« 4 min de lecture · Par … ») se tient d'un bloc : passé à la ligne, il y
   passe entier, et le « · » ne reste jamais seul en bout de ligne (25/09/2026). */
.reperes-suite, .legal-meta-suite { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 10px; white-space: nowrap; }
.pastille-sport { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.lecture-texte h1 { margin: 0 0 14px; font-size: 42px; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.lecture-texte .lede { margin: 0 0 14px; font-size: 17px; line-height: 1.55; color: var(--text-dim); }
.lecture-texte h2 { margin: 26px 0 14px; font-size: 24px; line-height: 1.15; }
.lecture-texte h3 { margin: 22px 0 10px; font-size: 19px; line-height: 1.2; }
.lecture-texte p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.lecture-texte ul { margin: 0 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.lecture-texte li { margin-bottom: 6px; }
.lecture-texte strong { color: var(--text); }
.lecture-texte small { font-size: 13px; }
.lecture-texte a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.lecture-texte a:hover { text-decoration-thickness: 2.5px; }
.lecture-texte section[id], .lecture-texte [id] { scroll-margin-top: 24px; }
/* Les étapes d'un test, en liste numérotée : le numéro dans un rond doux. */
.lecture-texte ol { counter-reset: etape; display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 15px; line-height: 1.55; }
.lecture-texte ol > li { counter-increment: etape; position: relative; min-height: 28px; margin: 0; padding-left: 40px; }
.lecture-texte ol > li::before { content: counter(etape); position: absolute; left: 0; top: -1px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
/* L'encadré : un filet brique et une icône, sans emoji. */
.encadre { display: flex; gap: 14px; margin: 6px 0 20px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-md); font-size: 15px; line-height: 1.55; }
.encadre > .icone { margin-top: 2px; color: var(--accent-ink); }
.encadre-texte { min-width: 0; }
.encadre-texte > :last-child { margin-bottom: 0; }
.encadre-texte p { margin: 0 0 10px; }
/* L'avertissement santé des CGU : l'accent doux, l'icône en trait, le titre en brique. */
.encadre-sante { border: 0; background: var(--accent-soft); line-height: 1.6; }
.encadre-sante strong:first-child { color: var(--accent-ink); }
.encadre-neutre { border-left-color: var(--border); }
.encadre-neutre > .icone { color: var(--text-dim); }

/* ---- La bande de titre des pages légales ---- */
.legal-bande { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 22px; background: var(--panel); border-bottom: 1px solid var(--border); }
.legal-bande-titre { display: grid; gap: 8px; min-width: 0; }
.legal-bande .surtitre { color: var(--accent-ink); }
.legal-bande h1 { margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13px; color: var(--text-faint); }
.pastille-version { padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); font-weight: 800; }
.legal-autres { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.legal-autres a { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.legal-autres a::before { content: ""; position: absolute; inset: -4px 0; }
.legal-autres a:hover { border-color: var(--accent); color: var(--accent-ink); }
.legal-autres a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 800; }
.page-legale .lecture { padding-top: 28px; }
.page-legale .lecture-texte h2 { margin-top: 24px; }

/* ---- La page 404 (planche public-ApresPage404) : aucune animation, elle se lit tout de suite ---- */
.page-introuvable .site-bandeau { min-height: 400px; }
.page-introuvable .site-bandeau-photo { object-position: center 70%; }
.page-introuvable .site-bandeau::after { background: linear-gradient(90deg, rgba(var(--voile), 0.9) 0%, rgba(var(--voile), 0.6) 50%, rgba(var(--voile), 0.25) 100%); }
.page-introuvable .site-bandeau-texte h1 { font-size: 56px; line-height: 1; }
.page-introuvable .site-bandeau-texte p:not(.surtitre) { font-size: 17px; }
.introuvable-contenu { display: grid; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 28px 48px 0; }
.destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.destination { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 78px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; }
.destination:hover { border-color: var(--accent); }
.destination:hover .destination-titre { text-decoration: underline; text-underline-offset: 3px; }
.destination-icone { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-ink); }
.destination-texte { display: grid; gap: 2px; min-width: 0; }
.destination-titre { font-size: 16px; font-weight: 800; }
.destination-ligne { font-size: 13px; color: var(--text-faint); }
.destination > .icone:last-child { margin-left: auto; color: var(--accent-ink); }
.rappel-connexion { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.rappel-connexion .destination-icone { background: var(--panel-2); color: var(--text-dim); }
.rappel-connexion p { flex-grow: 1; margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-dim); }

/* ---- La page du parent (src/services/pagesAccordParental.ts, planche -ApresAccordParental) ----
   Le parent est vouvoyé et n'a pas de compte : pas de navigation, pas de photo, pas d'animation. */
.parent-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; background: var(--panel); border-bottom: 1px solid var(--border); }
.parent-barre .surtitre { text-align: right; }
.parent-contenu { display: grid; justify-items: center; align-content: start; gap: 14px; padding: 28px 48px 48px; }
.parent-carte { width: 100%; max-width: 760px; display: grid; align-content: start; gap: 16px; padding: 30px 34px 28px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.parent-tete { display: grid; gap: 8px; }
.parent-carte .parent-pastille { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.parent-carte .parent-pastille-ok { background: var(--realise-soft); color: var(--realise-ink); }
.parent-carte .parent-pastille-neutre { background: var(--panel-2); color: var(--text-dim); }
.parent-carte h1 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.parent-carte p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.parent-carte p b, .parent-carte li b { color: var(--text); }
.parent-carte a { color: var(--accent-ink); font-weight: 700; }
.parent-separateur { height: 1px; margin: 0; border: 0; background: var(--separateur); }
.parent-section { display: flex; gap: 14px; }
.parent-section-icone { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text-dim); }
.parent-section-corps { display: grid; gap: 6px; min-width: 0; }
.parent-section h2 { margin: 0; font-family: var(--corps); font-stretch: 100%; font-size: 17px; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.parent-section ul { display: grid; gap: 2px; margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.parent-carte .parent-alerte { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.parent-formulaire { display: grid; gap: 14px; margin: 0; padding: 18px 20px; background: var(--panel-2); border-radius: var(--radius-md); }
.parent-case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--text); }
.parent-case input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.parent-actions { display: flex; align-items: center; gap: 16px; }
.parent-carte .parent-refus { font-size: 13px; line-height: 1.5; color: var(--text-faint); }
.parent-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--radius-md); background: var(--accent-surface); color: var(--on-accent); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.parent-bouton:hover { filter: brightness(1.06); }
.parent-bouton-danger { background: var(--danger); color: var(--on-danger); }
.parent-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 8px; font-size: 13px; color: var(--text-faint); }
.parent-pied a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-faint); }

/* ---- L'ANCIEN GABARIT, gardé pour les versions archivées des pages légales (public/legal/archives) :
   leur texte ne change pas, elles prennent seulement les couleurs et les polices du site. ---- */
.guide-header, main.guide { max-width: 68ch; margin: 0 auto; }
main.guide a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
/* Le bandeau « Version archivée du … » (25/09/2026) : il était écrit en dur dans la page (style=,
   jaune et police système) ; il prend l'ambre « un peu à côté » de la charte et la police du site.
   Son lien garde la couleur du texte, souligné : en brique, il tombait sous 4,5:1 en thème sombre. */
.archive-bandeau { margin: 0; padding: 10px 16px; background: var(--acote-soft); color: var(--acote-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
.archive-bandeau a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 24px 20px; }
.guide-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.guide-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-surface); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--on-accent); }
.guide-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-left: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
main.guide { padding: 20px 20px 60px; }
.guide-kicker { margin-bottom: 10px; color: var(--accent-ink); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
main.guide h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
main.guide .lede { font-size: 17px; color: var(--text-dim); margin: 0 0 32px; }
main.guide h2 { font-size: 24px; margin: 40px 0 12px; }
main.guide p, main.guide li { font-size: 15px; line-height: 1.6; }
main.guide p { margin: 0 0 16px; }
main.guide ul, main.guide ol { margin: 0 0 16px; padding-left: 22px; }
main.guide li { margin-bottom: 8px; }
.guide-callout { margin: 24px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-md); font-size: 15px; color: var(--text-dim); }
.guide-callout strong { color: var(--text); }
.guide-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.guide-related h3 { margin: 0 0 14px; font-size: 15px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.guide-related-list { display: flex; flex-direction: column; gap: 10px; }
main.guide .guide-related-list a { display: flex; align-items: center; min-height: 44px; padding: 12px 14px; color: var(--text); text-decoration: none; font-weight: 700; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); }

/* ---- Le mouvement : discret, et rien pour qui a demandé moins d'animations ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Les cartes des guides entrent en fondu décalé (60 ms de l'une à l'autre), une fois. */
  .guides-grille > li { animation: pp-apparition var(--duree) ease both; }
  .guides-grille > li:nth-child(2) { animation-delay: 60ms; }
  .guides-grille > li:nth-child(3) { animation-delay: 120ms; }
  .guides-grille > li:nth-child(4) { animation-delay: 180ms; }
  .guides-grille > li:nth-child(n + 5) { animation-delay: 240ms; }
}
@keyframes pp-apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
  .guide-carte:hover { transform: none; }
}

/* ---- Au téléphone : une colonne, une gouttière de 16 px, aucun défilement horizontal ---- */
@media screen and (max-width: 860px) {
  .site-barre, .site-bandeau-texte, .site-pied, .legal-bande, .parent-barre { padding-left: 16px; padding-right: 16px; }
  .site-barre, .parent-barre { min-height: 60px; }
  .site-marque { font-size: 18px; }
  .site-nav .site-lien, .site-nav .site-bouton-plein { display: none; }
  .site-nav { gap: 8px; }
  .site-menu { display: block; }
  .site-bandeau { min-height: 0; }
  .site-bandeau::after { background: linear-gradient(180deg, rgba(var(--voile), 0.6) 0%, rgba(var(--voile), 0.85) 50%, rgba(var(--voile), 0.96) 100%); }
  .site-bandeau-texte { padding-top: 40px; padding-bottom: 24px; }
  .site-bandeau-texte h1 { font-size: 32px; }
  .site-bandeau-texte p:not(.surtitre) { font-size: 15px; }
  .site-pied { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 28px; }
  .guides-contenu, .introuvable-contenu { padding: 20px 16px 0; }
  .guides-grille, .destinations { grid-template-columns: minmax(0, 1fr); }
  .guide-carte { gap: 14px; padding: 18px 16px; }
  .guide-carte-icone { width: 44px; height: 44px; border-radius: 12px; }
  .guide-carte-titre { font-size: 20px; }
  .bande-inscription { flex-direction: column; align-items: stretch; padding: 20px 16px; }
  .bande-inscription .bouton-plein { white-space: normal; text-align: center; }
  .lecture { padding: 16px 16px 0; }
  .lecture-colonnes, .page-legale .lecture-colonnes { display: flex; flex-direction: column; }
  .lecture-texte { max-width: none; }
  /* Au téléphone, la colonne passe sous le texte : l'appel à s'inscrire et « À lire aussi » ferment
     la page. Le sommaire, lui, ne s'y lirait qu'à la fin : il vient au-dessus du texte, replié en une
     ligne (« Sommaire · 4 sections ») qu'on ouvre d'un toucher, et qui se referme sur la section
     choisie (lecture.js). Même liens que la colonne, que le test compare. */
  .lecture-cote { position: static; max-height: none; overflow: visible; margin-top: 28px; }
  .lecture-cote .sommaire { display: none; }
  .sommaire-replie { display: block; margin: 0 0 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
  .sommaire-replie summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer; }
  .sommaire-replie summary::-webkit-details-marker { display: none; }
  .sommaire-replie-compte { font-size: 13px; font-weight: 700; color: var(--text-faint); }
  .sommaire-replie summary .icone { margin-left: auto; color: var(--text-dim); }
  .sommaire-replie details[open] summary .icone { transform: rotate(180deg); }
  .sommaire-replie ol { padding: 4px 14px 8px; border-top: 1px solid var(--separateur); }
  /* Sur une page légale, le sommaire passe devant le texte : c'est par lui qu'on cherche un article. */
  .page-legale .lecture-cote { order: -1; margin: 0 0 20px; }
  .page-legale .lecture-cote .sommaire { display: block; }
  .lecture-texte h1 { font-size: 32px; }
  .lecture-texte h2 { font-size: 22px; }
  .lecture-texte .lede { font-size: 16px; }
  .encadre { padding: 14px 14px; gap: 10px; }
  .legal-bande { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
  .legal-bande h1 { font-size: 30px; }
  /* Sous le titre, les autres documents partent de la gauche comme lui : calées à droite (le bureau),
     les pastilles passées sur deux lignes flottaient au bord (les conditions de vente, 25/09/2026). */
  .legal-autres { justify-content: flex-start; }
  .page-introuvable .site-bandeau { min-height: 300px; }
  .page-introuvable .site-bandeau-texte h1 { font-size: 38px; }
  .rappel-connexion { flex-wrap: wrap; }
  .rappel-connexion p { flex-basis: calc(100% - 56px); }
  .rappel-connexion .site-bouton-plein { width: 100%; }
  .parent-contenu { padding: 16px 16px 32px; }
  .parent-carte { padding: 22px 16px 20px; }
  .parent-carte h1 { font-size: 28px; }
  /* Chaque section garde son icône, un peu plus petite (planche : « trois sections, chacune avec une
     icône ») ; le texte prend la place qui reste. */
  .parent-section { gap: 12px; }
  .parent-section-icone { width: 32px; height: 32px; }
  .parent-actions { flex-direction: column; align-items: stretch; }
  .parent-bouton { width: 100%; }
  .parent-pied { gap: 0 16px; }
  .parent-pied > span[aria-hidden="true"] { display: none; }
  .guide-header { padding: 16px; }
  main.guide { padding: 16px 16px 48px; }
}
