/* Teewal 2026 · feuille unique du site vitrine (accueil, moments de vie, villes, pages ville × service, prix, vérifier, pages légales).
   Jetons : dossier de passation « teewal 2026 » (tokens.css), avec les corrections du code (app/src/ui/tokens.css) :
   texte discret #646D68 (4,9:1), bords des champs et puces à 3,2:1, focus visible 2 px, cibles de 44 px au moins.
   Thème : clair par défaut, sombre si le système le demande (sauf data-theme="light") ou si data-theme="dark"
   (choix Clair / Sombre / Automatique du pied de page, mémorisé par assets/theme.js et assets/site.js).
   Propriétés logiques partout (prêt pour l'arabe, de droite à gauche). Pages générées par tools/site-gen/gen-pages.mjs. */

/* ------------------------------------------------------------------ jetons */
:root {
  --color-brand-forest: #1F4D3A;
  --color-brand-strong: #173B2C;
  --color-brand-press: #12301F;
  --color-brand-tint: #E6EFE9;
  --color-brand-tint-2: #D3E3D9;
  --color-brand-text: #1F4D3A;
  --color-ink: #111814;
  --color-ink-2: #2E3833;
  --color-muted: #55615B;
  --color-faint: #646D68;
  --color-line: #E3E6E3;
  --color-field-border: #8A918D;
  --color-surface: #FFFFFF;
  --color-surface-2: #F6F6F3;
  --color-surface-press: #EEF1EE;
  --color-page: #FFFFFF;
  /* Fond d'ambiance commun avec l'app (dégradé « sable → vert ») : fixe au défilement, cartes blanches dessus. */
  --bg-ambient: linear-gradient(135deg, #FEFBF6 0%, #FFFEFC 40%, #FCFDFC 70%, #F6FAF7 100%);
  --color-sand: #F1ECE3;
  --color-warn: #7A4E0C;
  --color-warn-bg: #FBF0DC;
  --color-danger: #9C2F1D;
  --color-danger-bg: #FBE8E4;
  --color-info: #24476B;
  --color-info-bg: #EAF0F6;
  --color-on-brand: #FFFFFF;
  --color-focus: #1F4D3A;
  --color-band: #1F4D3A;
  --color-band-text: #FFFFFF;
  --color-band-muted: #D3E3D9;
  /* Pied de page : toujours sombre (maquette « Accueil v3 »). */
  --foot-bg: #0E1411;
  --foot-line: #2B3530;
  --foot-text: #B9C6BF;
  --foot-strong: #FFFFFF;
  --foot-faint: #93A39A;
  --foot-pill: #1E2722;
  --foot-pill-on: #2E3A34;
  --shadow-ring: 0 0 0 1px rgba(17, 24, 20, .07), 0 1px 2px rgba(17, 24, 20, .05);
  --shadow-lift: 0 0 0 1px rgba(17, 24, 20, .06), 0 8px 24px -6px rgba(17, 24, 20, .12);
  --image-opacity: 1;
  --radius-chip: 8px; --radius-field: 12px; --radius-tile: 16px; --radius-card: 20px; --radius-image: 24px; --radius-hero: 28px; --radius-pill: 999px;
  --motion-enter: 240ms cubic-bezier(.22, 1, .36, 1);
  --motion-press: 150ms cubic-bezier(.23, 1, .32, 1);
  --press-scale: .97;
  --font-sans: "Inter", system-ui, sans-serif;
  --gutter: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-brand-forest: #7CC49C; --color-brand-strong: #95D4B1; --color-brand-press: #A8DDBF;
    --color-brand-tint: #1D3327; --color-brand-tint-2: #24412F; --color-brand-text: #8FD3AE;
    --color-ink: #E6ECE8; --color-ink-2: #C9D3CD; --color-muted: #A3B0A8; --color-faint: #8C9891;
    --color-line: #2A3530; --color-field-border: #6B7871;
    --color-surface: #171F1B; --color-surface-2: #212B26; --color-surface-press: #26312B;
    --color-page: #0F1512; --color-sand: #212921; --bg-ambient: linear-gradient(135deg, #111512 0%, #0F1512 50%, #0F1512 100%);
    --color-warn: #E8B964; --color-warn-bg: #33270F; --color-danger: #F09A88; --color-danger-bg: #3A1C17;
    --color-info: #9DC1E6; --color-info-bg: #1A2633;
    --color-on-brand: #0C1A12; --color-focus: #8FD3AE;
    --color-band: #1D3327; --color-band-text: #E6ECE8; --color-band-muted: #C9D3CD;
    --foot-bg: #0A0F0D;
    --shadow-ring: inset 0 0 0 1px #2A3530; --shadow-lift: inset 0 0 0 1px #2A3530;
    --image-opacity: .82;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-brand-forest: #7CC49C; --color-brand-strong: #95D4B1; --color-brand-press: #A8DDBF;
  --color-brand-tint: #1D3327; --color-brand-tint-2: #24412F; --color-brand-text: #8FD3AE;
  --color-ink: #E6ECE8; --color-ink-2: #C9D3CD; --color-muted: #A3B0A8; --color-faint: #8C9891;
  --color-line: #2A3530; --color-field-border: #6B7871;
  --color-surface: #171F1B; --color-surface-2: #212B26; --color-surface-press: #26312B;
  --color-page: #0F1512; --color-sand: #212921; --bg-ambient: linear-gradient(135deg, #111512 0%, #0F1512 50%, #0F1512 100%);
  --color-warn: #E8B964; --color-warn-bg: #33270F; --color-danger: #F09A88; --color-danger-bg: #3A1C17;
  --color-info: #9DC1E6; --color-info-bg: #1A2633;
  --color-on-brand: #0C1A12; --color-focus: #8FD3AE;
  --color-band: #1D3327; --color-band-text: #E6ECE8; --color-band-muted: #C9D3CD;
  --foot-bg: #0A0F0D;
  --shadow-ring: inset 0 0 0 1px #2A3530; --shadow-lift: inset 0 0 0 1px #2A3530;
  --image-opacity: .82;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .photo { outline-color: oklch(1 0 0 / .1); } }
:root[data-theme="dark"] .photo { outline-color: oklch(1 0 0 / .1); }
@media (prefers-reduced-motion: reduce) {
  :root { --motion-enter: 0ms; --motion-press: 0ms; --press-scale: 1; }
}
@media (max-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-ambient) fixed var(--color-page); color: var(--color-ink); font: 400 16px/1.5 var(--font-sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; } /* titres extra-gras comme l'app (maquette P10) */
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, summary, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: calc(1312px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--color-muted); }
.faint { color: var(--color-faint); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.break { overflow-wrap: anywhere; }
/* Utilitaires (aucun style en ligne dans les pages générées) : !important, ils remplacent d'anciens style="…" et l'emportent comme eux */
.gap-8 { gap: 8px !important; } .gap-12 { gap: 12px !important; } .gap-16 { gap: 16px !important; } .gap-20 { gap: 20px !important; } .gap-24 { gap: 24px !important; } .gap-40 { gap: 40px !important; }
.pt-0 { padding-block-start: 0 !important; } .pt-8 { padding-block-start: 8px !important; }
.legal-wrap { max-width: calc(760px + 2 * var(--gutter)) !important; margin-inline: 0 !important; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 50; background: var(--color-ink); color: var(--color-page); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { inset-inline-start: 8px; }
/* Photos : un ratio fixe par emplacement (héros d'accueil 5:4, héros des pages 3:2, cartes « moments » 4:3, famille et garanties 4:3,
   « Mes proches » 16:9), recadrage object-fit: cover, place réservée par width/height + aspect-ratio (aucun décalage au chargement).
   Liseré de 1 px à faible opacité, noir pur en clair, blanc pur en sombre (better-ui). */
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; opacity: var(--image-opacity); background: var(--color-surface-2); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }

/* Typographie */
/* Sur-titre en pastille (même forme que l'en-tête de l'accueil et de Moments, .mo-tag) : point vert, fond teinté, casse normale. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; width: fit-content; padding: 6px 12px 6px 8px; border-radius: var(--radius-pill); background: var(--color-brand-tint); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--color-brand-text); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand-forest); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-brand-forest) 22%, transparent); }
.display { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.0375em; }
.h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.033em; }
.h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.028em; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.017em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--color-ink-2); max-width: 600px; }
.small-note { font-size: 14px; color: var(--color-muted); }

/* ------------------------------------------------------------------ boutons, puces, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 0; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--motion-press), background-color 150ms ease-out; }
.btn:active { transform: scale(var(--press-scale)); }
.btn svg { flex: none; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--color-brand-forest); color: var(--color-on-brand); }
.btn-primary:active { background: var(--color-brand-press); }
.btn-secondary { background: var(--color-surface); color: var(--color-brand-text); box-shadow: inset 0 0 0 1px var(--color-field-border); }
.btn-secondary:active { background: var(--color-surface-press); }
.btn-quiet { background: transparent; color: var(--color-brand-text); }
.btn-quiet:active { background: var(--color-brand-tint-2); }
.btn-inverse { background: var(--color-surface); color: var(--color-brand-text); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--color-brand-strong); }
  .btn-secondary:hover { background: var(--color-surface-2); }
  .btn-quiet:hover { background: var(--color-brand-tint); }
  .btn-inverse:hover { background: var(--color-brand-tint); }
}
.link-go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--color-brand-text); text-decoration: none; }
.link-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.go { font-weight: 600; color: var(--color-brand-text); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-field-border); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform var(--motion-press), background-color 150ms ease-out; }
.chip svg { color: var(--color-brand-text); flex: none; }
.chip:active { transform: scale(var(--press-scale)); }
@media (hover: hover) { .chip:hover { background: var(--color-brand-tint); } }
.chip-on, .chip[aria-current] { background: var(--color-ink); color: var(--color-page); box-shadow: none; }
.chip-on svg, .chip[aria-current] svg { color: inherit; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-warn, .ex { background: var(--color-warn-bg); color: var(--color-warn); }
.badge-solid { background: var(--color-brand-forest); color: var(--color-on-brand); }
.badge-brand { background: var(--color-brand-tint); color: var(--color-brand-text); }
.ex { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; font-style: normal; }
.ex::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { align-self: flex-start; }

.card { background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-ring); }
.pico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--color-brand-tint); color: var(--color-brand-text); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-tile); background: var(--color-brand-tint); color: var(--color-ink); }
.callout svg { flex: none; color: var(--color-brand-text); margin-block-start: 2px; }
.callout strong { display: block; }
.callout .muted { color: var(--color-ink-2); }

/* ------------------------------------------------------------------ en-tête */
.site-head { position: relative; z-index: 20; background: transparent; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.head-left { display: flex; align-items: center; gap: 40px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: .26em; min-height: 44px; font-size: 22px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; color: var(--color-ink); }
.logo-mark { width: 1.25em; height: 1.25em; flex: none; transform: translateY(.04em); }
.logo-dot { fill: var(--color-brand-forest); }
.site-foot .logo-dot { fill: #7CC49C; }
.nav-main { display: flex; align-items: center; gap: 22px; }
.nav-main a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.nav-main a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }
.head-right { display: flex; align-items: center; gap: 12px; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--color-muted); text-decoration: none; border-radius: var(--radius-pill); }
.lang-link:hover { color: var(--color-ink); background: var(--color-surface-2); }
.langs { display: inline-flex; align-items: center; }
.langs details { position: relative; }
.langs summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--color-muted); cursor: pointer; list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs details ul { position: absolute; inset-inline-end: 0; top: 100%; z-index: 30; list-style: none; padding: 8px; min-width: 180px; background: var(--color-surface); border-radius: var(--radius-tile); box-shadow: var(--shadow-lift); }
.langs details li a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }

/* Menu mobile (moins de 1024 px) : <details>, fonctionne sans JavaScript. */
.mnav { display: none; }
.mnav > summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-pill); cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--color-ink); }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav .when-open { display: none; }
.mnav[open] > summary { background: var(--color-ink); color: var(--color-page); padding: 0 16px; }
.mnav[open] .when-open { display: inline-flex; align-items: center; gap: 8px; }
.mnav[open] .when-closed { display: none; }
.mnav-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--color-surface); border-block: 1px solid var(--color-line); padding: 0 var(--gutter) 24px; box-shadow: 0 16px 32px -12px rgba(17, 24, 20, .18); }
.mnav-panel > ul { list-style: none; }
.mnav-panel > ul > li { border-block-end: 1px solid var(--color-line); }
.mnav-panel > ul a { display: flex; align-items: center; gap: 14px; min-height: 64px; font-size: 19px; font-weight: 500; text-decoration: none; color: var(--color-ink); }
.mnav-panel > ul a > svg:first-child { color: var(--color-brand-text); flex: none; }
.mnav-panel > ul a > svg:last-child { margin-inline-start: auto; color: var(--color-muted); }
.mnav-panel .mnav-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 64px; font-size: 17px; }
.mnav-panel .mnav-langs svg { color: var(--color-muted); }
.mnav-panel .mnav-langs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--color-brand-text); }
.mnav-panel .btn { width: 100%; margin-block-start: 16px; }
.mnav-panel .mnav-login { display: none; }
@media (max-width: 1439px) { /* menu complet seulement quand il tient (6 liens + langue, thème, connexion, demande) */
  .nav-main, .head-right .lang-switch { display: none; }
  .mnav { display: block; }
}
/* Mobile : le bouton principal reste visible, en version compacte ; « Se connecter » passe dans le menu. */
@media (max-width: 640px) {
  .site-head .wrap { gap: 8px; }
  .head-right { gap: 4px; }
  .head-right .head-login { display: none; }
  .mnav-panel .mnav-login { display: block; }
  .head-right .head-ask { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 359px) { .head-right .head-ask { padding: 0 10px; font-size: 13px; } }

/* Fil d'Ariane */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; color: var(--color-muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 8px; color: var(--color-faint); }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--color-ink); }

/* ------------------------------------------------------------------ sections */
.sec { padding-block: 80px; }
.sec-tight { padding-block: 56px; }
.band-surface { background: transparent; } /* le dégradé de fond passe à travers */
.band-sand { background: color-mix(in srgb, var(--color-surface) 45%, transparent); } /* voile clair : sépare les sections sans couper le dégradé */
/* Sombre : les bandes alternées gardent un fond distinct et un filet haut et bas, pour rester repérables. */
:root[data-theme="dark"] :is(.band-surface, .band-sand) { box-shadow: inset 0 1px 0 var(--color-line), inset 0 -1px 0 var(--color-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.band-surface, .band-sand) { box-shadow: inset 0 1px 0 var(--color-line), inset 0 -1px 0 var(--color-line); } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-block-end: 40px; }
.sec-head > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.sec-head > p, .sec-head .aside { max-width: 420px; color: var(--color-muted); }
.sec-head .aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: end; }
@media (max-width: 640px) {
  .sec { padding-block: 56px; }
  .sec-head { margin-block-end: 28px; }
  .sec-head .aside { align-items: flex-start; text-align: start; }
}

/* ------------------------------------------------------------------ accueil · héros */
/* Le héros et « Comment ça marche » partagent le fond de page : pas de marge basse ici, la section suivante donne seule le rythme (80 px). */
.hero { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 608fr); gap: 64px; padding-block: 40px 0; }
.hero-text { display: flex; flex-direction: column; gap: 28px; padding-block-start: 32px; }
.hero-text h1 { max-width: 640px; }
.ask { display: flex; align-items: flex-end; gap: 8px; padding: 8px; background: var(--color-surface); border-radius: var(--radius-image); box-shadow: var(--shadow-lift); scroll-margin-top: 24px; }
.ask label { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 10px 16px; min-width: 0; border-radius: 16px; }
.ask label > span:first-child { font-size: 12px; font-weight: 600; color: var(--color-muted); }
.ask label:focus-within { box-shadow: inset 0 0 0 2px var(--color-focus); }
.ask input { width: 100%; min-width: 0; min-height: 28px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--color-ink); }
.ask input::placeholder { color: var(--color-faint); opacity: 1; }
.ask-need { flex: 1 1 auto; }
.ask-to { flex: 0 1 160px; }
.ask-in { display: flex; align-items: center; gap: 6px; }
.ask-in svg { color: var(--color-muted); flex: none; }
.ask-sep { flex: none; width: 1px; height: 40px; align-self: center; background: var(--color-line); }
.ask .btn { flex: none; }
.pay { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: 14px; color: var(--color-muted); }
.pay li { display: inline-flex; align-items: center; gap: 8px; }
.hero-visual { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-visual .photo { aspect-ratio: 5 / 4; border-radius: var(--radius-hero); }
/* Premier écran raconté, en boucle lente : pour chaque trajet, la carte (d'ici), l'arc vers la ville (là-bas), puis la preuve qui
   s'ouvre depuis le point et reste 4 s. Bouton pause (WCAG 2.2.2), pause au survol, au focus et onglet caché. Mouvements réduits :
   première photo fixe, pas de boucle. Sans JavaScript : première photo et son encart. */
.hero-story { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-hero); overflow: hidden; background: var(--color-sand); }
.hero-story .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; z-index: 1; opacity: 0; }
.hero-story .photo.is-shown { opacity: 1; }
/* La preuve naît de la trame de la carte : un masque de points (même pas que la carte, 100 × 80) dont les points grossissent
   jusqu'à se toucher, dans une onde qui part de la ville. Navigateurs sans @property : la photo apparaît d'un coup. */
@property --dot { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --spread { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.js-story.is-live .photo {
  opacity: 1; --dot: 0px; --spread: 0%;
  -webkit-mask-image: radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + .6px)), radial-gradient(circle at var(--cx, 30%) var(--cy, 44%), #000 var(--spread), transparent calc(var(--spread) + 18%));
  mask-image: radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + .6px)), radial-gradient(circle at var(--cx, 30%) var(--cy, 44%), #000 var(--spread), transparent calc(var(--spread) + 18%));
  -webkit-mask-size: 1% 1.25%, 100% 100%; mask-size: 1% 1.25%, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: --spread 1900ms cubic-bezier(.55, 0, .3, 1), --dot 1300ms cubic-bezier(.55, 0, .45, 1) 600ms;
}
.js-story.is-live .photo.is-shown { --spread: 140%; --dot: 5.2px; }
.js-story.is-live .photo.is-settled { -webkit-mask-image: none; mask-image: none; }
.story-legend text { font: 500 12px/1 var(--font-sans); fill: var(--color-muted); }
.story-map { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 500ms ease-out; }
.js-story.is-live .story-map { opacity: 1; }
.story-map img, .story-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-scene { opacity: 0; transition: opacity 300ms ease-out; }
.story-scene.is-on { opacity: 1; }
.story-arc { fill: none; stroke: var(--color-brand-forest); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.story-scene.is-drawn .story-arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms cubic-bezier(.65, 0, .35, 1); }
.story-from { fill: #8FA89A; }
.story-to, .story-halo { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.story-to { fill: var(--color-brand-forest); }
.story-halo { fill: var(--color-brand-forest); fill-opacity: .16; }
.story-scene.is-landed .story-to, .story-scene.is-landed .story-halo { transform: scale(1); transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1); }
.story-label { font: 600 15px/1 var(--font-sans); fill: var(--color-ink); }
.story-label-to { opacity: 0; }
.story-scene.is-landed .story-label-to { opacity: 1; transition: opacity 250ms ease-out; }
.story-toggle { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-end: 12px; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(17, 24, 20, .55); color: #fff; cursor: pointer; transition: background-color 150ms ease-out, transform var(--motion-press); }
.story-toggle:active { transform: scale(var(--press-scale)); }
@media (hover: hover) { .story-toggle:hover { background: rgba(17, 24, 20, .75); } }
.story-toggle[aria-pressed="false"] svg:last-child, .story-toggle[aria-pressed="true"] svg:first-child { display: none; }
.report-chip .t strong, .report-chip .t .m { transition: opacity 250ms ease-out; }
.report-chip.is-changing .t strong, .report-chip.is-changing .t .m { opacity: 0; }
.report-chip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.report-chip .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.report-chip strong { font-size: 14px; font-weight: 600; }
.report-chip span.m { font-size: 13px; color: var(--color-muted); }
@media (max-width: 1100px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 16px 0; }
  .hero-text { gap: 20px; padding: 0; }
  .hero-visual .photo { border-radius: var(--radius-image); }
}
@media (max-width: 640px) {
  .ask { flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: var(--radius-card); }
  .ask-sep { width: auto; height: 1px; margin-inline: 8px; }
  .ask-to { flex: none; }
  .ask .btn { width: 100%; margin-block-start: 8px; }
  .report-chip { padding: 14px 16px; gap: 12px; }
  .report-chip .badge-solid { display: none; }
}

/* Comment ça marche : 4 étapes à filet */
.steps4 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 64px; counter-reset: st; }
.steps4 li { display: flex; flex-direction: column; gap: 10px; padding-block-start: 24px; border-block-start: 2px solid var(--color-ink); counter-increment: st; }
.steps4 li:last-child { border-color: var(--color-brand-forest); }
/* Cinq étapes (Tabaski…) : cinq colonnes, sinon la 5e passe seule dessous et son trait colle à la 1re. */
@media (min-width: 1025px) { .steps4:has(> li:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 32px; } }
.steps4 li::before { content: counter(st, decimal-leading-zero); font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--color-brand-text); }
.steps4 h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.steps4 p { font-size: 15px; color: var(--color-muted); }
@media (max-width: 1024px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; } }
@media (max-width: 640px) {
  .steps4 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps4 li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 4px; padding: 0; border: 0; }
  .steps4 li::before { grid-row: span 2; padding-block-start: 4px; }
}

/* Domaines */
/* Domaines dans le premier écran (sous le formulaire) : grille 4 × 2 (bureau), 2 × 4 (mobile) ; entrée en cascade au chargement. */
.hero-dom { display: flex; flex-direction: column; gap: 12px; }
.hero-dom-title { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--color-muted); }
/* Rangées souples : chaque domaine sur une ligne (« Famille et proches » ne se casse plus en deux dans une colonne fixe). */
.hero-dom .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-dom .chip { white-space: nowrap; padding: 6px 14px; line-height: 1.25; animation: chip-in 360ms cubic-bezier(.22, 1, .36, 1) both; }
.hero-dom li:nth-child(1) .chip { animation-delay: 120ms; } .hero-dom li:nth-child(2) .chip { animation-delay: 160ms; }
.hero-dom li:nth-child(3) .chip { animation-delay: 200ms; } .hero-dom li:nth-child(4) .chip { animation-delay: 240ms; }
.hero-dom li:nth-child(5) .chip { animation-delay: 280ms; } .hero-dom li:nth-child(6) .chip { animation-delay: 320ms; }
.hero-dom li:nth-child(7) .chip { animation-delay: 360ms; } .hero-dom li:nth-child(8) .chip { animation-delay: 400ms; }
.hero-dom .chip svg { transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) { .hero-dom .chip:hover svg { transform: translateY(-2px) rotate(-6deg); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  /* Mobile : une seule rangée qui défile, pour rester dans le premier écran. */
  .hero-dom { gap: 10px; margin-inline: -16px; }
  .hero-dom-title { padding-inline: 16px; }
  .hero-dom .chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .hero-dom .chips::-webkit-scrollbar { display: none; }
  .hero-dom li { flex: none; scroll-snap-align: start; }
  .hero-dom .chip { width: auto; white-space: nowrap; }
}

/* Bouton WhatsApp flottant (toutes les pages) : arrive après le premier écran, deux ondes puis reste calme. */
.wa-fab { position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: var(--radius-pill); background: var(--color-brand-forest); color: var(--color-on-brand); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px -8px rgba(17, 24, 20, .45); animation: fab-in 420ms cubic-bezier(.22, 1, .36, 1) 600ms both; transition: transform var(--motion-press), background-color 150ms ease-out; }
.wa-fab[hidden] { display: none; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--color-brand-forest); animation: fab-ring 1600ms cubic-bezier(.22, 1, .36, 1) 1200ms 2; pointer-events: none; }
.wa-fab:active { transform: scale(var(--press-scale)); }
@media (hover: hover) { .wa-fab:hover { background: var(--color-brand-press); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fab-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-brand-forest) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (max-width: 640px) { .wa-fab { inset-inline-end: 16px; inset-block-end: 16px; width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; } .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media print { .wa-fab { display: none; } }

/* Moments de vie : grille régulière, cartes de même ratio (4:3) ; 4 colonnes, 2 sur tablette ; sur mobile, une colonne
   (page /moments/) ou un rail horizontal à défilement aimanté (accueil). Ordre de lecture = ordre du DOM. */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; list-style: none; }
.mosaic > li { min-width: 0; display: flex; }
.mo { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--color-ink); border-radius: var(--radius-tile); transition: transform var(--motion-press); }
.mo .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-tile); }
.mo .t { display: flex; flex-direction: column; gap: 4px; }
.mo h3, .mo h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.012em; }
.mo p { font-size: 14px; color: var(--color-muted); }
.mo:hover h3, .mo:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.mo:active { transform: scale(.98); }
.mo-more { margin-block-start: 24px; }
@media (max-width: 1024px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
@media (max-width: 640px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mosaic.is-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .mosaic.is-rail > li { scroll-snap-align: start; }
  .mo h3, .mo h2 { font-size: 16px; }
  .mo-more { margin-block-start: 12px; }
}

/* Famille */
.family .wrap { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 560fr); gap: 80px; align-items: center; }
.family .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-image); }
.family-text { display: flex; flex-direction: column; gap: 20px; }
.paid { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.paid-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.paid-h strong { font-size: 16px; }
.paid-m { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.paid-m b { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.paid-m span { color: var(--color-muted); font-size: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--color-line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 66.6%; background: var(--color-brand-forest); border-radius: inherit; }
.parts { list-style: none; display: flex; flex-direction: column; }
.parts li { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.parts li + li { border-block-start: 1px solid var(--color-line); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand-tint); color: var(--color-brand-text); font-size: 13px; font-weight: 600; }
.parts .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.parts .t b { font-size: 15px; font-weight: 600; }
.parts .t span { font-size: 13px; color: var(--color-muted); }
.parts .amt { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.parts svg { color: var(--color-brand-text); flex: none; }
.fake-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-field-border); color: var(--color-brand-text); font-size: 14px; font-weight: 600; background: var(--color-surface); }
@media (max-width: 960px) { .family .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } .family figure { order: 2; } }

/* Mes proches */
.kin-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-block-end: 56px; }
.kin-top .photo { aspect-ratio: 16 / 9; border-radius: var(--radius-image); }
.kin-bottom { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 848fr); gap: 24px; align-items: start; }
.kin-cards { display: flex; flex-direction: column; gap: 16px; }
.kin { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.kin-who { display: flex; align-items: center; gap: 12px; }
.kin-who .avatar { width: 44px; height: 44px; font-size: 14px; }
.kin-who .t { display: flex; flex-direction: column; flex: 1 1 auto; }
.kin-who b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.kin-who span { color: var(--color-muted); font-size: 14px; }
.kin-next { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius-tile); background: var(--color-surface-2); }
.kin-next svg { color: var(--color-brand-text); flex: none; }
.kin-next b { display: block; font-size: 14px; font-weight: 600; }
.kin-next span { font-size: 12px; color: var(--color-muted); }
.sched-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sched-h strong { font-size: 18px; font-weight: 600; }
.sched-h span { font-size: 13px; font-weight: 600; color: var(--color-brand-text); }
.sched { list-style: none; display: flex; flex-direction: column; }
.sched li { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.sched li + li { border-block-start: 1px solid var(--color-line); }
.sched .d { width: 48px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--color-brand-tint); color: var(--color-brand-text); }
.sched .d b { font-size: 20px; font-weight: 600; line-height: 1; }
.sched .d span { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.sched .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* Écran étroit : le bouton passe sous le texte (sinon « Rendez-vous à accompagner » se casse en trois lignes). */
@media (max-width: 420px) { .sched li { flex-wrap: wrap; } .sched .t { flex-basis: calc(100% - 62px); } .sched .fake-btn { margin-inline-start: 62px; min-height: 36px; } }
.sched .t b { font-size: 14px; font-weight: 600; }
.sched .t span { font-size: 12px; color: var(--color-muted); }
.plans-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-block-end: 16px; }
.plans-h h3 { font-size: 24px; letter-spacing: -.017em; }
.plans-h p { font-size: 14px; color: var(--color-muted); }
.plans { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 20px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.plan h4 { font-size: 18px; letter-spacing: -.01em; margin-block-start: 8px; }
.plan p { font-size: 14px; color: var(--color-muted); }
/* Travailler avec Teewal : huit portes d'entrée, 4 colonnes sur grand écran */
.doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doors .plan h3 { font-size: 18px; letter-spacing: -.01em; margin-block-start: 8px; }
.doors .plan .more { margin-block-start: auto; display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; font-weight: 600; color: var(--color-brand-text, var(--color-forest)); text-decoration: none; }
.doors .plan .more:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1023px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .doors { grid-template-columns: 1fr; } }
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-block-start: 12px; font-size: 14px; }
.foot-social a { min-block-size: 44px; display: inline-flex; align-items: center; }
.plan .price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-block-start: auto; }
.plan .price-line b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan .price-line span { font-size: 14px; color: var(--color-muted); }
@media (max-width: 960px) {
  .kin-top { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-block-end: 32px; }
  .kin-bottom { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Garanties */
.promise .wrap { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 720fr); gap: 72px; align-items: start; }
.promise-left { display: flex; flex-direction: column; gap: 24px; }
.promise-left .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-image); }
.promise-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; font-size: 14px; }
.promise-note svg { flex: none; color: var(--color-brand-text); margin-block-start: 1px; }
.promises { list-style: none; counter-reset: pr; }
.promises li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 4px 16px; align-items: start; padding-block: 24px; counter-increment: pr; }
.promises li + li { border-block-start: 1px solid var(--color-line); }
.promises li::before { content: counter(pr, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--color-brand-text); padding-block-start: 4px; }
.promises h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.3; }
.promises p { grid-column: 2; font-size: 15px; color: var(--color-muted); }
.promises svg { grid-row: 1; grid-column: 3; color: var(--color-brand-text); }
@media (max-width: 960px) { .promise .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 640px) {
  .promises li { grid-template-columns: 24px minmax(0, 1fr); padding-block: 18px; }
  .promises li::before { display: none; }
  .promises svg { grid-column: 1; }
  .promises h3 { font-size: 17px; }
}

/* Bandeau final */
.cta-final { padding-block: 64px 96px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 56px 64px; border-radius: var(--radius-hero); background: var(--color-band); color: var(--color-band-text); scroll-margin-top: 24px; }
.cta-band .t { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.cta-band h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.028em; }
.cta-band p { color: var(--color-band-muted); font-size: 17px; }
.cta-band .btn-inverse { min-height: 52px; padding: 0 24px; font-size: 16px; }
.cta-band :focus-visible { outline-color: var(--color-band-text); }
:root[data-theme="dark"] .cta-band .btn-inverse { background: var(--color-brand-forest); color: var(--color-on-brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band .btn-inverse { background: var(--color-brand-forest); color: var(--color-on-brand); } }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; border-radius: var(--radius-image); } .cta-band .btn-inverse { width: 100%; } .cta-final { padding-block: 32px 56px; } }

/* Questions fréquentes (details) */
.faq { border-block-start: 1px solid var(--color-line); }
.faq details { border-block-end: 1px solid var(--color-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--color-muted); transition: transform 200ms ease-out; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-block-end: 20px; color: var(--color-muted); max-width: 760px; }

/* ------------------------------------------------------------------ pied de page */
.site-foot { background: var(--foot-bg); color: var(--foot-text); font-size: 15px; }
.site-foot :focus-visible { outline-color: #8FD3AE; }
.foot-top { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr); gap: 48px 64px; padding-block: 72px 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand .logo { color: var(--foot-strong); font-size: 22px; }
.foot-brand p { max-width: 260px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 2px; }
.foot-cols h2 { font-size: 13px; font-weight: 600; color: var(--foot-strong); margin-block-end: 6px; }
.foot-cols a, .foot-cols .js-help-user { display: inline-flex; align-items: center; min-height: 44px; color: var(--foot-text); text-decoration: none; line-height: 1.3; }
.foot-cols a:hover { color: var(--foot-strong); text-decoration: underline; text-underline-offset: 3px; }
.fr-only { font-size: .9em; color: var(--foot-faint); }
.theme-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block-end: 40px; }
.theme-pick > span { font-size: 13px; font-weight: 600; color: var(--foot-strong); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--foot-pill); box-shadow: inset 0 0 0 1px var(--foot-line); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--foot-text); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--foot-pill-on); color: var(--foot-strong); font-weight: 600; }
.seg button:hover { color: var(--foot-strong); }
.foot-legal { border-block-start: 1px solid var(--foot-line); padding-block: 32px 40px; display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--foot-faint); }
.foot-legal p:first-child { color: var(--foot-text); }
@media (max-width: 860px) { .foot-top { grid-template-columns: minmax(0, 1fr); padding-block: 56px 32px; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .seg button { padding: 0 10px; } }

/* ------------------------------------------------------------------ pages intérieures */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; padding-block: 8px 72px; }
.page-hero .text { display: flex; flex-direction: column; gap: 20px; }
.page-hero .photo { aspect-ratio: 3 / 2; border-radius: var(--radius-hero); }
.page-hero.is-top { align-items: start; }
.page-hero figure { min-width: 0; }
.page-hero.solo { grid-template-columns: minmax(0, 860px); }
.answer { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--color-ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: 15px; color: var(--color-muted); }
.fact { display: inline-flex; align-items: center; gap: 8px; }
.fact svg { color: var(--color-brand-text); flex: none; }
.deadline { display: flex; gap: 14px; align-items: center; margin-block-start: 12px; padding: 16px 20px; }
.deadline > svg { flex: none; color: var(--color-brand-text); }
.deadline strong { display: block; font-size: 14px; }
.deadline span { font-size: 13px; color: var(--color-muted); }
@media (max-width: 900px) { .page-hero { grid-template-columns: minmax(0, 1fr); padding-block: 0 48px; } .page-hero .photo { border-radius: var(--radius-image); } }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.two-col > * { min-width: 0; }
.flow { list-style: none; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-block: 16px; border-block-start: 1px solid var(--color-line); counter-increment: f; }
.flow li::before { content: counter(f); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand-forest); color: var(--color-on-brand); font-size: 13px; font-weight: 600; }
.flow strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.flow span span { color: var(--color-muted); font-size: 15px; }

/* Preuve (extrait de rapport) */
.proof { display: flex; flex-direction: column; gap: 12px; padding: 24px; margin: 0; background: var(--color-surface); color: var(--color-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-ring); }
.proof-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.proof-k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--color-brand-text); }
.proof-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.proof-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: var(--color-surface-2); color: var(--color-brand-text); }
.shot img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 15% 50%; opacity: var(--image-opacity, 1); }
/* Trois cadrages différents de la même photo (plan large, détail, autre détail). */
.shot:nth-child(2) img { transform: scale(1.8); transform-origin: 30% 70%; } .shot:nth-child(3) img { transform: scale(1.6); transform-origin: 85% 25%; }
.shot b { position: absolute; inset-inline-start: 6px; bottom: 6px; padding: 1px 7px; border-radius: 99px; background: var(--color-surface); color: var(--color-ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.proof ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.proof li { display: flex; gap: 10px; align-items: baseline; }
.proof li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-forest); transform: translateY(-1px); }
.proof-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block-start: 10px; border-block-start: 1px solid var(--color-line); font-size: 13px; color: var(--color-muted); }
.proof figcaption { font-size: 13px; color: var(--color-muted); }
.proof-list { display: flex; flex-direction: column; }
.proof-list > div { display: flex; flex-direction: column; gap: 4px; padding-block: 16px; border-block-start: 1px solid var(--color-line); }
.proof-list dt { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.proof-list dt svg { color: var(--color-brand-text); flex: none; }
.proof-list dd { color: var(--color-muted); padding-inline-start: 30px; }

/* Prix (cartes « formule ») */
.prices { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-ring); }
.price.main { box-shadow: inset 0 0 0 2px var(--color-brand-forest); }
.price h3 { font-size: 18px; letter-spacing: -.012em; }
.price .amount { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.price .amount small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--color-muted); }
.price li { display: flex; gap: 8px; }
.price li::before { content: "✓"; color: var(--color-brand-text); font-weight: 700; }
.ex-tag { display: flex; }

/* Calendrier (Tabaski) */
.order { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; scroll-margin-top: 24px; }
.order.solo { grid-template-columns: minmax(0, 860px); }
.order .stack { gap: 16px; }
@media (max-width: 960px) { .order { grid-template-columns: minmax(0, 1fr); } }
.cal { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-ring); scroll-margin-top: 24px; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal caption { text-align: start; font-weight: 600; font-size: 17px; padding-block-end: 8px; }
.cal th { font-size: 12px; font-weight: 600; color: var(--color-muted); padding: 4px 0; }
.cal th abbr { text-decoration: none; }
.cal td { text-align: center; padding: 3px; font-size: 14px; }
.cal td span { display: grid; place-items: center; height: 34px; border-radius: 10px; }
.cal .open span { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-field-border); }
.cal .close span { background: var(--color-ink); color: var(--color-page); font-weight: 600; }
.cal .deliv span { background: var(--color-brand-tint); color: var(--color-brand-text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--color-brand-forest); }
.cal .eid span { background: var(--color-brand-forest); color: var(--color-on-brand); font-weight: 600; }
.cal .past span { color: var(--color-faint); }
.legend { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.legend li { display: flex; gap: 10px; align-items: center; }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.legend .l-open { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-field-border); }
.legend .l-close { background: var(--color-ink); }
.legend .l-deliv { background: var(--color-brand-tint); box-shadow: inset 0 0 0 1px var(--color-brand-forest); }
.legend .l-eid { background: var(--color-brand-forest); }
.cal-note { font-size: 13px; }

/* Formulaire de demande des pages intérieures */
.ask-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ask-card .ask { box-shadow: inset 0 0 0 1px var(--color-field-border); }
.hint { font-size: 14px; color: var(--color-muted); }

/* Liens vers d'autres pages */
.links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.links li { display: flex; }
.links li > a { flex: 1 1 auto; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 18px; border-radius: var(--radius-tile); background: var(--color-surface); box-shadow: var(--shadow-ring); text-decoration: none; font-weight: 500; }
.links a:hover { background: var(--color-brand-tint); }
.links a span[aria-hidden] { color: var(--color-brand-text); font-weight: 600; }
.hoods { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hoods li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); font-size: 14px; font-weight: 500; }
.local { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-tile); background: var(--color-surface); box-shadow: var(--shadow-ring); }
.local svg { flex: none; color: var(--color-brand-text); margin-block-start: 2px; }
.local strong { display: block; }

/* Prix à {ville} : carte récapitulative (maquette « Prix à Thiès ») et tarifs de référence */
.price-sum { list-style: none; padding: 8px 24px; }
.price-sum li + li { border-block-start: 1px solid var(--color-line); }
.price-sum a { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-block: 14px; text-decoration: none; color: var(--color-ink); }
.price-sum .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.price-sum .t b { font-size: 16px; font-weight: 600; }
.price-sum .t span { font-size: 13px; color: var(--color-muted); }
.price-sum .p { display: flex; flex-direction: column; align-items: flex-end; text-align: end; gap: 2px; }
.price-sum .p b { font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-sum .p span { font-size: 13px; color: var(--color-muted); }
.price-sum a:hover .t b { text-decoration: underline; text-underline-offset: 3px; }
.price-q { display: flex; flex-direction: column; gap: 16px; padding-block: 40px 0; scroll-margin-top: 24px; }
.price-q + .price-q { border-block-start: 1px solid var(--color-line); }
.price-q h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.price-q h3 { font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-field); background: var(--color-surface); box-shadow: var(--shadow-ring); }
.ref-table, .legal-doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ref-table th, .ref-table td, .legal-doc th, .legal-doc td { text-align: start; vertical-align: top; padding: 12px 14px; border-block-end: 1px solid var(--color-line); min-width: 130px; }
.ref-table thead th, .legal-doc thead th { background: var(--color-surface-2); font-weight: 600; }
.ref-table tr:last-child td, .legal-doc tr:last-child td { border-block-end: 0; }
.ref-table a { color: var(--color-brand-text); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Vérifier un rapport */
.verify-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1025px) { .verify-grid { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 64px; } .verify-how { position: sticky; top: 96px; } }
.verify-how p { color: var(--color-muted); }
.verify-card { padding: 28px; display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.verify-form { display: flex; flex-direction: column; gap: 20px; }
.verify-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.verify-form input:not([type="file"]) { min-height: 48px; padding: 10px 14px; border: 1px solid var(--color-field-border); border-radius: var(--radius-field); background: var(--color-surface); color: var(--color-ink); font-size: 16px; font-weight: 400; }
.vr-file { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.drop { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; padding: 12px 16px; border: 1px dashed var(--color-field-border); border-radius: var(--radius-field); background: var(--color-surface-2); font-weight: 400; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.drop input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { background: var(--color-brand-tint); border-color: var(--color-brand-text); }
.drop:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.drop-ic { display: grid; place-items: center; inline-size: 40px; block-size: 40px; flex: none; border-radius: 12px; background: var(--color-surface); color: var(--color-brand-text); }
.drop-t { display: flex; flex-direction: column; flex: 1 1 10rem; min-width: 0; }
.drop-t b { color: var(--color-brand-text); font-weight: 600; }
.drop-t span, .drop-name { font-size: 14px; color: var(--color-muted); }
.drop-name { overflow-wrap: anywhere; }
.drop.has-file .drop-name { color: var(--color-ink); font-weight: 600; }
.verify-form .hint { font-weight: 400; }
.verify-form .btn { align-self: flex-start; }
.verify-out { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.verify-out:empty { display: none; }
.verify-out .res { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-ring); }
.verify-out .res strong { font-size: 22px; letter-spacing: -.02em; }
.verify-out .res.ok { background: var(--color-brand-tint); box-shadow: none; color: var(--color-ink); }
.verify-out .res.ok strong { color: var(--color-brand-text); }
.verify-out .res.ok::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--color-brand-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / 26px no-repeat; }
.verify-out .res[role="alert"] { background: var(--color-warn-bg); color: var(--color-warn); box-shadow: none; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--color-muted); max-width: 720px; }
.privacy svg { flex: none; color: var(--color-brand-text); margin-block-start: 2px; }

/* Pages légales */
.draft-banner { display: flex; gap: 10px; align-items: flex-start; margin-block: 8px 24px; padding: 14px 16px; border-radius: var(--radius-tile); background: var(--color-warn-bg); color: var(--color-warn); font-size: 15px; }
.draft-banner svg { flex: none; margin-block-start: 1px; }
.draft-banner a { color: inherit; font-weight: 600; }
.tr-note { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-block-end: 20px; padding: 12px 16px; border-radius: var(--radius-tile); background: var(--color-brand-tint); font-size: 14px; }
.tr-note a { font-weight: 600; color: var(--color-brand-text); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.legal-layout { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 56px; align-items: start; padding-block-end: 56px; }
.legal-layout > * { min-width: 0; }
.legal-layout:not(:has(.legal-toc)) { grid-template-columns: minmax(0, 1fr); }
.legal-toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 32px); overflow: auto; padding: 20px; font-size: 14px; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-ring); }
.legal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-block: -10px; cursor: pointer; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary svg { flex: none; color: var(--color-muted); transition: transform 200ms ease-out; }
.legal-toc details[open] summary svg { transform: rotate(180deg); }
.legal-toc details[open] summary { margin-block-end: 0; }
.legal-toc ol { list-style: none; display: flex; flex-direction: column; margin-block-start: 8px; }
.legal-toc a { display: flex; align-items: center; min-height: 36px; color: var(--color-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--color-ink); text-decoration: underline; }
.legal-doc { max-width: 72ch; display: flex; flex-direction: column; gap: 14px; line-height: 1.65; }
.legal-doc h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.legal-doc h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin-block-start: 28px; scroll-margin-top: 16px; }
.legal-doc h3, .legal-doc h4 { font-size: 18px; margin-block-start: 12px; scroll-margin-top: 16px; }
.legal-doc ul, .legal-doc ol { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-doc li > ul, .legal-doc li > ol { margin-block-start: 6px; }
.legal-doc a { color: var(--color-brand-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-doc blockquote { margin: 0; padding: 12px 16px; border-inline-start: 3px solid var(--color-brand-forest); background: var(--color-surface); border-start-end-radius: 12px; border-end-end-radius: 12px; }
.legal-doc code { font-size: .9em; padding: 1px 5px; border-radius: 6px; background: var(--color-surface-2); overflow-wrap: anywhere; }
.legal-doc hr { width: 100%; border: 0; border-block-start: 1px solid var(--color-line); }
.legal-others { display: flex; flex-direction: column; gap: 16px; padding-block-end: 72px; }
.legal-others > strong { font-size: 20px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-toc { position: static; max-height: none; padding-block: 16px; }
  .legal-toc a { min-height: 44px; }
}

/* Libellés longs (traductions) : sur mobile, un bouton passe à la ligne plutôt que de déborder. */
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }

/* ------------------------------------------------------------------ mouvements réduits */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip, .mo, .faq summary svg, .legal-toc summary svg { transition: none; }
  .hero-dom .chip, .wa-fab, .wa-fab::after { animation: none; }
  .hero-dom .chip svg, .wa-fab { transition: none; }
  .mo:active { transform: none; }
}

/* Pages ville : fournisseurs vérifiés (cartes remplies par site.js depuis l'app). */
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sup-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.sup-card .h3 { margin: 0; font-size: 18px; }
.sup-card p { margin: 0; font-size: 15px; }
.sup-card .link-go { margin-top: auto; }
.sup-badge { align-self: flex-start; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-brand-tint); color: var(--color-brand-text); font-size: 13px; font-weight: 600; }
/* Apparence dans l'en-tête, à côté de la langue (maquette P8) : bouton pastille, icône du thème choisi, menu Clair / Sombre / Auto. */
.theme-menu { position: relative; }
.theme-menu summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-pill); color: var(--color-muted); cursor: pointer; list-style: none; }
.theme-menu summary::-webkit-details-marker { display: none; }
.theme-menu summary:hover { color: var(--color-ink); background: var(--color-surface-2); }
.theme-ico { display: none; }
:root:not([data-theme]) .theme-ico[data-ico="auto"], :root[data-theme="light"] .theme-ico[data-ico="light"], :root[data-theme="dark"] .theme-ico[data-ico="dark"] { display: inline-flex; }
.theme-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; min-width: 190px; padding: 6px; background: var(--color-surface); border-radius: var(--radius-tile); box-shadow: var(--shadow-lift); }
.theme-pop button, .mnav-theme-choices button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--color-ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.theme-pop button:hover, .mnav-theme-choices button:hover { background: var(--color-surface-2); }
.theme-pop button[aria-pressed="true"], .mnav-theme-choices button[aria-pressed="true"] { font-weight: 700; color: var(--color-brand-text); }
.mnav-theme { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.mnav-theme > span:first-child { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.mnav-theme-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.mnav-theme-choices button { box-shadow: inset 0 0 0 1px var(--color-line); border-radius: var(--radius-pill); }
@media (max-width: 1439px) { .head-right .theme-menu { display: none; } }

/* Cohérence avec l'app (maquette P10) : langue « 🌐 FR ▾ » et thème en pastilles blanches, menus comme ceux de l'app. */
.tool-menu { position: relative; }
.tool-menu > summary, .theme-menu > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: var(--shadow-ring); color: var(--color-ink); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.tool-menu > summary::-webkit-details-marker { display: none; }
.tool-menu > summary:hover, .theme-menu > summary:hover { background: var(--color-surface-2); }
.langs summary { color: var(--color-ink); padding: 0 12px 0 14px; }
.tool-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--color-surface); border-radius: var(--radius-tile); box-shadow: var(--shadow-lift); }
.tool-pop ul { margin: 0; padding: 0; list-style: none; }
.tool-pop a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--color-ink); text-decoration: none; font-size: 14px; }
.tool-pop a:hover { background: var(--color-surface-2); }
.tool-pop a[aria-current="true"] { font-weight: 700; color: var(--color-brand-text); }
.tool-pop-title { margin: 8px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); }
.mdisplay-theme { display: flex; flex-direction: column; }
.mdisplay-theme button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--color-ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.mdisplay-theme button[aria-pressed="true"] { font-weight: 700; color: var(--color-brand-text); }
.mdisplay { display: none; }
.mdisplay > summary { min-width: 44px; padding: 0; justify-content: center; background: none; box-shadow: none; }
.ask-short { display: none; }
@media (max-width: 1439px) {
  .mdisplay { display: block; }
  .head-right .ask-long { display: none; }
  .head-right .ask-short { display: inline; }
}
/* Travailler avec Teewal : formulaire d'inscription (maquette P11). Pastilles = cases et boutons radio stylés (pas de liste du navigateur). */
.wk-join { scroll-margin-top: 24px; }
.wk-profiles, .wk-sub { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.wk-profiles legend, .wk-sub legend, .wk-field label { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--color-ink); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-field-border); font-size: 14px; font-weight: 600; color: var(--color-ink); }
.chip-opt input:checked + span { background: var(--color-brand-forest); color: var(--color-on-brand); box-shadow: none; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--color-brand-forest); outline-offset: 2px; }
.wk-form { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.wk-v { display: flex; flex-direction: column; gap: 18px; }
.wk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wk-field { display: flex; flex-direction: column; }
.wk-field input, .wk-field textarea { min-height: 48px; padding: 12px 14px; border: 1px solid var(--color-field-border); border-radius: 12px; background: var(--color-surface); color: var(--color-ink); font: inherit; }
.wk-field input:focus-visible, .wk-field textarea:focus-visible { outline: 2px solid var(--color-brand-forest); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--color-danger) !important; box-shadow: 0 0 0 1px var(--color-danger); border-radius: 12px; }
.wk-phone { display: flex; align-items: center; gap: 8px; }
.wk-dial { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--color-surface-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-phone input { flex: 1; }
.wk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.wk-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-brand-forest); flex-shrink: 0; }
.wk-v .btn { align-self: flex-start; }
.wk-status:empty { display: none; }
.wk-status { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.wk-status.is-ok { background: var(--color-brand-tint); color: var(--color-brand-text); }
.wk-status.is-error { background: var(--color-danger-bg); color: var(--color-danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--color-muted); }
/* Volet d'inscription (formulaire en contexte) : à droite sur ordinateur, plein écran en bas au téléphone. */
.wk-sheet { width: min(560px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--color-surface); color: var(--color-ink); box-shadow: -24px 0 60px -20px rgba(17, 24, 20, .35); overflow: auto; }
.wk-sheet::backdrop { background: rgba(17, 24, 20, .45); }
.wk-sheet[open] { animation: wk-in 220ms cubic-bezier(.2, .8, .2, 1); }
@keyframes wk-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .wk-sheet { width: 100vw; margin: auto 0 0; height: 92dvh; border-radius: 24px 24px 0 0; } @keyframes wk-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } } }
@media (prefers-reduced-motion: reduce) { .wk-sheet[open] { animation: none; } }
.wk-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 12px; background: var(--color-surface); }
.wk-sheet-head h2 { font-size: 24px; line-height: 1.2; }
.wk-sheet .wk-form { padding: 8px 24px 32px; box-shadow: none; }
.wk-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--color-field-border); color: var(--color-ink); cursor: pointer; flex-shrink: 0; }
.wk-label { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
/* Liste Teewal (pays) : bouton + liste, comme la liste de l'app. */
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--color-field-border); border-radius: 12px; background: var(--color-surface); color: var(--color-ink); font: inherit; text-align: start; cursor: pointer; }
.dd-btn[aria-expanded="true"] { border-color: var(--color-brand-forest); box-shadow: 0 0 0 1px var(--color-brand-forest); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-list { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow: auto; background: var(--color-surface); border-radius: 14px; box-shadow: var(--shadow-lift), 0 0 0 1px var(--color-line); outline: none; }
.dd-list [role=option] { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; }
.dd-list [role=option].is-active { background: var(--color-surface-2); box-shadow: inset 0 0 0 2px var(--color-brand-forest); }
.dd-list [role=option][aria-selected="true"] { font-weight: 700; color: var(--color-brand-text); }
/* Moments de la vie (retour du fondateur) : bandeau d'actions qui défile, filtres, apparition au défilement, zoom des images. */
.tk { display: flex; align-items: center; gap: 10px; margin: 8px 0 28px; padding: 0 var(--gutter, 24px); }
.tk-view { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.tk-track { display: flex; gap: 0; width: max-content; animation: tk-run 60s linear infinite; }
.tk:hover .tk-track, .tk:focus-within .tk-track, .tk.is-paused .tk-track { animation-play-state: paused; }
.tk-run { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.tk-run li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: var(--shadow-ring); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--color-ink); }
.tk-run li svg { color: var(--color-brand-forest); }
@keyframes tk-run { to { transform: translateX(-50%); } }
.tk-pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--color-surface); box-shadow: var(--shadow-lift); color: var(--color-ink); cursor: pointer; }
.tk-pause svg:last-child { display: none; }
.tk.is-paused .tk-pause svg:first-child { display: none; }
.tk.is-paused .tk-pause svg:last-child { display: inline; }
.tk-view::before, .tk-view::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none; }
.tk-view::before { left: 0; background: linear-gradient(90deg, var(--color-page), transparent); }
.tk-view::after { right: 0; background: linear-gradient(-90deg, var(--color-page), transparent); }
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; width: auto; }
  .tk-run { flex-wrap: wrap; }
  .tk-run[aria-hidden="true"] { display: none; }
  .tk-view::before, .tk-view::after { display: none; }
  /* Téléphone : six exemples plutôt que douze lignes empilées (sans zone qui défile, donc rien à atteindre au clavier). */
  @media (max-width: 640px) { .tk-run li:nth-child(n+7) { display: none; } }
}
/* En-tête « Moments » (maquette V5) : titre court, trois garanties, notification de preuve sur une photo marquée « Exemple ». */
.mo-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 8px 48px; }
.mo-txt { display: flex; flex-direction: column; gap: 20px; }
.mo-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 8px; border-radius: var(--radius-pill); background: var(--color-brand-tint); color: var(--color-brand-text); font-size: 13px; font-weight: 600; }
.mo-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand-forest); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-brand-forest) 22%, transparent); }
.mo-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.mo-hero h1 em { font-style: normal; white-space: nowrap; color: var(--color-brand-text); background: linear-gradient(transparent 68%, color-mix(in oklab, var(--color-brand-forest) 18%, transparent) 68%); }
.mo-hero .lead { max-width: 34rem; color: var(--color-muted); }
.mo-pil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin-block-start: 4px; }
.mo-pil li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-tile); background: var(--color-surface); box-shadow: var(--shadow-ring); }
.mo-pil li > span { display: flex; flex-direction: column; gap: 2px; }
.mo-pil svg { color: var(--color-brand-text); }
.mo-pil b { font-size: 15px; }
.mo-pil li > span > span { font-size: 13px; color: var(--color-muted); }
.mo-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block-start: 4px; }
.mo-vis { position: relative; min-height: 520px; }
.mo-ph { position: absolute; inset: 0 0 0 48px; border-radius: var(--radius-hero); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(17 24 20 / .45); }
.mo-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.mo-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .45)); }
.mo-cap { position: absolute; inset-inline-start: 72px; bottom: 22px; z-index: 1; display: flex; gap: 6px; align-items: center; color: #fff; font-size: 14px; }
.mo-ex { position: absolute; inset-inline-end: 16px; top: 16px; z-index: 2; padding: 4px 10px; border-radius: var(--radius-pill); background: rgb(0 0 0 / .55); color: #fff; font-size: 12px; font-weight: 600; }
.mo-note { position: absolute; inset-inline-start: 0; top: 42px; z-index: 2; width: 300px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-surface) 92%, transparent); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgb(17 24 20 / .4), var(--shadow-ring); color: var(--color-ink); }
.mo-nh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.mo-ok { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--color-brand-text); }
.mo-note strong { font-size: 17px; letter-spacing: -.01em; }
.mo-th { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mo-th img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.mo-note small { font-size: 13px; color: var(--color-muted); }
@media (max-width: 900px) {
  .mo-hero { grid-template-columns: 1fr; gap: 28px; padding-block-end: 28px; }
  .mo-vis { min-height: 360px; }
  .mo-ph { inset: 0; }
  .mo-note { inset-inline-start: 12px; top: auto; bottom: 12px; width: min(300px, calc(100% - 24px)); }
  .mo-cap { display: none; }
  .mo-pil { display: flex; flex-wrap: wrap; gap: 8px; }
  .mo-pil li { flex-direction: row; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-pill); }
  .mo-pil li > span > span { display: none; }
  .mo-pil b { font-size: 14px; }
  .mo-pil svg { width: 16px; height: 16px; }
}
.mo-filters { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .mo-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter, 16px)); padding: 2px var(--gutter, 16px) 6px; scrollbar-width: none; } .mo-filters .chip { flex: none; } }
.mo-filters .chip { cursor: pointer; border: 0; font: inherit; }
.mo-filters .chip[aria-pressed="true"] { background: var(--color-brand-forest); color: var(--color-on-brand); box-shadow: none; }
.mosaic > li[hidden] { display: none; }
.mosaic .mo img { transition: transform 400ms cubic-bezier(.2, .8, .2, 1); }
.mosaic .mo:hover img, .mosaic .mo:focus-visible img { transform: scale(1.05); }
.js-motion .rv { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease-out, transform 500ms cubic-bezier(.2, .8, .2, 1); }
.js-motion .rv.is-in { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
@media (prefers-reduced-motion: reduce) { .mosaic .mo img { transition: none; } .js-motion .rv { opacity: 1; transform: none; transition: none; } }
/* Tout ce qu'on fait là-bas : 8 domaines */
.doms { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023px) { .doms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .doms { grid-template-columns: 1fr; } }
.dom { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; }
.dom h3 { font-size: 18px; }
.dom p { margin: 0; color: var(--color-muted); font-size: 15px; flex: 1; }
.dom .link-go { align-self: flex-start; }

/* ---------------------------------------------------------------- Accueil v4 (même vocabulaire que l'en-tête « Moments » V5) :
   pastille d'intro, mot clé souligné en vert, preuve posée sur la photo, étapes et garanties en cartes, bandeau final lumineux. */
.hero-text h1 em { font-style: normal; color: var(--color-brand-text); background: linear-gradient(transparent 68%, color-mix(in oklab, var(--color-brand-forest) 18%, transparent) 68%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .display { font-size: clamp(40px, 5.6vw, 70px); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.hero-visual { position: relative; align-self: start; }
.hero-story { box-shadow: 0 30px 60px -30px rgb(17 24 20 / .45); }
.hero-visual .report-chip { position: absolute; z-index: 3; inset-inline: 16px; bottom: 16px; border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgb(17 24 20 / .45), var(--shadow-ring); }
.hero-visual .story-toggle { bottom: auto; top: 16px; }

#comment .steps4 { gap: 16px; }
#comment .steps4 li { position: relative; gap: 8px; padding: 24px; border: 0; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-ring); transition: transform 200ms cubic-bezier(.23, 1, .32, 1), box-shadow 200ms ease-out; }
#comment .steps4 li::before { position: absolute; inset-block-start: 22px; inset-inline-end: 24px; font-size: 13px; color: var(--color-faint); }
#comment .steps4 li:last-child { background: var(--color-brand-forest); color: var(--color-on-brand); }
#comment .steps4 li:last-child p, #comment .steps4 li:last-child::before { color: color-mix(in oklab, var(--color-on-brand) 78%, transparent); }
#comment .steps4 li:last-child .st-ico { background: color-mix(in oklab, var(--color-on-brand) 16%, transparent); color: var(--color-on-brand); }
.st-ico, .pr-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--color-brand-tint); color: var(--color-brand-text); margin-block-end: 8px; }
@media (hover: hover) and (pointer: fine) { #comment .steps4 li:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgb(17 24 20 / .35), var(--shadow-ring); } }
@media (max-width: 640px) {
  #comment .steps4 { gap: 10px; }
  #comment .steps4 li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  #comment .steps4 li::before { inset-block-start: 16px; inset-inline-end: 16px; }
  #comment .steps4 .st-ico { grid-row: span 2; margin: 0; }
  #comment .steps4 h3 { font-size: 17px; padding-inline-end: 24px; }
}

#garanties .promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#garanties .promises li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 0; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-ring); }
#garanties .promises li + li { border: 0; }
#garanties .promises li::before { display: none; }
#garanties .promises li:first-child { grid-column: 1 / -1; background: var(--color-brand-tint); box-shadow: none; }
#garanties .promises li:first-child .pr-ico { background: var(--color-brand-forest); color: var(--color-on-brand); }
#garanties .promises .pr-ico svg { color: inherit; }
#garanties .promises h3 { font-size: 18px; }
#garanties .promises p { font-size: 15px; }
@media (max-width: 640px) { #garanties .promises { grid-template-columns: minmax(0, 1fr); gap: 10px; } #garanties .promises li { padding: 18px; } #garanties .promises h3 { font-size: 17px; } }

.cta-band { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--color-band) 70%, #7CC49C) 0%, var(--color-band) 55%); }
.cta-band::after { content: ""; position: absolute; z-index: -1; inset-block-end: -120px; inset-inline-start: -80px; width: 320px; height: 320px; border-radius: 50%; background: color-mix(in oklab, #7CC49C 22%, transparent); filter: blur(60px); }
.cta-band h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; } }


/* ---------------------------------------------------------------- Moments en accordéon (accueil, maquette D) : 12 bandes,
   une ouverte. Ordre : immobilier, papiers, courses… Fermées, elles montrent un numéro, une icône et un titre court. */
.acc-h em { font-style: normal; color: var(--color-brand-text); background: linear-gradient(transparent 68%, color-mix(in oklab, var(--color-brand-forest) 18%, transparent) 68%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#moments .sec-head .mo-tag { margin-block-end: 2px; }
.acc { list-style: none; display: flex; gap: 8px; height: 460px; }
.acc > li { position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; transition: flex-grow 600ms cubic-bezier(.22, 1, .36, 1); }
.acc > li.is-open { flex-grow: 7; }
.acc a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.acc .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.acc a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .35), transparent 30%, rgb(0 0 0 / .78)); }
.acc > li:not(.is-open) a::after { background-color: rgb(0 0 0 / .3); }
.acc-n { position: absolute; z-index: 1; top: 14px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.acc > li.is-open .acc-n { flex-direction: row; inset-inline-start: 22px; top: 20px; justify-content: flex-start; }
.acc-v { position: absolute; z-index: 1; inset: 80px 0 20px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-weight: 700; font-size: 15px; transition: opacity 200ms; }
.acc-v > span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.acc > li.is-open .acc-v { opacity: 0; }
.acc-t { position: absolute; z-index: 1; inset-inline: 26px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 30rem; opacity: 0; transform: translateY(8px); transition: opacity 300ms 150ms, transform 400ms 150ms cubic-bezier(.22, 1, .36, 1); }
.acc > li.is-open .acc-t { opacity: 1; transform: none; }
.acc > li:not(.is-open) .acc-t { transition: none; }
.acc-t h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; }
.acc-t p { font-size: 16px; color: rgb(255 255 255 / .88); }
.acc-go { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; margin-block-start: 6px; padding: 0 18px; border-radius: var(--radius-pill); background: #fff; color: #111814; font-weight: 600; font-size: 15px; }
.acc a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 22px; }
@media (prefers-reduced-motion: reduce) { .acc > li, .acc-t { transition: none; } }
@media (max-width: 900px) {
  .acc { flex-direction: column; height: auto; gap: 8px; }
  .acc > li { flex: none; height: 64px; transition: height 500ms cubic-bezier(.22, 1, .36, 1); }
  .acc > li.is-open { height: 360px; }
  .acc-n, .acc > li.is-open .acc-n { flex-direction: row; justify-content: flex-start; inset-inline-start: 18px; top: 22px; gap: 10px; }
  .acc-v { inset: 0 auto 0 84px; justify-content: center; align-items: flex-start; font-size: 16px; }
  .acc-v > span { writing-mode: horizontal-tb; transform: none; }
  .acc-t { inset-inline: 18px; bottom: 18px; }
  .acc-t h3 { font-size: 24px; } .acc-t p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) { .acc > li { transition: none; } }

/* Vidéo de présentation (accueil) : 16:9, coins du héros, ombre douce. */
.pres video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-hero); background: #0F1512; box-shadow: 0 40px 80px -40px rgb(17 24 20 / .5); }

/* Carte du continent : pays ouverts en vert, tous les autres en jaune franc. */
:root { --cm-soon: #EDBE2E; --cm-soon-sel: #A87A00; --cm-open: #1F4D3A; --cm-open-sel: #12301F; --cm-gm: #7CC49C; --cm-sep: #FBFAF7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cm-soon: #D9A91E; --cm-soon-sel: #FFE27A; --cm-open: #7CC49C; --cm-open-sel: #C4E8D3; --cm-gm: #C4E8D3; --cm-sep: #101613; } }
:root[data-theme="dark"] { --cm-soon: #D9A91E; --cm-soon-sel: #FFE27A; --cm-open: #7CC49C; --cm-open-sel: #C4E8D3; --cm-gm: #C4E8D3; --cm-sep: #101613; }
.cm-head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; padding-block: 24px 16px; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; font-weight: 500; }
.cm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cm-legend i { width: 12px; height: 12px; border-radius: 50%; }
.cm-legend .is-open { background: var(--cm-open); } .cm-legend .is-soon { background: var(--cm-soon); } .cm-legend .is-gm { background: var(--cm-gm); }
.cm-legend-sm { gap: 16px; font-size: 13px; }
.cm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 48px; align-items: start; }
.cm-stage { position: relative; }
.cm-map { display: block; width: 100%; height: auto; }
.cm-c { stroke: var(--cm-sep); stroke-width: 7; stroke-linejoin: round; cursor: pointer; transition: fill 160ms ease-out; }
.cm-c.is-soon { fill: var(--cm-soon); } .cm-c.is-open { fill: var(--cm-open); }
.cm-c.is-soon.is-sel { fill: var(--cm-soon-sel); } .cm-c.is-open.is-sel { fill: var(--cm-open-sel); }
@media (hover: hover) { .cm-c.is-soon:hover { fill: var(--cm-soon-sel); } .cm-c.is-open:hover { fill: var(--cm-open-sel); } }
.cm-hit { fill: transparent; cursor: pointer; }
.cm-inset { position: absolute; inset-inline-start: 0; bottom: 0; width: min(272px, 42%); margin: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 16px; }
.cm-inset figcaption { font-size: 14px; font-weight: 600; }
.cm-inset svg { display: block; width: 100%; max-height: 150px; }
.cm-inset .cm-c { stroke-width: 2; } .cm-inset .cm-c.cm-gm { fill: var(--cm-gm); }
.cm-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 20px; padding: 28px; }
.cm-panel { display: flex; flex-direction: column; gap: 12px; }
.cm-panel + .cm-panel { margin-block-start: 24px; padding-block-start: 24px; border-block-start: 1px solid var(--color-line); }
.cm-js .cm-panel { display: none; margin: 0; padding: 0; border: 0; } .cm-js .cm-panel.is-on { display: flex; }
.cm-panel h2:focus { outline: none; }
.cm-badge { width: fit-content; margin: 0; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cm-badge.is-open { background: var(--color-brand-tint); color: var(--color-brand-text); }
.cm-badge.is-soon { background: var(--cm-soon); color: #111814; }
.cm-label { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--color-muted); }
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chips a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border: 1px solid var(--color-line); border-radius: 22px; color: var(--color-ink); text-decoration: none; font-weight: 500; }
.cm-svc { list-style: none; margin: 0; padding: 0; }
.cm-svc a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-block-end: 1px solid var(--color-line); color: var(--color-ink); text-decoration: none; font-weight: 500; }
.cm-svc .flip { color: var(--color-brand-text); display: inline-flex; }
.cm-cta { width: 100%; justify-content: center; margin-block-start: 8px; }
.cm-panel > .link-go { display: flex; justify-content: center; margin-block-start: 4px; }
.cm-close { position: absolute; inset-inline-end: 12px; top: 12px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--color-surface-2); color: var(--color-ink); cursor: pointer; }
.cm-close[hidden] { display: none; }
.cm-all { display: flex; flex-direction: column; gap: 12px; margin-block: 48px; padding-block-start: 32px; border-block-start: 1px solid var(--color-line); }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; }
.cm-list a { display: flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: none; }
.cm-list a:hover, .cm-chips a:hover, .cm-svc a:hover { color: var(--color-brand-text); }
.cm-list a[aria-current] { font-weight: 700; color: var(--color-brand-text); text-decoration: underline; }
.cm-list-open { grid-template-columns: repeat(auto-fill, minmax(120px, max-content)); }
.cm-list-open a { justify-content: center; padding-inline: 18px; border-radius: 22px; background: var(--color-brand-tint); color: var(--color-brand-text); font-weight: 600; }
.cm-credit { margin: 16px 0 0; font-size: 13px; color: var(--color-muted); }
.foot-cols h2 a { display: inline; min-height: 0; padding: 0; color: inherit; font: inherit; }
.foot-soon { white-space: nowrap; font-size: .9em; margin-inline-start: .35em; }
@media (max-width: 860px) {
  .cm-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cm-inset { position: static; width: 100%; margin-block-start: 8px; }
  .cm-inset svg { max-height: 180px; }
  .cm-aside { position: static; }
  .cm-js .cm-aside { position: fixed; inset-inline: 0; bottom: 0; top: auto; z-index: 60; max-height: 80dvh; overflow-y: auto; border-radius: 24px 24px 0 0; border-width: 1px 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 40px -24px rgb(0 0 0 / .4); display: none; }
  .cm-js .cm-aside.is-open { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .cm-c { transition: none; } }
