/* CitySpot — site vitrine. Reprend le design de l'app (src/index.css, components/ui) :
   mêmes jetons de couleur (clair + sombre), police système, cartes blanches à bordure orange pâle,
   en-tête orange, boutons « rounded-md », pastilles de statut bleu / ambre / vert. */

:root {
  --background: #fef8f3;
  --foreground: #2c1810;
  --card: #fff;
  --primary: #e67e3a;
  --primary-hover: #d9722e;
  --on-primary: #fff;
  --secondary: #ffd4b3;
  --muted: #f5e6d8;
  --muted-foreground: #7a5f4d;
  --accent: #ffa366;
  --border: #e67e3a33;
  --border-strong: #e67e3a80;
  --ring: #e67e3a;
  --blue: #2563eb;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(44, 24, 16, 0.06), 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(44, 24, 16, 0.12), 0 2px 4px -2px rgba(44, 24, 16, 0.1);
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --measure: 62ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a0f08;
    --foreground: #fef8f3;
    --card: #2c1810;
    --primary: #ffa366;
    --primary-hover: #ff9550;
    --on-primary: #1a0f08;
    --secondary: #4a3020;
    --muted: #3a2418;
    --muted-foreground: #d4a884;
    --accent: #e67e3a;
    --border: #e67e3a4d;
    --border-strong: #e67e3a99;
    --ring: #ffa366;
    --blue: #60a5fa;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; scrollbar-color: var(--primary) var(--background); }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--ring) 55%, transparent); outline-offset: 2px; border-radius: 0.375rem; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--primary); border: 3px solid var(--background); border-radius: 8px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--card); color: var(--foreground); padding: 0.6rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border-strong); transition: top 0.2s var(--ease); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

/* ───────── En-tête : le bandeau orange de l'app ───────── */
.bar { position: sticky; top: 0; z-index: 50; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-md); }
.bar__in { display: flex; align-items: center; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.25rem; font-weight: 600; margin-right: auto; }
.brand__mark { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: color-mix(in oklab, var(--on-primary) 20%, transparent); border: 2px solid color-mix(in oklab, var(--on-primary) 30%, transparent); border-radius: 0.5rem; }
.brand__mark svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 0.5rem 0.1rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: color-mix(in oklab, var(--on-primary) 70%, transparent); }
.nav a[aria-current="page"] { border-bottom-color: var(--on-primary); }
.nav .btn { border: 0; padding: 0.45rem 1rem; min-height: 2.25rem; font-size: 0.9rem; background: #fff; color: #2c1810; }
.nav .btn:hover { background: #fef0e4; }
@media (prefers-color-scheme: dark) { .nav .btn { background: #1a0f08; color: #fef8f3; } .nav .btn:hover { background: #2c1810; } }
.bar :focus-visible { outline-color: color-mix(in oklab, var(--on-primary) 70%, transparent); }

/* ───────── Boutons (button.tsx : default / outline) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.35rem; min-height: 2.75rem;
  background: var(--primary); color: var(--on-primary);
  border: 1px solid transparent; border-radius: 0.5rem;
  font: 500 1rem/1.25 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn--alt { background: var(--background); color: var(--foreground); border-color: var(--border-strong); }
.btn--alt:hover { background: var(--accent); color: #2c1810; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
/* Sur un fond orange : bouton plein clair + bouton contour */
.hero .plate .btn, .band-orange .btn { background: #fff; color: #2c1810; }
.hero .plate .btn:hover, .band-orange .btn:hover { background: #fef0e4; }
.hero .plate .btn--alt, .band-orange .btn--alt { background: transparent; color: var(--on-primary); border-color: color-mix(in oklab, var(--on-primary) 65%, transparent); }
.hero .plate .btn--alt:hover, .band-orange .btn--alt:hover { background: color-mix(in oklab, var(--on-primary) 15%, transparent); color: var(--on-primary); }
.hero .plate :focus-visible, .band-orange :focus-visible { outline-color: color-mix(in oklab, var(--on-primary) 75%, transparent); }
@media (prefers-color-scheme: dark) {
  .hero .plate .btn, .band-orange .btn { background: #1a0f08; color: #fef8f3; }
  .hero .plate .btn:hover, .band-orange .btn:hover { background: #2c1810; }
}

/* ───────── Carte (card.tsx) ───────── */
.plate, .demo, .board, .unit { background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plate { position: relative; padding: clamp(1.5rem, 3vw, 2rem); }

/* Hero : le bandeau de la vue mairie, en grand */
.hero .plate { background: linear-gradient(to bottom, var(--primary), color-mix(in oklab, var(--primary) 90%, var(--background))); color: var(--on-primary); border: 0; box-shadow: var(--shadow-md); padding: clamp(1.75rem, 4vw, 3rem); }

/* Pictogramme : pastille ronde orange, icône blanche (écran de connexion) */
.picto { --s: 3rem; flex: none; width: var(--s); height: var(--s); display: grid; place-items: center; background: var(--primary); color: var(--on-primary); border-radius: 50%; }
.picto svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.picto--lg { --s: 3.5rem; }
.unit:has(.plate--night) .picto, .door.plate--night .picto { background: linear-gradient(to right, #2563eb, #3b82f6); color: #fff; }

/* ───────── Sections ───────── */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section__head { margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); max-width: 48rem; }
.section__head h2, .close h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.section__head p { margin-top: 0.75rem; color: var(--muted-foreground); font-size: 1.125rem; }
.band-night { background: var(--muted); }
.band-orange { background: linear-gradient(to bottom, var(--primary), color-mix(in oklab, var(--primary) 90%, var(--background))); color: var(--on-primary); }
.band-orange .section__head p, .band-orange .close p { color: var(--on-primary); }
h3 { font-size: 1.125rem; }

/* ───────── Hero ───────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.hero--wide h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.hero h1 span { display: block; }
.hero .lead { margin-top: 1.25rem; font-size: 1.2rem; font-weight: 500; max-width: 38rem; }
.hero__aside { display: grid; gap: 1.25rem; }

/* ───────── Démonstration interactive ───────── */
.demo { position: relative; padding: 1.5rem; box-shadow: var(--shadow-md); }
.stamp { display: inline-block; margin-bottom: 0.9rem; padding: 0.15rem 0.6rem; background: var(--muted); color: var(--muted-foreground); border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500; }
.demo h2 { font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.demo__meta { margin: 0 0 1.1rem; font-size: 0.875rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; max-width: none; }
/* Pastilles de statut (getStatusConfig : En vote / En cours / Terminé) */
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500; background: #eff6ff; color: #1d4ed8; }
.chip[data-status="in-progress"] { background: #fffbeb; color: #b45309; }
.chip[data-status="completed"] { background: #f0fdf4; color: #15803d; }
.chip svg { width: 0.8rem; height: 0.8rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {
  .chip { background: #172554; color: #93c5fd; }
  .chip[data-status="in-progress"] { background: #451a03; color: #fcd34d; }
  .chip[data-status="completed"] { background: #052e16; color: #86efac; }
}
.gauge { height: 0.6rem; border-radius: 99px; background: var(--muted); overflow: hidden; }
.gauge__fill { height: 100%; width: 70%; background: var(--primary); border-radius: 99px; transition: width 0.6s var(--ease); }
.gauge__label { display: flex; justify-content: space-between; gap: 1rem; margin: 0.5rem 0 1.1rem; font-size: 0.875rem; font-weight: 500; }
.demo__vote { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.demo__vote .btn { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
.demo fieldset { border: 0; padding: 0; margin: 0; }
.demo__tasks legend { padding: 0; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.task { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.1rem; font-size: 0.95rem; cursor: pointer; }
.task input { appearance: none; flex: none; width: 1.15rem; height: 1.15rem; border: 1px solid var(--border-strong); border-radius: 0.25rem; background: var(--background); display: grid; place-items: center; cursor: pointer; margin: 0; }
.task input:checked { background: var(--primary); border-color: var(--primary); }
.task input:checked::after { content: ""; width: 0.55rem; height: 0.3rem; border: solid var(--on-primary); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.task input:checked + span { text-decoration: line-through; color: var(--muted-foreground); }
.demo__foot { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--muted-foreground); max-width: none; }
.demo__done { margin: 0.9rem 0 0; font-weight: 500; }
.demo [hidden] { display: none !important; }
.demo__reset { margin: 0.8rem 0 0; }
.demo__reset .btn { min-height: 2.25rem; padding: 0.35rem 0.9rem; font-size: 0.875rem; }

/* ───────── Grille de fonctionnalités : cartes avec pied de note ───────── */
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.5rem); align-items: stretch; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.unit { display: flex; flex-direction: column; overflow: hidden; }
.unit .plate { flex: 1; background: none; border: 0; box-shadow: none; border-radius: 0; padding: 1.5rem; }
.unit .plate h3 { margin-top: 0.9rem; font-weight: 600; }
.unit .plate p { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--muted-foreground); }
.unit__top { display: flex; align-items: center; gap: 0.9rem; }
.unit__top h3 { margin: 0 !important; }
.panon { margin: 0; padding: 0.85rem 1.5rem; background: var(--muted); border-top: 1px solid var(--border); font-size: 0.8125rem; line-height: 1.45; color: var(--muted-foreground); }
.panon p { margin: 0; font-size: inherit; color: inherit; }
.band-night .unit .panon { background: var(--background); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem 0.15rem 0.5rem; border: 1px solid var(--border-strong); border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500; color: var(--foreground); background: var(--background); }
.tag svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag:nth-child(1) svg { color: #475569; } .tag:nth-child(2) svg { color: #ca8a04; } .tag:nth-child(3) svg { color: #dc2626; }
.tag:nth-child(4) svg { color: #ea580c; } .tag:nth-child(5) svg { color: #0891b2; } .tag:nth-child(6) svg { color: #16a34a; } .tag:nth-child(7) svg { color: #9333ea; }

/* ───────── Captures d'écran (emplacements) ───────── */
.shot { position: relative; overflow: hidden; background: var(--muted); border: 2px dashed var(--border-strong); display: grid; place-items: center; text-align: center; color: var(--foreground); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: var(--card); z-index: 2; }
.shot__ph { position: relative; padding: 1rem; font-size: 0.875rem; line-height: 1.35; color: var(--muted-foreground); }
.shot__ph b { display: block; font-size: 1rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.25rem; }
.shot__ph code { display: inline-block; margin-top: 0.4rem; padding: 0.1rem 0.45rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.3rem; font: 500 0.75rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; color: var(--foreground); }
.shot--phone { width: min(100%, 17rem); aspect-ratio: 9 / 19; border-radius: 2rem; margin-inline: auto; border: 7px solid #2c1810; box-shadow: var(--shadow-md); }
.shot--phone img { border-radius: 1.5rem; }
.shot--desk { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--border-strong); padding-top: 2rem; box-shadow: var(--shadow-md); }
.shot--desk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2rem; background-color: var(--muted); border-bottom: 1px solid var(--border); z-index: 3;
  background-image: radial-gradient(circle at 1rem 50%, #ef4444 0 4px, transparent 5px), radial-gradient(circle at 2.2rem 50%, #f59e0b 0 4px, transparent 5px), radial-gradient(circle at 3.4rem 50%, #22c55e 0 4px, transparent 5px); }
.shot--desk img { top: 2rem; height: calc(100% - 2rem); }
.fig { margin: 0; }
.fig figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; max-width: none; }

/* ───────── Parcours ───────── */
.route { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.route::before { content: ""; position: absolute; left: 1.5rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--border-strong); }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-left: 4.5rem; }
.step:nth-child(even) { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); }
.step:nth-child(even) .step__text { order: 2; }
.step .picto { position: absolute; left: 0; top: 0.1rem; box-shadow: 0 0 0 6px var(--background); }
.band-night .step .picto { box-shadow: 0 0 0 6px var(--muted); }
.step h3 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.step__text > p { color: var(--muted-foreground); font-size: 1.0625rem; }
.step ul { display: grid; gap: 0.5rem; margin-top: 1rem; }
.step li { position: relative; padding-left: 1.4rem; }
.step li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--primary); border-radius: 50%; }
.step li strong { font-weight: 600; }
.step--solo, .step--solo:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
.step--solo .step__text { max-width: 44rem; }

/* ───────── Tableau de bord fictif (collectivités) ───────── */
.board { overflow: hidden; box-shadow: var(--shadow-md); }
.board__head { background: linear-gradient(to bottom, var(--primary), color-mix(in oklab, var(--primary) 90%, var(--background))); color: var(--on-primary); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; justify-content: space-between; }
.board__head h3 { font-size: 1.25rem; font-weight: 600; }
.board__head .chip { background: color-mix(in oklab, var(--on-primary) 20%, transparent); color: var(--on-primary); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.metric { padding: 1rem 1.25rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric:nth-child(3n) { border-right: 0; }
.metric dt { font-size: 0.8125rem; color: var(--muted-foreground); }
.metric dd { margin: 0.15rem 0 0; font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric dd small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted-foreground); letter-spacing: 0; }
.board__charts { padding: 1rem 1.25rem 1.25rem; }
.board__charts summary { cursor: pointer; font-size: 0.9375rem; font-weight: 500; padding: 0.35rem 0; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 1.1rem; border-bottom: 1px solid var(--border-strong); }
.bars li { flex: 1; min-width: 0; height: var(--h); background: #df7a38; border-radius: 4px 4px 0 0; position: relative; }
.bars li span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 600; padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.bars__axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.35rem; }
@media (prefers-color-scheme: dark) { .bars li { background: #dd742d; } }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.split .aside h3 { font-size: 1.25rem; font-weight: 600; }
.shots-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.fine { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ───────── Garanties ───────── */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; }
.checks--one { grid-template-columns: minmax(0, 1fr); margin-top: 1.1rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 1.4rem; height: 1.4rem; background: var(--primary); border-radius: 50%; }
.checks li::after { content: ""; position: absolute; left: 0.43rem; top: 0.42em; width: 0.55rem; height: 0.3rem; border: solid var(--on-primary); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.checks strong { display: block; font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.1rem; }
.checks p { margin: 0; font-size: 0.9375rem; color: var(--muted-foreground); }
.limits { margin-top: 2rem; padding: 1.1rem 1.35rem; background: var(--card); border: 1px dashed var(--border-strong); border-radius: var(--radius); max-width: 52rem; }
.limits h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }
.limits p { margin: 0; font-size: 0.9375rem; color: var(--muted-foreground); }

/* ───────── FAQ ───────── */
.faq details { border-top: 1px solid var(--border-strong); }
.faq details:last-child { border-bottom: 1px solid var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-size: 1.0625rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; background: var(--muted); color: var(--foreground); border-radius: 50%; font-size: 1.2rem; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted-foreground); }
.faq details p { margin-bottom: 0.6em; }

/* ───────── Deux portes (accueil) ───────── */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.75rem); }
.door { padding: clamp(1.5rem, 3vw, 2.25rem); }
.door h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1rem 0 0.6rem; font-weight: 700; letter-spacing: -0.02em; }
.door > p { color: var(--muted-foreground); }
.door ul { display: grid; gap: 0.6rem; margin-top: 1rem; font-size: 0.9375rem; }
.door li { display: flex; gap: 0.65rem; align-items: baseline; }
.door li::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; background: var(--primary); border-radius: 50%; transform: translateY(-0.1em); }
.door.plate--night li::before { background: var(--blue); }

/* ───────── Fin de page ───────── */
.close h2 { max-width: 20ch; }
.close p { font-size: 1.15rem; font-weight: 500; margin-top: 0.9rem; }

/* ───────── Pied de page ───────── */
.foot { background: #2c1810; color: #fef8f3; padding-block: 2.25rem 2.75rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
.foot .brand__mark { background: color-mix(in oklab, #fef8f3 14%, transparent); border-color: color-mix(in oklab, #fef8f3 25%, transparent); }
.foot p { color: #d4a884; font-size: 0.9375rem; margin-bottom: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.9375rem; align-content: start; }
.foot a:hover { color: #ffa366; }
.foot :focus-visible { outline-color: #ffa366; }

/* ───────── Mouvement : apparition douce, une seule fois ───────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gauge__fill, .btn, .faq summary::after { transition: none; }
}

/* ───────── Adaptation ───────── */
@media (max-width: 960px) {
  .hero, .hero--wide, .split, .shots-row { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step__text { order: 0; }
  .s2 { grid-column: span 3; } .s3, .s4 { grid-column: span 6; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3n) { border-right: 1px solid var(--border); }
  .metric:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .s2 { grid-column: span 6; }
  .doors, .checks, .foot__in { grid-template-columns: minmax(0, 1fr); }
  .route::before { left: 1.25rem; }
  .step { padding-left: 3.5rem; }
  .step .picto { --s: 2.6rem; }
  .nav { gap: 0.2rem 0.9rem; font-size: 0.9rem; }
  .brand { font-size: 1.1rem; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric, .metric:nth-child(2n), .metric:nth-child(3n) { border-right: 0; }
}
@media (forced-colors: active) {
  .plate, .demo, .board, .unit, .btn { border: 1px solid CanvasText; }
}
