/* =========================================================
   Ankabut — feuille de style
   Concept : la toile (ankabut = araignée). Une seule app
   tisse le lien entre six services. Fond noir de charte,
   jaune réservé à l'action, navy pour les surfaces.
   ========================================================= */

:root {
  /* Couleurs de la charte */
  --noir: #000000;
  --jaune: #FEE538;
  --navy: #172A3A;
  --soft: #F5F6F7;
  /* Dérivés (neutres teintés navy) */
  --navy-2: #1F3549;
  --gris: #93A1AE;
  --ligne: rgba(245, 246, 247, .12);
  --ligne-forte: rgba(245, 246, 247, .22);

  /* Typographie */
  --f-titre: "Satoshi", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-texte: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Échelle */
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.25rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --t-2xl: clamp(2.25rem, 1.3rem + 4vw, 4.25rem);
  --t-hero: clamp(2.6rem, 1rem + 6.4vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--noir);
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--soft);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-titre); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

section[id], #rue { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 84px); }

::selection { background: var(--jaune); color: var(--noir); }

:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--jaune); color: var(--noir);
  padding: 10px 16px; border-radius: var(--r-s);
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-texte); font-weight: 600; font-size: var(--t-s);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--jaune); color: var(--noir); }
.btn-icon { width: 20px; height: 20px; fill: currentColor; }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(254, 229, 56, .18); }
.btn-ghost { border-color: var(--ligne-forte); color: var(--soft); }
.btn-ghost:hover { border-color: var(--soft); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ligne);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--soft);
}
.brand-mark { width: 28px; height: 33px; }
.brand-word { width: auto; height: 20px; }
.brand-stack { width: 90px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link, .nav-drop-btn {
  color: var(--gris); font-family: var(--f-texte); font-size: var(--t-s); font-weight: 500;
  text-decoration: none; transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--soft); }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 0; border: 0; background: none; cursor: pointer;
}
.chev {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease);
}
.nav-drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-drop-wrap { position: relative; }
.nav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(560px, 90vw);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  padding: 10px;
  background: var(--navy); border: 1px solid var(--ligne-forte); border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  color: var(--soft); text-decoration: none;
  transition: background-color .2s;
}
.drop-item svg {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 9px; border-radius: 12px;
  background: rgba(254, 229, 56, .1); fill: var(--jaune);
  transition: background-color .2s, fill .2s;
}
.drop-item > span { display: grid; min-width: 0; }
.drop-item b { font-family: var(--f-titre); font-weight: 700; font-size: var(--t-m); line-height: 1.2; }
.drop-item small { font-size: var(--t-xs); color: var(--gris); line-height: 1.35; }
.drop-item:hover, .drop-item:focus-visible { background: rgba(245, 246, 247, .06); }
.drop-item:hover svg, .drop-item:focus-visible svg { background: var(--jaune); fill: var(--noir); }

.nav-cta {
  color: var(--noir); background: var(--jaune); text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-size: var(--t-s); font-weight: 600;
  transition: box-shadow .25s;
}
.nav-cta:hover { box-shadow: 0 0 0 5px rgba(254, 229, 56, .2); }
.nav-stores { display: none; }
.nav-backdrop { display: none; }

.menu-btn {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid var(--ligne-forte); border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--soft);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; z-index: 60;
    top: calc(env(safe-area-inset-top, 0px) + 76px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    max-height: calc(100vh - 96px - env(safe-area-inset-top, 0px));
    max-height: calc(100svh - 96px - env(safe-area-inset-top, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--navy); border: 1px solid var(--ligne-forte); border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .22s, transform .3s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link, .nav-drop-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 14px 12px; border-radius: 14px;
    font-family: var(--f-titre); font-size: 1.25rem; font-weight: 700; color: var(--soft);
  }
  .nav-link:hover, .nav-drop-btn:hover { background: rgba(245, 246, 247, .05); }
  .chev { width: 16px; height: 16px; }
  .nav-drop {
    position: static; width: auto; transform: none;
    display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
    padding: 2px 0 10px; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transition: none;
  }
  .nav-drop::before { display: none; }
  .nav-drop.is-open { display: grid; transform: none; }
  .drop-item {
    flex-direction: column; justify-content: center; gap: 8px; text-align: center;
    padding: 14px 6px; background: rgba(0, 0, 0, .28);
  }
  .drop-item svg { width: 42px; height: 42px; }
  .drop-item b { font-family: var(--f-texte); font-size: var(--t-xs); font-weight: 600; line-height: 1.25; }
  .drop-item small { display: none; }
  .nav-cta { margin-top: 8px; padding: 15px; text-align: center; font-size: var(--t-m); }
  .nav-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--noir); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(env(safe-area-inset-top, 0px) + 112px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}
.hero-text { position: relative; z-index: 2; min-width: 0; }
.hero-title {
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero-title .line { display: block; }
.hero-lead {
  margin-top: 28px; max-width: 34em;
  font-size: var(--t-l); line-height: 1.55; color: var(--gris);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual {
  position: relative; min-width: 0;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  width: 100%;
}
.web { width: 100%; height: 100%; touch-action: pan-y; }

/* Séquence d'entrée : reprend le motion de charte (pulse, reveal, services) */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line { animation: rise .9s var(--ease) both; }
  .hero-title .line:nth-child(1) { animation-delay: .35s; }
  .hero-title .line:nth-child(2) { animation-delay: .55s; }
  .hero-lead { animation: rise .9s var(--ease) .75s both; }
  .hero-actions { animation: rise .9s var(--ease) .9s both; }
  .chips li { animation: rise .7s var(--ease) both; }
  .chips li:nth-child(1) { animation-delay: 1.2s; }
  .chips li:nth-child(2) { animation-delay: 1.4s; }
  .chips li:nth-child(3) { animation-delay: 1.6s; }
  .chips li:nth-child(4) { animation-delay: 1.8s; }
  .chips li:nth-child(5) { animation-delay: 2s; }
  .chips li:nth-child(6) { animation-delay: 2.2s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(24px, 4vw, 40px);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px 0 14px;
  border: 1px solid var(--ligne-forte); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: var(--t-s); font-weight: 500; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip svg { width: 22px; height: 22px; fill: currentColor; }
.chip:hover, .chip.is-active { background: var(--jaune); border-color: var(--jaune); color: var(--noir); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; width: min(100%, 460px); margin: -24px auto -8px; }
  .hero-lead { font-size: var(--t-m); margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
}
@media (max-width: 600px) {
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: 0 0 auto; scroll-snap-align: start; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Rue animée ---------- */
.street {
  position: relative; overflow: hidden;
  height: clamp(220px, 23vw, 320px);
  background: linear-gradient(to bottom, var(--noir) 0 54%, #0B1620 54% 100%);
  border-bottom: 1px solid var(--ligne);
}
.street::before {
  content: ""; position: absolute; left: 0; right: 0; top: 54%; height: 6px;
  background: var(--navy-2);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 46%; height: 62%; overflow: hidden; }
.skyline-track { display: flex; width: max-content; height: 100%; }
.skyline-art { flex: 0 0 auto; width: auto; max-width: none; height: 100%; }
.city-pins { position: absolute; left: 0; right: 0; top: 0; bottom: 46%; }
.city-pins span { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 21px; transform-origin: 50% 100%; }
.city-pins svg { width: 100%; height: 100%; fill: var(--jaune); }
.road-line {
  position: absolute; left: 0; right: 0; top: 76%; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(254, 229, 56, .7) 0 26px, transparent 26px 62px);
}
.lane { position: absolute; left: 0; right: 0; height: 0; }
.lane-back { bottom: 27%; z-index: 1; --s: .62; }
.lane-front { bottom: 4%; z-index: 2; --s: .92; }
.street .veh {
  position: absolute; left: 0; bottom: 0;
  width: calc(var(--w) * var(--s));
  animation: drive var(--dur) linear infinite; animation-delay: var(--delay);
  will-change: transform;
}
.street .veh svg { display: block; width: 100%; height: auto; }
.lane-back .veh { animation-direction: reverse; }
.lane-back .veh svg { transform: scaleX(-1); }
.street .wheel { transform-box: fill-box; transform-origin: center; animation: spin .7s linear infinite; }
.ride-veh .wheel { transform-box: fill-box; transform-origin: center; }
.street .is-bumpy .veh-body { animation: bump .32s ease-in-out infinite alternate; }
.veh-pin {
  position: absolute; left: 50%; bottom: 100%;
  width: 16px; height: 19px; margin-left: -8px; margin-bottom: 6px;
  animation: bob 1.3s ease-in-out infinite alternate;
}
.street .veh .veh-pin svg { width: 100%; height: 100%; fill: var(--jaune); overflow: visible; }
.street.is-paused, .street.is-paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  .skyline-track { animation: drift 110s linear infinite; }
  .skyline-art .twinkle { animation: twinkle 2.6s ease-in-out infinite alternate; }
  .city-pins span { opacity: 0; animation: pinpop 7.2s var(--ease) infinite; animation-delay: calc(var(--i) * 1.2s); }
}
@keyframes drive { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { to { transform: translateY(-1.2px); } }
@keyframes bob { to { transform: translateY(-4px); } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes twinkle { from { opacity: .15; } to { opacity: .95; } }
@keyframes pinpop {
  0% { opacity: 0; transform: translateY(8px) scale(.4); }
  8%, 30% { opacity: 1; transform: none; }
  40%, 100% { opacity: 0; transform: translateY(-6px) scale(.8); }
}
@media (max-width: 600px) {
  .lane-back { --s: .46; }
  .lane-front { --s: .66; }
  .city-pins span { width: 14px; height: 16px; }
}

/* ---------- Sections communes ---------- */
.services, .steps, .partners, .app { padding-block: clamp(72px, 10vw, 140px); }
.h2 { font-size: var(--t-xl); max-width: 18ch; }
.h2-xl { font-size: var(--t-2xl); max-width: 14ch; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-lead { color: var(--gris); max-width: 36em; font-size: var(--t-m); }
@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Services ---------- */
.svc {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: stretch;
}
.svc-tabs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svc-tabs [role="tab"] {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px;
  border: 0; border-radius: var(--r-m);
  background: transparent; color: var(--gris);
  font-family: var(--f-titre); font-size: var(--t-l); font-weight: 500; text-align: left;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.svc-tabs [role="tab"] svg {
  flex: 0 0 auto; width: 28px; height: 28px;
  fill: currentColor;
}
.svc-tabs [role="tab"]:hover { color: var(--soft); background: rgba(245, 246, 247, .04); }
.svc-tabs [role="tab"][aria-selected="true"] { color: var(--noir); background: var(--jaune); font-weight: 700; }

.svc-panels {
  position: relative; min-width: 0;
  background: var(--navy);
  border-radius: var(--r-l);
  overflow: hidden;
  min-height: 420px;
}
.svc-panels::after {
  /* fils de toile en filigrane */
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 46px, rgba(245, 246, 247, .06) 46px 47px);
  pointer-events: none;
}
.svc-panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 4.5vw, 56px);
  min-height: 100%;
}
.svc-panel:focus-visible { outline-offset: -4px; border-radius: var(--r-l); }
.svc-icon {
  width: 72px; height: 72px; padding: 14px;
  border-radius: 50%; background: var(--jaune); color: var(--noir);
  fill: currentColor;
}
.svc-panel h3 { font-size: var(--t-2xl); margin-top: 8px; }
.svc-lead { font-size: var(--t-l); max-width: 26em; color: var(--soft); }
.svc-points { display: grid; gap: 0; margin-top: auto; padding-top: 16px; max-width: 34em; }
.svc-points li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--ligne);
  color: var(--soft); font-size: var(--t-s);
}
.svc-points li::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--jaune); transform: translateY(-1px);
}

@media (prefers-reduced-motion: no-preference) {
  .svc-panel:not([hidden]) > * { animation: rise .55s var(--ease) both; }
  .svc-panel:not([hidden]) > :nth-child(2) { animation-delay: .04s; }
  .svc-panel:not([hidden]) > :nth-child(3) { animation-delay: .08s; }
  .svc-panel:not([hidden]) > :nth-child(4) { animation-delay: .12s; }
  .svc-icon { transition: transform .4s var(--ease); }
}

@media (max-width: 860px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .svc-tabs [role="tab"] {
    flex-direction: column; justify-content: center; gap: 8px;
    min-height: 92px; padding: 14px 6px;
    border: 1px solid var(--ligne-forte); border-radius: 18px;
    font-family: var(--f-texte); font-size: var(--t-xs); font-weight: 600; line-height: 1.25; text-align: center;
  }
  .svc-tabs [role="tab"] svg { width: 30px; height: 30px; }
  .svc-tabs [role="tab"][aria-selected="true"] { border-color: var(--jaune); }
  .svc-panels { min-height: 0; }
}

/* Véhicule qui entre dans chaque service */
.svc-ride {
  position: absolute; z-index: 0;
  top: clamp(24px, 4vw, 52px); right: clamp(20px, 4vw, 52px);
  width: clamp(130px, 20vw, 220px); height: 96px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  pointer-events: none;
}
.svc-ride::after {
  content: ""; position: absolute; left: -30%; right: -8px; bottom: -3px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(254, 229, 56, .55));
}
.ride-veh { position: relative; width: min(100%, calc(var(--w) * 1.25)); }
.ride-veh svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .svc-panel:not([hidden]) .ride-veh { animation: arrive 1.1s cubic-bezier(.2, .75, .25, 1) both; }
  .svc-panel:not([hidden]) .ride-veh .wheel { animation: spin .45s linear 2; }
  .svc-panel:not([hidden]) .ride-veh.is-bumpy .veh-body { animation: bump .25s ease-in-out 4 alternate; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateX(-140%); }
  30% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.svc-panel > :not(.svc-ride) { position: relative; z-index: 1; }

/* ---------- Étapes (bandeau jaune) ---------- */
.steps { background: var(--jaune); color: var(--noir); }
.steps .h2 { max-width: 16ch; }
.steps-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
  counter-reset: none;
}
.steps-list li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--noir); }
.step-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.step-icon { flex: 0 0 auto; width: 52px; height: 52px; fill: var(--noir); }
.step-num {
  font-family: var(--f-titre); font-weight: 900;
  font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: .85; letter-spacing: -.05em;
}
.steps-list h3 { font-size: var(--t-l); margin-top: 12px; }
.steps-list p { font-size: var(--t-s); max-width: 28em; color: var(--navy); }
@media (max-width: 760px) {
  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .step-num { font-size: 4rem; }
  .step-icon { width: 44px; height: 44px; }
  .steps-list h3 { margin-top: 4px; }
}

/* ---------- Partenaires ---------- */
.partners { background: var(--navy); }
.partners-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.partners .section-lead { margin-top: 20px; }
.partners-list { border-bottom: 1px solid var(--ligne-forte); }
.partners-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--ligne-forte);
}
.partners-list li > div { min-width: 0; }
.partners-list h3 { font-size: var(--t-l); }
.partners-list p { margin-top: 6px; font-size: var(--t-s); color: var(--gris); }
.link-arrow {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--ligne-forte);
  text-decoration: none; font-size: var(--t-s); font-weight: 600;
  transition: background-color .25s, color .25s, border-color .25s;
}
.link-arrow:hover { background: var(--jaune); border-color: var(--jaune); color: var(--noir); }
@media (max-width: 860px) {
  .partners-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .partners-list li { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- App / liste d'attente ---------- */
.app {
  background-color: var(--noir);
  background-image: url("../img/motif-pins.svg");
  background-size: 132px 150px;
}
.app-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.app-text { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne-forte);
  font-size: var(--t-xs); font-weight: 600; color: var(--jaune);
  margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); }
@media (prefers-reduced-motion: no-preference) {
  .badge .dot { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254, 229, 56, .55); }
  50% { box-shadow: 0 0 0 7px rgba(254, 229, 56, 0); }
}
.app .section-lead { margin-top: 20px; }

.waitlist {
  display: flex; gap: 8px; margin-top: 32px; max-width: 520px;
  padding: 6px; border-radius: 999px; background: var(--navy);
  border: 1px solid var(--ligne);
  transition: border-color .25s;
}
.waitlist:focus-within { border-color: var(--jaune); }
.waitlist input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; color: var(--soft);
  font: inherit; font-size: var(--t-s);
  padding: 0 16px; min-height: 48px; border-radius: 999px;
}
.waitlist input::placeholder { color: var(--gris); }
.waitlist input:focus { outline: none; }
.waitlist .btn { min-height: 48px; }
.waitlist.is-error { border-color: #FF7A6B; }
.form-msg { min-height: 1.6em; margin-top: 12px; font-size: var(--t-s); color: var(--gris); }
.form-msg.ok { color: var(--jaune); }
.form-msg.err { color: #FF9A8E; }
@media (max-width: 480px) {
  .waitlist { flex-direction: column; border-radius: var(--r-m); padding: 8px; }
  .waitlist input { min-height: 52px; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; min-height: 56px; color: var(--soft); text-decoration: none; border-radius: 14px; }
.store-fallback {
  display: inline-flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 8px 20px 8px 14px;
  border: 1px solid var(--ligne-forte); border-radius: 14px; background: rgba(23, 42, 58, .7);
  transition: border-color .2s, background-color .2s;
}
.store-fallback svg { flex: 0 0 auto; width: 30px; height: 30px; fill: var(--jaune); }
.store-txt { display: grid; font-family: var(--f-titre); font-weight: 700; font-size: var(--t-m); line-height: 1.15; }
.store-txt small { font-family: var(--f-texte); font-weight: 500; font-size: .6875rem; color: var(--gris); }
.store:hover .store-fallback { border-color: var(--jaune); }
.store-badge { height: 56px; width: auto; }
.store-sm { min-height: 52px; }
.store-sm .store-fallback { min-height: 52px; padding: 8px 12px; gap: 10px; }
.store-sm .store-fallback svg { width: 24px; height: 24px; }
.store-sm .store-txt { font-size: var(--t-s); }
.store-sm .store-badge { height: 46px; }

/* Téléphone illustratif */
.phone-wrap { display: flex; justify-content: center; min-width: 0; }
.phone {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 18.5;
  border-radius: 44px; padding: 12px;
  background: #0E1A25;
  border: 1px solid var(--ligne-forte);
  box-shadow: 0 40px 80px -30px rgba(254, 229, 56, .25);
}
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 6s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; z-index: 2;
  width: 80px; height: 22px; border-radius: 999px; background: var(--noir);
  transform: translateX(-50%);
}
.phone-screen {
  height: 100%; border-radius: 34px; overflow: hidden; background: var(--soft);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

@media (max-width: 860px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(78%, 280px); }
}

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--ligne);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-brand p { margin-top: 14px; color: var(--gris); font-size: var(--t-s); }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; font-size: var(--t-s); }
.footer-nav a, .footer-contact a { color: var(--gris); text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--jaune); }
.footer-contact > span { color: var(--soft); font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; }
.socials:empty { display: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ligne);
  font-size: var(--t-xs); color: var(--gris);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Page 404 ---------- */
.notfound {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; gap: 20px; text-align: center;
  padding: 40px var(--gutter);
}
.notfound .code { font-family: var(--f-titre); font-weight: 900; font-size: clamp(6rem, 20vw, 12rem); line-height: .9; color: var(--jaune); letter-spacing: -.05em; }
.notfound p { color: var(--gris); }
.notfound .btn { justify-self: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.veh), *::before, *::after { animation: none !important; transition: none !important; }
  .street .veh { animation-play-state: paused !important; }
}
