/*
  sambalaro.com — une application de livraison complète : repas, courses, colis.
  Base « site de livraison » (page en boîte, titres très gras en capitales, pilules, ombres douces)
  et, au centre, les vrais écrans de l'application. Mouvement sobre : une entrée orchestrée,
  puis seulement ce qui raconte quelque chose (service affiché, moto qui avance, route au défilement).
  Écrit en partant du téléphone. Tout s'arrête si l'appareil demande moins de mouvement.
*/
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --accent: #175c4c;
  --accent-hi: #1e7560;
  --accent-soft: #e6f1ec;
  --night: #0e2a23;
  --ink: #102620;
  --muted: #5f6c67;
  --line: #e3eae6;
  --yellow: #f7d867;
  --paper: #ffffff;
  --tint: #f4f8f6;
  --shadow: 0 10px 30px rgba(16, 38, 32, 0.08), 0 2px 6px rgba(16, 38, 32, 0.04);
  --shadow-lg: 0 30px 60px -18px rgba(10, 30, 24, 0.35), 0 12px 24px -12px rgba(10, 30, 24, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; background: #eef3f0; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: #fff; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { max-width: 1120px; margin: 0 auto; background: var(--paper); overflow: clip; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Typographie ---------- */
h1, h2 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; color: var(--ink); text-wrap: balance; }
h1 { font-size: 31px; line-height: 1.12; }
h2 { font-size: 23px; line-height: 1.22; }
h3 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.4; }
.muted { color: var(--muted); font-size: 14px; }
.kicker { color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.section-head { text-align: center; display: grid; gap: 8px; justify-items: center; }
.section-head .muted { max-width: 34em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 24px; border-radius: 999px;
  font: 600 13px/1.2 var(--font); text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--accent); color: #fff; box-shadow: 0 10px 20px -10px rgba(23, 92, 76, 0.7); }
.btn-fill:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--yellow); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; color: var(--accent); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Bandeau et menu ---------- */
.topbar { background: var(--accent); color: rgba(255, 255, 255, 0.92); font-size: 12px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; padding-block: 3px; }
.topbar b { color: var(--yellow); font-weight: 600; }
.topbar-contact { display: flex; align-items: center; gap: 14px; }
.topbar-city { display: none; }
.topbar-wa { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #25d366; color: #fff; transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.topbar-wa svg { width: 17px; height: 17px; }
.topbar-wa:hover { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { font-weight: 800; font-size: 15px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.brand small { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.32em; color: var(--accent); }
.nav-links { display: none; }
.nav-cta { margin-left: auto; min-height: 44px; padding: 10px 18px; font-size: 12px; }
.menu-btn { flex: none; display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-left: -6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav.is-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav.is-open .nav-links {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 6px var(--pad) 14px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(16, 38, 32, 0.3);
    animation: fadeUp 0.3s var(--ease) both;
  }
  .nav.is-open .nav-links a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
  .nav.is-open .nav-links a:last-child { border-bottom: 0; }
  .nav.is-open .nav-links a.is-active { color: var(--accent); }
  /* Suivi : la carte animée juste sous les onglets, les notifications ensuite. */
  .track .track-in { gap: 0; }
  .track .track-text { display: contents; }
  .track .track-stage { order: 1; margin: 6px 0 26px; }
  .track .notes { order: 2; }
}
.ios-note { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.join .ios-note { color: rgba(255, 255, 255, 0.8); margin: 10px 0 0; }

/* ---------- Cadre de téléphone (vrais écrans) ---------- */
.device {
  --k: 0.4;
  --b: calc(9px * var(--k) / 0.4);
  position: relative; flex: none;
  width: calc(390px * var(--k) + 2 * var(--b));
  padding: var(--b);
  border-radius: calc(48px * var(--k) + var(--b));
  background: linear-gradient(150deg, #24322e, #0b1512 60%, #1c2925);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device .screen {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(390px * var(--k)); height: calc(844px * var(--k));
  border-radius: calc(48px * var(--k)); background: #f1f5f2;
}
.device .screen > img, .device .screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-lg { --k: 0.56; }
.device-sm { --k: 0.3; }

/* Écran animé : carte réelle + itinéraire + moto + écran de l'application par-dessus. */
.scaled { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(var(--k)); transform-origin: 0 0; }
.scaled .map { position: absolute; left: 0; top: 0; width: 390px; height: 520px; }
.scaled .route { position: absolute; left: 0; top: 0; width: 390px; height: 520px; overflow: visible; }
.scaled .ui { position: absolute; left: 0; top: 0; width: 390px; height: 844px; }
.road-casing { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.road { fill: none; stroke: #175c4c; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pin { position: absolute; width: 38px; height: 38px; margin: -46px 0 0 -19px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -10px; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid; border-bottom: 0; }
.pin svg { width: 18px; height: 18px; }
.pin-start { background: var(--accent); color: #fff; }
.pin-start::after { border-top-color: var(--accent); }
.pin-start svg { display: none; }
.ride[data-svc="0"] .s0, .ride[data-svc="1"] .s1, .ride[data-svc="2"] .s2 { display: block; }
.pin-home { background: #f2c94c; color: #14261f; }
.pin-home::after { border-top-color: #f2c94c; }
.scaled .moto { position: absolute; left: 0; top: 0; width: 66px; height: 47px; margin: -23.5px 0 0 -33px; will-change: transform; }
.eta {
  position: absolute; top: 24%; right: -24px; width: 70px; height: 70px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg); display: grid; place-content: center; text-align: center;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.eta strong { font-size: 22px; line-height: 1; font-weight: 800; color: var(--accent); }
.eta span { font-size: 11px; color: var(--muted); }
.eta.done { background: var(--yellow); }
.eta.done strong { font-size: 13px; color: var(--ink); }
.eta.done span { color: var(--ink); }

/* ---------- Accroche : une seule entrée, dans l'ordre ---------- */
.hero { padding: 22px 0 28px; overflow: hidden; }
.hero-in { display: grid; gap: 30px; }
.hero-text { display: grid; gap: 16px; justify-items: start; }
.hl { color: var(--accent); }
.lead { color: var(--muted); font-size: 14.5px; max-width: 31em; }

.enter { animation: fadeUp 0.8s var(--ease) both; }
.e1 { animation-delay: 0.05s; }
.e2 { animation-delay: 0.13s; }
.e3 { animation-delay: 0.24s; }
.e4 { animation-delay: 0.34s; }
.e5 { animation-delay: 0.44s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.svc-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.chip {
  display: grid; justify-items: start; gap: 2px; height: 100%; padding: 10px 11px 11px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-decoration: none;
  transition: border-color 0.45s ease, background-color 0.45s ease, transform 0.25s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; transition: background-color 0.45s ease, color 0.45s ease; }
.chip-ico svg { width: 18px; height: 18px; }
.chip b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.chip small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.chip.is-on { border-color: var(--accent); background: var(--accent-soft); }
.chip.is-on .chip-ico { background: var(--accent); color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }

.hero-art { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 7; opacity: 0.45; }
.orbit-reveal { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.disc { position: absolute; inset: 12% 4% 16% 20%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a7a64, var(--accent) 60%, #124a3d); animation: grow 0.9s var(--ease) 0.1s both; }
@keyframes grow { from { transform: scale(0.82); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-photo { position: absolute; left: 17%; width: 88%; bottom: 15%; filter: drop-shadow(0 18px 18px rgba(14, 42, 35, 0.28)); animation: slideIn 1s var(--ease) 0.28s both; }
@keyframes slideIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-pin { position: absolute; right: 9%; top: 1%; color: var(--accent); animation: drop 0.7s var(--ease) 1.5s both; }
.hero-pin svg { width: 32px; height: 32px; fill: #fff; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-phone { --k: 0.3; position: absolute; left: 0; bottom: 0; z-index: 3; transform: rotate(-4deg); animation: phoneIn 1s var(--ease) 0.5s both; }
@keyframes phoneIn { from { transform: translateY(36px) rotate(-4deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.hero-phone .screen > .hero-screen { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero-phone .screen > .hero-screen.is-on { opacity: 1; }

/* ---------- Engagements ---------- */
.facts-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.facts-card li { display: flex; gap: 11px; align-items: flex-start; padding: 15px 13px; }
.facts-card li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts-card li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts-card .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.facts-card .ico svg { width: 18px; height: 18px; }
.facts-card b { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.facts-card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* ---------- Trois services ---------- */
.services { margin-top: 40px; padding: 40px 0 44px; background: var(--tint); }
.svc { margin-top: 20px; }
.svc-switch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 420px; margin: 0 auto; padding: 4px; border-radius: 14px; background: #e3ebe7; }
.svc-switch button {
  position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.3s ease;
}
.svc-switch button svg { width: 18px; height: 18px; }
.svc-switch button[aria-selected="true"] { color: var(--ink); }
.svc-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(16, 38, 32, 0.1); overflow: hidden;
  transform: translateX(calc(100% * var(--i, 0))); transition: transform 0.55s var(--ease);
}
.svc-thumb::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

.svc-panels { display: grid; margin-top: 22px; }
.svc-panel { grid-area: 1 / 1; display: grid; gap: 30px; align-content: start; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.svc-panel.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.svc-panel.is-on .svc-copy > * { animation: fadeUp 0.6s var(--ease) both; }
.svc-panel.is-on .svc-copy > :nth-child(2) { animation-delay: 0.05s; }
.svc-panel.is-on .svc-copy > :nth-child(3) { animation-delay: 0.1s; }
.svc-panel.is-on .svc-copy > :nth-child(4) { animation-delay: 0.15s; }
.svc-panel.is-on .svc-phone { animation: fadeUp 0.7s var(--ease) both; }
.svc-panel.is-on .svc-card { animation: cardIn 0.8s var(--ease) 0.25s both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.price-badge { justify-self: start; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 600; }
.svc-copy { display: grid; gap: 10px; align-content: start; }
.svc-copy h3 { font-size: 23px; font-weight: 800; text-transform: none; letter-spacing: -0.01em; line-height: 1.2; margin-top: 4px; }
.svc-copy > p:not(.price-badge) { color: var(--muted); font-size: 14.5px; }
.svc-steps { counter-reset: s; margin-top: 6px; }
.svc-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.svc-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.svc-steps b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.svc-steps span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.svc-stage { position: relative; width: 100%; max-width: 370px; margin: 0 auto; }
/* Sur téléphone, la vidéo d'abord : c'est elle qui avance pendant qu'on regarde. */
@media (max-width: 899px) { .svc-stage { order: -1; } }
.svc-phone { --k: 0.5; margin-left: 4%; }
.svc-card { position: absolute; right: 0; bottom: 10%; width: 52%; max-width: 200px; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.svc-card img { width: 100%; }

/* ---------- Comment ça marche : route au défilement ---------- */
.steps { margin-top: 44px; }
.road-wrap { position: relative; margin-top: 24px; display: grid; gap: 32px; }
/* La route ne se dessine que sur grand écran : sur téléphone, les scènes s'empilent. */
.road-svg, .road-moto { display: none; }
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.road-base { fill: none; stroke: #cfdad4; stroke-width: 2.5; stroke-dasharray: 7 8; }
.road-done { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.road-moto { position: absolute; left: 0; top: 0; width: 52px; height: 37px; margin: -18.5px 0 0 -26px; z-index: 0; will-change: transform; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)); }
.step { position: relative; z-index: 1; display: grid; gap: 16px; align-items: center; }
.step-shot { position: relative; width: 100%; }
.anchor { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 8px; box-shadow: 0 0 0 6px var(--accent-soft); }
.step-text h3 { font-size: 15px; }
.step-text p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- Motion design (motion.js) : la scène est mise à l'échelle sur la largeur ---------- */
.mo { position: relative; width: 100%; aspect-ratio: 1000 / 720; overflow: hidden; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #f6faf8 0%, #e9f1ed 100%); border: 1px solid var(--line); }
.mo-stage { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; font-family: var(--font); color: var(--ink); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
.mo-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mo-shape { position: absolute; overflow: hidden; isolation: isolate; box-shadow: 0 1px 2px rgba(16, 38, 32, 0.06), 0 16px 36px -10px rgba(16, 38, 32, 0.24); }
.mo .L { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.mo .a { position: absolute; white-space: nowrap; }
.mo img.a { max-width: none; }
.mo-num { font-variant-numeric: tabular-nums; }
.mo-touch { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; background: rgba(16, 38, 32, 0.26); border: 3px solid rgba(255, 255, 255, 0.95); box-shadow: 0 6px 14px rgba(16, 38, 32, 0.22); z-index: 5; opacity: 0; }
.mo-ripple { position: absolute; left: -42px; top: -42px; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--accent); z-index: 4; opacity: 0; }

/* ---------- Zone ---------- */
.zone-wrap { margin-top: 44px; }
.zone { position: relative; background: var(--accent); color: #fff; border-radius: 18px; padding: 26px 22px; display: grid; gap: 18px; overflow: hidden; }
.zone::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, 0.05); }
.zone h2 { color: #fff; }
.zone-text p { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.zone-form { position: relative; z-index: 1; display: grid; gap: 10px; }
.zone-form input { min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.06); color: #fff; font: 400 14px var(--font); width: 100%; }
.zone-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.zone-form input:focus { outline: none; border-color: var(--yellow); }
.zone-result { font-size: 13.5px; animation: fadeUp 0.4s var(--ease) both; }
.zone-result:empty { display: none; }
.zone-result b { color: var(--yellow); font-weight: 600; }

/* ---------- Suivi en direct ---------- */
.track { margin-top: 44px; padding: 42px 0 46px; color: #fff; background: radial-gradient(120% 70% at 90% 0%, #1d5547 0%, rgba(29, 85, 71, 0) 60%), var(--night); }
.track-in { display: grid; gap: 34px; }
.track .kicker { color: var(--yellow); }
.track h2 { color: #fff; margin-top: 8px; }
.track-lead { color: rgba(255, 255, 255, 0.74); font-size: 14.5px; margin-top: 10px; max-width: 30em; }
.track-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.track-tabs button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 15px; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.78);
  font-size: 13px; font-weight: 500; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.track-tabs svg { width: 16px; height: 16px; }
.track-tabs button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.notes { display: grid; gap: 8px; }
.note {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0.42; transition: opacity 0.45s ease, background-color 0.45s ease, border-color 0.45s ease, transform 0.45s var(--ease);
}
.note img { border-radius: 8px; }
.note b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.note span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.45; }
.note.is-done { opacity: 0.78; }
.note.is-now { opacity: 1; background: rgba(255, 255, 255, 0.11); border-color: rgba(247, 216, 103, 0.55); transform: translateX(6px); }
.notes.swap .note { animation: fadeUp 0.5s var(--ease) both; }
.notes.swap .note:nth-child(2) { animation-delay: 0.05s; }
.notes.swap .note:nth-child(3) { animation-delay: 0.1s; }
.notes.swap .note:nth-child(4) { animation-delay: 0.15s; }
.track-stage { display: grid; place-items: center; }

/* ---------- Partenaires ---------- */
.work { margin-top: 48px; }
.work-grid { display: grid; gap: 16px; margin-top: 22px; }
.work-card { position: relative; overflow: hidden; display: grid; gap: 24px; padding: 26px 20px; border-radius: 18px; color: #fff; }
.work-resto { background: var(--night); }
.work-courier { background: var(--accent); padding-bottom: 0; }
.work-copy { display: grid; gap: 10px; justify-items: start; align-content: start; }
.work-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.work-kicker svg { width: 18px; height: 18px; }
.work-copy h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.2; }
.work-copy > p:not(.work-kicker) { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.ticks { display: grid; gap: 8px; margin: 6px 0 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ticks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--yellow); stroke-width: 2.6; }
.browser { width: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); align-self: center; }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: #f1f4f2; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbd7; }
.browser-bar span { margin-left: 10px; font-size: 11.5px; color: var(--muted); background: #fff; padding: 1px 12px; border-radius: 999px; }
.browser video { width: 100%; height: auto; aspect-ratio: 1100 / 688; background: #f3f6f4; object-fit: cover; }
.work-phone { --k: 0.42; justify-self: center; margin-bottom: -150px; transform: rotate(3deg); }


/* ---------- Questions ---------- */
.faq { margin-top: 48px; }
.faq-list { display: grid; gap: 8px; max-width: 760px; margin: 20px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.faq details[open] { border-color: #c9ddd4; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 12px 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background-color: var(--accent-soft);
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  background-size: 11px 2px, 2px 11px; background-position: center; background-repeat: no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14px; padding-bottom: 16px; }

/* ---------- Rejoindre ---------- */
.join-wrap { margin-top: 48px; }
.join { position: relative; display: grid; gap: 8px; padding: 30px 22px 0; border-radius: 18px; background: var(--accent); color: #fff; overflow: hidden; }
.join::before { content: ""; position: absolute; left: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, 0.05); }
.join h2 { color: #fff; }
.join-text { position: relative; z-index: 1; }
.join p { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin: 8px 0 18px; }
.join-photo { position: relative; width: 100%; max-width: 420px; justify-self: center; }

/* ---------- Pied de page ---------- */
.foot { margin-top: 48px; background: var(--night); color: rgba(255, 255, 255, 0.78); font-size: 13.5px; }
.foot-grid { display: grid; gap: 24px; padding-block: 36px 24px; }
.foot-about { display: grid; gap: 14px; justify-items: start; }
.foot-about img { border-radius: 50%; background: #fff; }
.foot h4 { color: var(--yellow); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.foot nav { display: grid; gap: 0; align-content: start; }
.foot nav a { display: block; padding: 9px 0; }
.contact-line a { display: inline-block; padding: 9px 0; }
.foot nav a, .contact-line a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.foot nav a:hover, .contact-line a:hover { color: #fff; text-decoration: underline; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.contact-line svg { width: 16px; height: 16px; color: var(--yellow); flex: none; }
.social { width: 44px; height: 44px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; }
.social svg { width: 22px; height: 22px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 16px calc(18px + env(safe-area-inset-bottom, 0px)); padding-right: 64px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12.5px; }

/* ---------- Retour en haut : toujours visible, l'anneau suit la progression ---------- */
.to-top {
  position: fixed; z-index: 40; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(16, 38, 32, 0.35), 0 0 0 1px rgba(16, 38, 32, 0.06);
  transition: transform 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease;
}
.to-top:hover { transform: translateY(-3px); background: var(--accent); color: #fff; }
.to-top:active { transform: scale(0.94); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: rgba(16, 38, 32, 0.1); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.to-top:hover .ring-fill { stroke: var(--yellow); }
.to-top:hover .ring-track { stroke: rgba(255, 255, 255, 0.2); }
.to-top-arrow { position: relative; width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.to-top.at-end .to-top-arrow { transform: translateY(-2px); }

/* Apparition au défilement (ajoutée par app.js seulement : sans script, tout reste visible). */
.pre { opacity: 0; transform: translateY(22px); }
.pre.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- ≥ 600 px ---------- */
@media (min-width: 600px) {
  :root { --pad: 28px; }
  h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  .topbar-city { display: inline; }
  .facts-card { grid-template-columns: repeat(4, 1fr); }
  .facts-card li { flex-direction: column; gap: 10px; padding: 18px 16px; }
  .facts-card li:nth-child(-n+2) { border-bottom: 0; }
  .facts-card li:not(:last-child) { border-right: 1px solid var(--line); }
  .zone-form { grid-template-columns: 1fr auto; }
  .zone-result { grid-column: 1 / -1; }
  .svc-phone { --k: 0.54; }
  .svc-card { width: 210px; max-width: none; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .foot-grid > :last-child { grid-column: 1 / -1; }
}

/* ---------- Ordinateur : page en boîte ---------- */
@media (min-width: 900px) {
  body { padding: 24px 24px 48px; }
  .shell { border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(10, 30, 24, 0.25); }
  .nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
  .nav-links a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
  .nav-links a:hover, .nav-links a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
  .nav-cta { margin-left: 26px; }
  .menu-btn { display: none; }

  .hero { padding: 44px 0 40px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 34px; }
  h1 { font-size: 46px; line-height: 1.08; }
  h2 { font-size: 31px; }
  .lead { font-size: 15.5px; max-width: 28em; }
  .hero-text { gap: 20px; }
  .hero-art { width: 100%; max-width: 470px; margin: 0 0 0 auto; }
  .hero-phone { --k: 0.4; left: 1%; bottom: -4%; }
  .chip { padding: 12px 14px 13px; }

  .facts { margin-top: -6px; }
  .services { margin-top: 60px; padding: 56px 0 60px; }
  .svc { margin-top: 26px; }
  .svc-panels { margin-top: 30px; }
  .svc-panel { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
  .svc-copy { max-width: 27em; }
  .svc-copy h3 { font-size: 30px; }
  .svc-stage { max-width: 420px; margin: 0 0 0 auto; }
  .svc-phone { --k: 0.6; margin-left: 0; }
  .svc-card { width: 236px; bottom: 12%; right: -8px; }

  .steps { margin-top: 64px; }
  .road-wrap { gap: 0; margin-top: 30px; }
  .road-svg, .road-moto { display: block; }
  .step, .step-rev { grid-template-columns: 1fr 1fr; gap: 60px; }
  .step-shot { justify-self: end; max-width: 440px; }
  .step-rev .step-shot { order: 2; justify-self: start; }
  .step-rev .step-text { justify-self: end; text-align: right; }
  .step-rev .step-num { margin-left: auto; }
  .step-text { max-width: 22em; }
  .step-text h3 { font-size: 20px; }
  .step-text p { font-size: 14.5px; }

  .zone-wrap { margin-top: 60px; }
  .zone { grid-template-columns: 0.9fr 1.1fr; align-items: center; padding: 40px 40px; gap: 32px; }

  .track { margin-top: 64px; padding: 58px 0 60px; }
  .track-in { grid-template-columns: 1fr 0.9fr; align-items: center; gap: 50px; }
  .notes { max-width: 440px; }

  .work { margin-top: 64px; }
  .work-grid { margin-top: 28px; gap: 18px; }
  .work-card { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 40px; padding: 44px 42px; }
  .work-copy h3 { font-size: 28px; }
  .work-courier { grid-template-columns: 1fr 0.7fr; padding: 44px 42px 0; align-items: start; }
  .work-courier .work-copy { padding-bottom: 44px; }
  .work-phone { --k: 0.46; margin-bottom: -190px; }

  .faq { margin-top: 64px; }
  .join-wrap { margin-top: 84px; }
  .join { grid-template-columns: 1fr 1fr; align-items: end; padding: 0 0 0 46px; overflow: visible; }
  .join-text { padding: 46px 0; }
  .join::before { display: none; }
  .join-photo { margin-top: -80px; max-width: 470px; }
  .foot { margin-top: 72px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; padding-block: 48px 28px; }
  .foot-grid > :last-child { grid-column: auto; }
  .foot-bottom { padding-right: var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orbit-reveal { stroke-dashoffset: 0; }
  .pre { opacity: 1; transform: none; }
}
