/* ==========================================================================
   Tillevent — page d'accueil
   Direction : « neige et nuit ». Blanc neige, bleu nuit, un seul rouge.
   Bricolage Grotesque très grand et serré, Figtree léger pour le texte.
   Signature : la feuille de route des villes dessinée comme une ligne de métro.
   Aucun changement requis dans le HTML ni dans home.js.
   ========================================================================== */

:root {
  /* Base */
  --snow: #F6F5F1;          /* fond de page */
  --paper: #FFFFFF;         /* surfaces */
  --ink: #14182A;           /* bleu nuit : texte et sections sombres */
  --ink-2: #1D2238;         /* surfaces sur fond nuit */
  --muted: #5B6072;
  --faint: #80859A;
  --line: #E6E4DE;
  --sand: #EEEDE7;

  /* Accent unique */
  --accent: #D7381F;        /* blanc sur rouge : 4,7:1 */
  --accent-hover: #C42F17;
  --accent-soft: #FBE4DE;
  --accent-on-night: #FF7A5E;
  --green: #2F6B4F;
  --mint: #B9D8A6;

  /* Sur fond nuit */
  --night-text: #F6F5F1;
  --night-muted: #A9AEC2;
  --night-line: rgba(246, 245, 241, 0.12);
  --night-fill: rgba(246, 245, 241, 0.06);

  /* Anciens noms conservés (utilisés par d'autres pages) */
  --cream: var(--snow);

  /* Ombres en couches, teintées nuit */
  --shadow-xs: 0 1px 2px rgba(20, 24, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(20, 24, 42, 0.05), 0 4px 12px rgba(20, 24, 42, 0.06);
  --shadow-md: 0 1px 2px rgba(20, 24, 42, 0.05), 0 10px 30px -6px rgba(20, 24, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 24, 42, 0.04), 0 24px 60px -12px rgba(20, 24, 42, 0.22);
  --shadow-accent: 0 1px 2px rgba(150, 30, 10, 0.25), 0 8px 22px -6px rgba(215, 56, 31, 0.55);
  --shadow: var(--shadow-sm);
  --soft: var(--shadow-md);

  /* Rayons : du plus grand au plus petit */
  --r-xl: 40px;   /* sections */
  --r-lg: 28px;   /* panneaux */
  --r-md: 20px;   /* cartes */
  --r-sm: 14px;   /* contrôles */

  /* Mouvement */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Typo */
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Catégories (mêmes que l'app) */
  --c-music: #FBDCC8; --c-music-ink: #7A3818;
  --c-food: #F7E7B4; --c-food-ink: #5E450D;
  --c-outdoor: #DCE8D2; --c-outdoor-ink: #2F4A25;
  --c-culture: #E9E0F5; --c-culture-ink: #3B2D57;
  --c-games: #F6D9E4; --c-games-ink: #6B2440;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--snow); padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* Titres */
h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 0.96; letter-spacing: -0.05em;
  margin: 0; text-wrap: balance;
}
h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Petit libellé de section : discret, en casse normale */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--muted);
}
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.kicker-light { color: var(--night-muted); }
.kicker-light::before { background: var(--accent-on-night); }

/* Lien avec soulignement qui se dessine */
.foot a, .pro-line a, .menu a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .35s var(--ease), color .2s ease, background-color .2s ease;
}
.foot a:hover, .pro-line a:hover { background-size: 100% 1.5px; }

/* ── En-tête flottant, verre dépoli ───────────────────────────────────── */
.top {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1112px, calc(100% - 24px)); max-width: none; margin: 12px auto 0;
  padding: 8px 8px 8px 22px; border-radius: 22px;
  background: rgba(246, 245, 241, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(20, 24, 42, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow-xs);
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -0.055em;
  text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline;
}
.wordmark span { color: var(--accent); display: inline-block; transition: transform .45s var(--spring); }
.wordmark:hover span { transform: translateY(-4px) scale(1.25); }

.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted);
  background-size: 0 0;
}
.menu a:hover { background-color: rgba(20, 24, 42, 0.05); color: var(--ink); }

.lang {
  position: relative; display: inline-flex; background: rgba(20, 24, 42, 0.05);
  border-radius: 14px; padding: 3px; border: 0;
}
.lang button {
  position: relative; min-width: 44px; height: 36px; border: 0; border-radius: 11px; background: transparent;
  font: 700 13px var(--text); letter-spacing: 0.02em; color: var(--muted); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ── Accroche ─────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 1.5px solid var(--accent);
  opacity: 0; animation: halo 2.4s var(--ease) infinite;
}
@keyframes halo { 0% { opacity: .7; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }

h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(54px, 8.2vw, 104px); line-height: 0.9; letter-spacing: -0.058em;
  margin: 28px 0 0;
}
/* Entrée orchestrée : une seule, au chargement */
h1 > span { display: inline-block; padding-bottom: 0.06em; animation: lineIn .9s var(--ease) both; }
h1 > span:nth-of-type(2) { animation-delay: .09s; }
h1 > span:nth-of-type(3) { animation-delay: .18s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(0.35em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
/* « ta ville. » : un coup de marqueur rouge, tracé après le titre */
h1 .accent {
  color: var(--ink); position: relative; z-index: 0;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0.04em 86% / 0 0.2em;
  animation: lineIn .9s var(--ease) .18s both, marker .7s var(--ease) .85s forwards;
}
@keyframes marker { to { background-size: calc(100% - 0.28em) 0.2em; } }

.sub { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 31em; margin: 28px 0 0; }

.countdown-label { margin: 44px 0 12px; font-weight: 600; font-size: 15px; color: var(--muted); }
/* Compte à rebours : une seule barre segmentée */
.countdown {
  display: inline-flex; flex-wrap: nowrap; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 6px;
}
.unit { position: relative; min-width: 88px; padding: 12px 14px 10px; text-align: center; }
.unit + .unit::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.unit:first-child { background: var(--ink); color: var(--snow); border-radius: 15px; }
.unit:first-child span { color: var(--night-muted); }
.unit:first-child + .unit::before { display: none; }
.unit b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.unit span { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 16px; border: 0;
  font: 700 16px var(--text); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background-color .25s var(--ease), color .25s var(--ease), opacity .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateY(-2px) rotate(-6deg); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .08s; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
/* reflet qui traverse le bouton au survol */
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(150, 30, 10, 0.2), 0 16px 30px -8px rgba(215, 56, 31, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:disabled { background: var(--sand); color: var(--faint); box-shadow: none; cursor: default; transform: none; }
.btn-primary:disabled::after { display: none; }

.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(20, 24, 42, 0.16), var(--shadow-md); }

.btn-light { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -10px rgba(60, 10, 0, 0.45); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(60, 10, 0, 0.55); }
.btn-wide { width: 100%; }

/* ── Collage ──────────────────────────────────────────────────────────── */
.collage { position: relative; height: 480px; }
.tile {
  position: absolute; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; border-radius: var(--r-lg);
  box-shadow: 0 1px 1px rgba(20, 24, 42, 0.04), 0 20px 40px -14px rgba(20, 24, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform .6s var(--spring), box-shadow .4s var(--ease);
}
.tile:hover { box-shadow: 0 1px 1px rgba(20, 24, 42, 0.04), 0 30px 60px -16px rgba(20, 24, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.tile svg { width: 52px; height: 52px; }
.tile p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.05; letter-spacing: -0.03em; }
.tile small { display: block; margin-top: 8px; font: 500 14px var(--text); letter-spacing: 0; opacity: 0.78; }
.t1 { background: var(--c-outdoor); color: var(--c-outdoor-ink); width: 204px; height: 232px; left: 0; top: 34px; transform: rotate(-6deg); }
.t2 { background: var(--c-food); color: var(--c-food-ink); width: 204px; height: 222px; right: 0; top: 0; transform: rotate(5deg); }
.t3 { background: var(--c-culture); color: var(--c-culture-ink); width: 214px; height: 182px; left: 44px; top: 286px; transform: rotate(-2deg); z-index: 2; }
.t4 { background: var(--c-music); color: var(--c-music-ink); width: 194px; height: 182px; right: 8px; top: 256px; transform: rotate(4deg); z-index: 3; }
.t1:hover { transform: rotate(-3deg) translateY(-6px); }
.t2:hover { transform: rotate(2deg) translateY(-6px); }
.t3:hover { transform: rotate(0) translateY(-6px); }
.t4:hover { transform: rotate(1deg) translateY(-6px); }
/* pastille en verre dépoli */
.sticker {
  position: absolute; z-index: 4; left: 150px; top: 236px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(20, 24, 42, 0.78); color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700; font-size: 14px; transform: rotate(-6deg);
  box-shadow: 0 14px 30px -10px rgba(20, 24, 42, 0.5);
}
.sticker::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--accent-on-night); box-shadow: 0 0 0 4px rgba(255, 122, 94, 0.25); }

/* ── Ruban des catégories ─────────────────────────────────────────────── */
.ribbon {
  background: var(--ink); color: var(--snow); margin: 0; padding: 22px 0; overflow: hidden;
}
.ribbon-track { display: flex; width: max-content; animation: scroll 48s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-set { display: flex; }
.ribbon-set span {
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.035em; white-space: nowrap;
  padding: 0 26px; display: inline-flex; align-items: center; gap: 52px;
}
.ribbon-set span::after { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--accent-on-night); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Aperçu de l'app ──────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: center; padding-top: 144px; padding-bottom: 72px; }
.app h2 { max-width: 11em; }
.features { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; max-width: 520px; }
.feature {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 16px; text-align: left;
  padding: 16px 20px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, 0.6); }
.feature[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-md); }
.feature b { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1.2; padding-top: 7px; }
.feature small { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); line-height: 1.5; animation: fadeIn .4s var(--ease); }
.feature:not([aria-selected="true"]) small { display: none; }
.feature:not([aria-selected="true"]) b { color: var(--muted); transition: color .2s ease; }
.feature:not([aria-selected="true"]):hover b { color: var(--ink); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }
.f-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; transition: transform .45s var(--spring); }
.f-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature[aria-selected="true"] .f-icon { transform: rotate(-8deg) scale(1.04); }
.feature:not([aria-selected="true"]) .f-icon { filter: saturate(0.4); opacity: .75; transition: filter .3s ease, opacity .3s ease, transform .45s var(--spring); }
.feature:not([aria-selected="true"]):hover .f-icon { filter: none; opacity: 1; }
.f-peach { background: var(--c-music); color: var(--c-music-ink); }
.f-green { background: var(--c-outdoor); color: var(--c-outdoor-ink); }
.f-lilac { background: var(--c-culture); color: var(--c-culture-ink); }
.f-yellow { background: var(--c-food); color: var(--c-food-ink); }
.f-progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.is-playing .f-progress.run { opacity: 1; animation: progress 5.5s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* Téléphone */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone-stage::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 999px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(215, 56, 31, 0.16), rgba(215, 56, 31, 0) 70%);
  filter: blur(10px);
}
.phone {
  position: relative; width: 304px; height: 620px; border-radius: 52px; background: var(--paper);
  border: 9px solid var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 50px 90px -30px rgba(20, 24, 42, 0.45), 0 20px 40px -20px rgba(20, 24, 42, 0.35);
  overflow: hidden;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 999px; background: var(--ink); z-index: 3; }
.phone-tag {
  position: absolute; right: 0; top: 34px; z-index: 4;
  background: rgba(255, 255, 255, 0.75); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none;
  padding: 7px 13px; border-radius: 999px;
}
.screen { position: absolute; inset: 0; padding: 52px 16px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--snow); }
.screen[hidden] { display: none; }
.screen.is-on { animation: screenIn .5s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.screen svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.s-head { display: flex; align-items: center; justify-content: space-between; }
.s-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; }
.s-round { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--snow); display: grid; place-items: center; }
.s-round svg { width: 19px; height: 19px; }
.s-search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--faint); box-shadow: var(--shadow-xs); }
.s-search svg { width: 16px; height: 16px; }
.s-day { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.s-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 9px; box-shadow: var(--shadow-xs); }
.s-card b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card em { font-style: normal; font-weight: 700; color: var(--accent); }
.s-thumb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.s-thumb svg { width: 21px; height: 21px; }
.s-thumb.small { width: 36px; height: 36px; }
.s-count { font-size: 11px; font-weight: 700; background: var(--sand); padding: 4px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.s-tabs { margin-top: auto; display: flex; justify-content: space-around; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 20px; padding: 13px; box-shadow: var(--shadow-sm); }
.s-tabs i { width: 22px; height: 5px; border-radius: 999px; background: var(--line); }
.s-tabs i.on { background: var(--accent); }

.c-music { background: var(--c-music); color: var(--c-music-ink); }
.c-food { background: var(--c-food); color: var(--c-food-ink); }
.c-outdoor { background: var(--c-outdoor); color: var(--c-outdoor-ink); }
.c-culture { background: var(--c-culture); color: var(--c-culture-ink); }
.c-games { background: var(--c-games); color: var(--c-games-ink); }

/* Écran carte */
#screen-map { padding: 0; }
.map { position: absolute; inset: 0; background: #ECEAE3; }
.map-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-roads path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.map-roads path.thin { stroke-width: 4; }
.map-roads path.water { fill: #CADDE6; stroke: none; }
.map-roads path.park { fill: #D3E3C7; stroke: none; }
.pin {
  position: absolute; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 12px 12px 12px 3px;
  background: var(--ink); color: var(--snow); font-weight: 700; font-size: 13px; display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(20, 24, 42, 0.5);
}
.pin-on { background: var(--accent); color: #fff; transform: scale(1.18); animation: bob 2.6s ease-in-out infinite; box-shadow: var(--shadow-accent); }
@keyframes bob { 50% { transform: scale(1.18) translateY(-5px); } }
.p1 { left: 34px; top: 110px; } .p2 { left: 190px; top: 86px; } .p3 { left: 168px; top: 196px; } .p4 { left: 52px; top: 300px; } .p5 { left: 214px; top: 340px; }
.map-sheet {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 16px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-lg);
}
.map-sheet b { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.035em; }
.map-sheet small { color: var(--muted); font-size: 13px; }
.map-dots { display: flex; gap: 6px; margin-top: 12px; }
.map-dots span { width: 30px; height: 30px; border-radius: 10px; }

/* Écran discussion */
.chat-head { justify-content: flex-start; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 15px; font-weight: 700; }
.chat-head small { display: block; font-size: 12px; color: var(--muted); }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--sand); padding: 6px 10px; border-radius: 999px; }
.sys svg { width: 13px; height: 13px; }
.msg { display: flex; align-items: flex-end; gap: 7px; max-width: 86%; }
.msg p { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 9px 12px; border-radius: 18px 18px 18px 6px; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-xs); }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--ink); border-color: var(--ink); color: var(--snow); border-radius: 18px 18px 6px 18px; }
.av { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.av1 { background: var(--c-culture); color: var(--c-culture-ink); }
.av2 { background: var(--c-food); color: var(--c-food-ink); }
.av3 { background: var(--c-outdoor); color: var(--c-outdoor-ink); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--faint); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 0.4; } }
.s-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 7px 7px 7px 14px; font-size: 13px; color: var(--faint); box-shadow: var(--shadow-sm); }
.s-input i { width: 32px; height: 32px; border-radius: 12px; background: var(--accent); }

/* Écran profil */
.prof { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
.prof-av { width: 96px; height: 96px; border-radius: 32px; background: var(--c-music); color: var(--c-music-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 40px; transform: rotate(-5deg); box-shadow: var(--shadow-md); }
.prof-name { margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; }
.prof-bio { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 230px; line-height: 1.45; }
.prof-stats { display: flex; gap: 8px; margin-top: 20px; width: 100%; }
.prof-stats span { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; box-shadow: var(--shadow-xs); }
.prof-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
.prof-stats small { font-size: 12px; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.chips span { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }

/* ── Comment ça marche : une vraie séquence, sans cartes ──────────────── */
.how { padding-top: 96px; padding-bottom: 144px; }
.how h2 { margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.step { position: relative; padding-top: 0; border: 0; background: none; border-radius: 0; }
.num {
  font-family: var(--display); font-weight: 800; font-size: 76px; line-height: .8; letter-spacing: -0.06em;
  color: var(--ink); width: auto; height: auto; background: none; display: block;
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.035em; line-height: 1.1; margin: 28px 0 10px; }
.step p { margin: 0; color: var(--muted); max-width: 28ch; }

/* ── Villes : la ligne de métro ───────────────────────────────────────── */
.cities {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--night-text); padding: 128px 0 112px;
  border-radius: var(--r-xl); margin: 0 12px;
}
/* grain très léger pour la profondeur */
.cities::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(900px 500px at 85% -10%, rgba(255, 122, 94, 0.14), transparent 60%);
}
.cities > .wrap { position: relative; }
.cities h2 { max-width: 13em; font-size: clamp(40px, 6vw, 76px); }
.lead { max-width: 34em; margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--night-muted); }

/* Ligne de métro : tracé épais, stations rondes, Montréal en service */
.road {
  --line-y: 15px;
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative;
}
.road::before {
  content: ''; position: absolute; left: 15px; right: 15%; top: calc(var(--line-y) - 4px); height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--accent) 0 26%, rgba(246, 245, 241, 0.16) 26% 100%);
}
.road-stop { position: relative; padding-right: 16px; }
.road-dot {
  display: block; width: 30px; height: 30px; border-radius: 999px; position: relative; margin-bottom: 22px;
  background: var(--ink); border: 6px solid rgba(246, 245, 241, 0.32);
  transition: transform .4s var(--spring), border-color .3s ease;
}
.road-stop:hover .road-dot { transform: scale(1.15); border-color: rgba(246, 245, 241, 0.6); }
.road-stop b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.045em; line-height: 1.05; }
.road-stop small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--night-muted); }
.is-now .road-dot { background: #fff; border-color: var(--accent); }
.is-now .road-dot::after {
  content: ''; position: absolute; inset: -12px; border-radius: 999px; border: 2px solid var(--accent);
  animation: ping 2.2s var(--ease) infinite;
}
.is-now small { color: var(--accent-on-night); font-weight: 600; }
@keyframes ping { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(1.4); } }

/* Vote */
.vote { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 88px; }
.vote-pick, .vote-board {
  background: var(--night-fill); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vote h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; line-height: 1.1; }
.city-search {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  background: rgba(246, 245, 241, 0.07); border: 1px solid rgba(246, 245, 241, 0.14); border-radius: var(--r-sm); padding: 0 16px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .25s var(--ease);
}
.city-search:hover { border-color: rgba(246, 245, 241, 0.26); }
.city-search:focus-within { border-color: rgba(246, 245, 241, 0.5); background: rgba(246, 245, 241, 0.1); box-shadow: 0 0 0 4px rgba(255, 122, 94, 0.18); }
.city-search svg { width: 18px; height: 18px; fill: none; stroke: var(--night-muted); stroke-width: 2; stroke-linecap: round; }
.city-search input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: var(--night-text); font: 500 16px var(--text); outline: none; }
.city-search input::placeholder { color: var(--night-muted); }
.city-search input::-webkit-search-cancel-button { filter: invert(1); }
.city-tabs { display: flex; gap: 2px; margin-top: 16px; padding: 4px; border-radius: 14px; background: rgba(246, 245, 241, 0.07); width: fit-content; max-width: 100%; }
.city-tabs[hidden] { display: none; }
.city-tab {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--night-muted);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .25s var(--ease), color .2s ease;
}
.city-tab:hover { color: var(--night-text); }
.city-tab[aria-pressed="true"] { background: var(--night-text); color: var(--ink); }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; min-height: 44px; }
.city-more {
  min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--accent-on-night);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.city-none { margin: 4px 0 0; font-size: 15px; color: var(--night-muted); }
.city-chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(246, 245, 241, 0.18);
  background: transparent; color: var(--night-text); font-weight: 500; font-size: 15px; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .2s ease, color .2s ease, transform .4s var(--spring);
}
.city-chip:hover { border-color: rgba(246, 245, 241, 0.5); background: rgba(246, 245, 241, 0.05); transform: translateY(-1px); }
.city-chip:active { transform: scale(.96); }
.city-chip[aria-checked="true"] { background: var(--night-text); color: var(--ink); border-color: var(--night-text); font-weight: 700; transform: scale(1.04); }
.vote .btn-wide { margin-top: 28px; }
.vote .btn-primary:disabled { background: rgba(246, 245, 241, 0.08); color: var(--night-muted); }
.vote-msg { min-height: 24px; margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.vote-msg.ok { color: var(--mint); }
.vote-msg.bad { color: var(--accent-on-night); }
.vote-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--night-muted); }
.vote-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vote-board { display: flex; flex-direction: column; }
.board { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.board-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: 'rank name' 'rank track'; gap: 8px 14px; align-items: center; }
.board-rank { grid-area: rank; width: 32px; height: 32px; border-radius: 10px; background: rgba(246, 245, 241, 0.08); display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.board-row:first-child .board-rank { background: var(--accent); color: #fff; }
.board-name { grid-area: name; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.board-name em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--ink); background: var(--mint); padding: 2px 8px; border-radius: 999px; }
.board-track { grid-area: track; height: 6px; border-radius: 999px; background: rgba(246, 245, 241, 0.08); overflow: hidden; }
.board-bar { display: block; height: 6px; width: 0; border-radius: 999px; background: rgba(246, 245, 241, 0.75); transition: width 1.1s var(--ease); }
.board-row:first-child .board-bar { background: var(--accent-on-night); }

.criteria { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.criterion { display: flex; gap: 14px; align-items: flex-start; }
.criterion-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(246, 245, 241, 0.08); font-family: var(--display); font-weight: 800; font-size: 16px; }
.criterion:first-child .criterion-num { background: var(--accent); color: #fff; }
.criterion b { display: block; font-size: 17px; font-weight: 700; }
.criterion small { display: block; font-size: 15px; color: var(--night-muted); line-height: 1.5; }

.my-vote { margin-top: auto; padding-top: 24px; }
.my-vote > span { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--mint); color: var(--ink); border-radius: 16px; padding: 14px 18px; }
.my-vote small { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.my-vote b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.my-vote p { margin: 10px 0 0; font-size: 14px; color: var(--night-muted); }

/* ── Ligne discrète pour les commerces ────────────────────────────────── */
.pro-line p { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.pro-line a { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ── Confiance : un seul panneau, quatre colonnes ─────────────────────── */
.trust { padding-top: 144px; padding-bottom: 48px; }
.trust h2 { margin-bottom: 48px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.trust-card { padding: 32px 28px 36px; background: none; border: 0; border-radius: 0; }
.trust-card + .trust-card { border-left: 1px solid var(--line); }
.trust-card svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.trust-card h3 { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; margin: 22px 0 8px; line-height: 1.15; }
.trust-card p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { padding-top: 144px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq h2 { position: sticky; top: 112px; }
.faq-list { display: flex; flex-direction: column; }
details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
details[open]::details-content { block-size: auto; }
summary {
  list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative; border-radius: 0;
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.025em; line-height: 1.25;
  transition: color .2s ease;
}
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 999px;
  background-color: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: center; background-size: 12px 1.75px, 1.75px 12px;
  transition: transform .4s var(--spring), background-color .25s ease, box-shadow .25s ease;
}
summary:hover::after { box-shadow: inset 0 0 0 1px rgba(20, 24, 42, 0.2), var(--shadow-sm); }
details[open] summary::after { transform: rotate(135deg); background-color: var(--accent-soft); box-shadow: none; }
details:first-child summary { padding-top: 6px; }
details p { margin: 0; padding: 0 64px 26px 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 38em; }

/* ── Fin ──────────────────────────────────────────────────────────────── */
.outro { padding-top: 120px; padding-bottom: 120px; }
.outro-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--accent); color: #fff; border-radius: var(--r-xl); padding: 88px 40px; text-align: center;
  box-shadow: 0 40px 80px -30px rgba(215, 56, 31, 0.6);
}
.outro-card h2 { font-size: clamp(40px, 7vw, 88px); line-height: .92; max-width: 11em; margin: 0 auto; }
.outro-card p { margin: 22px auto 36px; max-width: 30em; font-size: 19px; color: rgba(255, 255, 255, 0.86); }

.pro-open {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0;
  font: 700 16px var(--text); color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(215, 56, 31, 0.5); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.pro-open:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pro-open svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.pro-open:hover svg { transform: translateX(4px); }

/* ── Fenêtre Tillevent Pro ────────────────────────────────────────────── */
html.modal-open { overflow: hidden; }
.pro-modal {
  width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 32px;
  background: var(--snow); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(20, 24, 42, 0.55); overflow: hidden;
}
.pro-modal[open] { display: flex; animation: pmIn .4s var(--ease); }
.pro-modal::backdrop { background: rgba(20, 24, 42, 0.45); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); animation: fadeIn .3s ease; }
@keyframes pmIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pm-inner { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 48px 52px 0; width: 100%; }
.pm-close {
  position: sticky; top: 0; float: right; margin: -24px -28px 0 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-xs);
  transition: transform .4s var(--spring), background-color .2s ease;
}
.pm-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.pm-close:hover { background: #fff; transform: rotate(90deg); }
.pm-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pro-badge { background: var(--ink); color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; display: inline-block; }
.pm-head h2 { font-size: clamp(34px, 5vw, 52px); max-width: 13em; }
.pm-lead { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 34em; }
.pm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pm-pills span { font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pm-pills span:first-child { background: var(--c-outdoor); border-color: var(--c-outdoor); color: var(--c-outdoor-ink); }

.pm-sec { margin-top: 48px; }
.pm-sec h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.035em; }
.pm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-xs); }
.pm-card b { display: block; margin-top: 16px; font-size: 17px; font-weight: 700; }
.pm-card p { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.pm-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.pm-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pm-stats { background: var(--ink); color: var(--night-text); border-radius: var(--r-lg); padding: 30px; }
.pm-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-tags li { font-size: 14px; font-weight: 500; padding: 8px 13px; border-radius: 999px; background: rgba(246, 245, 241, 0.08); border: 1px solid rgba(246, 245, 241, 0.08); }
.pm-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 14px; color: var(--night-muted); }
.pm-privacy svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--accent-on-night); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.pm-steps li { display: flex; gap: 16px; align-items: flex-start; }
.pm-num { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: var(--snow); font-family: var(--display); font-weight: 800; font-size: 16px; }
.pm-steps li:nth-child(even) .pm-num { background: var(--ink); color: var(--snow); }
.pm-steps li:last-child .pm-num { background: var(--accent); color: #fff; }
.pm-steps b { display: block; font-size: 17px; font-weight: 700; }
.pm-steps small { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); line-height: 1.55; }

.pm-good { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15.5px; }
.pm-good li::marker { color: var(--accent); }

.pm-foot {
  position: sticky; bottom: 0; margin: 48px -52px 0; padding: 18px 52px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.pm-foot b { display: block; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.pm-foot small { display: block; font-size: 14px; color: var(--muted); max-width: 440px; }
.tick { width: 28px; height: 28px; border-radius: 9px; background: var(--c-outdoor); color: var(--green); display: grid; place-items: center; }

@media (max-width: 640px) {
  .pro-modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .pm-inner { padding: 28px 20px 0; }
  .pm-close { margin: -10px -6px 0 12px; }
  .pm-grid, .pm-steps { grid-template-columns: minmax(0, 1fr); }
  .pm-stats { padding: 22px; }
  .pm-foot { margin: 32px -20px 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .pm-foot .btn { width: 100%; }
  .pm-foot small { display: none; }
}

/* ── Pied de page ─────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 48px; font-size: 14.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { font-weight: 600; color: var(--ink); }

/* ── Apparition au défilement (si le script tourne) ───────────────────── */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; }
.js .reveal:nth-child(3) { transition-delay: .12s; }
.js .reveal:nth-child(4) { transition-delay: .18s; }

/* ── Tablette ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .menu { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 112px; }
  .phone-stage { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-card:nth-child(3) { border-left: 0; }
  .trust-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq h2 { position: static; }
  .vote { grid-template-columns: minmax(0, 1fr); }
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 72px; overflow-x: clip; }
  .collage { width: 470px; height: 480px; margin-left: 50%; margin-bottom: -70px; transform: translateX(-50%) scale(0.85); transform-origin: top center; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .how { padding-bottom: 104px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top { padding: 6px 6px 6px 16px; border-radius: 18px; top: 8px; margin-top: 8px; width: calc(100% - 16px); }
  .wordmark { font-size: 24px; }
  .road { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 56px; }
  .road::before { left: 11px; right: auto; top: 15px; bottom: 40px; width: 8px; height: auto; background: linear-gradient(180deg, var(--accent) 0 22%, rgba(246, 245, 241, 0.16) 22% 100%); }
  .road-stop { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 20px; padding: 0; }
  .road-dot { grid-row: span 2; margin: 0; }
  .cities { padding: 88px 0 72px; border-radius: 30px; margin: 0 8px; }
  .vote { margin-top: 64px; }
  .vote-pick, .vote-board { padding: 22px; border-radius: 24px; }
  .trust, .faq { padding-top: 104px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-card + .trust-card { border-left: 0; border-top: 1px solid var(--line); }
  .feature { padding: 14px; }
  .outro { padding-top: 88px; padding-bottom: 88px; }
  .outro-card { padding: 64px 22px; border-radius: 30px; }
  .ribbon-set span { font-size: 21px; gap: 40px; }
  .countdown { display: flex; width: 100%; }
  .unit { flex: 1; min-width: 0; padding: 12px 6px 10px; }
  details p { padding-right: 0; }
  summary { font-size: 19px; }
}
@media (max-width: 420px) {
  .unit b { font-size: 32px; }
  .collage { transform: translateX(-50%) scale(0.72); margin-bottom: -132px; }
  .phone { width: 284px; height: 584px; }
  .actions .btn { width: 100%; }
  .num { font-size: 64px; }
}

/* ── Mouvement réduit ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  h1 .accent { background-size: calc(100% - 0.28em) 0.2em; }
  .ribbon-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}