/* Jetons de la trame v2. Source unique : aucune couleur, courbe ni rayon en dur dans les composants.
   Les noms de la palette (--navy, --accent-btn…) sont ceux du handoff (README §6). Les composants
   n'utilisent que la couche sémantique en bas du bloc (--texte, --fond, --lien…), qui s'inverse en
   thème sombre ; la palette elle-même ne change pas. */

/* Newsreader (titres, axes taille optique et graisse) et Schibsted Grotesk (texte) : licence OFL,
   sous-ensemble latin de Google Fonts, auto-hébergés. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-var.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  /* Palette (thème clair) */
  --navy: #0a1628;
  --navy-2: #152640;
  --navy-deep: #07121f;
  --panel: #0e2440;
  --paper: #ffffff;
  --cream: #eef1f6;
  --ivory: #f4f6fa;
  --ink-2: #3f4d61;
  --ink-3: #3f4d61;
  --muted: rgba(234, 240, 248, 0.82);
  --rule-ivory: #e2e7ef;
  --rule: rgba(255, 255, 255, 0.14);
  --accent-btn: #8f5222;
  --accent: #8f5222;
  --accent-light: #e8b48a;
  --accent-dark: #8f5222;
  --bleu: #2452e0;
  --bleu-clair: #8fb0ff;
  --bleu-pale: #eef2ff;
  --lavis-ciel: #dce6ff;
  --lavis-sauge: #f1ecdf;
  --lavis-sable: #e9effd;
  --lavis-rose: #eef1f6;

  /* Couche sémantique : ce que les composants utilisent */
  --texte: var(--navy);
  --texte-2: var(--ink-2);
  --fond: var(--paper);
  --fond-alt: var(--cream);
  --surface: var(--paper);
  --filet: var(--rule-ivory);
  --lien: var(--accent-dark);
  --lien-survol: var(--navy);
  --anneau: var(--bleu);
  --bouton-fond: var(--navy);
  --bouton-survol: var(--accent);
  --bouton-texte: #ffffff;
  --voile: rgba(255, 255, 255, 0.78);
  --voile-menu: rgba(255, 255, 255, 0.96);
  --sur-marine: #ffffff;
  --donnee: var(--bleu);

  /* Forme, ombre, mouvement */
  /* Forme « feuille » : un élément n'est arrondi que sur deux angles opposés (haut-droit et bas-gauche).
     Quatre tailles ; un élément posé dans un panneau prend la taille inférieure. Pas de pilule. */
  --feuille-s: 6px;
  --feuille-m: 16px;
  --feuille-l: 40px;
  --feuille-xl: 64px;
  --forme-s: 0 var(--feuille-s) 0 var(--feuille-s);
  --forme-m: 0 var(--feuille-m) 0 var(--feuille-m);
  --forme-l: 0 var(--feuille-l) 0 var(--feuille-l);
  --forme-xl: 0 var(--feuille-xl) 0 var(--feuille-xl);
  --dalle: 6px;
  --ombre-carte: 0 0 0 1px var(--filet);
  --ombre-flotte: 0 28px 56px -20px rgba(11, 29, 51, 0.28), 0 2px 8px rgba(11, 29, 51, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --haut-entete: 52px;
  --police-texte: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* Thème sombre : suit le réglage système, sans bascule dans la page.
   La palette marine reste la surface sombre des panneaux ; le fond de page passe en dessous. */
@media (prefers-color-scheme: dark) {
  :root {
    --texte: #eaf0f8;
    --texte-2: #a9b6c8;
    --fond: #07121f;
    --fond-alt: #112540;
    --surface: #15304f;
    --filet: #24364e;
    --lien: #e8b48a;
    --accent-dark: #e8b48a;
    --lien-survol: #ffffff;
    --anneau: #8fb0ff;
    --bouton-fond: #eaf0f8;
    --bouton-texte: #07121f;
    --bouton-survol: #e8b48a;
    --voile: rgba(7, 18, 31, 0.78);
    --voile-menu: rgba(7, 18, 31, 0.96);
    --donnee: #7fa0ff;
    --lavis-ciel: #12285a;
    --lavis-sauge: #241f14;
    --lavis-sable: #10224a;
    --lavis-rose: #12202f;
    --bleu-pale: #14284d;
    --ombre-carte: 0 0 0 1px var(--filet);
    --ombre-flotte: 0 28px 56px -20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Contraste augmenté : texte secondaire au niveau du texte principal, filets plus marqués. */
@media (prefers-contrast: more) {
  :root {
    --ink-2: var(--navy);
    --texte-2: var(--navy);
    --muted: #ffffff;
    --rule-ivory: #8a97aa;
    --filet: #8a97aa;
    --accent-dark: #6f3d14;
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --texte-2: #ffffff;
    --filet: #8a9bb2;
  }
}

/* Transparence réduite : les surfaces translucides deviennent pleines. */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --voile: var(--fond);
    --voile-menu: var(--fond);
  }
}

/* Base de la trame v2 : reset, typographie, boutons, conteneurs, sections.
   Les valeurs viennent de tokens.css (README §6). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--haut-entete) + 24px); }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police-texte); -webkit-font-smoothing: antialiased; hyphens: auto; overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .h1-page, .h1-accueil, .h2, .h2-moyen, .titre-tuile, .grand-chiffre, .preuve-chiffre, .carte-enjeu-titre, .carte-cas-chiffre, .montant, .facture-total, .logo-texte, .marque { font-family: var(--police); font-feature-settings: "ss01"; font-weight: 500; }
h1, h2, h3 { text-wrap: balance; hyphens: manual; }
/* Titres et noms : jamais de césure automatique (« pri-cing », « Préven-tion »). */
[class*="-titre"], [class*="-nom"], .titre-tuile { hyphens: manual; }
p { text-wrap: pretty; }
svg { display: block; }
a { color: var(--lien); text-decoration: none; }
a:hover { color: var(--lien-survol); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--anneau); outline-offset: 3px; }
/* Sur les panneaux marine, l'anneau bleu ferait moins de 3:1 : on passe au bleu clair. */
.sur-marine :focus-visible, .pied :focus-visible { outline-color: var(--bleu-clair); }
mark.ph { background: var(--lavis-ciel); color: var(--texte); padding: 0 0.2em; border-radius: 4px; text-decoration: underline; text-decoration-color: var(--bleu); text-underline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; top: 0; }
.evitement:focus { left: 16px; top: 16px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--navy); color: #fff; border-radius: var(--forme-s); }

/* Conteneurs et sections */
.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.conteneur-large { max-width: 1240px; margin: 0 auto; padding: 0 clamp(12px, 2vw, 24px); }
.conteneur-texte { max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: clamp(80px, 10vw, 136px) 0; background: var(--fond); }
.section-creme { background: var(--fond-alt); }
.section-marine { background: var(--navy); color: var(--sur-marine); }
.pile { display: flex; flex-direction: column; gap: 48px; }
.centre { align-items: center; text-align: center; }
.entete-section { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 14px; }
.entete-section.centre { align-items: center; text-align: center; }

/* Typographie (README §6) */
.h1-page { font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.05em; }
.h1-accueil { font-size: clamp(2.75rem, 7.2vw, 6rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.045em; }
.h2 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; }
.h2-moyen { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.04em; }
.surtitre { hyphens: manual; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); font-weight: 600; line-height: 1.3; color: var(--lien); }
.chapeau { hyphens: none; font-size: clamp(1.125rem, 1.8vw, 1.4375rem); font-weight: 400; line-height: 1.45; color: var(--texte-2); }
.titre-tuile { font-size: 1.3125rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.courant { font-size: 1.125rem; line-height: 1.6; color: var(--texte-2); }
.petit { font-size: 1rem; line-height: 1.5; color: var(--texte-2); }
.grand-chiffre { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 500; line-height: 0.92; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.sur-marine .surtitre { color: var(--accent-light); }
.sur-marine .chapeau, .sur-marine .courant, .sur-marine .petit { color: var(--muted); }
.mesure-chapeau { max-width: 90ch; }

/* Lien « Voir … › » */
.lien-fleche { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 500; line-height: 1; }
.lien-fleche::after { content: '\203a'; content: '\203a' / ''; margin-left: 0.4em; transition: transform 0.4s var(--ease); }
.lien-fleche:hover::after { transform: translateX(3px); }
.sur-marine .lien-fleche { color: var(--accent-light); }
.sur-marine .lien-fleche:hover { color: #fff; }

/* Boutons : dalle à coins feuille, ombre dure décalée. Au survol la dalle avance de 2px, au clic de --dalle
   (l'ombre disparaît). Laisser 24px entre deux dalles (.actions) pour ne pas recouvrir l'ombre. */
.btn, .btn-2 { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: var(--forme-m); font-size: 1.0625rem; font-weight: 600; line-height: 1; text-align: center; --ombre-dalle: var(--lien); box-shadow: var(--dalle) var(--dalle) 0 var(--ombre-dalle); transition: transform 0.15s, box-shadow 0.15s; }
.btn { background: var(--bouton-fond); color: var(--bouton-texte); }
.btn-2 { background: transparent; color: var(--texte); --anneau-btn: var(--texte); box-shadow: inset 0 0 0 2px var(--anneau-btn), var(--dalle) var(--dalle) 0 var(--ombre-dalle); }
.btn:hover { transform: translate(2px, 2px); box-shadow: calc(var(--dalle) - 2px) calc(var(--dalle) - 2px) 0 var(--ombre-dalle); }
.btn-2:hover { transform: translate(2px, 2px); box-shadow: inset 0 0 0 2px var(--anneau-btn), calc(var(--dalle) - 2px) calc(var(--dalle) - 2px) 0 var(--ombre-dalle); }
.btn:active { transform: translate(var(--dalle), var(--dalle)); box-shadow: 0 0 0 var(--ombre-dalle); }
.btn-2:active { transform: translate(var(--dalle), var(--dalle)); box-shadow: inset 0 0 0 2px var(--anneau-btn), 0 0 0 var(--ombre-dalle); }
/* Petits écrans : la dalle et son ombre doivent tenir dans la colonne. */
@media (max-width: 480px) { .btn, .btn-2 { padding: 0 20px; } .actions { padding-right: var(--dalle); } }
.sur-marine .btn, .sur-marine .btn-2 { --ombre-dalle: var(--accent-light); }
.sur-marine .btn { background: #fff; color: var(--navy); }
.sur-marine .btn-2 { --anneau-btn: #fff; color: #fff; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

/* Puces */
.puce { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: var(--forme-s); background: var(--fond-alt); color: var(--texte); font-size: 0.8125rem; font-weight: 500; line-height: 1; }
.puce-bleue { background: var(--bleu-pale); color: var(--donnee); }

/* Ombres de carte : pas de bordure */
.carte { background: var(--surface); border-radius: var(--forme-l); box-shadow: var(--ombre-carte); }

/* Animations : un élément masqué par le script est toujours rétabli par lui. */
.progression { position: fixed; left: 0; top: 0; z-index: 100; width: 100%; height: 2px; background: var(--accent-btn); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sortie 0.14s ease-out both; }
::view-transition-new(root) { animation: vt-entree 0.34s var(--ease) 0.06s both; }
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(12px); } }

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

/* Texte justifié : chapeaux et paragraphes des colonnes larges seulement (les cartes étroites restent alignées à gauche,
   la justification y créerait des rivières) et au-dessus de 700px de large (en dessous, la colonne est trop étroite).
   Césures françaises activées, dernière ligne à gauche. */
@media (min-width: 700px) {
  .entete-section .chapeau, .colonne-texte .chapeau, .mesure-texte, .terrain-reference, .prose-outil p { text-align: justify; text-justify: inter-word; text-align-last: left; hyphens: auto; }
}

/* Composants transverses de la trame v2 (README §7). */

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; isolation: isolate; }
/* Le flou est porté par un calque, pas par l'en-tête : un backdrop-filter sur l'en-tête
   ferait de lui le bloc conteneur du menu mobile en position fixe. */
.entete::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--voile); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.entete-barre { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); min-height: var(--haut-entete); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marque { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.1875rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--texte); }
.marque:hover { color: var(--texte); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-lien, .nav-bouton { display: flex; align-items: center; height: var(--haut-entete); padding: 0 14px; font-size: 0.875rem; font-weight: 400; line-height: 1; color: var(--texte-2); background: none; border: 0; cursor: pointer; transition: color 0.3s; }
.nav-lien:hover, .nav-bouton:hover, .nav-groupe.ouvert .nav-bouton, .nav [aria-current="page"], .js .nav-groupe.ouvert .nav-bouton { color: var(--texte); }
.nav-actif { color: var(--texte); }
.nav-groupe { position: static; }
.chevron { display: none; margin-left: auto; font-size: 1.75rem; transition: transform 0.35s ease; }
.rdv { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; background: var(--navy); color: #fff; font-size: 0.8125rem; font-weight: 500; line-height: 1; border-radius: var(--forme-s); transition: background-color 0.3s; }
.rdv:hover { background: var(--navy-2); color: #fff; }
.menu-bouton { display: none; }
.entete-panneau { display: contents; }
.menu-pied { display: none; }

/* Sous-menus : panneau pleine largeur. Sans script, ils s'ouvrent au survol et au focus clavier. */
.sous-menu { position: absolute; left: 0; right: 0; top: var(--haut-entete); background: var(--voile-menu); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 30px 40px -30px rgba(11, 29, 51, 0.25); opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s var(--ease), visibility 0.4s; }
html:not(.js) .nav-groupe:hover .sous-menu, html:not(.js) .nav-groupe:focus-within .sous-menu, .nav-groupe.ouvert .sous-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.sous-menu-interieur { max-width: 1100px; margin: 0 auto; padding: 36px clamp(20px, 4vw, 40px) 48px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.sous-menu-colonne { display: flex; flex-direction: column; gap: 12px; }
.sous-menu-titre { font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--texte-2); }
.sous-menu-tous { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 500; color: var(--texte); }
.sous-menu-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.sous-menu-lien { display: flex; flex-direction: column; gap: 6px; color: var(--texte); }
.sous-menu-lien:hover { color: var(--lien); }
.sous-menu-nom { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.sous-menu-ligne { font-size: 0.875rem; line-height: 1.45; color: var(--texte-2); }

/* Bureau : le menu est centré sur la page, pas entre le logo et le bouton (qui n'ont pas la même largeur). */
@media (min-width: 1000px) {
  .entete-barre { display: grid; grid-template-columns: 1fr auto 1fr; }
  .entete-barre .marque { justify-self: start; }
  .entete-barre .rdv { justify-self: end; }
}

/* ---------- Mobile et tablette : menu plein écran, accordéons ---------- */
@media (max-width: 999px) {
  .entete-barre { flex-wrap: wrap; row-gap: 0; padding-right: 8px; }
  .entete-panneau { display: block; width: 100%; padding-bottom: 24px; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 0; }
  .nav-lien, .nav-bouton { width: 100%; height: auto; min-height: 56px; padding: 6px 0; font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--texte); text-align: left; }
  .chevron { display: inline-block; color: var(--texte-2); }
  .nav-bouton { justify-content: space-between; }
  .sous-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sous-menu-interieur { display: block; padding: 4px 0 12px; }
  .sous-menu-colonne { display: none; }
  .sous-menu-grille { display: flex; flex-direction: column; gap: 0; }
  .sous-menu-lien { min-height: 44px; justify-content: center; }
  .sous-menu-nom { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
  .sous-menu-ligne { display: none; }
  .rdv { display: none; }
  .menu-pied { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px 0; }
  .menu-pied .btn { min-height: 56px; }

  /* Sans script : le menu reste déplié sous le logo, l'en-tête défile avec la page. */
  html:not(.js) .entete { position: static; }
  .js .menu-bouton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
  .js .entete-panneau { position: fixed; inset: var(--haut-entete) 0 0 0; z-index: 60; overflow-y: auto; background: var(--fond); padding-bottom: 32px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.45s ease, transform 0.3s var(--ease), visibility 0.45s; }
  .js .entete.menu-ouvert .entete-panneau { opacity: 1; visibility: visible; transform: none; }
  .js .entete.menu-ouvert { position: fixed; left: 0; right: 0; }
  /* Accordéons : hauteur animée par grid-template-rows, fermé = hors ordre de tabulation. */
  .js .sous-menu { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s var(--ease), visibility 0.35s; }
  .js .nav-groupe.ouvert .sous-menu { grid-template-rows: 1fr; visibility: visible; }
  .js .sous-menu-interieur { overflow: hidden; min-height: 0; padding-top: 0; padding-bottom: 0; }
  .js .nav-groupe.ouvert .sous-menu-interieur { padding-bottom: 12px; }
  .js .nav-groupe.ouvert .chevron { transform: rotate(90deg); }
}
.menu-langues { display: flex; align-items: center; }
.menu-langues li > * { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 0; font-size: 0.8125rem; color: var(--texte-2); }
.menu-langues [aria-current="page"] { color: var(--texte); font-weight: 600; }
.menu-signature { font-size: 0.8125rem; color: var(--texte-2); }
@media (prefers-reduced-transparency: reduce) {
  .entete::before, .sous-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Pied ---------- */
.pied { background: var(--navy-deep); color: var(--muted); }
.pied-interieur { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 5vw, 56px) clamp(20px, 4vw, 40px) 24px; }
.pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.pied-colonne { display: flex; flex-direction: column; }
.pied-titre { padding-bottom: 8px; font-size: 0.875rem; font-weight: 600; line-height: 1; color: #fff; }
.pied a { display: flex; align-items: center; min-height: 44px; font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.pied a:hover { color: #fff; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; padding-top: 16px; font-size: 0.875rem; line-height: 1.4; }
.pied-bas-gauche { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.pied-marque { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.pied-langues { display: flex; }
.pied-langues li > * { padding-right: 8px; }
.pied-langues [aria-current="page"] { display: flex; align-items: center; min-height: 44px; padding-right: 8px; color: #fff; font-weight: 600; }
.pied-signature { font-size: 0.9375rem; font-weight: 600; color: #fff; }

/* ---------- Fil d'Ariane ---------- */
.fil { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 0.875rem; color: var(--texte-2); }
.fil a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-2); }
.fil a:hover { color: var(--texte); }
.fil-sep { padding: 0 8px; }
.fil [aria-current="page"] { color: var(--texte); }

/* ---------- Carte Enjeu ---------- */
.carte-enjeu { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 280px; overflow: hidden; border-radius: var(--forme-l); background: var(--ce-fond); color: var(--ce-texte); }
.carte-enjeu:hover { color: var(--ce-texte); }
.carte-enjeu-face { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 36px) clamp(26px, 3vw, 36px); transition: transform 0.3s var(--ease); }
.carte-enjeu-etiquette { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--ce-ton); }
.carte-enjeu-titre { font-size: clamp(1.625rem, 2.4vw, 2.125rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.carte-enjeu-lien { margin-top: auto; font-size: 1.0625rem; font-weight: 500; line-height: 1; color: var(--ce-lien); }
.carte-enjeu-volet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px clamp(24px, 3vw, 36px) clamp(24px, 3vw, 32px); background: var(--ce-volet); color: var(--ce-volet-texte); border-radius: 0 var(--feuille-l) 0 0; transform: translateY(101%); transition: transform 0.3s var(--ease); }
.carte-enjeu-volet-etiquette { font-size: 0.875rem; font-weight: 600; line-height: 1; color: var(--ce-ton); }
.carte-enjeu-general { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; line-height: 1.5; color: var(--ce-texte); hyphens: none; }
.carte-enjeu-general .carte-enjeu-volet-etiquette { color: var(--ce-ton); }
.carte-enjeu-symptome { font-size: 1.0625rem; line-height: 1.45; }
.carte-enjeu:hover .carte-enjeu-volet, .carte-enjeu:focus-visible .carte-enjeu-volet { transform: none; }
.carte-enjeu:hover .carte-enjeu-face, .carte-enjeu:focus-visible .carte-enjeu-face { transform: translateY(-4px); }
/* Appareil tactile sans survol : le volet est ouvert d'office. */
@media (hover: none) {
  .carte-enjeu-volet { transform: none; }
  /* Cartes du hub /enjeux/ : le volet ouvert d'office passe sous le titre au lieu de le recouvrir (titre sur trois lignes). */
  .carte-enjeu:not(:has(.carte-enjeu-general)) .carte-enjeu-volet { position: relative; }
  .carte-enjeu:not(:has(.carte-enjeu-general)) .carte-enjeu-face .carte-enjeu-lien { display: none; }
  .carte-enjeu-face { transform: translateY(-4px); }
}
.carte-enjeu-nuit { --ce-fond: var(--navy); --ce-ton: var(--accent-light); --ce-texte: #fff; --ce-lien: var(--accent-light); --ce-volet: var(--navy-2); --ce-volet-texte: #fff; }
.carte-enjeu-ciel { --ce-fond: var(--lavis-ciel); --ce-ton: var(--donnee); --ce-texte: var(--texte); --ce-lien: var(--lien); --ce-volet: var(--surface); --ce-volet-texte: var(--texte); }
.carte-enjeu-sauge { --ce-fond: var(--lavis-sauge); --ce-ton: var(--lien); --ce-texte: var(--texte); --ce-lien: var(--lien); --ce-volet: var(--surface); --ce-volet-texte: var(--texte); }
.carte-enjeu-blanc { --ce-fond: var(--fond-alt); --ce-ton: var(--lien); --ce-texte: var(--texte); --ce-lien: var(--lien); --ce-volet: var(--surface); --ce-volet-texte: var(--texte); }

/* ---------- Carte Cas ---------- */
.carte-cas { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface); border-radius: var(--forme-l); box-shadow: var(--ombre-carte); color: var(--texte); transition: transform 0.35s var(--ease); }
.carte-cas:hover { transform: scale(1.012); color: var(--texte); }
.carte-cas-tete { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 190px; padding: 28px 30px; background: var(--navy); color: #fff; }
.carte-cas-chiffre { font-size: clamp(3rem, 4.6vw, 4rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.carte-cas-chiffre-mots { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; letter-spacing: -0.04em; }
.carte-cas-sous { font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.carte-cas-corps { display: flex; flex-direction: column; gap: 10px; padding: 26px 30px 30px; flex: 1; }
.carte-cas-contexte { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.carte-cas-titre { flex: 1; font-size: 0.9375rem; line-height: 1.5; color: var(--texte-2); }
.carte-cas-situation .carte-cas-tete { justify-content: space-between; align-items: flex-start; }
.carte-cas-situation .puce { background: var(--navy-2); color: #fff; }
.carte-cas-situation-titre { min-height: 2.2em; font-size: clamp(1.375rem, 1.9vw, 1.625rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.carte-cas-lien { padding-top: 10px; font-size: 1.0625rem; font-weight: 500; line-height: 1; color: var(--lien); }

/* ---------- Carte Outil ---------- */
.carte-outil { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--fond-alt); border-radius: var(--forme-l); color: var(--texte); transition: transform 0.35s var(--ease); }
.carte-outil:hover { transform: scale(1.012); color: var(--texte); }
.carte-outil-corps { display: flex; flex-direction: column; gap: 10px; padding: 34px 32px 22px; flex: 1; }
.carte-outil-etiquette { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--texte-2); }
.carte-outil-titre { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.carte-outil-description { flex: 1; font-size: 1rem; line-height: 1.5; color: var(--texte-2); }
.carte-outil-lien { padding-top: 10px; font-size: 1.0625rem; font-weight: 500; line-height: 1; color: var(--lien); }

/* ---------- Bloc Contact ---------- */
.contact { background: var(--fond-alt); color: var(--texte); }
.contact-interieur { max-width: 900px; margin: 0 auto; padding: clamp(96px, 13vw, 176px) clamp(20px, 5vw, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.contact-titre { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.045em; }
.contact-texte { max-width: 36ch; font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--texte-2); text-wrap: balance; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; padding-top: 14px; }
.contact-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; font-weight: 500; }
.contact-mention { font-size: 0.9375rem; line-height: 1.4; color: var(--texte-2); }

/* ---------- Accordéon FAQ ---------- */
.faq { border-top: 1px solid var(--filet); }
.faq-item { border-bottom: 1px solid var(--filet); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 18px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--texte); font-size: clamp(1.125rem, 2vw, 1.3125rem); font-weight: 400; line-height: 1.35; }
.faq-signe { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-signe::before, .faq-signe::after { content: ''; position: absolute; background: var(--lien); }
.faq-signe::before { left: 0; top: 7px; width: 16px; height: 1.5px; }
.faq-signe::after { left: 7px; top: 0; width: 1.5px; height: 16px; transition: transform 0.4s ease; }
.faq-question[aria-expanded="true"] .faq-signe::after { transform: rotate(90deg); }
.faq-reponse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-reponse-interieur { overflow: hidden; min-height: 0; }
.faq-reponse p { padding: 0 48px 26px 0; max-width: 72ch; font-size: 1rem; line-height: 1.65; color: var(--texte-2); }
/* Avec script : fermé = hauteur nulle et hors de l'ordre de tabulation. */
.js .faq-question[aria-expanded="false"] + .faq-reponse { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s var(--ease), visibility 0.35s; }

/* Icône du bouton Menu : trois traits ou croix selon l'état. */
.menu-croix { display: none; }
.menu-bouton[aria-expanded="true"] .menu-trait { display: none; }
.menu-bouton[aria-expanded="true"] .menu-croix { display: inline; }
html.menu-bloque { overflow: hidden; }

/* ---------- Mise en page partagée entre pages ---------- */
.grille { display: grid; gap: 20px; }
.mesure-titre { max-width: none; }
.mesure-texte { max-width: 90ch; }
.entete-gauche { align-items: flex-start; text-align: left; }
.centre-texte { text-align: center; }
.lien-centre { align-self: center; }
.pile-serree { gap: 40px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-pleine { background: var(--accent); color: #fff; }
.puce-fixe { white-space: nowrap; }
.hero { background: var(--fond); }
.grille-enjeux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.panneau-marine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px; align-items: center; padding: clamp(28px, 5vw, 64px); background: var(--navy); color: #fff; border-radius: var(--forme-xl); }
.grille-postes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.poste { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border-radius: var(--forme-m); box-shadow: var(--ombre-carte); }
.poste-type { font-size: 0.875rem; font-weight: 600; line-height: 1; color: var(--lien); }
.poste-choisi { color: var(--lien); }
.poste-nom { font-size: 1.1875rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.colonne-texte { display: flex; flex-direction: column; gap: 18px; }
.chapeau-compact { font-size: 1.1875rem; }

/* Panneaux marine : en thème sombre, un filet les détache du fond de page. */
@media (prefers-color-scheme: dark) {
  .section-marine, .panneau-marine, .tuile-preuve-marine, .carte-cas-tete { box-shadow: inset 0 0 0 1px var(--rule); }
}

/* Hero des pages intérieures et variantes partagées. */
.hero-enjeu { padding-top: 8px; padding-bottom: clamp(56px, 7vw, 88px); }
.hero-colonne { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: clamp(32px, 6vw, 80px); }
.hero-titre-enjeu { max-width: 17ch; }
.pastille-provisoire { padding: 8px 12px; border-radius: var(--forme-s); background: var(--lavis-sauge); color: var(--lien); font-size: 0.875rem; font-weight: 600; line-height: 1; }
.chapeau-moyen { max-width: 46ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--texte-2); text-wrap: balance; }
.section-sans-haut { padding: 0 0 clamp(80px, 10vw, 136px); background: var(--fond); }
.puce-ciel { align-self: flex-start; background: var(--lavis-ciel); color: var(--texte); padding: 8px 11px; }

/* Tuiles, lignes et cartes réutilisées par plusieurs pages. */
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 64px; align-items: center; }
.carte-article { display: flex; flex-direction: column; gap: 16px; padding: clamp(32px, 4vw, 48px); background: var(--lavis-ciel); border-radius: var(--forme-l); color: var(--texte); transition: transform 0.35s var(--ease); }
.carte-article:hover { transform: scale(1.012); color: var(--texte); }
.carte-article-etiquette { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--donnee); }
.carte-article-titre { flex: 1; font-size: clamp(1.875rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.carte-article-texte { font-size: 1.0625rem; line-height: 1.5; color: var(--texte-2); }
.carte-article-lien { padding-top: 6px; font-size: 1.0625rem; font-weight: 500; line-height: 1; color: var(--lien); }
.grille-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.tuile-action { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--fond-alt); border-radius: var(--forme-l); }
.tuile-action .titre-tuile { text-wrap: balance; }
.liste-insights { display: flex; flex-direction: column; gap: 10px; }
.pile-tasse { gap: 14px; }
.fleche-laiton { color: var(--accent-light); }
.sur-marine .chapeau-moyen { color: var(--muted); }

/* Cartes d'une même rangée : les blocs correspondants (étiquette, titre, texte, lien) s'alignent d'une carte à l'autre
   grâce à des lignes communes (subgrid). Sans subgrid, les cartes gardent leur flux naturel. */
@supports (grid-template-rows: subgrid) {
  .grille-enjeux > .carte-enjeu:has(> .carte-enjeu-face > .carte-enjeu-general) { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .grille-enjeux > .carte-enjeu:has(> .carte-enjeu-face > .carte-enjeu-general) > .carte-enjeu-face { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; gap: 14px 0; align-content: start; }
  .grille-enjeux > .carte-enjeu:has(> .carte-enjeu-face > .carte-enjeu-general) .carte-enjeu-lien { align-self: end; }
  .grille-cas > .carte-cas { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .grille-cas .carte-cas-tete { grid-row: 1; }
  .grille-cas .carte-cas-corps { display: grid; grid-row: 2 / 5; grid-template-rows: subgrid; gap: 10px 0; }
  .grille-cas .carte-cas-lien { align-self: end; }
  .grille-formats > .tuile-format { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
}
