/* Vitrine Jeez (page d'accueil « / »). S'appuie sur le système partagé /ds/ (jetons, boutons, segmenté).
   Mouvement : transform et opacity seulement ; les interactions restent sous 300 ms ; les boucles décoratives de
   l'accueil (trajet, ambulance, halo) s'arrêtent avec prefers-reduced-motion (doc 07). */

:root { --navy: #041d3d; --navy-2: #06264d; --sky: #5AA9FF; --red-a: #FC4119; --red-b: #B80F35; --maxw: 1160px; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); overflow-x: hidden; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
[data-icon] { display: inline-flex; }
[data-icon] svg { width: 1.15em; height: 1.15em; }

/* ---------- Bandeau 1515 et barre de navigation ---------- */
.sos-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 7px 16px; background: var(--p0); color: #fff; text-decoration: none; font-size: var(--fs-sm); }
.sos-num { font-weight: 800; letter-spacing: 0.04em; background: rgb(255 255 255 / 0.18); padding: 2px 10px; border-radius: 999px; }
.nav { position: sticky; top: 34px; z-index: 25; display: flex; align-items: center; gap: 16px; max-width: var(--maxw); margin: 10px auto 0; padding: 8px 10px 8px 16px; border-radius: 18px; background: rgb(4 29 61 / 0.55); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border: 1px solid rgb(255 255 255 / 0.08); transition: background-color 240ms ease, box-shadow 240ms ease; }
.nav.scrolled { background: var(--material); border-color: var(--line); box-shadow: var(--shadow-2); }
.nav-logo { display: inline-flex; align-items: center; gap: 8px; }
.nav-logo .wm.on-light { display: none; }
.nav.scrolled .nav-logo .wm.on-light { display: inline; }
.nav.scrolled .nav-logo .wm.on-dark { display: none; }
:root:not([data-theme='light']) .nav.scrolled .nav-logo .wm.on-light { display: none; }
:root:not([data-theme='light']) .nav.scrolled .nav-logo .wm.on-dark { display: inline; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: rgb(255 255 255 / 0.86); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: background-color 200ms ease; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { background: rgb(255 255 255 / 0.1); }
.nav.scrolled .nav-links a:hover { background: var(--fill); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Accueil ---------- */
.hero { position: relative; margin-top: -64px; padding: 120px 0 90px; min-height: 92vh; color: #fff; background: radial-gradient(1200px 700px at 80% 10%, #0b3d7a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #031427 100%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.g1 { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle, #1F6FD1, transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.g2 { width: 420px; height: 420px; left: -140px; bottom: -140px; background: radial-gradient(circle, rgb(252 65 25 / 0.55), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-logo { width: 220px; height: auto; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
.hero .accent { background: linear-gradient(90deg, #fff 0%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: rgb(255 255 255 / 0.78); max-width: 34em; margin: 0 0 28px; }
.section .lead { color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn [data-icon] svg { width: 18px; height: 18px; }
.btn.glass { --btn-bg: rgb(255 255 255 / 0.12); --btn-ink: #fff; border: 1px solid rgb(255 255 255 / 0.18); backdrop-filter: blur(10px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.9); }

/* Entrée de l'accueil : une fois, échelonnée. */
.rise { opacity: 0; transform: translateY(18px); animation: rise 700ms cubic-bezier(.2,.8,.2,1) forwards; }
.d1 { animation-delay: 90ms; } .d2 { animation-delay: 180ms; } .d3 { animation-delay: 270ms; } .d4 { animation-delay: 360ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scène animée */
.hero-scene { position: relative; aspect-ratio: 520 / 560; max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 960px) { .hero-scene { justify-self: center; max-width: 440px; } }
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.blocks rect { fill: rgb(255 255 255 / 0.035); stroke: rgb(255 255 255 / 0.07); }
.route-base { stroke: rgb(255 255 255 / 0.12); stroke-width: 10; stroke-linecap: round; }
.route-line { stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 6.4s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 1; } 55% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pin-origin { position: absolute; left: 21.2%; top: 83.9%; width: 0; height: 0; }
.pin-origin .dot { position: absolute; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--red-a); box-shadow: 0 0 0 4px rgb(255 255 255 / 0.9); }
.pulse { position: absolute; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: rgb(252 65 25 / 0.45); animation: pulse 2.2s ease-out infinite; }
.pulse.p2 { animation-delay: 1.1s; }
@keyframes pulse { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
.pin-dest { position: absolute; left: 80.8%; top: 21.4%; transform: translate(-50%, -100%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: #fff; color: var(--jeez-blue, #0055AC); box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.pin-dest svg { width: 24px; height: 24px; }
/* L'ambulance suit exactement le trajet (offset-path, même géométrie que le SVG, rapportée à la scène). */
.mover { position: absolute; left: 0; top: 0; width: 520px; height: 560px; transform-origin: 0 0; pointer-events: none; }
.mover-badge { position: absolute; offset-path: path('M110 470 C 160 400, 230 420, 250 350 S 200 220, 280 200 S 420 230, 420 120'); offset-rotate: 0deg; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 12px; background: linear-gradient(135deg, var(--red-a), var(--red-b)); color: #fff; box-shadow: 0 8px 24px rgb(184 15 53 / 0.55); animation: travel 6.4s cubic-bezier(.65,0,.35,1) infinite; }
.mover-badge svg { width: 22px; height: 22px; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 55% { offset-distance: 100%; } 85% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.toast-card { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: var(--fs-sm); font-weight: 600; color: #0b1220; background: rgb(255 255 255 / 0.92); box-shadow: 0 14px 40px rgb(0 0 0 / 0.35); backdrop-filter: blur(10px); opacity: 0; }
.toast-card svg { color: #1a7f37; }
.t1 { left: -4%; top: 48%; animation: pop 6.4s ease infinite; animation-delay: 1.4s; }
.t2 { right: -2%; top: 4%; animation: pop 6.4s ease infinite; animation-delay: 3.2s; }
.t2 svg { color: #0055AC; }
@keyframes pop { 0%, 100% { opacity: 0; transform: translateY(8px) scale(0.96); } 8%, 40% { opacity: 1; transform: none; } 50% { opacity: 0; transform: translateY(-6px); } }

/* Téléphone */
.phone { position: relative; width: 260px; aspect-ratio: 390 / 844; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #2b2f36, #0d0f12); box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; z-index: 2; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #f2f2f7; }
.phone.dark .phone-screen { background: #000; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-phone { position: absolute; right: -4%; bottom: -12%; width: 172px; z-index: 1; }
.mover, .pin-dest, .pin-origin { z-index: 2; }
.toast-card { z-index: 3; }
@media (max-width: 960px) { .hero-phone { display: none; } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgb(255 255 255 / 0.4); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.eyebrow { margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text, var(--brand)); }
.section h2, .cta-final h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 40px; font-weight: 800; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Parcours */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 20px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--card-line, var(--line)); box-shadow: var(--shadow-1); counter-increment: step; transition: transform 240ms ease, box-shadow 240ms ease, opacity 600ms ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.step::after { content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 20px; font-weight: 800; color: var(--ink-3); font-feature-settings: 'zero', 'tnum'; }
.step-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, #1F6FD1, #0055AC); }
.step:first-child .step-ico { background: linear-gradient(135deg, var(--red-a), var(--red-b)); }
.step h3 { margin: 0 0 8px; font-size: var(--fs-lg); }
.step p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: var(--fs-sm); }
.steps .step:nth-child(2) { transition-delay: 80ms; } .steps .step:nth-child(3) { transition-delay: 160ms; }
.steps .step:nth-child(4) { transition-delay: 240ms; } .steps .step:nth-child(5) { transition-delay: 320ms; }
.progress { height: 4px; margin-top: 28px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--red-a), #1F6FD1); transition: transform 1600ms cubic-bezier(.65,0,.35,1) 300ms; }
.progress.in span { transform: scaleX(1); }

/* Applications */
.apps { background: var(--surface-2, var(--bg-elev)); }
.tabs-bar { margin-bottom: 36px; }
.tabs-bar > button { min-height: 40px; padding: 0 18px; font-size: var(--fs-md); }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panel.enter .panel-media { animation: slideIn 280ms ease both; }
.panel.enter .panel-copy { animation: slideIn 280ms ease 60ms both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; gap: 32px; } }
.panel-media { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.panel-media .phone { width: 280px; }
.panel-media.duo { flex-direction: row; justify-content: center; align-items: flex-start; }
.small-phone { width: 220px !important; }
.small-phone.offset { margin-top: 60px; margin-left: -30px; }
.slide { opacity: 0; transition: opacity 280ms ease; }
.slide.is-on { opacity: 1; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line-strong); cursor: pointer; transition: transform 200ms ease, background-color 200ms ease; }
.dots button[aria-current='true'] { background: var(--brand); transform: scaleX(2.4); }
.laptop { width: min(560px, 100%); }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; overflow: hidden; border: 10px solid #15181d; border-bottom-width: 14px; background: #fff; box-shadow: 0 30px 70px rgb(0 0 0 / 0.25); }
.laptop-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base { height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#c9ccd2, #9da1a8); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-text, var(--brand)); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.12; margin: 16px 0 18px; }
.feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.feats li { display: flex; gap: 10px; line-height: 1.45; color: var(--ink-2); }
.feats li [data-icon] { flex: none; margin-top: 2px; color: var(--ok); }
.panel-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); line-height: 1.45; }

/* Installation */
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 900px) { .os-grid { grid-template-columns: 1fr; } }
.os { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--card-line, var(--line)); transition: box-shadow 240ms ease, border-color 240ms ease, opacity 600ms ease, transform 600ms ease; }
.os.mine { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus, rgb(0 85 172 / 0.25)), var(--shadow-2); }
.os h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.os ol { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.6; }
.urls { margin: 12px 0 0; }
.urls dt { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 8px; }
.urls dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.install-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Appel final */
.cta-final { padding: 110px 0; text-align: center; color: #fff; background: radial-gradient(800px 400px at 50% 0%, #0b3d7a, transparent 70%), linear-gradient(160deg, var(--navy), #031427); }
.cta-final p { color: rgb(255 255 255 / 0.78); font-size: var(--fs-lg); margin: -20px 0 30px; }
.cta-final .hero-cta { justify-content: center; }
.foot { padding: 34px 0 44px; background: var(--bg); border-top: 1px solid var(--line); }
.foot-inner { display: flex; gap: 16px; align-items: flex-start; }
.foot p { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.6; }
.foot a { color: var(--p0); font-weight: 700; }

/* Mouvement réduit : rien ne boucle, tout est visible d'emblée. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
  .route-line { stroke-dashoffset: 0; }
  .mover-badge { offset-distance: 100%; }
  .toast-card { opacity: 1; }
  .progress span { transform: scaleX(1); }
}
