/* ==========================================================================
   Taxi Vifois — feuille de style
   Thème « jour » (7h–19h) et « nuit » (19h–7h), comme le taximètre.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- Jetons de design ---------- */
:root {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --amber: #f4a81c;
  --amber-2: #e3870b;
  --red: #d42a32;
  --night-0: #070d16;
  --night-1: #0b1420;
  --night-2: #111d2d;
  --night-3: #18273b;
  --cream: #f3ede2;

  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(10, 16, 26, .06), 0 12px 40px -12px rgba(10, 16, 26, .22);
}

:root,
:root[data-theme="jour"] {
  color-scheme: light;
  --bg: #f4efe5;
  --bg-alt: #ebe3d4;
  --surface: #fffcf6;
  --ink: #12161c;
  --ink-2: #4a5362;
  --ink-3: #6d7584;
  --line: rgba(18, 22, 28, .12);
  --accent: var(--amber);
  --on-accent: #1b1404;
  --accent-text: #9a5a00;
  --glass: rgba(255, 252, 246, .62);
  --glass-line: rgba(18, 22, 28, .1);

  --sky-a: #8fbde6;
  --sky-b: #cfe0ec;
  --sky-c: #f7dfb8;
  --celestial: #ffd27a;
  --far-a: #93a8c2;
  --far-b: #b9c6d4;
  --snow: rgba(255, 255, 255, .9);
  --cliff-a: #e6dccb;
  --cliff-b: #aaa08e;
  --cliff-line: rgba(92, 80, 62, .3);
  --forest: #50694a;
  --hills: #3c563f;
  --valley: #2b3f30;
  --road: #2a2e35;
  --lights: 0;
  --stars: 0;
}

:root[data-theme="nuit"] {
  color-scheme: dark;
  --bg: #0a121d;
  --bg-alt: #0f1a28;
  --surface: #132133;
  --ink: #f1ece2;
  --ink-2: #aab4c3;
  --ink-3: #8390a2;
  --line: rgba(255, 255, 255, .1);
  --accent: #ffb52e;
  --on-accent: #1b1404;
  --accent-text: #ffc457;
  --glass: rgba(14, 24, 37, .6);
  --glass-line: rgba(255, 255, 255, .1);

  --sky-a: #04080f;
  --sky-b: #0d1a2e;
  --sky-c: #22324d;
  --celestial: #f3ead2;
  --far-a: #1f3049;
  --far-b: #18263b;
  --snow: rgba(220, 230, 245, .35);
  --cliff-a: #2c3c55;
  --cliff-b: #1a2638;
  --cliff-line: rgba(255, 255, 255, .05);
  --forest: #121d2b;
  --hills: #0e1824;
  --valley: #09111a;
  --road: #04070c;
  --lights: 1;
  --stars: 1;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.h1, .h2, .hero-title {
  font-stretch: 112%;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; }
.h1 em, .h2 em, .hero-title .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -.015em;
}
.h2 em, .h1 em { color: var(--accent-text); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em;
  border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-line: transparent; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-accent:hover { box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-glass { --b-bg: var(--glass); --b-line: var(--glass-line); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.btn-outline { --b-bg: transparent; --b-line: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-outline:hover { --b-line: var(--ink); }
.btn-ghost { --b-bg: transparent; --b-line: transparent; }
.btn-sm { min-height: 40px; padding: .55em 1em; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: .9em 1.6em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.2em; height: 1.2em; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.site-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--glass-line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 64px; height: 32px; flex: none;
  background: var(--red);
  -webkit-mask: url("../img/logo-carrosse.png") center / contain no-repeat;
  mask: url("../img/logo-carrosse.png") center / contain no-repeat;
}
:root[data-theme="nuit"] .brand-mark { background: #ff4b52; }
.brand-mark-lg { width: 150px; height: 75px; background: #ff4b52; margin-bottom: 18px; }
.brand-text { font-size: 1.32rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; }
.brand-text em { font-family: var(--serif); font-weight: 400; font-stretch: 100%; font-size: 1.12em; letter-spacing: 0; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav li a {
  display: block; padding: .5em .85em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.main-nav li a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.main-nav li a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.menu-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background-color .2s, transform .3s var(--ease);
}
.theme-toggle:hover, .menu-toggle:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-toggle .icon, .menu-toggle .icon { width: 20px; height: 20px; }
:root[data-theme="jour"] .tt-sun, :root[data-theme="nuit"] .tt-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .mt-close { display: none; }
.menu-open .menu-toggle .mt-open { display: none; }
.menu-open .menu-toggle .mt-close { display: block; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .header-phone { width: 42px; padding: 0; border: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .menu-toggle { display: grid; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 24px) clamp(20px, 6vw, 48px) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a {
    padding: .2em 0; border-radius: 0; background: none !important;
    font-size: clamp(2.1rem, 9vw, 3.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; color: var(--ink);
    transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .2s;
  }
  .main-nav li a[aria-current="page"] { color: var(--accent-text); }
  .menu-open .main-nav li a { transform: none; opacity: 1; }
  .menu-open .main-nav li:nth-child(2) a { transition-delay: .04s; }
  .menu-open .main-nav li:nth-child(3) a { transition-delay: .08s; }
  .menu-open .main-nav li:nth-child(4) a { transition-delay: .12s; }
  .menu-open .main-nav li:nth-child(5) a { transition-delay: .16s; }
  .menu-foot { display: block; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
  .menu-phone { display: inline-flex; align-items: center; gap: .5em; font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--ink); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-mark { width: 52px; }
  .brand-text { font-size: 1.15rem; }
  .header-book { padding-inline: .9em; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(760px, 100svh);
  padding: calc(var(--header-h) + clamp(24px, 6vh, 72px)) 0 clamp(170px, 24vh, 240px);
  overflow: hidden;
  display: flex; align-items: flex-start;
}
.sky {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 48%, var(--sky-c) 78%);
  transition: background .8s;
}
.stars {
  position: absolute; inset: 0 0 35% 0; opacity: var(--stars); transition: opacity 1.2s;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 37% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 58% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 74% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 93% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 48%, #fff 50%, transparent 51%);
  background-size: 640px 420px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.3); } }

.celestial {
  position: absolute; top: calc(var(--header-h) + 40px); left: 54%;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--celestial);
  box-shadow: 0 0 60px 10px color-mix(in srgb, var(--celestial) 55%, transparent);
  transition: background-color 1s, box-shadow 1s;
}
:root[data-theme="nuit"] .celestial {
  background: transparent;
  box-shadow: inset -22px 10px 0 0 var(--celestial), 0 0 50px -10px color-mix(in srgb, var(--celestial) 40%, transparent);
  transform: rotate(-20deg);
}
@media (max-width: 980px) { .celestial { left: auto; right: 6%; top: calc(var(--header-h) + 8px); width: 56px; height: 56px; } }
.scene { position: absolute; inset: auto 0 0 0; z-index: -2; width: 100%; height: 72%; min-height: 460px; }
.scene .layer { will-change: transform; }
.s-far-a { stop-color: var(--far-a); } .s-far-b { stop-color: var(--far-b); }
.s-cliff-a { stop-color: var(--cliff-a); } .s-cliff-b { stop-color: var(--cliff-b); }
.scene .snow { fill: none; stroke: var(--snow); stroke-width: 3; stroke-linejoin: round; }
.scene .forest { fill: var(--forest); }
.scene .hills { fill: var(--hills); }
.scene .valley { fill: var(--valley); }
.scene .road { fill: none; stroke: var(--road); stroke-width: 16; stroke-linecap: round; }
.scene .road-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 14 18; opacity: .85; animation: roadline 1.4s linear infinite; }
@keyframes roadline { to { stroke-dashoffset: -32; } }
.scene .lights circle { fill: #ffcf5a; opacity: var(--lights); filter: drop-shadow(0 0 4px #ffb52e); transition: opacity 1s; }
.scene .taxi-dot rect { fill: #ffc233; }
.scene .taxi-dot text { font: 800 7.5px/1 var(--font); fill: #2a1d00; letter-spacing: .08em; }
:root[data-theme="jour"] .scene .taxi-dot circle { opacity: .35; }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.live-pill {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1.6rem; padding: .45em .95em .45em .7em;
  border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }

.hero-title { font-size: clamp(2.9rem, 6.2vw, 5.9rem); line-height: .94; margin-bottom: 1.5rem; }
.hero-title .line { display: block; }
.hero-title .serif { font-size: 1.04em; line-height: 1; color: var(--accent-text); padding-right: .1em; }
:root[data-theme="jour"] .hero-title .serif { color: #8a4f00; }
.js .hero-title .line { opacity: 0; transform: translateY(.5em); animation: rise 1s var(--ease) forwards; }
.js .hero-title .line + .line { animation-delay: .14s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 34em; color: var(--ink-2); margin-bottom: 2rem; }
:root[data-theme="jour"] .hero-lede { color: #2c3440; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; font-weight: 600; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45em; }
.hero-badges .icon { color: var(--accent-text); }
:root[data-theme="jour"] .hero-badges .icon { color: #8a4f00; }

@media (max-width: 980px) {
  .hero { min-height: 0; padding-bottom: 0; flex-direction: column; }
  .hero-grid { grid-template-columns: 1fr; }
  .scene { height: 520px; min-height: 0; top: auto; }
  .hero { padding-bottom: 150px; }
}

/* ---------- Taximètre ---------- */
.meter {
  --m-ink: #f1ece2; --m-ink-2: #9eabbd; --m-line: rgba(255, 255, 255, .1);
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--m-ink);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(244, 168, 28, .14), transparent 60%),
    linear-gradient(180deg, #132237, #0b1522);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 80px -30px rgba(3, 8, 15, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.meter-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.roof-sign {
  padding: 4px 9px 3px; border-radius: 6px 6px 3px 3px;
  background: #ffc233; color: #2a1d00;
  font-size: .72rem; font-weight: 900; letter-spacing: .14em; font-stretch: 120%;
  box-shadow: 0 0 22px rgba(255, 194, 51, .55);
}
.meter-title { font-weight: 700; font-size: .95rem; }
.meter-status { margin-left: auto; font-size: .75rem; color: var(--m-ink-2); }
.meter-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.meter-label small { color: var(--m-ink-2); font-weight: 500; }
.meter-input {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--m-line);
  transition: border-color .2s, background-color .2s;
}
.meter-input:focus-within { border-color: var(--amber); background: rgba(255, 255, 255, .09); }
.meter-input .icon { color: var(--amber); }
.meter-input input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; outline: none; font-weight: 600; }
.meter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.chip {
  padding: .38em .75em; border-radius: 999px; border: 1px solid var(--m-line);
  background: transparent; color: var(--m-ink-2); font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover, .chip[aria-pressed="true"] { color: #1b1404; background: var(--amber); border-color: var(--amber); }
.meter-km label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--m-ink-2); margin-bottom: 6px; }
.meter-km output { color: var(--m-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--amber) var(--fill, 10%), rgba(255, 255, 255, .12) var(--fill, 10%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 5px solid var(--amber); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--amber); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--m-ink-2);
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: background-color .25s, color .25s;
}
.seg button small { font-weight: 500; opacity: .75; font-size: .75em; }
.seg button[aria-checked="true"] { background: #f1ece2; color: #0b1420; }
.seg button[data-mode="nuit"][aria-checked="true"] { background: #2a3d5c; color: #fff; }

.meter-screen {
  position: relative; display: flex; align-items: baseline; justify-content: center; gap: .15em;
  padding: 18px 12px 14px; border-radius: 16px;
  background: #050a10; border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 2px 18px rgba(0, 0, 0, .7);
  color: #ffc233; text-shadow: 0 0 18px rgba(255, 194, 51, .55);
  font-variant-numeric: tabular-nums;
}
.meter-screen::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.meter-approx { font-size: 1.6rem; opacity: .6; }
.meter-euro { font-size: 2rem; font-weight: 700; }
.odometer { display: inline-flex; font-size: clamp(3.4rem, 6vw, 4.4rem); font-weight: 800; font-stretch: 85%; line-height: 1; height: 1em; overflow: hidden; }
.odometer .digit { display: inline-block; height: 1em; overflow: hidden; }
.odometer .strip { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.2, .9, .1, 1); }
.odometer .strip span { height: 1em; line-height: 1; text-align: center; }
.meter-note { margin: 12px 0 16px; font-size: .74rem; line-height: 1.45; color: var(--m-ink-2); }

/* ---------- Bandeau défilant ---------- */
.ticker {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--accent); color: var(--on-accent);
  border-block: 1px solid rgba(0, 0, 0, .08);
}
.ticker-track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: .5em; padding: 14px 26px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 26px; font-size: .8em; opacity: .5; }
.ticker b { font-weight: 500; opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin-top: 1.2rem; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-text .lede { margin: 1.4rem 0 2rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  color: #fff;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile-xl { grid-column: span 2; min-height: 480px; }
.tile picture, .tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile-img { transition: transform 1.2s var(--ease); }
.tile:hover .tile-img { transform: scale(1.06); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 18, 0) 20%, rgba(5, 10, 18, .55) 55%, rgba(5, 10, 18, .92)); }
.tile-dark { background: radial-gradient(120% 90% at 100% 0%, rgba(244, 168, 28, .35), transparent 55%), linear-gradient(160deg, #18273b, #0b1420); border-color: transparent; }
.tile-dark::before, .tile-call::before { display: none; }
.tile-call { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tile.tile-call p { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.tile-call .tile-icon { background: rgba(0, 0, 0, .1); }
.tile-call .tile-icon .icon, .tile-call .tile-more { color: var(--on-accent); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto; border-radius: 14px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile-icon .icon { width: 24px; height: 24px; color: var(--amber); }
.tile-body { display: flex; flex-direction: column; height: 100%; }
.tile h3 { margin-top: 48px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-stretch: 112%; letter-spacing: -.03em; }
.tile-xl h3 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.tile p { margin: .6em 0 1.2em; color: rgba(255, 255, 255, .82); max-width: 38ch; }
.tile-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--amber); }
.tile-more .icon { transition: transform .3s var(--ease); }
.tile:hover .tile-more .icon { transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl { grid-column: span 2; min-height: 440px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-xl { grid-column: auto; min-height: 420px; }
}

/* ---------- Tableau des départs ---------- */
.board {
  --b-ink: #f3ead6;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #121c2a, #0a111b);
  color: var(--b-ink);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 40px 70px -35px rgba(3, 8, 15, .65), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.board-title { display: flex; align-items: center; gap: .6em; margin: 0; font-weight: 800; font-stretch: 115%; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.board-clock { margin: 0; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; color: #ffc233; letter-spacing: .06em; }
.board-search input {
  width: 100%; height: 46px; margin-bottom: 12px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: var(--b-ink);
}
.board-search input::placeholder { color: #8391a5; }
.board-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.board-table thead th { padding: 0 8px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8391a5; text-align: right; }
.board-table thead th:first-child { text-align: left; }
.board-table tbody th, .board-table td { padding: 8px; background: rgba(255, 255, 255, .035); text-align: right; font-weight: 700; white-space: nowrap; }
.board-table tbody th { text-align: left; border-radius: 10px 0 0 10px; font-weight: 700; }
.board-table td:last-child { border-radius: 0 10px 10px 0; }
.board-table tbody tr { cursor: pointer; transition: transform .2s var(--ease); }
.board-table tbody tr:hover th, .board-table tbody tr:hover td, .board-table tbody tr:focus-visible th, .board-table tbody tr:focus-visible td { background: rgba(244, 168, 28, .12); }
.board-table tbody tr:focus-visible { outline: none; }
.board-table tbody tr[hidden] { display: none; }
.board-cat { display: block; margin-top: 2px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8391a5; }
.flap { font-size: .95rem; letter-spacing: .04em; white-space: nowrap; }
.flap i {
  display: inline-block; min-width: .78em; margin-right: 1px; padding: 0 .04em;
  font-style: normal; text-align: center; line-height: 1.5;
  border-radius: 3px;
  background: linear-gradient(180deg, #1d2a3c 0 49%, #0c131d 49% 51%, #172233 51%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4);
}
.flap i.sp { background: transparent; box-shadow: none; min-width: .4em; }
.flap-day { color: #ffc233; }
.flap-night { color: #9cc0ff; }
:root[data-rate="jour"] .flap-night, :root[data-rate="nuit"] .flap-day { opacity: .55; }
@media (max-width: 640px) {
  .board-table thead { display: none; }
  .board-table tbody tr { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0; margin-bottom: 6px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .035); }
  .board-table tbody th { grid-column: 1 / -1; border-radius: 0; background: none; padding-bottom: 0; white-space: normal; }
  .board-table tbody td { background: none; border-radius: 0; padding-top: 4px; }
  .board-table tbody td:nth-child(2)::after { content: " km"; color: #8391a5; font-weight: 500; }
  .board-table tbody td:nth-child(2) { text-align: left; }
  .board-table tbody tr:hover th, .board-table tbody tr:hover td { background: none; }
  .flap { font-size: .74rem; }
  .flap i { min-width: .7em; }
}

/* ---------- Histoire (parallaxe) ---------- */
.story { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 18vw, 240px); color: #fff; }
.story-media { position: absolute; inset: -12% 0; z-index: -1; }
.story-media picture, .story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 11, 19, .78), rgba(6, 11, 19, .2) 70%); }
.story-card {
  max-width: 560px; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 29, .55); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.story-card .eyebrow, .story-card .h2 em { color: var(--amber); }
.story-card .h2 { margin-bottom: 1.2rem; }
.story-card p { color: rgba(255, 255, 255, .85); }
.story-card .link-arrow { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.8rem 0 2rem; }
.stats div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
.stats dd { margin: 4px 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- Attentions ---------- */
.care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.care { padding: clamp(24px, 3vw, 40px); background: var(--bg); transition: background-color .3s; }
.care:hover { background: var(--surface); }
.care .icon { width: 44px; height: 44px; padding: 10px; margin-bottom: 1.4rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.care h3 { font-size: 1.25rem; font-stretch: 108%; letter-spacing: -.015em; margin-bottom: .4em; }
.care p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .care-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .care-grid { grid-template-columns: 1fr; } }

/* ---------- Bandeau médical ---------- */
.medic-band {
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(212, 42, 50, .4), transparent 60%),
    linear-gradient(135deg, #18273b, #0b1420);
  position: relative; overflow: hidden;
}
.medic-band::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; opacity: .08;
  background: linear-gradient(#fff, #fff) center / 34% 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 34% no-repeat;
  transform: rotate(12deg);
}
.medic-band .eyebrow, .medic-band .h2 em { color: var(--amber); }
.medic-band .h2 { margin-bottom: 1rem; max-width: 18ch; }
.medic-band p { color: rgba(255, 255, 255, .8); max-width: 52ch; margin: 0; }
.medic-actions { display: flex; flex-direction: column; gap: 10px; }
.medic-band .btn-glass { --b-bg: rgba(255, 255, 255, .08); --b-fg: #fff; --b-line: rgba(255, 255, 255, .18); }
@media (max-width: 820px) { .medic-band { grid-template-columns: 1fr; } .medic-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Pages intérieures ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(110px, 14vw, 170px);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-hero .lede { margin-top: 1.4rem; }
.page-hero .ridge { position: absolute; inset: auto 0 -1px 0; z-index: -1; width: 100%; height: clamp(70px, 10vw, 130px); fill: var(--bg); }
.page-hero .ridge-back { fill: color-mix(in srgb, var(--ink) 6%, transparent); transform: translateY(-14px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-media { transform: none; } }

.crumbs { display: flex; gap: .5em; margin-bottom: 1.4rem; font-size: .88rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Blocs de service */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service.flip .service-media { order: 2; }
.service-num { display: block; margin-bottom: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--accent-text); }
.service h2 { margin-bottom: 1.2rem; }
.service-media { position: relative; }
.service-media .main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.service-media .main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-media .inset { position: absolute; right: -18px; bottom: -28px; width: 46%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); transform: rotate(3deg); }
.service-media .inset img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checklist { display: grid; gap: 10px; margin: 1.6rem 0 2rem; }
.checklist li { display: flex; gap: .7em; align-items: flex-start; }
.checklist .icon { margin-top: .2em; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); stroke-width: 2.5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0; }
.tags li { padding: .4em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; font-weight: 600; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service.flip .service-media { order: 0; }
  .service-media .inset { right: 10px; }
}

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 2.2rem;
  font-size: 3.4rem; font-weight: 800; font-stretch: 120%; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-text);
}
.step h3 { font-size: 1.35rem; margin-bottom: .5em; font-stretch: 108%; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); }
.step .btn { margin-top: 1.2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.place-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.place-cloud li { padding: .55em 1.1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-stretch: 105%; }
.place-cloud li:nth-child(3n+1) { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }

.partners { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; margin-top: 1rem; }
.partners li { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; color: var(--ink-3); }

/* Tarifs */
.tarif-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .tarif-grid { grid-template-columns: 1fr; } }
.rate-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rate { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rate dt { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.rate dd { margin: .3em 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rate dd small { font-size: .45em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
@media (max-width: 860px) { .rate-cards { grid-template-columns: 1fr 1fr; } }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: .95rem; }
.notice .icon { color: var(--accent-text); width: 22px; height: 22px; margin-top: 2px; }
.notice p { margin: 0; }

/* Radar */
.radar { margin: 0; padding: clamp(14px, 2vw, 24px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.radar svg { width: 100%; height: auto; overflow: visible; }
.rd-ring { fill: none; stroke: var(--line); stroke-dasharray: 3 5; }
.rd-ring-label { font-size: 11px; fill: var(--ink-3); font-weight: 600; }
.rd-axis { stroke: var(--line); }
.rd-north { font-size: 12px; font-weight: 800; fill: var(--ink-3); }
.rd-sweep { transform-origin: 300px 300px; animation: sweep 7s linear infinite; }
.rd-sweep path { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
@keyframes sweep { to { transform: rotate(360deg); } }
.rd-pt { cursor: pointer; outline: none; }
.rd-dot { fill: var(--c, var(--ink-2)); stroke: var(--surface); stroke-width: 2; transition: r .2s; }
.rd-halo { fill: var(--c, var(--ink-2)); opacity: 0; transition: opacity .2s; }
.rd-pt:hover .rd-halo, .rd-pt:focus-visible .rd-halo, .rd-pt.is-active .rd-halo { opacity: .25; }
.rd-pt:hover .rd-dot, .rd-pt:focus-visible .rd-dot, .rd-pt.is-active .rd-dot { r: 7; }
.rd-label { font-size: 12.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.rd-transport { --c: #2f7de1; } .rd-ski, .rd-montagne { --c: #13a37a; } .rd-sante { --c: var(--red); } .rd-ville { --c: #9a8a6c; }
.rd-home circle { fill: var(--accent); }
.rd-home .rd-pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-origin: 300px 300px; animation: radar-pulse 2.4s ease-out infinite; }
@keyframes radar-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.rd-home text { font-size: 13px; font-weight: 900; letter-spacing: .14em; fill: var(--ink); }
.radar figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: .82rem; color: var(--ink-2); }
.lg::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--c); }
.lg-transport { --c: #2f7de1; } .lg-ski { --c: #13a37a; } .lg-sante { --c: var(--red); } .lg-ville { --c: #9a8a6c; }
.lg-hint { margin-left: auto; font-style: italic; }

/* Équipe & histoire */
.timeline { position: relative; display: grid; gap: 0; margin-left: 10px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 40px 32px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline .year { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.04em; line-height: 1; margin-bottom: .3em; }
.timeline p { color: var(--ink-2); margin: 0; max-width: 52ch; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.member { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.2rem; border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--on-accent);
  background: conic-gradient(from 200deg, var(--amber), #ffd98a, var(--amber-2), var(--amber));
}
.member:nth-child(3n+2) .avatar { background: conic-gradient(from 120deg, #9cc0ff, #dce8ff, #6f9ce6, #9cc0ff); color: #0b1420; }
.member:nth-child(3n+3) .avatar { background: conic-gradient(from 40deg, #f08a8f, #ffd2d4, var(--red), #f08a8f); color: #2b0507; }
.member h3 { font-size: 1.15rem; font-stretch: 108%; }
.member p { margin: .2em 0 0; color: var(--ink-3); font-size: .9rem; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.gallery picture { height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: .35em .8em; border-radius: 999px; background: rgba(8, 14, 22, .7); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.g-a { grid-column: span 7; aspect-ratio: 16 / 10; }
.g-b { grid-column: span 5; }
.g-c, .g-d, .g-e { grid-column: span 4; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-a { grid-column: span 2; }
  .g-b { grid-column: span 2; aspect-ratio: 4 / 3; }
  .g-c, .g-d, .g-e { grid-column: span 1; }
  .g-e { grid-column: span 2; }
}

.commune-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.commune-list a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 160px;
  padding: 22px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 1.3rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.1;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.commune-list a .icon { align-self: flex-end; color: var(--accent-text); }
.commune-list a:hover { background: var(--ink); color: var(--bg); transform: translateY(-4px); }
.commune-list a:hover .icon { color: var(--accent); }
@media (max-width: 860px) { .commune-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field-label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.field label small { font-weight: 500; color: var(--ink-3); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 130px; resize: vertical; }
.input:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.input[aria-invalid="true"] { border-color: var(--red); }
.field-error { margin: 6px 0 0; color: var(--red); font-size: .86rem; font-weight: 600; }
:root[data-theme="nuit"] .field-error { color: #ff7b81; }
.form-alert { display: flex; gap: 12px; padding: 16px 18px; margin-bottom: 22px; border-radius: 14px; font-weight: 600; background: color-mix(in srgb, var(--red) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }

.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: .95rem; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.choice span .icon { width: 26px; height: 26px; color: var(--accent-text); }
.choice input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice:hover span { transform: translateY(-2px); }

.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; transition: all .2s; }
.toggle input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.stepper button { width: 52px; height: 50px; border: 0; background: transparent; font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.stepper input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 1.15rem; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }

/* Billet de réservation */
.ticket {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.ticket-main { padding: clamp(22px, 4vw, 48px); }
.ticket-stub {
  position: relative; padding: clamp(22px, 3vw, 36px);
  border-left: 2px dashed var(--line);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket-stub::before { top: -15px; clip-path: inset(50% 0 0 0); }
.ticket-stub::after { bottom: -15px; clip-path: inset(0 0 50% 0); }
.stub-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.stub-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stub-value { margin: .2em 0 1.2em; font-size: 1.25rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.2; word-break: break-word; }
.stub-price { font-size: 2.6rem; font-weight: 800; font-stretch: 90%; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.barcode { height: 54px; margin-top: 1.4rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; border-radius: 2px; }
.fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.fieldset legend { display: flex; align-items: center; gap: .7em; padding: 0; margin-bottom: 18px; font-size: 1.3rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; }
.fieldset legend .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .85rem; }
@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .ticket-stub::before { left: -15px; top: -15px; clip-path: inset(0 0 0 50%); }
  .ticket-stub::after { left: auto; right: -15px; top: -15px; bottom: auto; clip-path: inset(0 50% 0 0); }
}

.success {
  max-width: 720px; margin-inline: auto; text-align: center;
  padding: clamp(32px, 6vw, 64px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stamp {
  display: inline-grid; place-items: center; width: 120px; height: 120px; margin-bottom: 1.6rem;
  border-radius: 50%; border: 4px double #2fbf71; color: #2fbf71;
  font-weight: 900; font-stretch: 120%; letter-spacing: .1em; font-size: .9rem; text-transform: uppercase;
  transform: rotate(-12deg); animation: stamp .6s var(--ease) both;
}
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; }
.c-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
a.c-card:hover { transform: translateX(6px); border-color: var(--accent); }
.c-card .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-text); }
.c-card small { display: block; color: var(--ink-3); font-size: .82rem; font-weight: 600; }
.c-card strong { font-size: 1.15rem; font-stretch: 105%; word-break: break-word; }
.c-card.big strong { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.map { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
:root[data-theme="nuit"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.panel { padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Texte long */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; font-stretch: 108%; letter-spacing: -.02em; margin: 2.4rem 0 .8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--accent-text); }

/* 404 */
.lost { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 16px 80px; }
.lost .code { font-size: clamp(7rem, 26vw, 16rem); font-weight: 900; font-stretch: 125%; line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lost .code span { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; margin-top: 60px; padding-top: 40px; background: var(--night-1); color: #d6dbe3; }
.footer-ridge { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 80px; fill: var(--night-1); }
.footer-cta { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta .eyebrow { color: var(--amber); }
.giant-phone {
  display: inline-block;
  font-size: clamp(2.8rem, 10.5vw, 9.5rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.045em; line-height: .95;
  color: #fff; text-decoration: none; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--amber), var(--amber)) left bottom / 0 6px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.giant-phone:hover { background-size: 100% 6px; color: var(--amber); }
.footer-cta-sub { margin: 1.4rem 0 0; color: #9aa6b6; }
.footer-cta-sub a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.footer-brand p { color: #9aa6b6; max-width: 36ch; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #8391a5; margin-bottom: 1rem; font-weight: 700; }
.site-footer address { line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-links { display: grid; gap: .45em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #8391a5; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre d'actions mobile ---------- */
.dock { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
    border-radius: 20px; background: rgba(9, 16, 26, .82); border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
    transition: transform .4s var(--ease);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; border-radius: 14px; font-weight: 800; text-decoration: none; }
  .dock-call { background: var(--amber); color: #1b1404; }
  .dock-book { color: #fff; background: rgba(255, 255, 255, .08); }
  .menu-open .dock { transform: translateY(150%); }
  .header-book { display: none; }
}

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .care-grid .reveal.is-in:nth-child(3n+2), .js .bento .reveal.is-in:nth-child(2) { transition-delay: .08s; }
.js .care-grid .reveal.is-in:nth-child(3n+3), .js .bento .reveal.is-in:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

.medic-band .partners li { color: rgba(255, 255, 255, .78); }
