/* ==========================================================================
   TOWYTA PAY — Design system « La couverture »
   --------------------------------------------------------------------------
   Fichier unique, mobile-first, sans dépendance.
   Référence des composants : BRAND.md (racine du projet) + site/styleguide.html

   SOMMAIRE
   00. Polices (@font-face, fichiers auto-hébergés dans assets/fonts/)
   01. Tokens (:root) — couleurs, typo fluide, espacements, rayons, ombres, z-index
   02. Thèmes de surface (clair / sombre / lagon) — variables sémantiques
   03. Reset & base
   04. Typographie
   05. Layout & utilitaires (.container, .section, .stack, .grid-*, .split…)
   06. Accessibilité (skip-link, focus, visually-hidden)
   07. Header, navigation, burger, menu mobile
   08. Boutons
   09. Badges, pills, eyebrow, en-tête de section
   10. Cartes & ticket de caisse (.card, .card--ticket, .receipt)
   11. Features, checklist, icônes
   12. Étapes numérotées (.steps)
   13. Tableau comparatif (.compare)
   14. Bloc tarif (.price-card)
   15. Simulateur (.calculator, input range)
   16. FAQ (<details>)
   17. Formulaires (.form, .field, .check, .form-success)
   18. Notes, alertes, callout
   19. Hero & page-hero (motif d'arc en filigrane)
   20. Maquettes d'interface (.mock, .tx, .toast)
   21. Bande CTA (.cta-band)
   22. Contenu légal (.legal, .toc, .prose, .facts)
   23. Footer
   24. Animations (.reveal) & prefers-reduced-motion
   25. Utilitaires de texte et d'espacement
   26. Impression
   ========================================================================== */


/* ==========================================================================
   00. POLICES — auto-hébergées (RGPD : aucune requête vers un serveur tiers)
   Fichiers WOFF2 dans assets/fonts/ : sous-ensembles latin + latin-ext issus
   de Google Fonts, licence SIL Open Font License 1.1 (assets/fonts/OFL.txt).
   - Fraunces       : variable opsz 9–144, wght 300–700, SOFT 0–100, WONK 0–1,
                      romain + italique
   - Inter          : variable wght 400–700
   - JetBrains Mono : variable wght 400–600
   Fichiers critiques préchargés dans le <head> de chaque page :
   fraunces-latin.woff2 et inter-latin.woff2.
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   01. TOKENS
   Les 9 noms du brief sont figés : --ink --lagoon --lagoon-2 --sand --paper
   --coral --mint --line --muted. Les autres sont des dérivés documentés.
   ========================================================================== */
:root {
  /* --- Palette de marque (noms figés) --- */
  --ink: #0F1614;          /* texte principal, fonds sombres */
  --lagoon: #0B4A44;       /* couleur de marque principale */
  --lagoon-2: #0E6158;     /* survol / variante */
  --sand: #F4EFE6;         /* fond de page */
  --paper: #FFFDF8;        /* cartes */
  --coral: #FF5A3C;        /* accent / CTA — avec parcimonie */
  --mint: #B9F0D6;         /* surlignage, badges positifs */
  --line: rgba(15, 22, 20, .12);  /* bordures fines */
  --muted: #5B6661;        /* texte secondaire (5,2:1 sur sand) */

  /* --- Dérivés (contrastes vérifiés, voir BRAND.md) --- */
  --ink-2: #2B3430;        /* texte courant adouci (lead) — 11,2:1 sur sand */
  --sand-2: #EAE3D6;       /* sable plus profond : zones en creux */
  --coral-ink: #B8361C;    /* corail lisible pour PETIT texte sur clair (5,1:1 sur sand) */
  --coral-hover: #FF7357;  /* survol du bouton principal */
  --coral-soft: #FFE6DE;   /* fond d'alerte */
  --mint-soft: #E2F7EC;    /* fond positif léger */
  --lagoon-soft: #DDEAE5;  /* fond d'icône / note */
  --line-strong: rgba(15, 22, 20, .24);  /* pointillés, séparateurs visibles */
  --field-border: #7A837F; /* bordure de champ : ≥ 3:1 sur paper, sand et sand-2 (WCAG 1.4.11) */
  --muted-on-dark: #B3C1BB;/* texte secondaire sur ink (9,8:1) et lagoon (5,4:1) */

  /* --- Typographies --- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Échelle typographique fluide : 360 px → 1440 px */
  --fs-xs: .8125rem;                                        /* 13 px */
  --fs-sm: .875rem;                                         /* 14 px */
  --fs-base: clamp(1rem, .979rem + .093vw, 1.0625rem);      /* 16 → 17 */
  --fs-md: clamp(1.125rem, 1.0625rem + .278vw, 1.3125rem);  /* 18 → 21  (lead) */
  --fs-h4: clamp(1.1875rem, 1.125rem + .278vw, 1.375rem);   /* 19 → 22 */
  --fs-h3: clamp(1.375rem, 1.208rem + .741vw, 1.875rem);    /* 22 → 30 */
  --fs-h2: clamp(2rem, 1.5rem + 2.222vw, 3.5rem);           /* 32 → 56 */
  --fs-h1: clamp(2.5rem, 1.75rem + 3.333vw, 4.75rem);       /* 40 → 76 */
  --fs-display: clamp(2.75rem, 1.833rem + 4.074vw, 5.5rem); /* 44 → 88  (hero) */
  --fs-amount: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);         /* montants mono */

  --lh-tight: 1.04;
  --lh-heading: 1.12;
  --lh-body: 1.6;

  /* --- Espacements (échelle 4 px) --- */
  --space-1: .25rem;   /* 4 */
  --space-2: .5rem;    /* 8 */
  --space-3: .75rem;   /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */
  --section-y: clamp(4rem, 3rem + 4.444vw, 7rem);   /* rythme vertical des sections */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);     /* marges latérales */
  --arch-h: clamp(2.5rem, 1rem + 6vw, 7rem);        /* hauteur de l'arc des .section--arch */
  --card-pad: clamp(1.25rem, 1rem + 1.1vw, 2rem);

  /* --- Conteneurs --- */
  --container: 75rem;          /* 1200 px */
  --container-wide: 85rem;     /* 1360 px */
  --container-narrow: 47.5rem; /* 760 px */

  /* --- Rayons --- */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius: 20px;       /* cartes (brief) */
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* --- Ombres douces, teintées encre --- */
  --shadow-xs: 0 1px 2px rgba(15, 22, 20, .05);
  --shadow-sm: 0 1px 2px rgba(15, 22, 20, .04), 0 4px 12px -4px rgba(15, 22, 20, .08);
  --shadow: 0 1px 2px rgba(15, 22, 20, .04), 0 12px 32px -12px rgba(15, 22, 20, .16);
  --shadow-lg: 0 2px 6px rgba(15, 22, 20, .04), 0 32px 64px -24px rgba(11, 74, 68, .28);
  --ring: 0 0 0 4px rgba(14, 97, 88, .18);

  /* --- Z-index --- */
  --z-below: -1;
  --z-base: 1;
  --z-raised: 10;
  --z-header: 100;
  --z-menu: 90;     /* sous le header : le burger reste cliquable */
  --z-toast: 200;
  --z-skip: 1000;

  /* --- Mouvement --- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .15s;
  --dur: .3s;
  --dur-slow: .7s;

  /* --- Header --- */
  --header-h: 68px;

  /* --- Motifs (SVG en data-URI) : arcs concentriques = la canopée --- */
  --arc-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 520' fill='none' stroke='%230B4A44' stroke-width='1.5'%3E%3Cpath stroke-opacity='.10' d='M20 520a480 480 0 0 1 960 0'/%3E%3Cpath stroke-opacity='.13' d='M120 520a380 380 0 0 1 760 0'/%3E%3Cpath stroke-opacity='.16' d='M220 520a280 280 0 0 1 560 0'/%3E%3Cpath stroke-opacity='.22' stroke-dasharray='3 9' stroke-linecap='round' d='M320 520a180 180 0 0 1 360 0'/%3E%3C/svg%3E");
  --arc-motif-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 520' fill='none' stroke='%23B9F0D6' stroke-width='1.5'%3E%3Cpath stroke-opacity='.08' d='M20 520a480 480 0 0 1 960 0'/%3E%3Cpath stroke-opacity='.11' d='M120 520a380 380 0 0 1 760 0'/%3E%3Cpath stroke-opacity='.14' d='M220 520a280 280 0 0 1 560 0'/%3E%3Cpath stroke-opacity='.2' stroke-dasharray='3 9' stroke-linecap='round' d='M320 520a180 180 0 0 1 360 0'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1614' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
}

@media (min-width: 64rem) {
  :root { --header-h: 76px; }
}


/* ==========================================================================
   02. THÈMES DE SURFACE — variables sémantiques
   Les composants lisent --color-* : ils s'adaptent seuls dans une section
   sombre (.section--dark), lagon (.section--lagoon) ou papier (.section--paper).
   ========================================================================== */
:root {
  --color-bg: var(--sand);
  --color-fg: var(--ink);
  --color-fg-soft: var(--ink-2);
  --color-fg-muted: var(--muted);
  --color-surface: var(--paper);
  --color-surface-2: var(--sand-2);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-accent: var(--lagoon);         /* liens, eyebrows, mots en italique */
  --color-accent-hover: var(--lagoon-2);
  --color-accent-soft: var(--lagoon-soft);
  --color-focus: var(--lagoon-2);
  --motif: var(--arc-motif);
}

.section--dark,
.section--lagoon,
.theme-dark,
.cta-band,
.site-footer,
.card--dark,
.card--lagoon {
  --color-bg: var(--ink);
  --color-fg: var(--paper);
  --color-fg-soft: #DCE4E0;
  --color-fg-muted: var(--muted-on-dark);
  --color-surface: rgba(255, 253, 248, .05);
  --color-surface-2: rgba(255, 253, 248, .08);
  --color-border: rgba(255, 253, 248, .14);
  --color-border-strong: rgba(255, 253, 248, .3);
  --color-accent: var(--mint);
  --color-accent-hover: #D6F7E7;
  --color-accent-soft: rgba(185, 240, 214, .12);
  --color-focus: var(--mint);
  --motif: var(--arc-motif-dark);
}

.section--lagoon,
.cta-band,
.card--lagoon {
  --color-bg: var(--lagoon);
  --color-surface: rgba(255, 253, 248, .06);
  --color-surface-2: rgba(255, 253, 248, .1);
  --color-border: rgba(255, 253, 248, .18);
}

.section--paper {
  --color-bg: var(--paper);
  --color-surface: var(--sand);
}


/* ==========================================================================
   03. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  interpolate-size: allow-keywords; /* animation de <details> (navigateurs récents) */
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html.is-menu-open,
html.is-menu-open body { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
img { border-style: none; }

input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
textarea { resize: vertical; }
table { border-collapse: collapse; border-spacing: 0; }
hr { border: 0; margin: 0; }
[hidden] { display: none !important; }

::selection { background: var(--mint); color: var(--ink); }

main { display: block; }
main:focus { outline: none; }


/* ==========================================================================
   04. TYPOGRAPHIE
   Fraunces (titres, opsz auto, axe SOFT) · Inter (texte/UI) · JetBrains Mono (montants)
   ========================================================================== */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: var(--lh-heading);
  letter-spacing: -.012em;
  color: var(--color-fg);
  text-wrap: balance;
}

.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -.022em; font-weight: 480; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.018em; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.015em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -.01em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.005em; font-weight: 560; }

h5, h6, .h5, .h6 {
  font-family: var(--font-sans);
  font-weight: 650;
  line-height: 1.35;
  color: var(--color-fg);
}
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: var(--fs-sm); letter-spacing: .02em; }

/* Mots-clés en italique Fraunces (WONK = caractère) */
:is(h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4) em,
.serif-em {
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--color-accent);
  letter-spacing: -.01em;
}

p { text-wrap: pretty; }
p, li, dd { color: inherit; }

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--color-fg-soft);
  max-width: 40em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
/* La mini-canopée devant l'eyebrow : signature de la marque */
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.15em;
  height: .58em;
  margin-top: .12em;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 1.2em 1.2em 0 0;
}
.eyebrow--plain::before { display: none; }

.mono, code, kbd, samp {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 0, "tnum" 1;
  letter-spacing: -.01em;
}
code, kbd {
  font-size: .9em;
  padding: .1em .35em;
  border-radius: var(--radius-xs);
  background: var(--color-surface-2);
}

.tnum { font-variant-numeric: tabular-nums; }
small, .small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
strong, b { font-weight: 650; }

/* Liens */
a {
  color: var(--color-accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast), text-decoration-thickness var(--dur-fast);
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* Surlignage menthe (marqueur) */
.hl {
  background: linear-gradient(transparent 48%, var(--mint) 48%, var(--mint) 96%, transparent 96%);
  color: inherit;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section--dark .hl, .section--lagoon .hl { background: linear-gradient(transparent 58%, rgba(185, 240, 214, .28) 58%, rgba(185, 240, 214, .28) 92%, transparent 92%); }


/* ==========================================================================
   05. LAYOUT & UTILITAIRES
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--color-bg);
  color: var(--color-fg);
}
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); }
.section--lagoon { background: var(--lagoon); }

/* Section en « canopée » : le haut de la section forme un arc (signature) */
/* La section remonte sur la précédente (marge négative) : les coins laissent
   voir la couleur de la section du dessus, quelle qu'elle soit. */
.section--arch {
  z-index: var(--z-base);
  margin-top: calc(var(--arch-h) * -1);
  border-top-left-radius: 50% var(--arch-h);
  border-top-right-radius: 50% var(--arch-h);
  padding-top: calc(var(--section-y) + var(--arch-h) * .5);
}
/* La section précédente garde son espace intérieur malgré le recouvrement */
.section:has(+ .section--arch) { padding-bottom: calc(var(--section-y) + var(--arch-h)); }

/* Filet en pointillés « ticket » entre deux blocs */
.divider {
  height: 0;
  border-top: 2px dashed var(--color-border-strong);
  margin-block: var(--space-7);
}

/* Pile verticale : espacement régulier entre enfants (--stack-gap) */
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-4)); }
.stack--xs { --stack-gap: var(--space-2); }
.stack--sm { --stack-gap: var(--space-3); }
.stack--lg { --stack-gap: var(--space-6); }
.stack--xl { --stack-gap: var(--space-8); }

/* Groupe horizontal qui passe à la ligne (boutons, badges) */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }

/* Grilles : 1 colonne en mobile, puis 2/3/4 */
.grid { display: grid; gap: var(--grid-gap, var(--space-5)); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--grid-gap, var(--space-5)); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Deux colonnes texte / visuel */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .split--reverse > :first-child { order: 2; }
  .split--top { align-items: start; }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}

.center { text-align: center; margin-inline: auto; }
.center > .lead, .center.lead { margin-inline: auto; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 40em; }
.full-bleed { width: 100%; }


/* ==========================================================================
   06. ACCESSIBILITÉ
   ========================================================================== */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-skip);
  padding: .75rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; color: var(--paper); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; border-radius: var(--radius-pill); }


/* ==========================================================================
   07. HEADER, NAVIGATION, MENU MOBILE
   Breakpoint navigation desktop : 67.5rem (1080 px)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--sand);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(15, 22, 20, .35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-h);
  transition: height var(--dur) var(--ease-out);
}
@media (min-width: 64rem) {
  .site-header.is-scrolled .site-header__inner { height: 64px; }
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  border-radius: 6px;
  text-decoration: none;
}
.site-header__logo img { width: auto; height: 26px; }
@media (min-width: 64rem) {
  .site-header__logo img { height: 30px; }
}

/* Navigation desktop */
.site-nav { display: none; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1vw, .75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .5rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.site-nav__link:hover {
  color: var(--ink);
  background: rgba(15, 22, 20, .06);
  text-decoration: none;
}
/* Lien actif : petit arc sous le libellé */
.site-nav__link[aria-current="page"] { color: var(--lagoon); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 6px;
  margin-left: -8px;
  border: 2px solid var(--coral);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: var(--space-2);
}
/* Petit écran : seul le CTA principal est visible à côté du burger (≥ 30rem) */
@media (min-width: 30rem) {
  .site-header__actions { display: flex; }
  .site-header__actions .btn--secondary { display: none; }
}
@media (min-width: 67.5rem) {
  .site-nav { display: block; margin-inline: auto; }
  .site-header__logo { margin-right: 0; }
  .site-header__actions .btn--secondary { display: inline-flex; }
}

/* Burger animé */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color var(--dur-fast);
}
.nav-toggle:hover { background: rgba(15, 22, 20, .06); }
.nav-toggle__box { position: relative; display: block; width: 22px; height: 14px; }
.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast), width var(--dur) var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 6px; width: 70%; }
.nav-toggle__bar:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 67.5rem) {
  .nav-toggle { display: none; }
}

/* Panneau plein écran (mobile) */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-5) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sand);
  background-image: var(--arc-motif);
  background-repeat: no-repeat;
  background-size: 160% auto;
  background-position: 50% calc(100% + 4rem);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
}
@media (min-width: 67.5rem) {
  .mobile-menu { display: none; }
}
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: menu;
}
.mobile-menu__list li { counter-increment: menu; border-bottom: 1px dashed var(--line-strong); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 480;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu__link::before {
  content: counter(menu, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--muted);
  transform: translateY(-.6em);
}
.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] { color: var(--lagoon); text-decoration: none; }
.mobile-menu__link[aria-current="page"]::after {
  content: "";
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.mobile-menu__actions { display: grid; gap: var(--space-3); }
.mobile-menu__note { font-size: var(--fs-sm); color: var(--muted); }


/* ==========================================================================
   08. BOUTONS — pilules
   .btn + .btn--primary (corail, texte encre 5,9:1) | --secondary | --ghost | --on-dark
   Tailles : --sm, (défaut), --lg ; --block = pleine largeur
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-fg);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .8em 1.45em;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:hover { text-decoration: none; color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Flèche optionnelle : <span class="btn__arrow" aria-hidden="true"></span> */
.btn__arrow {
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary {
  --btn-bg: var(--coral);
  --btn-fg: var(--ink);
  --btn-border: var(--coral);
}
.btn--primary:hover {
  --btn-bg: var(--coral-hover);
  --btn-border: var(--coral-hover);
  box-shadow: 0 10px 24px -12px rgba(255, 90, 60, .75);
  transform: translateY(-1px);
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--color-fg);
  --btn-border: var(--color-fg);
}
.btn--secondary:hover {
  --btn-bg: var(--color-fg);
  --btn-fg: var(--color-bg);
}

.btn--ghost {
  --btn-fg: var(--color-accent);
  min-height: 44px;
  padding-inline: .2em;
  border-radius: var(--radius-xs);
}
.btn--ghost:hover {
  --btn-fg: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}

/* Bouton clair pour fonds sombres (ink / lagoon) */
.btn--on-dark {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-border: var(--paper);
}
.btn--on-dark:hover {
  --btn-bg: var(--mint);
  --btn-border: var(--mint);
  --btn-fg: var(--ink);
}

.btn--sm { min-height: 40px; padding: .55em 1.05em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: .95em 1.75em; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }


/* ==========================================================================
   09. BADGES, PILLS, EN-TÊTE DE SECTION
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .28em .75em;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .005em;
  white-space: nowrap;
}
.section--dark .badge:not([class*="badge--"]),
.section--lagoon .badge:not([class*="badge--"]) { color: var(--mint); }
.badge--mint { background: var(--mint); color: var(--lagoon); }
.badge--coral { background: var(--coral-soft); color: var(--coral-ink); }
.badge--ink { background: var(--ink); color: var(--paper); }
.badge--outline { background: transparent; color: var(--color-fg); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.badge__dot { width: .5em; height: .5em; border-radius: 50%; background: currentColor; }

/* Pill : pastille d'information (réassurance), plus grande qu'un badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em 1em .5em .8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
}
.pill svg { width: 1.15em; height: 1.15em; color: var(--color-accent); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split {
  max-width: none;
}
@media (min-width: 60rem) {
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
    column-gap: var(--space-8);
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
}


/* ==========================================================================
   10. CARTES & TICKET DE CAISSE
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--card-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-fg);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.card__text { color: var(--color-fg-muted); }
.card__footer { margin-top: auto; padding-top: var(--space-3); }
.card--hover { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card--shadow { box-shadow: var(--shadow); border-color: transparent; }
.card--dark { background: var(--ink); border-color: var(--ink); }
.card--lagoon { background: var(--lagoon); border-color: var(--lagoon); }
.card--mint { background: var(--mint); border-color: var(--mint); --color-fg-muted: #2F4A42; --color-accent: var(--lagoon); --color-accent-soft: rgba(255, 253, 248, .7); }
.card--flat { background: var(--color-surface-2); border-color: transparent; }

/* Ticket : cartes en deux parties séparées par une ligne pointillée à encoches
   <article class="card card--ticket">
     <div class="ticket__part">…</div>
     <div class="ticket__tear" aria-hidden="true"></div>
     <div class="ticket__part">…</div>
   </article>
   Les encoches prennent la couleur de fond de la section (--color-bg) ;
   la surcharger avec --ticket-hole si besoin. */
.card--ticket {
  gap: 0;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.ticket__part {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--card-pad);
}
.ticket__tear {
  position: relative;
  flex: none;
  height: 30px;
  margin-block: -15px;
  padding-inline: 26px;
  background-image: linear-gradient(90deg, var(--color-border-strong) 0 7px, transparent 7px 13px);
  background-size: 13px 2px;
  background-repeat: repeat-x;
  background-position: left center;
  background-origin: content-box;
  background-clip: content-box;
}
.ticket__tear::before,
.ticket__tear::after {
  content: "";
  position: absolute;
  top: 0;
  width: 16px;
  height: 30px;
  background: var(--ticket-hole, var(--color-bg));
  border: 1px solid var(--color-border);
}
.ticket__tear::before { left: -1px; border-left: 0; border-radius: 0 30px 30px 0; }
.ticket__tear::after { right: -1px; border-right: 0; border-radius: 30px 0 0 30px; }
.card--ticket > .ticket__tear { margin-block: 0; }

/* Reçu : lignes libellé ……… montant (mono), avec pointillés de conduite */
.receipt {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.receipt__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}
/* Ordre : libellé (0) · pointillés de conduite (::before, 1) · montant (2) */
.receipt__row > :first-child { order: 0; margin: 0; color: var(--color-fg-muted); }
.receipt__row::before {
  content: "";
  order: 1;
  flex: 1 1 1rem;
  min-width: 1rem;
  height: 0;
  border-bottom: 2px dotted var(--color-border-strong);
  transform: translateY(-.25em);
}
.receipt__row > :last-child {
  order: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-fg);
  white-space: nowrap;
  text-align: right;
}
.receipt__row--total {
  padding-top: var(--space-3);
  border-top: 2px dashed var(--color-border-strong);
  font-size: 1rem;
}
.receipt__row--total > :first-child { color: var(--color-fg); font-weight: 600; }
.receipt__row--total > :last-child { font-size: 1.25rem; font-weight: 600; }
.receipt__row--total::before { border-bottom-color: transparent; }


/* ==========================================================================
   11. FEATURES, CHECKLIST, ICÔNES
   ========================================================================== */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--mint { background: var(--mint); color: var(--lagoon); }
.icon-tile--coral { background: var(--coral-soft); color: var(--coral-ink); }
.icon-tile--ink { background: var(--ink); color: var(--mint); }

.features {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
  .features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.feature__text { color: var(--color-fg-muted); }
/* Variante en cartes */
.features--cards .feature {
  padding: var(--card-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

/* Liste à coches (couvert) ou à croix (non couvert) */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist > li {
  position: relative;
  padding-left: 2rem;
}
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--mint);
}
.checklist > li::after {
  content: "";
  position: absolute;
  left: .25rem;
  top: calc(.2em + .25rem);
  width: .8rem;
  height: .8rem;
  background: var(--lagoon);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
.checklist--cross > li::before { background-color: var(--coral-soft); }
.checklist--cross > li::after {
  background: var(--coral-ink);
  -webkit-mask-image: var(--icon-cross);
  mask-image: var(--icon-cross);
}
.section--dark .checklist > li::before,
.section--lagoon .checklist > li::before,
.cta-band .checklist > li::before { background-color: rgba(185, 240, 214, .16); }
.section--dark .checklist > li::after,
.section--lagoon .checklist > li::after,
.cta-band .checklist > li::after { background: var(--mint); }
.checklist strong { color: var(--color-fg); }


/* ==========================================================================
   12. ÉTAPES NUMÉROTÉES — gros numéros Fraunces
   ========================================================================== */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); } }
@media (min-width: 64rem) {
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 2px dashed var(--color-border-strong);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2.5rem + 3vw, 5rem);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--color-accent);
  font-variant-numeric: lining-nums;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 560;
  line-height: 1.25;
}
.step__text { color: var(--color-fg-muted); }
.step__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
/* Point « protégé » au départ de chaque étape */
.step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}


/* ==========================================================================
   13. TABLEAU COMPARATIF — table en desktop, cartes empilées en mobile
   Chaque <td> porte data-label="Nom de colonne" (repris en mobile).
   ========================================================================== */
.compare-wrap { position: relative; }
.compare {
  width: 100%;
  font-size: var(--fs-sm);
  text-align: left;
}
.compare caption { text-align: left; }
.compare th, .compare td { vertical-align: top; }
.compare .yes, .compare .no, .compare .partial {
  display: inline-flex;
  align-items: flex-start;
  gap: .5em;
}
.compare .yes::before, .compare .no::before, .compare .partial::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .1em;
  border-radius: 50%;
}
.compare .yes, .compare .no, .compare .partial { position: relative; }
.compare .yes::before { background: var(--mint); }
.compare .yes::after, .compare .no::after {
  content: "";
  position: absolute;
  left: .2rem;
  top: calc(.1em + .2rem);
  width: .75rem;
  height: .75rem;
  background: var(--lagoon);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
.compare .no::before { background: var(--coral-soft); }
.compare .no::after { background: var(--coral-ink); -webkit-mask-image: var(--icon-cross); mask-image: var(--icon-cross); }
.compare .partial::before { background: var(--sand-2); box-shadow: inset 0 0 0 4px var(--sand-2), inset 0 0 0 20px var(--muted); }

/* Mobile : cartes */
.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare tbody { display: grid; gap: var(--space-3); }
.compare tr {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.compare tbody th {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 560;
  line-height: 1.3;
}
.compare td {
  display: grid;
  gap: .2rem;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border-strong);
}
.compare td::before {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.compare td.compare__us::before { color: var(--lagoon); }

/* Desktop : vrai tableau, colonne TOWYTA PAY mise en avant */
@media (min-width: 48rem) {
  .compare { font-size: .9375rem; }
  .compare thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; padding: 0; border: 0; background: none; border-radius: 0; }
  .compare th, .compare td {
    display: table-cell;
    padding: 1.1rem 1.25rem;
    border-top: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .compare td::before { content: none; }
  .compare thead th {
    padding-block: 1.25rem;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    border-bottom: 2px solid var(--color-fg);
  }
  .compare tbody th { width: 30%; font-size: 1.0625rem; }
  .compare .compare__us {
    background: var(--paper);
    border-inline: 1px solid var(--lagoon);
    color: var(--ink);
  }
  .compare thead .compare__us {
    background: var(--lagoon);
    color: var(--paper);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom-color: var(--lagoon);
  }
  .compare tbody tr:last-child .compare__us { border-bottom: 1px solid var(--lagoon); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .compare tbody tr:last-child th, .compare tbody tr:last-child td:not(.compare__us) { border-bottom: 0; }
}


/* ==========================================================================
   14. BLOC TARIF — ticket avec montant en mono
   ========================================================================== */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  color: var(--color-fg);
  overflow: visible;
}
.price-card__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--card-pad);
  padding-bottom: var(--space-6);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* Arc en filigrane dans l'en-tête */
.price-card__head::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -55%;
  width: 90%;
  aspect-ratio: 1000 / 520;
  background: var(--motif) center bottom / contain no-repeat;
  pointer-events: none;
}
.price-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
}
.price-card__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .3em;
  font-family: var(--font-mono);
  font-size: var(--fs-amount);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--color-fg);
  font-variant-numeric: tabular-nums;
}
.price-card__plus { font-weight: 400; color: var(--coral); }
/* Unité réduite collée au nombre (évite l'espace pleine chasse du mono) */
.price-card__sym { margin-left: .08em; font-size: .62em; font-weight: 500; letter-spacing: 0; }
.price-card__amount--text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.02em;
}
.price-card__unit { font-size: var(--fs-sm); color: var(--color-fg-muted); }
.price-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--card-pad);
  padding-top: var(--space-5);
}
.price-card__note { font-size: var(--fs-sm); color: var(--color-fg-muted); }
.price-card .ticket__tear { --ticket-hole: var(--color-bg); }
.price-card--featured .price-card__head {
  background: var(--lagoon);
  color: var(--paper);
  --color-fg: var(--paper);
  --color-fg-muted: var(--muted-on-dark);
  --color-accent: var(--mint);
  --motif: var(--arc-motif-dark);
}


/* ==========================================================================
   15. SIMULATEUR — data-calculator (voir main.js)
   ========================================================================== */
.calculator {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}
@media (min-width: 56rem) {
  .calculator { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
.calculator__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.calculator__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; }
.calculator__field { display: flex; flex-direction: column; gap: var(--space-3); }
.calculator__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.calculator__label { font-weight: 600; color: var(--ink); }
.calculator__value {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--lagoon);
  font-variant-numeric: tabular-nums;
}
.calculator__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.calculator__results {
  --color-bg: var(--lagoon);
  --color-fg: var(--paper);
  --color-fg-muted: var(--muted-on-dark);
  --color-border: rgba(255, 253, 248, .18);
  --color-border-strong: rgba(255, 253, 248, .32);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--lagoon) var(--arc-motif-dark) right -40% bottom -30% / 110% auto no-repeat;
  color: var(--paper);
}
.calculator__results .receipt__row { font-size: .9375rem; }
.calculator__results .receipt__row > :last-child { color: var(--paper); }
.calculator__net {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 2px dashed var(--color-border-strong);
}
.calculator__net-label { font-size: var(--fs-sm); color: var(--muted-on-dark); }
.calculator__net-value {
  font-family: var(--font-mono);
  font-size: var(--fs-amount);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.05em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.calculator__disclaimer { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted-on-dark); }
.calculator__quote {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 60, .16);
  color: var(--paper);
  font-size: var(--fs-sm);
}
.calculator__quote strong { color: #FFB4A3; }
.calculator__quote a { color: var(--mint); font-weight: 600; }
.calculator__quote a:hover { color: var(--paper); }

/* Curseur (input range) — piste remplie via --fill (mis à jour par main.js) */
.range {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--lagoon) 0 var(--fill), var(--sand-2) var(--fill) 100%);
}
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--sand-2); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--lagoon); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 2px solid var(--lagoon);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(15, 22, 20, .2);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid var(--lagoon);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(15, 22, 20, .2);
}
.range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(14, 97, 88, .14); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--lagoon-2); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--lagoon-2); }


/* ==========================================================================
   16. FAQ — <details>/<summary> animés
   ========================================================================== */
.faq {
  border-top: 1px solid var(--color-border-strong);
}
.faq__item {
  border-bottom: 1px solid var(--color-border-strong);
}
/* Le libellé reste dans le flux en ligne (pas de flex sur le texte) : un <em>
   ou un <span> dans la question ne casse pas la ligne. L'icône est placée en
   absolu à droite, dans la réserve de padding. */
.faq__question {
  position: relative;
  display: block;
  padding: var(--space-5) calc(32px + var(--space-5)) var(--space-5) 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--color-fg);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ""; }
.faq__question:hover { color: var(--color-accent); }
.faq__question:focus-visible { outline-offset: 4px; }
/* Icône + → − */
.faq__icon {
  position: absolute;
  top: calc(var(--space-5) - .1em);
  right: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  transition: background-color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--coral); border-color: var(--coral); color: var(--ink); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer {
  max-width: 46rem;
  padding: 0 0 var(--space-6);
  color: var(--color-fg-soft);
}
.faq__answer > * + * { margin-top: var(--space-3); }
.faq__answer ul { padding-left: 1.2em; }
.faq__answer ol { padding-left: 1.4em; }
.faq__answer li + li { margin-top: .35em; }
.faq__answer li::marker { color: var(--color-accent); }
.faq__answer ol > li::marker { font-family: var(--font-mono); font-size: .85em; }

/* Animation d'ouverture : hauteur (navigateurs récents) + fondu (tous) */
.faq__item::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size var(--dur) var(--ease-out), content-visibility var(--dur) allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
.faq__item[open] .faq__answer { animation: faq-in var(--dur-slow) var(--ease-out); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Groupe de FAQ par thème */
.faq-group + .faq-group { margin-top: var(--space-8); }
.faq-group__title { margin-bottom: var(--space-5); font-size: var(--fs-h3); }


/* ==========================================================================
   17. FORMULAIRES — data-mailto-form (voir main.js)
   ========================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.form__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full, .form__grid > fieldset { grid-column: 1 / -1; }
}
.form__section {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form__section + .form__section { padding-top: var(--space-6); border-top: 2px dashed var(--color-border-strong); }
.form__legend {
  float: left;   /* sort la légende de la bordure du fieldset */
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 560;
}
.form__legend + * { clear: both; }
.form__legend-num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; }
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.form__legal { font-size: var(--fs-xs); color: var(--color-fg-muted); max-width: 42em; }
/* Mention « champs obligatoires » en tête de formulaire */
.form__required-note { font-size: var(--fs-sm); color: var(--color-fg-muted); }
.form__required-note .field__req { margin: 0 .1em; }
/* Réassurance en pied de formulaire (pièces d'identité → Stripe) */
.form__assurance {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--color-fg-soft);
}
.form__assurance svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .1em;
  color: var(--color-accent);
}
.form__assurance strong { display: block; color: var(--color-fg); }

/* Carte qui contient un formulaire (fond papier sur page sable) :
   .form-card > .form-card__head (titre + texte) + form.form + .form-success */
.form-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(1.25rem, .75rem + 2.5vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.form-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 2px dashed var(--color-border-strong);
}
.form-card__title { font-size: var(--fs-h3); }
.form-card__text { color: var(--color-fg-muted); }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.field__label {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-fg);
}
.field__req { color: var(--coral-ink); margin-left: .15em; }
.field__optional { font-weight: 400; color: var(--color-fg-muted); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-sm); line-height: 1.45; color: var(--color-fg-muted); }

/* Sélecteur de base à faible spécificité (:where → 0,1,0) : les états
   .field.is-invalid / .is-valid et les variantes (.field__affix…) l'emportent
   sans !important. */
.field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea),
.input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem; /* ≥ 16px : évite le zoom iOS */
  line-height: 1.4;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #7B8580; opacity: 1; }
.field :where(input, select, textarea):where(:hover:not(:focus)) { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  border-color: var(--lagoon);
  box-shadow: var(--ring);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1.15rem;
  cursor: pointer;
}
/* Préfixe / suffixe ($, https://) */
.field__affix { position: relative; display: flex; align-items: center; }
.field__affix > span {
  position: absolute;
  left: 1rem;
  font-family: var(--font-mono);
  color: var(--muted);
  pointer-events: none;
}
.field__affix > input { padding-left: 2.1rem; }
/* Suffixe (%, $…) à droite du champ : .field__affix.field__affix--suffix */
.field__affix--suffix > span { left: auto; right: 1rem; }
.field__affix--suffix > input { padding-left: 1rem; padding-right: 2.75rem; }

/* États */
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea,
.field [aria-invalid="true"] {
  border-color: var(--coral-ink);
  background-color: #FFF8F5;
}
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(184, 54, 28, .16); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--lagoon-2); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: .45em;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--coral-ink);
}
.field__error::before {
  content: "";
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-top: .12em;
  background: currentColor;
  -webkit-mask: var(--icon-alert) center / contain no-repeat;
  mask: var(--icon-alert) center / contain no-repeat;
}
.field__error:empty { display: none; }

/* Case à cocher / bouton radio personnalisés
   <label class="check"><input type="checkbox" …><span class="check__label">…</span></label> */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--color-fg);
  cursor: pointer;
}
.check input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: .1em 0 0;
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.check input[type="radio"] { border-radius: 50%; }
.check input::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--paper);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.check input[type="radio"]::after { width: 10px; height: 10px; border-radius: 50%; -webkit-mask: none; mask: none; }
.check input:checked { background: var(--lagoon); border-color: var(--lagoon); }
.check input:checked::after { transform: scale(1); }
.check input:hover { border-color: var(--ink); }
.check input:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--lagoon); }
.field.is-invalid .check input { border-color: var(--coral-ink); }
.check-group { display: grid; gap: var(--space-3); }
.check-group--inline { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
/* Variante « tuile » : choix radio en cartes */
.check--tile {
  align-items: center;
  padding: var(--space-4);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-weight: 500;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.check--tile:hover { border-color: var(--ink); }
.check--tile:has(input:checked) { border-color: var(--lagoon); background: var(--mint-soft); }
.check--tile:has(input:focus-visible) { border-color: var(--lagoon); box-shadow: var(--ring); }
.field.is-invalid .check--tile { border-color: var(--coral-ink); }
/* Choix courts (oui / non) en tuiles côte à côte */
.check-group--tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 24rem;
}
/* Liens dans le libellé d'une case à cocher */
.check__label a { font-weight: 500; }

/* Groupe de boutons radio présenté comme un champ :
   <fieldset class="field field--choice" [data-label="Libellé e-mail"]>
     <legend class="field__label">Question <span class="field__req" aria-hidden="true">*</span></legend>
     <div class="check-group check-group--tiles">…</div>
     <p class="field__hint">…</p>
   </fieldset>
   La légende (sortie du flux du fieldset par float) devient un élément
   ordinaire : le gap du .field s'applique comme pour un <label>. Dans
   l'e-mail, le libellé du groupe = data-label du fieldset, sinon la légende ;
   la valeur = libellé visible du bouton coché. */
.field--choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field--choice > legend {
  float: left;
  width: 100%;
  padding: 0;
}
.field--choice > legend + * { clear: both; }
@media (min-width: 40rem) {
  /* un groupe de choix reste sur une colonne, sauf avec .field--full */
  .form__grid > .field--choice:not(.field--full) { grid-column: auto; }
}

/* Champ conditionnel : affiché seulement quand un déclencheur est coché
   <div class="cond">
     … <input type="radio" class="cond__trigger"> …
     <div class="field cond__target">… <textarea data-cond-required> …</div>
   </div>
   CSS (:has) + main.js (attribut hidden) : le champ masqué est ignoré par la
   validation ; data-cond-required le rend obligatoire quand il est affiché.
   Sans JS ni :has(), le champ reste visible et facultatif. */
.cond {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}
@media (min-width: 40rem) {
  .form__grid > .cond { grid-column: 1 / -1; }
}
@supports selector(:has(*)) {
  .cond:not(:has(.cond__trigger:checked)) > .cond__target { display: none; }
  .cond:has(.cond__trigger:checked) > .cond__target { animation: cond-in var(--dur) var(--ease-out); }
}
@keyframes cond-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.cond__target {
  padding-left: var(--space-4);
  border-left: 2px dashed var(--color-border-strong);
}

/* Message de confirmation (affiché par main.js) */
.form-success {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid rgba(11, 74, 68, .2);
  border-radius: var(--radius-lg);
  background: var(--mint-soft);
  color: var(--ink);
}
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 2px solid var(--lagoon-2); outline-offset: 4px; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lagoon);
  color: var(--mint);
}
.form-success__icon::before {
  content: "";
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
.form-success__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; color: var(--ink); }
.form-success p { color: var(--ink-2); }


/* ==========================================================================
   18. NOTES, ALERTES, CALLOUT
   ========================================================================== */
.note {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(11, 74, 68, .16);
  border-radius: var(--radius-sm);
  background: var(--lagoon-soft);
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.55;
}
.note::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .12em;
  background: var(--lagoon);
  -webkit-mask: var(--icon-alert) center / contain no-repeat;
  mask: var(--icon-alert) center / contain no-repeat;
  transform: rotate(180deg); /* « i » d'information */
}
.note__body > * + * { margin-top: var(--space-2); }
.note__title { display: block; font-weight: 650; color: var(--ink); }
.note a { color: var(--lagoon); }
.note--warning {
  border-color: rgba(184, 54, 28, .22);
  background: var(--coral-soft);
}
.note--warning::before { background: var(--coral-ink); transform: none; }
.note--warning .note__title { color: var(--coral-ink); }
.note--success { border-color: rgba(11, 74, 68, .2); background: var(--mint-soft); }
.note--success::before { -webkit-mask-image: var(--icon-check); mask-image: var(--icon-check); transform: none; }
.section--dark .note, .section--lagoon .note { border-color: transparent; }

/* Callout : affirmation forte, éditoriale */
.callout {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--mint);
  color: var(--ink);
  --color-fg: var(--ink);
  --color-fg-muted: #2F4A42;
  --color-accent: var(--lagoon);
}
.callout::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -38%;
  width: 70%;
  aspect-ratio: 1000 / 520;
  background: var(--arc-motif) center bottom / contain no-repeat;
  pointer-events: none;
}
.callout > * { position: relative; z-index: 1; }
.callout__text {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 2.125rem);
  font-weight: 450;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 28em;
}
.callout__text em { font-style: italic; color: var(--lagoon); font-variation-settings: "SOFT" 100, "WONK" 1; }
.callout__meta { font-size: var(--fs-sm); color: #2F4A42; }
.callout--dark {
  background: var(--ink);
  color: var(--paper);
  --color-fg: var(--paper);
  --color-fg-muted: var(--muted-on-dark);
  --color-accent: var(--mint);
}
.callout--dark::after { background-image: var(--arc-motif-dark); }
.callout--dark .callout__text em { color: var(--mint); }
.callout--dark .callout__meta { color: var(--muted-on-dark); }


/* ==========================================================================
   19. HERO & PAGE-HERO — motif d'arc en filigrane
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(4rem, 3rem + 5vw, 7.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -2px;
  width: max(1100px, 115%);
  aspect-ratio: 1000 / 520;
  transform: translateX(-50%);
  background: var(--motif) center bottom / contain no-repeat;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: 470;
  line-height: 1.02;
  letter-spacing: -.022em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.hero__title em { font-weight: 380; }
.hero__lead { font-size: var(--fs-md); color: var(--color-fg-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-3);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-fg-muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: .5em; }
.hero__facts li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: var(--lagoon-2);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
.section--dark .hero__facts li::before, .hero.section--dark .hero__facts li::before { background: var(--mint); }
.hero__visual { position: relative; }
.hero--center .hero__content { align-items: center; text-align: center; margin-inline: auto; max-width: 52rem; }
.hero--center .hero__lead { margin-inline: auto; }
.hero--center .hero__actions, .hero--center .hero__facts { justify-content: center; }

/* En-tête de page intérieure */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.75rem + 3.5vw, 5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--color-border);
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -2px;
  width: max(640px, 62%);
  aspect-ratio: 1000 / 520;
  background: var(--motif) center bottom / contain no-repeat;
  pointer-events: none;
}
.page-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 50rem; }
.page-hero__title { font-size: var(--fs-h1); }
.page-hero .pills { margin-top: var(--space-2); }
.page-hero__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

/* Fil d'Ariane */
.breadcrumb { font-size: var(--fs-sm); color: var(--color-fg-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4em; color: var(--color-border-strong); }
.breadcrumb a { color: inherit; }
.breadcrumb [aria-current="page"] { color: var(--color-fg); }


/* ==========================================================================
   20. MAQUETTES D'INTERFACE — illustrations produit (montants fictifs)
   ========================================================================== */
.mock { position: relative; margin: 0; }
/* Scène : fenêtre + toast qui déborde en bas à gauche */
.mock__stage { position: relative; padding-bottom: 3.5rem; }
.mock__window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: var(--fs-sm);
  --color-fg: var(--ink);
  --color-fg-muted: var(--muted);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-accent: var(--lagoon);
  --color-accent-soft: var(--lagoon-soft);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}
.mock__dots { display: inline-flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(15, 22, 20, .16); }
.mock__dots i:first-child { background: var(--coral); }
.mock__title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-right: 33px;
}
.mock__body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
@media (min-width: 30rem) { .mock__body { padding: var(--space-5); } }
.mock__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.mock__kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand);
}
.mock__kpi--accent { background: var(--lagoon); border-color: var(--lagoon); color: var(--paper); }
.mock__label { font-size: .75rem; color: var(--muted); }
.mock__kpi--accent .mock__label { color: var(--muted-on-dark); }
.mock__amount {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 1rem + .7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.mock__kpi--accent .mock__amount { color: var(--mint); }
.mock__meta { font-size: .75rem; color: var(--muted); }
.mock__kpi--accent .mock__meta { color: var(--muted-on-dark); }
.mock__section-title {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock__caption {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--color-fg-muted);
  text-align: right;
}

/* Ligne de transaction */
.tx-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.tx {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem var(--space-3);
  padding: .7rem 0;
  border-top: 1px dashed var(--line-strong);
}
.tx:first-child { border-top: 0; }
.tx__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--lagoon);
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
}
.tx__icon svg { width: 18px; height: 18px; }
.tx__main { display: flex; flex-direction: column; min-width: 0; }
.tx__title { font-weight: 600; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx__sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx__end { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.tx__amount {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx .badge { font-size: .6875rem; padding: .15em .6em; }
.tx--dispute .tx__icon { background: var(--coral-soft); color: var(--coral-ink); }

/* Notification « toast » flottante */
.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  width: min(100%, 23rem);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 48px -18px rgba(15, 22, 20, .55);
}
.mock__stage > .toast {
  position: absolute;
  z-index: var(--z-raised);
  left: clamp(-1.5rem, -2vw, 0rem);
  bottom: 0;
  width: min(88%, 23rem);
}
@media (min-width: 64rem) {
  .mock__stage > .toast { left: -2.5rem; }
}
.toast__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--lagoon);
}
.toast__icon svg { width: 22px; height: 22px; }
.toast__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.toast__title { font-weight: 650; font-size: .9375rem; color: var(--paper); }
.toast__time { font-family: var(--font-mono); font-size: .6875rem; color: var(--muted-on-dark); white-space: nowrap; }
.toast__text { margin-top: .2rem; font-size: .8125rem; line-height: 1.45; color: #DCE4E0; }
.toast__text .mono { color: var(--mint); }
/* Entrée animée quand la maquette apparaît (classe .reveal sur .mock) */
@media (prefers-reduced-motion: no-preference) {
  .js .mock.reveal .toast { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .6s var(--ease-out) .55s, transform .6s var(--ease-out) .55s; }
  .js .mock.reveal.is-visible .toast { opacity: 1; transform: none; }
}

/* Pastille d'état « en direct » */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2BB673; }
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #2BB673;
  opacity: 0;
  animation: live 2.4s var(--ease-out) infinite;
}
@keyframes live {
  0% { transform: scale(.4); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}


/* ==========================================================================
   21. BANDE CTA de fin de page
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--space-6);
  padding: clamp(2rem, 1.25rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--lagoon);
  color: var(--paper);
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -4px;
  width: max(620px, 85%);
  aspect-ratio: 1000 / 520;
  background: var(--arc-motif-dark) center bottom / contain no-repeat;
  pointer-events: none;
}
/* Petit point corail sous la canopée */
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: calc(-18% + max(620px, 85%) / 2 - 7px);
  bottom: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
}
@media (min-width: 60rem) {
  .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; }
}
.cta-band__content { display: flex; flex-direction: column; gap: var(--space-4); max-width: 38rem; }
.cta-band__title { font-size: var(--fs-h2); color: var(--paper); }
.cta-band__text { font-size: var(--fs-md); color: #DCE4E0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-band__fine { font-size: var(--fs-xs); color: var(--muted-on-dark); }


/* ==========================================================================
   22. CONTENU LÉGAL — table des matières sticky + .prose
   ========================================================================== */
.legal {
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-7) var(--section-y);
}
.legal > * { min-width: 0; } /* un tableau large (.table-scroll) défile au lieu d'élargir la page */
@media (min-width: 64rem) {
  .legal { grid-template-columns: 16.5rem minmax(0, 1fr); gap: clamp(3rem, 5vw, 6rem); align-items: start; }
}

.toc {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: var(--fs-sm);
}
@media (min-width: 64rem) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    max-height: calc(100vh - var(--header-h) - var(--space-7));
    overflow: hidden auto;
    padding: 0 0 0 2px;
    border: 0;
    border-radius: 0; /* sans fond ni bordure : un rayon + overflow rognerait le 1er glyphe */
    background: none;
  }
}
.toc__title {
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* Tablette : sommaire sur deux colonnes (il redevient une colonne collante ≥ 64rem) */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .toc__list { display: block; columns: 2; column-gap: var(--space-6); }
  .toc__list li { break-inside: avoid; }
}
.toc__list a {
  display: block;
  padding: .45rem 0 .45rem .9rem;
  border-left: 2px solid var(--color-border);
  color: var(--color-fg-muted);
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.toc__list a:hover { color: var(--color-fg); border-left-color: var(--color-fg); }
.toc__list a[aria-current="true"] { color: var(--lagoon); font-weight: 600; border-left-color: var(--coral); }

.prose {
  max-width: 44rem;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-fg-soft);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { .prose { hyphens: manual; -webkit-hyphens: manual; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 2px dashed var(--color-border-strong);
  font-size: clamp(1.5rem, 1.3rem + .9vw, 2.125rem);
  line-height: 1.15;
  color: var(--color-fg);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose .prose__meta + h2 { margin-top: 1.2em; }
.prose h3 {
  margin-top: 2em;
  font-size: clamp(1.1875rem, 1.125rem + .3vw, 1.375rem);
  color: var(--color-fg);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h4 { margin-top: 1.6em; font-family: var(--font-sans); font-size: 1rem; font-weight: 650; color: var(--color-fg); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose ul > li::marker { color: var(--lagoon); }
.prose ol > li::marker { font-family: var(--font-mono); font-size: .85em; color: var(--lagoon); }
.prose strong { color: var(--color-fg); }
.prose strong, .prose a { -webkit-hyphens: manual; hyphens: manual; } /* pas de césure dans les noms propres ni les liens */
.prose a { font-weight: 500; }
.prose hr { margin-block: 2.5em; border-top: 2px dashed var(--color-border-strong); }
.prose blockquote {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--lagoon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-surface);
  color: var(--color-fg);
}
.prose table { width: 100%; font-size: var(--fs-sm); line-height: 1.5; }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); border-bottom: 2px solid var(--color-fg); }
.prose .table-scroll { margin-top: 1.2em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 39.99rem) {
  .prose th, .prose td { padding-inline: .5rem; }
  .prose th:first-child, .prose td:first-child { padding-left: 0; }
}
/* Adresses dans le fil du texte */
.prose address, .facts address { display: inline; font-style: normal; }
/* Encadrés et faits clés dans le texte long */
.prose .note { line-height: 1.6; }
.prose > * + .note, .prose > .note + * { margin-top: 1.4em; }
.prose .facts { margin-top: 1em; }
.prose__meta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .35em .85em;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  color: var(--color-fg-muted);
}

/* Faits clés (mentions légales) : libellé / valeur */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--color-border);
}
.facts > div {
  display: grid;
  gap: .15rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 40rem) {
  .facts > div { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--space-5); }
}
.facts dt { font-size: var(--fs-sm); color: var(--color-fg-muted); }
.facts dd { margin: 0; color: var(--color-fg); font-weight: 500; }
.facts .mono { font-weight: 500; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* ==========================================================================
   23. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) var(--space-6);
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: max(1000px, 110%);
  aspect-ratio: 1000 / 520;
  transform: translate(-50%, -62%) rotate(180deg);
  background: var(--arc-motif-dark) center bottom / contain no-repeat;
  opacity: .9;
  pointer-events: none;
}
.site-footer a { color: #DCE4E0; text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; }
.site-footer__top {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px dashed rgba(255, 253, 248, .22);
}
@media (min-width: 64rem) {
  .site-footer__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: var(--space-8); }
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 22rem; }
.site-footer__logo { display: inline-flex; border-radius: 6px; }
.site-footer__logo img { height: 32px; width: auto; }
.site-footer__tagline { color: var(--muted-on-dark); }
.site-footer__mail { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--mint) !important; }
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
}
@media (min-width: 40rem) { .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.site-footer__list { display: flex; flex-direction: column; gap: .65rem; list-style: none; margin: 0; padding: 0; }
.site-footer__list a[aria-current="page"] { color: var(--mint); }
.site-footer__bottom {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--muted-on-dark);
}
@media (min-width: 64rem) {
  .site-footer__bottom { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-7); }
  .site-footer__bottom > :last-child { text-align: right; }
}
.site-footer__bottom p { max-width: 52rem; }
.site-footer__bottom > :last-child { margin-left: auto; }


/* ==========================================================================
   24. ANIMATIONS — apparition au scroll
   .reveal sur n'importe quel bloc ; délai optionnel : style="--reveal-delay:.1s"
   ou data-reveal-delay="1|2|3|4" (×80 ms). L'état caché n'existe que si main.js
   s'est exécuté (il pose la classe .js sur <html>) ET si l'utilisateur accepte
   le mouvement : sans JS, tout reste visible.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal[data-reveal-delay="1"] { --reveal-delay: .08s; }
  .js .reveal[data-reveal-delay="2"] { --reveal-delay: .16s; }
  .js .reveal[data-reveal-delay="3"] { --reveal-delay: .24s; }
  .js .reveal[data-reveal-delay="4"] { --reveal-delay: .32s; }
}

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


/* ==========================================================================
   25. UTILITAIRES DE TEXTE & D'ESPACEMENT
   ========================================================================== */
.text-muted { color: var(--color-fg-muted); }
.text-soft { color: var(--color-fg-soft); }
.text-accent { color: var(--color-accent); }
.text-coral { color: var(--coral-ink); }   /* corail lisible sur fond clair */
.section--dark .text-coral, .section--lagoon .text-coral { color: var(--coral); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-7 { margin-top: var(--space-7) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }


/* ==========================================================================
   26. IMPRESSION (pages légales notamment)
   ========================================================================== */
@media print {
  .site-header, .mobile-menu, .nav-toggle, .cta-band, .toc, .skip-link, .hero::before, .page-hero::before { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-footer { background: #fff; color: #000; }
  .site-footer::before { display: none; }
  .site-footer a, .site-footer__bottom { color: #000; }
  .prose { max-width: none; }
  a { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   PAGES — les ajouts propres à une page se placent ci-dessous, chacun dans
   une section précédée d'un commentaire du type « === Page: tarifs === ».
   Réutiliser les tokens (var(--…)) ; aucun style inline dans le HTML.
   ========================================================================== */

/* === Page: styleguide === */
/* Classes .sg-* : réservées à styleguide.html (ne pas utiliser sur le site). */
.sg-section { scroll-margin-top: var(--header-h); }
.sg-section + .sg-section:not(.section--dark):not(.section--lagoon):not(.section--paper) { border-top: 1px solid var(--line); }
.sg-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  max-width: 48rem;
}
.sg-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--color-fg-muted);
}
.sg-title { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.sg-desc { color: var(--color-fg-soft); max-width: 40em; }
.sg-label {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: var(--space-4);
  padding: .3em .7em;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--color-fg-muted);
}
* + .sg-block { margin-top: var(--space-8); }
.sg-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.sg-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sg;
}
.sg-index li { counter-increment: sg; }
.sg-index a {
  display: flex;
  align-items: baseline;
  gap: .6em;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.sg-index a::before { content: counter(sg, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.sg-index a:hover { border-color: var(--ink); transform: translateY(-1px); }

/* Logo */
.sg-logos { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .sg-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sg-logo-tile {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sg-logo-tile img { width: min(100%, 280px); height: auto; }
.sg-logo-tile--sand { background: var(--sand); }
.sg-logo-tile--paper { background: var(--paper); }
.sg-logo-tile--ink { background: var(--ink); border-color: var(--ink); }
.sg-logo-tile--lagoon { background: var(--lagoon); border-color: var(--lagoon); }
.sg-marks { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-6); }
.sg-marks figure { display: grid; justify-items: center; gap: var(--space-2); }
.sg-marks figcaption { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.sg-mark-128 { width: 128px; height: 128px; }
.sg-mark-64 { width: 64px; height: 64px; }
.sg-mark-32 { width: 32px; height: 32px; }
.sg-mark-16 { width: 16px; height: 16px; }

/* Palette */
.sg-swatches { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.swatch { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.swatch__chip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 128px;
  padding: var(--space-4);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}
.swatch__chip small { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; }
.swatch__meta { display: grid; gap: .2rem; padding: var(--space-4); font-size: var(--fs-sm); }
.swatch__name { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.swatch__hex { font-family: var(--font-mono); color: var(--muted); }
.swatch__use { color: var(--ink-2); }
.swatch--ink .swatch__chip { background: var(--ink); color: var(--paper); }
.swatch--lagoon .swatch__chip { background: var(--lagoon); color: var(--mint); }
.swatch--lagoon-2 .swatch__chip { background: var(--lagoon-2); color: var(--paper); }
.swatch--sand .swatch__chip { background: var(--sand); color: var(--ink); border-bottom: 1px solid var(--line); }
.swatch--paper .swatch__chip { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.swatch--coral .swatch__chip { background: var(--coral); color: var(--ink); }
.swatch--mint .swatch__chip { background: var(--mint); color: var(--lagoon); }
.swatch--muted .swatch__chip { background: var(--muted); color: var(--paper); }
.swatch--line .swatch__chip { background: var(--sand) repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px); color: var(--ink); border-bottom: 1px solid var(--line); }
.swatch--coral-ink .swatch__chip { background: var(--paper); color: var(--coral-ink); border-bottom: 1px solid var(--line); }
.sg-contrast { width: 100%; min-width: 40rem; font-size: var(--fs-sm); }
.sg-contrast th, .sg-contrast td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.sg-contrast thead th { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.sg-contrast td:nth-child(3) { font-family: var(--font-mono); white-space: nowrap; }

/* Typographie */
.sg-type { display: grid; border-top: 1px solid var(--line); }
.sg-type__row { display: grid; gap: var(--space-2); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .sg-type__row { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-6); align-items: baseline; } }
.sg-type__meta { font-family: var(--font-mono); font-size: .75rem; line-height: 1.5; color: var(--muted); }

/* Icônes */
.sg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.sg-icons li {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}
.sg-icons svg { width: 28px; height: 28px; color: var(--lagoon); }
.sg-demo-dark { padding: var(--space-6); border-radius: var(--radius); }

/* === Page: accueil (index.html) — préfixe .home-* === */

/* --------------------------------------------------------------------------
   1. Hero — titre sur deux temps + visuel « sous la canopée »
   -------------------------------------------------------------------------- */
.home-hero { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.home-hero .hero__title { max-width: 11em; }
.home-hero__line { display: block; }

/* Visuel : dôme lagon (la canopée) + maquette + pastille de paiement */
.home-visual {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding-top: 4.5rem;
}
.home-visual__dome {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: clamp(3.5rem, 3rem + 1.5vw, 4.5rem);
  left: 30%;
  right: -32%;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 46% 46% var(--radius-lg) var(--radius-lg);
  background: var(--lagoon) var(--arc-motif-dark) 50% 112% / 150% auto no-repeat;
  pointer-events: none;
}
/* Le point corail protégé sous l'arc (comme dans le logo) */
.home-visual__dome::after {
  content: "";
  position: absolute;
  top: clamp(1rem, .6rem + 1.2vw, 1.6rem);
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--coral);
}
.home-visual .mock { position: relative; z-index: 1; }
.home-visual .mock__window { width: 94%; }
.home-visual .mock__title { text-align: left; padding-right: 0; }

/* Pastille « paiement réussi » qui déborde en haut à droite */
.home-chip {
  position: absolute;
  z-index: 2;
  top: -3.1rem;
  left: -.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: min(78%, 16.5rem);
  padding: .65rem .9rem .65rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.home-chip__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--lagoon);
}
.home-chip__icon svg { width: 18px; height: 18px; }
.home-chip__main { display: flex; flex-direction: column; min-width: 0; }
.home-chip__title { font-size: .8125rem; font-weight: 650; line-height: 1.3; }
.home-chip__sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-chip__amount {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--lagoon);
  white-space: nowrap;
}
.home-visual .toast__time { display: none; }
/* ≥ 640 px : pastille à droite, dôme recentré sous la maquette */
@media (min-width: 40rem) {
  .home-visual { padding-top: clamp(3rem, 2rem + 3vw, 4.75rem); }
  .home-visual__dome { left: 14%; right: -9%; }
  .home-chip { top: -1.2rem; left: auto; right: 0; width: min(86%, 19.5rem); }
  .home-visual .toast__time { display: inline; }
}
@media (min-width: 64rem) {
  .home-visual { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .mock.reveal .home-chip { opacity: 0; transform: translateY(-10px); transition: opacity .6s var(--ease-out) .35s, transform .6s var(--ease-out) .35s; }
  .js .mock.reveal.is-visible .home-chip { opacity: 1; transform: none; }
}


/* --------------------------------------------------------------------------
   2. Bande de faits — « ticket » à 4 cases
   -------------------------------------------------------------------------- */
.home-facts {
  padding-block: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  border-block: 1px solid var(--line);
}
.home-facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.home-fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-5) var(--space-4) var(--space-5) 0;
}
.home-fact:nth-child(even) { padding-left: var(--space-4); padding-right: 0; border-left: 2px dashed var(--line-strong); }
.home-fact:nth-child(n+3) { border-top: 2px dashed var(--line-strong); }
.home-fact__label {
  order: 0;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-fact__value {
  order: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.home-fact__sym { margin-left: .06em; font-size: .62em; letter-spacing: 0; }
.home-fact__plus { margin-inline: .12em; font-weight: 400; color: var(--coral); }
.home-fact__unit {
  margin-left: .3em;
  font-family: var(--font-sans);
  font-size: .4em;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--lagoon);
}
.home-fact__text { order: 2; margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
@media (min-width: 64rem) {
  .home-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-fact,
  .home-fact:nth-child(even) { padding: var(--space-2) clamp(1.25rem, 2.4vw, 2.5rem); border-left: 0; }
  .home-fact:nth-child(n+3) { border-top: 0; }
  .home-fact + .home-fact { border-left: 2px dashed var(--line-strong); }
  .home-fact:first-child { padding-left: 0; }
  .home-fact:last-child { padding-right: 0; }
}


/* --------------------------------------------------------------------------
   3. Comment ça marche — réassurances sous les étapes
   -------------------------------------------------------------------------- */
.home-steps-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}


/* --------------------------------------------------------------------------
   4. Couverture des litiges (section lagon en dôme)
   -------------------------------------------------------------------------- */
.home-cover__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 48rem) {
  .home-cover__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cover__grid > .home-ticket { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .home-cover__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.02fr); }
  .home-cover__grid > .home-ticket { grid-column: auto; }
}
.home-cover__grid > .card { height: 100%; }
.home-cover__grid > .card:not(.card--ticket) { gap: var(--space-4); }
.home-cover__grid .card > .badge { align-self: flex-start; }
.home-break { display: block; }
.home-cover__result {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border-strong);
  font-size: .9375rem;
  color: var(--color-fg-soft);
}
.home-cover__result strong { color: var(--color-fg); }

/* Croix en corail sur fond lagon (le thème sombre les passe en menthe par défaut) */
.section--lagoon .home-cover__grid .checklist--cross > li::before { background-color: rgba(255, 90, 60, .2); }
.section--lagoon .home-cover__grid .checklist--cross > li::after { background: var(--coral); }

/* Ticket papier posé sur le lagon : on rétablit le thème clair dans la carte */
.home-ticket {
  --ticket-hole: var(--lagoon);
  --color-fg: var(--ink);
  --color-fg-soft: var(--ink-2);
  --color-fg-muted: var(--muted);
  --color-surface: var(--paper);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-accent: var(--lagoon);
  --color-accent-soft: var(--lagoon-soft);
  border-color: var(--paper);
  background: var(--paper);
  box-shadow: 0 28px 56px -28px rgba(15, 22, 20, .6);
}
.home-ticket .ticket__part { gap: var(--space-3); }
.home-ticket .card__text { color: var(--muted); }
.home-ticket .receipt__row--total > :last-child { color: var(--lagoon); }
.home-ticket__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }

/* Sous-bloc « concrètement » : étapes compactes */
.home-cover__how { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.home-cover__how-title { margin-bottom: var(--space-6); font-size: var(--fs-h3); }
.home-steps-compact .step__num { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); }
.home-steps-compact .step__title { font-size: 1.1875rem; }

/* Pied de section : citation + conditions */
.home-cover__foot {
  display: grid;
  gap: var(--space-6);
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding-top: var(--space-6);
  border-top: 2px dashed var(--color-border-strong);
}
@media (min-width: 60rem) {
  .home-cover__foot { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-8); align-items: start; }
}
.home-quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem);
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--color-fg);
  text-wrap: balance;
}
.home-quote em { font-style: italic; color: var(--mint); font-variation-settings: "SOFT" 100, "WONK" 1; }
.home-cover__fine { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); font-size: .9375rem; color: var(--color-fg-soft); }
.home-cover__fine strong { color: var(--color-fg); }


/* --------------------------------------------------------------------------
   5. Comparatif
   -------------------------------------------------------------------------- */
.home-compare { max-width: 64rem; margin-inline: auto; }
@media (min-width: 48rem) {
  .home-compare .compare td.compare__us { background: var(--mint-soft); }
}
.home-compare__note { margin-top: var(--space-5); font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }


/* --------------------------------------------------------------------------
   6. Pour qui — profils + éligibilité
   -------------------------------------------------------------------------- */
.home-profile__tag {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.home-elig {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 60rem) {
  .home-elig { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); align-items: center; }
}
.home-elig__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.home-elig__intro .h3 { font-size: var(--fs-h3); }
.home-elig__intro p { color: var(--ink-2); }
@media (min-width: 40rem) {
  .home-elig .checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
}


/* --------------------------------------------------------------------------
   7. Ce que nous n'acceptons pas (section encre)
   -------------------------------------------------------------------------- */
.home-refusals .feature { padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.home-refusals .feature__icon { background: rgba(255, 90, 60, .14); color: var(--coral); }
.home-refusals .feature__text a { color: var(--mint); }
.home-refusals__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: var(--space-5) var(--space-6);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-fg-soft);
  font-size: .9375rem;
}
.home-refusals__foot p { max-width: 44rem; }


/* --------------------------------------------------------------------------
   8. Aperçu tarif
   -------------------------------------------------------------------------- */
.home-price .section-head { margin-bottom: 0; }
.home-example { gap: var(--space-4); }
.home-example__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 560; line-height: 1.3; }
.home-example .receipt__row--total > :last-child { color: var(--lagoon); }
.home-price__card { width: 100%; max-width: 30rem; margin-inline: auto; }
@media (min-width: 60rem) { .home-price__card { margin-right: 0; } }


/* --------------------------------------------------------------------------
   9. Mini-FAQ
   -------------------------------------------------------------------------- */
.home-faq { display: grid; gap: var(--space-6); }
.home-faq__head { margin-bottom: 0; }
@media (min-width: 60rem) {
  .home-faq {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: var(--space-5);
    align-items: start;
  }
  .home-faq__head { grid-column: 1; grid-row: 1; }
  .home-faq__list { grid-column: 2; grid-row: 1 / span 2; }
  .home-faq__more { grid-column: 1; grid-row: 2; }
}


/* === Page: tarifs === */

/* Grille des offres : carte principale (gauche) + colonne latérale */
.pricing {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 60rem) {
  .pricing { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-6); }
}
.pricing__side { display: flex; flex-direction: column; gap: var(--space-5); }
/* Tablette : offre « sur devis » et modalités côte à côte sous la carte principale */
@media (min-width: 48rem) and (max-width: 59.99rem) {
  .pricing__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Groupe « Inclus » / « Sans » dans le corps de la carte tarif */
.price-card__group { display: flex; flex-direction: column; gap: var(--space-4); }
.price-card__group + .price-card__group { padding-top: var(--space-5); border-top: 1px dashed var(--color-border-strong); }
.price-card__group .checklist { gap: var(--space-3); }
.price-card__group .checklist strong { font-weight: 600; }
.price-card__group .receipt__row { font-size: .9375rem; }

/* « Comment la commission est prélevée » : libellé mono / texte */
.pricing-facts { display: grid; gap: var(--space-4); margin: 0; }
.pricing-facts > div {
  display: grid;
  gap: .2rem;
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border-strong);
}
.pricing-facts > div:first-child { padding-top: 0; border-top: 0; }
.pricing-facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.pricing-facts dd { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--color-fg); }

/* Ligne d'explication sous le simulateur */
.calculator-note {
  max-width: 54rem;
  margin: var(--space-5) auto 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-fg-muted);
  text-wrap: pretty;
}
@media (min-width: 48rem) { .calculator-note { text-align: center; } }

/* Règles complémentaires (réserve, remboursements, transactions réussies) */
.pricing-rules { margin-top: var(--space-5); }
.pricing-rules .card__title { font-size: 1.1875rem; }

/* Taux effectif par montant de vente (section sombre) */
.pricing-rates { max-width: 26rem; }
.pricing-rates .receipt__row { font-size: .9375rem; }

/* Ticket papier posé sur une section sombre : on rétablit le thème clair.
   Les encoches reprennent la couleur de la section (encre). */
.ticket--light {
  --ticket-hole: var(--ink);
  --color-fg: var(--ink);
  --color-fg-soft: var(--ink-2);
  --color-fg-muted: var(--muted);
  --color-surface: var(--paper);
  --color-surface-2: var(--sand-2);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-accent: var(--lagoon);
  --color-accent-hover: var(--lagoon-2);
  --color-accent-soft: var(--lagoon-soft);
  --color-focus: var(--lagoon-2);
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.ticket--light .ticket__tear::before,
.ticket--light .ticket__tear::after { border-color: transparent; }
@media (min-width: 60rem) {
  .ticket--light { max-width: 30rem; justify-self: end; width: 100%; }
}

/* Montant net mis en avant dans le ticket */
.ticket-net > :last-child {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -.04em;
  color: var(--lagoon);
}


/* === Page: faq === */

/* Mise en page : sommaire (réutilise .legal + .toc) et groupes de questions */
.faq-layout { padding-top: clamp(2.5rem, 2rem + 2.5vw, 4rem); }

/* Sommaire : libellé + nombre de questions */
.faq-toc .toc__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.faq-toc__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-fg-muted);
  font-variant-numeric: tabular-nums;
}
.faq-toc .toc__list a[aria-current="true"] .faq-toc__count { color: var(--coral-ink); }
/* Mobile / tablette : sommaire en deux colonnes dans sa carte */
@media (min-width: 30rem) and (max-width: 63.99rem) {
  .faq-toc .toc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
}

/* En-tête de groupe : petit numéro mono au-dessus du titre */
.faq-group__num {
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--coral-ink);
}

/* Réponses : renvoi vers l'article de référence */
.faq__ref {
  display: flex;
  align-items: flex-start;
  gap: .5em;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border-strong);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.faq__ref::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  margin-top: .12em;
  background: var(--color-fg-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5H14l4 4v13H6.5z'/%3E%3Cpath d='M14 3.5v4h4M9.5 12.5h5.5M9.5 16h5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5H14l4 4v13H6.5z'/%3E%3Cpath d='M14 3.5v4h4M9.5 12.5h5.5M9.5 16h5.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq__ref a { font-weight: 500; }


/* === Page: ouvrir-un-compte === */

.apply {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 64rem) {
  .apply {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    gap: clamp(2rem, 3.5vw, 4rem);
  }
}
.apply__aside {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.apply__aside .card { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.apply__aside .card__title { margin-bottom: var(--space-2); }
.apply__aside .note { font-size: var(--fs-sm); }
.apply__more {
  font-size: var(--fs-sm);
  color: var(--color-fg-muted);
  text-align: center;
}

/* Étapes verticales « Ce qui se passe ensuite » */
.timeline {
  display: grid;
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.timeline__item:last-child { padding-bottom: 0; }
/* Fil pointillé entre deux numéros */
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(1.25rem - 1px);
  top: calc(2.5rem + .35rem);
  bottom: .35rem;
  border-left: 2px dashed var(--color-border-strong);
}
.timeline__item:last-child::before { display: none; }
.timeline__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--lagoon);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1;
  color: var(--lagoon);
}
/* Dernière étape = ce qui est « couvert » : pastille pleine */
.timeline__item:last-child .timeline__num {
  border-color: var(--lagoon);
  background: var(--lagoon);
  color: var(--mint);
}
.timeline__body { padding-top: .45rem; min-width: 0; }
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.timeline__text {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--color-fg-muted);
}

/* Rappel du tarif dans la colonne (price-card compacte) */
.apply-price .price-card__head { gap: var(--space-2); padding-bottom: var(--space-5); }
.apply-price .price-card__name { font-size: var(--fs-h4); font-weight: 560; }
.apply-price .price-card__amount { font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); margin-top: var(--space-2); }
.apply-price .price-card__body { gap: var(--space-4); padding-top: var(--space-4); }
.apply-price .checklist { font-size: var(--fs-sm); gap: var(--space-2); }
.apply-price .checklist > li { padding-left: 1.75rem; }
.apply-price .checklist > li::before { width: 1.15rem; height: 1.15rem; top: .15em; }
.apply-price .checklist > li::after { width: .7rem; height: .7rem; left: .225rem; top: calc(.15em + .225rem); }
.apply-price .btn--ghost { align-self: flex-start; }

/* Conditions d'éligibilité */
.apply-eligibility .checklist { font-size: .9375rem; margin-block: var(--space-2) var(--space-4); }


/* === Page: contact === */

.contact-layout {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 64rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
    gap: clamp(2rem, 3.5vw, 4rem);
  }
}
.contact-aside {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.contact-aside .card { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.contact-aside .note { font-size: var(--fs-sm); }

.contact-list {
  display: grid;
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
}
.contact-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.contact-list__item + .contact-list__item { border-top: 1px dashed var(--color-border-strong); }
.contact-list__item:last-child { padding-bottom: 0; }
.contact-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon-tile svg { width: 22px; height: 22px; }
.contact-list__label {
  margin-bottom: .2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.contact-list__value { color: var(--color-fg); line-height: 1.5; }
.contact-list__value a { font-weight: 500; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }
.contact-list__meta { margin-top: .2rem; font-size: var(--fs-sm); color: var(--color-fg-muted); }


/* === Page: pages légales (mentions, CGU, confidentialité, remboursement, activités interdites) === */

/* Titres longs (CGU) : un cran sous le h1 standard */
.page-hero--legal .page-hero__title { font-size: clamp(2.25rem, 1.55rem + 2.9vw, 4rem); }
.page-hero--legal .lead { font-size: var(--fs-base); color: var(--color-fg-muted); max-width: 44em; }

/* Tableaux à deux colonnes (finalité / base légale, donnée / durée) */
.legal .prose td:first-child { width: 48%; color: var(--color-fg); font-weight: 500; }


/* === Page: 404 === */

.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 5vw, 7.5rem);
  text-align: center;
}
/* Halo d'arcs discret derrière l'illustration uniquement (ne croise pas le texte) */
.notfound::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: clamp(1rem, 4vw, 3rem);
  width: min(56rem, 140%);
  aspect-ratio: 1000 / 520;
  transform: translateX(-50%);
  background: var(--motif) center bottom / contain no-repeat;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 75%);
  mask-image: linear-gradient(#000 35%, transparent 75%);
}
.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.notfound__visual {
  position: relative;
  width: min(100%, 25rem);
  margin-bottom: var(--space-2);
  color: var(--lagoon);
}
.notfound__visual svg { width: 100%; height: auto; overflow: visible; }
.notfound__dot { fill: var(--coral); }
.notfound__code {
  position: absolute;
  left: 50%;
  bottom: -.06em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 3rem + 6vw, 7.5rem);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--lagoon);
}
.notfound__title { font-size: var(--fs-h1); max-width: 15em; }
.notfound .lead { margin-inline: auto; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }

.notfound__nav { width: 100%; max-width: 56rem; margin-top: var(--space-6); }
.notfound__nav-title {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.notfound__links {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
@media (min-width: 48rem) {
  .notfound__links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
}
.notfound__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--color-fg);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.notfound__link:hover {
  color: var(--color-fg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.notfound__link:focus-visible { border-radius: var(--radius); }
.notfound__link .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.notfound__link .icon-tile svg { width: 22px; height: 22px; }
.notfound__link-title { display: block; font-weight: 600; line-height: 1.3; }
.notfound__link-text { display: block; font-size: var(--fs-sm); line-height: 1.4; color: var(--color-fg-muted); }
.notfound__link .btn__arrow { color: var(--lagoon); transition: transform var(--dur) var(--ease-out); }
.notfound__link:hover .btn__arrow { transform: translateX(3px); }
