/* ===== tokens.css ===== */
/* Tokens AZK Auto — repris de la démo validée */
:root {
  /* Nuit et carbone */
  --night: #12161D;
  --night-deep: #0C1015;
  --carbon: #1A212B;
  --carbon-2: #222B37;
  --line-dark: #2C3644;
  --fog: #E9EDF2;
  --mute-dark: #9DA9B7;
  --dim-dark: #66717F;

  /* Clair */
  --alc: #EEF0F3;
  --paper: #FFFFFF;
  --ink: #121922;
  --ink-2: #26303C;
  --mute: #5A6572;
  --line: #D5DAE1;
  --tint: #F3FBFD;

  /* Lumière LED */
  --led: #3DD6F5;
  --led-hi: #6BE2F8;
  --led-2: #8F7DFF;
  --led-ink: #0A6F84;
  --on-led: #06222A;

  /* États */
  --ok: #1C8C61;
  --ok-bg: #E3F5EE;
  --err: #B8322A;
  --err-bg: #FBEDEC;
  --todo: #FFE7A3;
  --todo-ink: #5C4300;

  /* Rayons */
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;
  --r-pill: 999px;

  /* Typo */
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mouvement */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* Mise en page */
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 64px;
  --bar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ===== base.css ===== */
/* Polices auto-hébergées */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--alc); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--led); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--led); color: var(--on-led); padding: .7rem 1rem; border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Marqueur des infos à confirmer — visible exprès */
.todo { display: inline; background: var(--todo); color: var(--todo-ink); font: 600 .78em/1.3 var(--body); padding: .1em .4em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; letter-spacing: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; font: 600 1rem/1.1 var(--body); padding: .85rem 1.4rem; border-radius: var(--r-pill); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.btn svg { flex: 0 0 auto; }
.btn-led { background: var(--led); color: var(--on-led); }
.btn-led:hover { background: var(--led-hi); }
.btn-ghost { border-color: var(--line-dark); color: var(--fog); background: transparent; }
.btn-ghost:hover { border-color: var(--mute-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--mute); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 40; background: rgba(18, 22, 29, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--mute-dark); text-decoration: none; font-weight: 500; padding: 10px 0; }
.top nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .btn { min-height: 44px; padding: .65rem 1.1rem; font-size: .95rem; white-space: nowrap; }
.sound-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--mute-dark); cursor: pointer; transition: color .2s, border-color .2s, box-shadow .2s; }
.sound-btn:hover { color: #fff; border-color: var(--mute-dark); }
.sound-btn[aria-pressed="true"] { color: var(--led); border-color: color-mix(in srgb, var(--led) 55%, transparent); box-shadow: 0 0 14px -4px var(--led); }
.sound-btn .on, .sound-btn[aria-pressed="true"] .off { display: none; }
.sound-btn[aria-pressed="true"] .on { display: block; }
.short { display: none; }
@media (max-width: 480px) { .long { display: none; } .short { display: inline; } .brand img { height: 26px; } }
@media (max-width: 920px) { .top nav { display: none; } .top-actions { margin-left: auto; } }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; color: var(--mute); font-size: 1.08rem; }
.dark { background: var(--night); color: var(--fog); }
.dark .sec-head p { color: var(--mute-dark); }
.dark h2, .dark h3 { color: #fff; }

/* Pied de page */
.foot { background: var(--night-deep); color: var(--mute-dark); padding: 56px 0 calc(32px + var(--safe-b)); font-size: .95rem; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 12px; }
.foot a { color: var(--mute-dark); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot .brand img { height: 34px; margin-bottom: 14px; }
.foot p { max-width: 40ch; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.hours dt { color: var(--fog); }
.hours dd { margin: 0; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 900px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot .wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .foot { padding-bottom: calc(var(--bar-h) + 32px + var(--safe-b)); } }

/* ===== components.css ===== */
/* ============ Hero ============ */
.hero { background: var(--night); color: var(--fog); padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); color: #fff; max-width: 13ch; }
.hero .lead { margin-top: 22px; font-size: 1.15rem; color: var(--mute-dark); max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; padding: 22px 0 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line-dark); }
.facts li { font-size: .95rem; color: var(--mute-dark); line-height: 1.4; }
.facts strong { display: block; color: #fff; font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 960px) {
  .hero { padding: 26px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; max-width: 20ch; }
  .dash { order: 2; padding-top: 18px; }
  .hero .ctas { order: 3; margin-top: 26px; }
  .hero .lead { order: 4; margin-top: 26px; }
  .facts { order: 5; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.3rem); line-height: 1.04; }
  .ambient { margin-top: 18px; }
  .dash-hint { margin-top: 12px; font-size: .84rem; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 14px; } .hero .ctas .btn { flex: 1 1 100%; } }

/* Écran CarPlay dessiné */
.dash { position: relative; padding: 28px 0 0; }
.screen { position: relative; aspect-ratio: 16 / 9.4; background: #0B0E13; border-radius: 22px; border: 10px solid #1D232C; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px #000; padding: 14px; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 10px; overflow: hidden; transform: perspective(1400px) rotateY(calc(-9deg + var(--ty, 0deg))) rotateX(calc(3deg + var(--tx, 0deg))); transform-origin: left center; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.screen:focus-visible { outline: 3px solid var(--amb1, var(--led)); outline-offset: 4px; }
@media (max-width: 960px) { .screen { transform: none; } }
@media (max-width: 560px) {
  .screen { aspect-ratio: auto; border-width: 7px; border-radius: 20px; padding: 10px; gap: 8px; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(150px, 46vw) minmax(92px, 26vw); }
  .screen .t-map { grid-column: 1 / -1; grid-row: 2; }
  .screen .t-music { grid-column: 1; grid-row: 3; }
  .screen .t-cam { grid-column: 2; grid-row: 3; }
  .screen .status { grid-column: 1 / -1; grid-row: 1; }
  .t-map .eta { font-size: .68rem; padding: 6px 8px; left: 8px; bottom: 8px; }
  .t-map .eta b { font-size: .95rem; }
  .tile { padding: 10px; }
  .t-music .track { font-size: .88rem; }
  .bar { margin-top: 10px; }
}
.status { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 500 .78rem var(--body); color: #8C97A5; padding: 0 4px; }
.tile { background: #161B23; border-radius: 12px; padding: 12px; position: relative; overflow: hidden; }
.t-map { grid-row: 2 / 4; background: #1A2230; }
.t-map svg, .t-cam svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-map .eta { position: absolute; left: 12px; bottom: 12px; background: rgba(11, 14, 19, .85); border-radius: 8px; padding: 8px 10px; font-size: .78rem; color: #C9D2DD; line-height: 1.3; }
.t-map .eta b { display: block; color: #fff; font-family: var(--display); font-size: 1.15rem; }
.t-music > span, .t-cam .t-label { display: block; }
.t-label { font-size: .72rem; color: #7E8A99; margin-bottom: 6px; position: relative; z-index: 1; }
.t-music .track { color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.t-music .artist { color: #8C97A5; font-size: .78rem; }
.bar { height: 4px; border-radius: 2px; background: #2A3240; margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 42%; background: var(--amb1, var(--led)); }
.t-cam { background: #0F1418; }
/* Écran vivant : flèche de navigation, égaliseur, radar de recul */
.puck { opacity: 0; transition: opacity .6s; }
.puck-halo { fill: var(--amb1, var(--led)); opacity: .28; }
.hero.alive .puck { opacity: 1; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; margin-left: 6px; vertical-align: -1px; }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: var(--amb1, var(--led)); transform-origin: bottom; transform: scaleY(.35); }
.hero.alive .eq i { animation: eq .9s ease-in-out infinite alternate; }
.hero.alive .eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.hero.alive .eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; }
.hero.alive .eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.hero.alive .t-cam .warn { animation: warn 1.1s ease-in-out infinite; }
@keyframes warn { 50% { opacity: .25; } }
.hero.paused .eq i, .hero.paused .t-cam .warn { animation-play-state: paused; }
.ambient { position: relative; height: 6px; border-radius: 6px; margin: 26px 6% 0; background: linear-gradient(90deg, var(--amb1), var(--amb2), var(--amb1)); background-size: 200% 100%; box-shadow: 0 0 28px 6px color-mix(in srgb, var(--amb1) 38%, transparent), 0 0 64px 12px color-mix(in srgb, var(--amb2) 22%, transparent); }
.dash-hint { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 20px 0 0; font-size: .88rem; color: var(--mute-dark); }
.dash-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--amb1); box-shadow: 0 0 10px var(--amb1); }
.amb-badge { position: absolute; left: 50%; top: 10px; z-index: 3; transform: translate(-50%, -8px); opacity: 0; background: rgba(11, 14, 19, .88); color: #fff; font-size: .75rem; font-weight: 500; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--amb1) 65%, transparent); pointer-events: none; white-space: nowrap; }

/* ============ Comment ça se passe ============ */
.how { background: var(--paper); }
.how ol { list-style: none; padding: 2px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: s; position: relative; }
.how ol::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; }
.how li { counter-increment: s; padding: 26px 28px 0 0; }
.how li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.how li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--led-ink); display: block; margin-bottom: 14px; }
.how h3 { margin-bottom: 8px; }
.how li p { color: var(--mute); }
@media (max-width: 820px) {
  .how ol { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ============ Prestations (sombre) ============ */
.offers { background: var(--carbon); }
.family + .family { margin-top: 56px; }
.fam-title { font-size: 1.6rem; color: #fff; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.fam-title::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.offer { position: relative; background: var(--night); border: 1px solid var(--line-dark); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; color: var(--fog); }
.offer .ph { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(140deg, #1C2430, #0F141A); overflow: hidden; }
.offer .ph picture { position: absolute; inset: 0; }
.offer .ph img { width: 100%; height: 100%; object-fit: cover; }
.offer .body { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.offer h3, .offer h4 { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: #fff; line-height: 1.1; }
.offer p { color: var(--mute-dark); margin-top: 8px; font-size: .98rem; }
.offer dl { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 16px 0 18px; font-size: .92rem; }
.offer dt { color: var(--dim-dark); font-size: .85rem; }
.offer dd { margin: 0; font-weight: 600; color: #fff; min-height: 1.4em; }
.offer dd small { display: block; font-weight: 400; color: var(--mute-dark); font-size: .82rem; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer .btn-ink { background: var(--fog); color: var(--ink); }
.offer .btn-ink:hover { background: #fff; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-m); background: color-mix(in srgb, var(--led) 9%, transparent); border: 1px solid color-mix(in srgb, var(--led) 28%, transparent); font-size: .9rem; color: var(--fog); line-height: 1.45; }
.notice svg { flex: 0 0 18px; margin-top: 2px; color: var(--led); }
.offer.pack { flex-direction: row; background: linear-gradient(120deg, var(--night), #171C2A); border-color: color-mix(in srgb, var(--led) 30%, var(--line-dark)); }
.offer.pack .ph { flex: 0 0 44%; aspect-ratio: auto; min-height: 280px; }
.offer.pack .body { padding: 30px; }
.offer.pack h3 { font-size: 1.9rem; }
.offer.custom { background: transparent; border-style: dashed; border-color: #3B4656; }
.offer.custom .body { padding: 28px; }
.extra-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .extra-grid { grid-template-columns: 1fr; } .offer.pack { flex-direction: column; } .offer.pack .ph { flex: none; aspect-ratio: 16 / 9; min-height: 0; } .offer.pack .body { padding: 22px; } }
.prices-note { margin-top: 28px; font-size: .9rem; color: var(--mute-dark); max-width: 70ch; }

/* ============ Réalisations ============ */
.works { background: var(--paper); }
.ba { position: relative; aspect-ratio: 4 / 3; max-width: 860px; border-radius: var(--r-l); overflow: hidden; background: var(--night); touch-action: pan-y; user-select: none; -webkit-user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: linear-gradient(var(--led), var(--led-2)); box-shadow: 0 0 14px var(--led); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(18, 22, 29, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center no-repeat; border: 2px solid var(--led); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type="range"]:focus-visible ~ .handle::after { outline: 3px solid var(--led); outline-offset: 3px; }
.ba .tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(18, 22, 29, .8); color: #fff; font-size: .82rem; pointer-events: none; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }
.ba-cap { margin-top: 10px; color: var(--mute); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, calc(50% - 6px)), 1fr)); gap: 12px; margin-top: 40px; list-style: none; padding: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--night); border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figcaption { font-size: .9rem; color: var(--mute); margin-top: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 10, 14, .94); display: grid; grid-template-rows: auto 1fr auto; padding: 12px 12px calc(12px + var(--safe-b)); touch-action: pan-y pinch-zoom; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; color: var(--mute-dark); font-size: .9rem; }
.lb-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-s); }
.lb-cap { color: var(--fog); text-align: center; padding: 10px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(18, 22, 29, .7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
@media (max-width: 640px) { .lb-nav { display: none; } }

/* ============ Configurateur ============ */
.config { background: var(--alc); }
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cfg > * { min-width: 0; }
@media (max-width: 980px) { .cfg { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border-radius: var(--r-l); border: 1px solid var(--line); padding: 30px; overflow: clip; }
@media (max-width: 560px) { .panel { padding: 20px 16px; margin: 0 -4px; } }
.progress { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.progress li { position: relative; font-size: .85rem; color: var(--mute); padding-top: 10px; border-top: 3px solid var(--line); line-height: 1.25; }
.progress li::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease), background .3s; }
.progress li.done::after { transform: scaleX(1); }
.progress li.current::after { transform: scaleX(1); background: var(--led-ink); }
.progress li.current { color: var(--ink); font-weight: 600; }
.progress li.done { color: var(--ink); }
.progress span { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; }
@media (max-width: 560px) { .progress li { font-size: 0; padding-top: 6px; } .progress span { font-size: .85rem; } }
.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.active { display: block; }
.step h3 { font-size: 1.7rem; outline: none; }
.step .hint { color: var(--mute); margin: 6px 0 22px; }
.svc-fam { font: 600 .95rem var(--display); color: var(--mute); margin: 22px 0 10px; letter-spacing: .01em; }
.svc-fam:first-of-type { margin-top: 0; }

.svc { position: relative; overflow: hidden; border: 1.5px solid var(--line); border-radius: var(--r-m); margin-bottom: 10px; transition: border-color .15s, background .15s; }
.svc.on { border-color: var(--led-ink); background: var(--tint); }
.svc-head { display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; cursor: pointer; min-height: 56px; }
.svc-head input { position: absolute; opacity: 0; pointer-events: none; }
.check { flex: 0 0 24px; height: 24px; border-radius: 6px; border: 1.5px solid #A9B3BF; display: grid; place-items: center; margin-top: 2px; background: #fff; transition: background .2s, border-color .2s; }
.check path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s var(--ease) .05s; }
.svc.on .check { background: var(--led-ink); border-color: var(--led-ink); }
.svc.on .check path { stroke-dashoffset: 0; }
.svc-head input:focus-visible + .check { outline: 3px solid var(--led); outline-offset: 2px; }
.svc-txt { flex: 1; min-width: 0; }
.svc-title { font-weight: 600; font-size: 1.06rem; display: block; }
.svc-desc { color: var(--mute); font-size: .94rem; display: block; }
.svc-price { margin-left: auto; white-space: nowrap; font-size: .88rem; color: var(--mute); text-align: right; }
.svc-price b { display: block; color: var(--ink); font-size: 1rem; }
.svc-price .todo { white-space: normal; }
.svc-pm { display: none; font-size: .88rem; font-weight: 600; color: var(--ink); margin-top: 2px; }
@media (max-width: 560px) { .svc-price { display: none; } .svc-pm { display: block; } }
.svc-opts { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.svc.on .svc-opts { grid-template-rows: 1fr; }
.svc-opts > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .4s; }
.svc.on .svc-opts > div { visibility: visible; transition-delay: 0s; }
.opts-pad { padding: 0 16px 18px 54px; }
@media (max-width: 560px) { .opts-pad { padding: 0 14px 16px; } }
.opt-group + .opt-group { margin-top: 14px; }
.opt-label { font-size: .88rem; color: var(--mute); margin: 0 0 8px; display: block; padding: 0; }
fieldset.opt-group { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.opt-group + fieldset.opt-group, fieldset.opt-group + .field, .field + fieldset.opt-group { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: .95rem; font-weight: 500; background: #fff; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--led); outline-offset: 2px; }
.chip:hover span { border-color: var(--mute); }
.chip input:checked:hover + span { border-color: var(--ink); }
.svc .notice { color: var(--ink); background: #EAF7FA; border-color: #BFE7F0; margin-top: 12px; }
.svc .notice svg { color: var(--led-ink); }
.quote-tag { display: inline-block; margin-left: 6px; font: 600 .75rem var(--body); color: var(--led-ink); background: #E1F4F8; border-radius: var(--r-pill); padding: 2px 8px; vertical-align: 2px; }

.pack-note { display: none; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--night); color: var(--fog); margin-top: 6px; font-size: .95rem; position: relative; overflow: hidden; }
.pack-note.show { display: flex; }
.pack-note i { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field label small, .field .label small { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; min-height: 48px; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink); appearance: none; -webkit-appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235A6572' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 38px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--led-ink); box-shadow: 0 0 0 3px rgba(61, 214, 245, .3); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); }
.field .help { font-size: .86rem; color: var(--mute); margin-top: 6px; }
.err { color: var(--err); font-size: .9rem; margin-top: 6px; display: none; font-weight: 500; }
.err.show { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.place { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; border: 0; padding: 0; }
@media (max-width: 560px) { .place { grid-template-columns: 1fr; } }
.place label { position: relative; display: block; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 15px 18px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s, transform .15s; }
.place input { position: absolute; opacity: 0; }
.place label:has(input:checked) { border-color: var(--led-ink); background: var(--tint); }
.place label:has(input:focus-visible) { outline: 3px solid var(--led); outline-offset: 2px; }
.place b { display: block; font-size: 1.04rem; }
.place span { color: var(--mute); font-size: .92rem; }
.travel { margin: 4px 0 6px; padding: 12px 14px; border-radius: var(--r-m); background: var(--alc); font-size: .93rem; color: var(--ink); }
.travel:empty { display: none; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.day { flex: 0 0 auto; position: relative; scroll-snap-align: start; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.day span { display: block; width: 72px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 10px 4px; background: #fff; line-height: 1.2; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.day small { display: block; color: var(--mute); font-size: .8rem; }
.day b { font-family: var(--display); font-size: 1.5rem; display: block; }
.day input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.day input:checked + span small { color: #B9C3CE; }
.day input:focus-visible + span { outline: 3px solid var(--led); outline-offset: 2px; }
.sub { margin: 22px 0 10px; font-weight: 600; font-size: .95rem; padding: 0; }
fieldset.sub-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.slot-row + .slot-row { margin-top: 10px; }
.slot-lab { display: block; font-size: .82rem; color: var(--mute); margin-bottom: 6px; }
#times .chip span { min-width: 64px; justify-content: center; }
.slot-note { font-size: .9rem; color: var(--mute); margin-top: 12px; }

.nav-steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.nav-steps .btn { min-width: 120px; }
#next { position: relative; }
.rgpd { margin-top: 14px; font-size: .84rem; color: var(--mute); line-height: 1.45; }
.rgpd a { color: var(--led-ink); }
.reassure { margin-top: 10px; font-size: .9rem; color: var(--mute); }

/* Récapitulatif */
.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--night); color: var(--fog); border-radius: var(--r-l); padding: 26px; }
.summary h3 { color: #fff; font-size: 1.35rem; margin-bottom: 16px; }
.sum-block { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.sum-block:first-of-type { border-top: 0; padding-top: 0; }
.sum-k { font-size: .82rem; color: var(--mute-dark); margin-bottom: 4px; }
.sum-v { color: #fff; font-weight: 500; line-height: 1.4; border-radius: 6px; margin: 0 -6px; padding: 2px 6px; }
.sum-v.empty { color: #7D8896; font-weight: 400; }
.sum-v small { color: var(--mute-dark); font-weight: 400; }
.sum-list { list-style: none; padding: 0; margin: 0; }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sum-list li > span:last-child { color: var(--mute-dark); white-space: nowrap; font-size: .92rem; text-align: right; }
.sum-pay { margin-top: 16px; padding: 14px; border-radius: var(--r-m); background: var(--carbon); font-size: .9rem; color: var(--mute-dark); line-height: 1.45; }
.sum-pay b { color: #fff; display: block; margin-bottom: 2px; }
@media (max-width: 980px) { .summary { position: static; } }

/* Fin : succès / échec */
.done-panel { display: none; outline: none; }
.done-panel.show { display: block; }
.done-top { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.done-top h3 { font-size: 1.7rem; }
.done-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; }
.ref { font-family: var(--display); font-weight: 600; color: var(--led-ink); }
.ticket { border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: 20px; margin: 18px 0; background: #FAFBFC; }
.ticket dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; }
.ticket dt { color: var(--mute); font-size: .92rem; }
.ticket dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ticket dl { grid-template-columns: 1fr; gap: 2px; } .ticket dd { margin-bottom: 10px; } }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.test-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--todo); color: var(--todo-ink); font-size: .9rem; }
.fail { margin-top: 18px; padding: 18px; border-radius: var(--r-m); background: var(--err-bg); border: 1px solid #F0C7C3; }
.fail b { display: block; color: var(--err); margin-bottom: 4px; }
.fail .done-actions { margin-top: 14px; }

/* ============ Zone (sombre) ============ */
.zone .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .zone .wrap { grid-template-columns: 1fr; gap: 36px; } }
.zone p { color: var(--mute-dark); margin-top: 14px; font-size: 1.05rem; max-width: 52ch; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.towns li { padding: .4rem .8rem; border: 1px solid var(--line-dark); border-radius: var(--r-pill); font-size: .92rem; color: var(--fog); }
.map { background: var(--night-deep); border: 1px solid var(--line-dark); border-radius: var(--r-l); aspect-ratio: 1 / .85; position: relative; overflow: hidden; }
.map svg { width: 100%; height: 100%; }
.map .zone-c, .map .ping { transform-box: fill-box; transform-origin: center; }
.map .ping { opacity: 0; }
.map .radar { transform-box: view-box; transform-origin: 205px 170px; }
.zone .addr { margin-top: 22px; color: var(--fog); }
.zone .btn { margin-top: 24px; }

/* ============ FAQ ============ */
.faq { background: var(--paper); }
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.1rem; position: relative; min-height: 44px; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq-list details[open] summary { color: var(--led-ink); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details.closing summary::after { transform: translateY(-70%) rotate(45deg); }
.faq-list .answer { padding: 0 0 22px; color: var(--mute); max-width: 66ch; overflow: hidden; }
.faq-list .answer p + p { margin-top: 10px; }

/* ============ Bandeau final ============ */
.cta-band { position: relative; color: #fff; padding: 0; background: var(--night); overflow: hidden; }
.cta-band picture, .cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 22, 29, .96) 0%, rgba(18, 22, 29, .8) 45%, rgba(18, 22, 29, .2) 100%); }
.cta-band .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 110px; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { margin-top: 14px; color: var(--mute-dark); max-width: 44ch; font-size: 1.08rem; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 640px) { .cta-band::after { background: linear-gradient(180deg, rgba(18, 22, 29, .55) 0%, rgba(18, 22, 29, .95) 60%); } .cta-band .wrap { padding-top: 200px; padding-bottom: 64px; } }

/* ============ Barre mobile ============ */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); background: rgba(14, 18, 24, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark); transition: transform .35s var(--ease); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--fog); border: 1px solid var(--line-dark); }
  .mbar a.rdv { background: var(--led); color: var(--on-led); border-color: var(--led); }
  .mbar.solo { grid-template-columns: 1fr; }
  .mbar.duo { grid-template-columns: 1fr 1.3fr; }
  .mbar.off { transform: translateY(110%); }
  .intro-on .mbar { transform: translateY(110%); }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 70; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); background: var(--night); color: #fff; padding: .85rem 1.25rem; border-radius: var(--r-pill); font-weight: 500; font-size: .95rem; border: 1px solid var(--line-dark); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility 0s .5s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s; }
.toast i { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }
@media (max-width: 760px) { .toast { bottom: calc(var(--bar-h) + 18px + var(--safe-b)); } }

/* ============ Pages simples (légal, 404) ============ */
.page-head { background: var(--night); color: #fff; padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { color: var(--mute-dark); margin-top: 10px; }
.prose { background: var(--paper); padding: 56px 0 80px; }
.prose .wrap { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.2em; margin-top: 8px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--led-ink); }
.prose dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 18px; }
.prose dt { color: var(--mute); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }

/* ===== animations.css ===== */
/* Toutes les animations décoratives sont sous .anim (ajoutée par js/boot.js
   seulement si prefers-reduced-motion n'est pas demandé). */
@property --amb1 { syntax: '<color>'; inherits: true; initial-value: #3DD6F5; }
@property --amb2 { syntax: '<color>'; inherits: true; initial-value: #8F7DFF; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 40% { transform: scale(1.14); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .55; } }
@keyframes flow { to { background-position: 200% 0; } }

/* ============ Intro « démarrage moteur » ============ */
.intro { display: none; }
.intro-on .intro { display: grid; }
html.intro-on { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 100; place-items: center; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; transition: transform .8s var(--ease-io); }
.intro-half.ih-top { top: 0; background: linear-gradient(180deg, var(--night-deep), var(--night)); }
.intro-half.ih-bot { bottom: 0; background: linear-gradient(0deg, var(--night-deep), var(--night)); }
.intro.open { pointer-events: none; }
.intro.open .intro-half.ih-top { transform: translateY(-100%); }
.intro.open .intro-half.ih-bot { transform: translateY(100%); }
.intro-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; transition: opacity .3s, transform .6s var(--ease-io); }
.intro.open .intro-core { opacity: 0; transform: scale(1.08); }
.gauge-box { position: relative; width: min(64vw, 260px); }
.gauge { width: 100%; height: auto; overflow: visible; animation: fadeIn .4s ease both; }
.g-track { fill: none; stroke: #1F2732; stroke-width: 5; stroke-linecap: round; }
.g-fill { fill: none; stroke: url(#gl); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 452.4; stroke-dashoffset: 452.4; filter: drop-shadow(0 0 6px rgba(61, 214, 245, .75)); }
.g-tick { stroke: #36414F; stroke-width: 1.5; }
.g-tick.maj { stroke: #AEB9C6; stroke-width: 2.5; }
.g-tick.red { stroke: #E5533D; }
.g-num { fill: #7C8896; font: 600 12px var(--body); text-anchor: middle; }
.g-unit { fill: #55606D; font: 500 10px var(--body); text-anchor: middle; }
.g-needle { transform-box: view-box; transform-origin: 120px 120px; transform: rotate(-135deg); }
.g-needle path { fill: #fff; filter: drop-shadow(0 0 4px rgba(61, 214, 245, .9)); }
.g-needle circle { fill: #1A212B; stroke: var(--led); stroke-width: 2; }
.intro.run .g-needle { animation: needle 1.6s .2s both; }
.intro.run .g-fill { animation: gfill 1.6s .2s both; }
@keyframes needle {
  0% { transform: rotate(-135deg); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  48% { transform: rotate(130deg); animation-timing-function: cubic-bezier(.5, 0, .4, 1); }
  80% { transform: rotate(-135deg); animation-timing-function: ease-out; }
  91% { transform: rotate(-98deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(-112deg); }
}
@keyframes gfill {
  0% { stroke-dashoffset: 452.4; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  48% { stroke-dashoffset: 8; animation-timing-function: cubic-bezier(.5, 0, .4, 1); }
  80% { stroke-dashoffset: 452.4; animation-timing-function: ease-out; }
  91% { stroke-dashoffset: 390; animation-timing-function: ease-in-out; }
  100% { stroke-dashoffset: 413; }
}
/* Bouton Start/Stop au centre du compte-tours */
.start { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; color: #fff; background: radial-gradient(circle at 50% 35%, #2A3442, #151A22 70%); box-shadow: 0 0 0 2px #2C3644, 0 0 0 6px #0E1218, 0 0 0 8px color-mix(in srgb, var(--led) 70%, transparent), 0 0 34px 4px color-mix(in srgb, var(--led) 35%, transparent), inset 0 2px 6px rgba(255, 255, 255, .08); transition: opacity .35s, transform .35s var(--ease); animation: startPulse 2.2s ease-in-out infinite; font: inherit; }
.start b { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 4.2vw, 1.2rem); letter-spacing: .02em; }
.start small { font-size: .7rem; color: var(--mute-dark); }
.start:active { transform: translate(-50%, -50%) scale(.95); }
.start:focus-visible { outline: 3px solid var(--led); outline-offset: 10px; border-radius: 50%; }
@keyframes startPulse {
  50% { box-shadow: 0 0 0 2px #2C3644, 0 0 0 6px #0E1218, 0 0 0 8px var(--led), 0 0 48px 10px color-mix(in srgb, var(--led) 45%, transparent), inset 0 2px 6px rgba(255, 255, 255, .08); }
}
.intro.run .start { opacity: 0; transform: translate(-50%, -50%) scale(.85); pointer-events: none; animation: none; }
.intro { cursor: pointer; }
.intro-hint { margin-top: 26px; color: var(--mute-dark); font: 500 .95rem var(--body); transition: opacity .3s; }
.intro.run .intro-hint { opacity: 0; }
/* Logo « éteint » avant le démarrage, puis allumé */
.intro-logo { width: min(70vw, 300px); height: auto; margin-top: 6px; opacity: .22; filter: grayscale(.8) brightness(.6); }
.intro.run .intro-logo { animation: logoIn .7s var(--ease) 1.05s forwards; }
@keyframes logoIn { from { opacity: .22; transform: scale(1.06); filter: grayscale(.8) brightness(.6) blur(4px); } to { opacity: 1; transform: none; filter: grayscale(0) brightness(1) blur(0); } }
.intro-sub { color: var(--mute-dark); margin-top: 6px; opacity: 0; }
.intro.run .intro-sub { animation: fadeUp .5s var(--ease) 1.3s forwards; }
.intro-led { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, transparent, var(--led) 18%, var(--led-2) 82%, transparent); box-shadow: 0 0 18px var(--led), 0 0 46px rgba(143, 125, 255, .6); transform: scaleX(0); }
.intro.run .intro-led { animation: ledline .45s var(--ease) 1.7s forwards; }
@keyframes ledline { to { transform: scaleX(1); } }
.intro.open .intro-led { opacity: 0; transition: opacity .5s .25s; }

/* ============ En-tête ============ */
.top { transition: background .3s, transform .7s var(--ease); }
.top .wrap { transition: height .35s var(--ease); }
.top.scrolled { background: rgba(14, 18, 24, .96); }
@media (min-width: 761px) { .top.scrolled .wrap { height: 58px; } }
.scroll-led { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--led), var(--led-2)); box-shadow: 0 0 10px rgba(61, 214, 245, .7); pointer-events: none; }
.top nav a { position: relative; transition: color .2s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--led); box-shadow: 0 0 8px var(--led); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top nav a:hover::after { transform: scaleX(1); }
.anim.intro-on .top { transform: translateY(-100%); }
.anim.ready .top { transition-delay: .1s; }

/* ============ Hero : couleur d'ambiance ============ */
.hero { --amb1: #3DD6F5; --amb2: #8F7DFF; position: relative; transition: --amb1 .7s ease, --amb2 .7s ease; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 380px at 76% 52%, color-mix(in srgb, var(--amb1) 16%, transparent), transparent 70%); }
@media (max-width: 960px) { .hero::before { background: radial-gradient(440px 320px at 50% 80%, color-mix(in srgb, var(--amb1) 16%, transparent), transparent 70%); } }
.hero .wrap { position: relative; z-index: 1; }
.t-map .route { stroke: var(--amb1); stroke-dasharray: 420; stroke-dashoffset: 0; }
.t-map .dest { fill: var(--amb2); }
.t-map .origin { stroke: var(--amb1); }
.anim .bar i { animation: prog 40s linear infinite; }
@keyframes prog { from { width: 28%; } to { width: 96%; } }
.anim .ambient { animation: flow 8s linear infinite; }
.anim .dash-hint i { animation: pulse 1.8s ease-in-out infinite; }
.amb-badge.show { animation: badge 1.7s var(--ease) forwards; }
@keyframes badge { 0% { opacity: 0; transform: translate(-50%, -8px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.amb-wave { position: absolute; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: none; border: 2px solid var(--amb1); box-shadow: 0 0 22px var(--amb1), inset 0 0 12px var(--amb1); animation: wave .85s var(--ease) forwards; }
@keyframes wave { to { transform: scale(20); opacity: 0; } }

/* Hero : entrée après l'intro.
   Le texte reste rendu derrière les portes (bon pour le LCP) ; l'animation part
   de son état initial au moment où .ready est posé, quand les portes couvrent encore l'écran. */
@keyframes wordUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.anim .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.anim .hero h1 .w > span { display: inline-block; }
.anim.ready .hero h1 .w > span { animation: wordUp .85s var(--ease) calc(var(--i) * 55ms) both; }
.anim.ready .hero .lead { animation: heroIn .8s var(--ease) .4s both; }
.anim.ready .hero .ctas { animation: heroIn .8s var(--ease) .55s both; }
.anim.ready .hero .facts li { animation: heroIn .8s var(--ease) calc(.7s + var(--i) * .1s) both; }
.anim.ready .dash-hint { animation: heroIn .6s var(--ease) 1.7s both; }
.anim .dash .screen { opacity: 0; transform: perspective(1400px) rotateY(-30deg) rotateX(10deg) translateY(30px) scale(.9); }
.anim.ready .dash .screen { opacity: 1; transform: perspective(1400px) rotateY(calc(-9deg + var(--ty, 0deg))) rotateX(calc(3deg + var(--tx, 0deg))); transition: opacity .8s ease .15s, transform 1.3s var(--ease) .15s; }
.anim.ready .dash.live .screen { transition: transform .3s ease-out; }
@media (max-width: 960px) { .anim .dash .screen { transform: translateY(26px) scale(.94); } .anim.ready .dash .screen, .anim.ready .dash.live .screen { transform: none; } }
.anim .tile { opacity: 0; transform: scale(.96); }
.anim.ready .tile { opacity: 1; transform: none; transition: opacity .5s ease calc(.75s + var(--i) * .15s), transform .6s var(--ease) calc(.75s + var(--i) * .15s); }
.anim .t-map .route { stroke-dashoffset: 420; }
.anim.ready .t-map .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) 1.1s, stroke .7s; }
.anim .ambient { transform: scaleX(0); }
.anim.ready .ambient { transform: scaleX(1); transition: transform 1.1s var(--ease) 1s; }

/* ============ Apparition au scroll ============ */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.anim [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s ease calc(var(--d, 0) * 1ms), transform .9s var(--ease) calc(var(--d, 0) * 1ms); }
.anim .how ol::before { transform: scaleX(0); }
.anim .how ol.in::before { transform: scaleX(1); transition: transform 1.3s var(--ease); }
.anim .how li::before { transform: translateY(18px); opacity: 0; }
.anim .how li.in::before { transform: none; opacity: 1; transition: transform .7s var(--ease) calc(var(--d, 0) * 1ms + 150ms), opacity .5s ease calc(var(--d, 0) * 1ms + 150ms); }

/* ============ Boutons : onde au clic ============ */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .15s, border-color .15s, color .15s, scale .12s; }
.btn:active { scale: .97; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .26; transform: scale(0); animation: ripple .65s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn.added { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ============ Cartes prestations : halo ============ */
.offer { transition: translate .4s var(--ease), box-shadow .4s, border-color .4s; }
.offer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 214, 245, .13), transparent 60%); }
.offer .ph img { transition: transform .8s var(--ease); }
@media (hover: hover) {
  .offer:hover { translate: 0 -5px; box-shadow: 0 26px 44px -26px rgba(0, 0, 0, .8); border-color: #3A4657; }
  .offer:hover::after { opacity: 1; }
  .offer:hover .ph img { transform: scale(1.05); }
  .gallery button:hover img { transform: scale(1.05); }
}

/* ============ Configurateur ============ */
form[data-dir="fwd"] .step.active { animation: stepFwd .5s var(--ease); }
form[data-dir="back"] .step.active { animation: stepBack .5s var(--ease); }
@keyframes stepFwd { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: none; } }
.svc.sweep::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(61, 214, 245, .26) 50%, transparent 70%); animation: sweep .85s var(--ease) forwards; }
.anim .svc.on .check { animation: pop .35s var(--ease); }
.chip:active span, .day:active span { transform: scale(.94); }
.anim .chip input:checked + span, .anim .day input:checked + span { animation: pop .3s var(--ease); }
.place label:active { transform: scale(.98); }
.anim .pack-note.show { animation: fadeUp .45s var(--ease); }
.anim .pack-note.show::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(61, 214, 245, .35) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 1.1s var(--ease) .2s forwards; }
.anim .pack-note i { animation: pulse 1.6s ease-in-out infinite; }
.anim .done-panel.show, .anim .fail { animation: fadeUp .35s var(--ease); }
#next.loading { opacity: 1; cursor: progress; }
#next.loading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--led), var(--led-2)); box-shadow: 0 0 10px var(--led); transform-origin: left; animation: charge 2.4s var(--ease) forwards; }
@keyframes charge { from { transform: scaleX(0); } to { transform: scaleX(.92); } }
.anim .done-panel.show .dc { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease) .1s forwards; }
.anim .done-panel.show .dp { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw .4s var(--ease) .6s forwards; }
.anim .done-panel.show .ticket { animation: print .9s var(--ease) .3s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.anim .done-panel.show .ticket dt, .anim .done-panel.show .ticket dd { animation: fadeUp .45s var(--ease) both; animation-delay: calc(.55s + var(--i) * 80ms); }
.spark { position: fixed; z-index: 60; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 8px currentColor; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* Nouvelles cartes (réalisations ajoutées) */
.anim .gallery li { animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.anim .lightbox:not([hidden]) { animation: fadeIn .25s ease; }

/* ============ Carte zone : radar ============ */
.anim .map .zone-c { transform: scale(0); opacity: 0; }
.anim .map.in .zone-c { transform: scale(1); opacity: 1; transition: transform 1.3s var(--ease) .2s, opacity .6s ease .2s; }
.anim .map.in .zone-c.inner { transition-delay: .45s; }
.anim .map .radar { opacity: 0; }
.anim .map.in .radar { opacity: 1; transition: opacity .8s ease 1s; animation: radar 6s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.anim .map.in .ping { animation: ping 3s ease-out 1.2s infinite; }
.anim .map.in .ping.p2 { animation-delay: 2.7s; }
@keyframes ping { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(9); opacity: 0; } }
.anim .map .town { opacity: 0; transform: translateY(8px); }
.anim .map.in .town { opacity: 1; transform: none; transition: opacity .45s ease calc(.6s + var(--i) * 90ms), transform .55s var(--ease) calc(.6s + var(--i) * 90ms); }

/* ============ Mouvement réduit : site complet, sans décor ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .screen { transform: none !important; }
}
