/* ==========================================================================
   WeLap — design system
   Palette : asphalte / anthracite / orange WeLap / blanc
   Typo    : Barlow Condensed (titres, données) + Barlow (texte)
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Couleurs */
  --c-black: #030304;
  --c-anthracite: #121316;
  --c-graphite: #1b1d21;
  --c-line: #2a2d33;
  --c-orange: #ff6b35;
  --c-orange-soft: rgba(255, 107, 53, 0.14);
  --c-orange-glow: rgba(255, 107, 53, 0.35);
  --c-white: #f4f4f1;
  --c-grey: #a9acb3;
  --c-grey-2: #8b8f97;
  --c-green: #3ddc84;

  /* Typo */
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-hero: clamp(3.4rem, 8.6vw, 7.25rem);
  --t-h2: clamp(2.5rem, 6.5vw, 5rem);
  --t-h3: clamp(1.5rem, 2.6vw, 2rem);
  --t-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  /* Espacements */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --max: 1240px;
  --measure: 38rem;

  /* Formes */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
  --r-phone: 44px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-orange); color: var(--c-black); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-orange); color: var(--c-black); padding: .75rem 1rem; border-radius: var(--r-sm);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.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; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--anth { background: var(--c-anthracite); }

/* ---------- Typographie ---------- */
.display, h1, h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  line-height: .92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.1; letter-spacing: .005em; }
.lead { font-size: var(--t-lead); color: var(--c-grey); line-height: 1.5; max-width: var(--measure); }
.muted { color: var(--c-grey); }
.small { font-size: var(--t-small); color: var(--c-grey-2); }
.num { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.orange { color: var(--c-orange); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 + .lead { margin-top: 1.5rem; }
.kicker { font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; color: var(--c-orange); margin-bottom: 1rem; letter-spacing: .02em; }

/* ---------- Statuts (honnêteté produit) ---------- */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 500; line-height: 1;
  padding: .45rem .7rem; border-radius: 999px;
  border: 1px solid var(--c-line); color: var(--c-grey); background: rgba(255,255,255,.02);
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--c-green); border-color: rgba(61,220,132,.3); }
.status--dev { color: var(--c-orange); border-color: rgba(255,107,53,.35); }
.status--concept { color: #c9b8ff; border-color: rgba(201,184,255,.3); }
.status--demo { color: var(--c-grey); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-orange); color: var(--c-black); }
.btn--primary:hover { background: #ff8254; }
.btn--ghost { border: 1px solid rgba(244,244,241,.25); color: var(--c-white); }
.btn--ghost:hover { border-color: var(--c-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Badges stores */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 14px;
  background: var(--c-white); color: var(--c-black); text-decoration: none;
  transition: transform .25s var(--ease-out), opacity .25s;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .6875rem; opacity: .75; }
.store strong { font-size: 1.0625rem; font-weight: 500; }
.store[aria-disabled="true"] { background: transparent; color: var(--c-grey); border: 1px dashed var(--c-line); cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open { background: rgba(3,3,4,.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: rgba(255,255,255,.06); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 1.625rem; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; }
.nav__links a { text-decoration: none; color: var(--c-grey); font-size: .9375rem; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--c-white); }
.nav__cta { min-height: 42px; padding: 0 1.1rem; font-size: .9375rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-white); transition: transform .3s var(--ease-out), opacity .2s; }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--c-black);
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease-out); }
  .nav__links { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav__links a { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 2.75rem; color: var(--c-white); line-height: 1.2; }
  .nav__cta { width: 100%; min-height: 56px; font-size: 1.0625rem; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 881px) {
  .nav__menu { display: flex; align-items: center; gap: 2rem; }
}

/* ---------- Reveal (activé uniquement avec JS + mouvement autorisé) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Téléphone (mockup UI construit en CSS)
   ========================================================================== */
.phone {
  --pw: 300px;
  width: var(--pw); aspect-ratio: 9 / 19.3;
  border-radius: var(--r-phone); padding: 10px;
  background: linear-gradient(145deg, #2c2e33, #0d0e10 40%, #1d1f23);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px -20px rgba(0,0,0,.9), 0 0 120px -40px var(--c-orange-glow);
  position: relative; flex: none;
}
.phone::before { /* îlot */
  content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 26px; margin-left: -45px;
  background: #000; border-radius: 20px; z-index: 3;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: calc(var(--r-phone) - 10px);
  background: #08090b; overflow: hidden; isolation: isolate;
}
.screen {
  position: absolute; inset: 0; padding: 58px 18px 20px; display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; line-height: 1.35;
}
.phone .screen { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.phone .screen:not(.is-active) { opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; }
.screen__title { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 26px; line-height: 1; }
.screen__sub { color: var(--c-grey-2); font-size: 12px; }
.ui-card { background: var(--c-graphite); border-radius: 14px; padding: 12px 14px; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ui-label { color: var(--c-grey-2); font-size: 11px; }
.ui-big { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 44px; line-height: 1; letter-spacing: -.01em; }
.ui-mid { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 22px; line-height: 1; }
.ui-delta--neg { color: var(--c-green); }
.ui-delta--pos { color: #ff5b5b; }
.ui-list { display: flex; flex-direction: column; gap: 2px; }
.ui-list li { list-style: none; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.05); font-variant-numeric: tabular-nums; }
.ui-list li.is-me { background: var(--c-orange-soft); border-radius: 8px; border-bottom-color: transparent; }
.ui-list .pos { font-family: var(--f-display); font-weight: 600; color: var(--c-grey-2); }
.ui-list .t { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.ui-tabs { display: flex; gap: 4px; background: var(--c-graphite); border-radius: 10px; padding: 3px; }
.ui-tabs button { flex: 1; font-size: 11px; padding: 6px 0; border-radius: 8px; color: var(--c-grey); transition: background-color .2s, color .2s; }
.ui-tabs button[aria-pressed="true"] { background: var(--c-white); color: var(--c-black); }
.ui-seg { display: inline-flex; gap: 4px; }
.ui-seg button { font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-grey); }
.ui-seg button[aria-pressed="true"] { border-color: var(--c-orange); color: var(--c-orange); }
.ui-pill { display: inline-flex; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--c-orange-soft); color: var(--c-orange); }
.ui-bar { height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: var(--c-orange); border-radius: inherit; }
.ui-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.ui-tabbar i { width: 22px; height: 4px; border-radius: 2px; background: var(--c-line); }
.ui-tabbar i.on { background: var(--c-orange); }
.ui-toast {
  position: absolute; left: 14px; right: 14px; top: 56px; z-index: 4;
  background: rgba(27,29,33,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,107,53,.4); border-radius: 14px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: center; font-size: 12px;
  transform: translateY(-140%); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s;
}
.ui-toast.is-shown { transform: none; opacity: 1; }
.ui-toast b { display: block; font-weight: 500; font-size: 12.5px; }
.ui-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--c-orange); flex: none; display: grid; place-items: center; color: var(--c-black); font-family: var(--f-display); font-weight: 700; font-style: italic; }
.ui-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3a3d44, #1b1d21); flex: none; display: grid; place-items: center; font-size: 11px; color: var(--c-grey); }
.ui-mini-track { width: 100%; height: 88px; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem)); padding-bottom: clamp(3rem, 8vh, 5rem);
  display: flex; align-items: center; overflow: hidden;
}
.hero::after { /* halo */
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,107,53,.16), transparent 70%); pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__copy h1 { margin-bottom: 1.5rem; }
.hero__tagline { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; margin-bottom: 1.25rem; }
.hero__copy .lead { margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

.hero__visual { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / .92; justify-self: end; perspective: 1400px; }
.track { position: absolute; left: -2%; top: 2%; width: 70%; height: 64%; }
.track__base { fill: none; stroke: #1f2126; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.track__line { fill: none; stroke: rgba(244,244,241,.5); stroke-width: 1.5; stroke-dasharray: 4 7; }
.track__trail { fill: none; stroke: var(--c-orange); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,107,53,.8)); }
.track__car { fill: var(--c-white); filter: drop-shadow(0 0 10px rgba(255,255,255,.9)); }
.track__sector { stroke: var(--c-grey-2); stroke-width: 2; }
.track__sector-label { font-family: var(--f-display); font-weight: 600; font-size: 16px; fill: var(--c-grey-2); }
.track__finish { stroke: var(--c-white); stroke-width: 4; stroke-dasharray: 3 3; }

.timing {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: 62%;
  background: rgba(18,19,22,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-md); padding: 1rem 1.1rem;
}
.timing__now { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 2.75rem; line-height: 1; margin: .35rem 0 .75rem; }
.timing__sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.timing__sectors div { background: var(--c-graphite); border-radius: 8px; padding: 6px 8px; font-variant-numeric: tabular-nums; min-height: 46px; }
.timing__sectors span { display: block; font-size: 11px; color: var(--c-grey-2); }
.timing__sectors b { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; opacity: 0; transition: opacity .3s; }
.timing__sectors b.is-set { opacity: 1; }
.timing__sectors b.is-best { color: var(--c-orange); }
.timing__meta { display: flex; justify-content: space-between; margin-top: .75rem; font-size: .8125rem; color: var(--c-grey); font-variant-numeric: tabular-nums; }

.hero__phone { position: absolute; right: 0; top: 10%; z-index: 3; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg); transition: transform .8s var(--ease-out); }
.hero__phone .phone { --pw: 210px; }

@media (max-width: 960px) {
  .hero { align-items: flex-start; min-height: auto; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy h1 { order: 1; margin-bottom: .75rem; }
  .hero__tagline { order: 2; margin-bottom: 1rem; }
  .hero__visual { order: 3; justify-self: auto; max-width: 560px; width: 100%; aspect-ratio: auto; margin: 0 auto 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
  .hero__copy .lead { order: 4; margin-bottom: 1.75rem; }
  .hero__actions { order: 5; width: 100%; }
  .track { position: relative; width: 100%; height: auto; aspect-ratio: 540 / 400; }
  .timing { position: relative; width: 100%; padding: .85rem 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
  .timing > .ui-row { grid-column: 1 / -1; }
  .timing__now { font-size: 2.25rem; margin: .35rem 0 0; }
  .timing__meta { grid-column: 1 / -1; margin-top: .6rem; }
  .timing__sectors { margin-top: .35rem; }
  .hero__phone { display: none; }
  .hero__actions .btn-row .btn { flex: 1 1 100%; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .store { padding: 0 .75rem; gap: .5rem; min-height: 54px; }
  .store strong { font-size: .9375rem; }
  .store small { font-size: .625rem; }
}
@media (max-width: 360px) { .timing { grid-template-columns: 1fr; } }

/* ==========================================================================
   Parcours produit (scroll story)
   ========================================================================== */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); }
.tour__steps { display: flex; flex-direction: column; }
.tour__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem; }
.tour__step h3 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-style: italic; font-weight: 700; margin: .5rem 0 1rem; }
.tour__step p { color: var(--c-grey); max-width: 30rem; font-size: 1.125rem; }
.tour__step ul { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tour__step ul li { font-size: .875rem; padding: .4rem .75rem; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-grey); }
.tour__step-num { font-family: var(--f-display); font-weight: 600; color: var(--c-grey-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.tour__step.is-active .tour__step-num { color: var(--c-orange); }
.tour__stage { position: sticky; top: calc(50vh - 310px); height: 620px; align-self: start; display: flex; align-items: center; }
.tour__stage .phone { --pw: 300px; }
.tour__inline { display: none; }

@media (max-width: 880px) {
  .tour { grid-template-columns: 1fr; }
  .tour__stage { display: none; }
  .tour__step { min-height: 0; padding-block: 2.5rem; border-top: 1px solid var(--c-line); }
  .tour__inline { display: flex; justify-content: center; margin-top: 2rem; }
  .tour__inline .phone { --pw: min(290px, 78vw); }
  .tour__inline .phone .screen { opacity: 1; transform: none; }
}

/* ==========================================================================
   Convergence : un seul profil
   ========================================================================== */
.converge { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.converge__svg { width: 100%; height: auto; overflow: visible; }
.converge__path { fill: none; stroke: var(--c-line); stroke-width: 1.5; }
.converge__path.is-live { stroke: rgba(255,107,53,.55); }
.converge__pulse { fill: var(--c-orange); }
.converge__node rect { fill: var(--c-anthracite); stroke: var(--c-line); }
.converge__node text { fill: var(--c-white); font-family: var(--f-body); font-size: 15px; }
.converge__node .st { font-size: 12px; fill: var(--c-grey-2); }
.converge__node.is-live rect { stroke: rgba(61,220,132,.5); }
.converge__node.is-live .st { fill: var(--c-green); }
.converge__core circle { fill: var(--c-orange); }
.converge__core text { fill: var(--c-black); font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 30px; }
.converge__ring { fill: none; stroke: var(--c-orange); stroke-opacity: .35; transform-origin: center; transform-box: fill-box; }
.motion .converge__ring { animation: ring 3s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

@media (max-width: 880px) { .converge { grid-template-columns: 1fr; } }

/* ==========================================================================
   Challenges
   ========================================================================== */
.challenge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.challenge__card {
  background: linear-gradient(160deg, #1b1d21, #0c0d0f); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden;
}
.challenge__card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255,107,53,.22), transparent); }
.challenge__goal { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin: .75rem 0 .25rem; }
.challenge__clock { display: flex; gap: 1rem; margin: 1.5rem 0; }
.challenge__clock div { text-align: left; }
.challenge__clock b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.challenge__clock span { font-size: .75rem; color: var(--c-grey-2); }
.challenge__ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; margin-top: 2rem; }
.challenge__ideas div { background: var(--c-black); padding: 1.1rem 1.2rem; }
.challenge__ideas b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.challenge__ideas span { font-size: .875rem; color: var(--c-grey); }
@media (max-width: 880px) { .challenge { grid-template-columns: 1fr; } }

/* ==========================================================================
   Boucle (rétention / physique-digital)
   ========================================================================== */
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.loop__svg { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.loop__ring { fill: none; stroke: var(--c-line); stroke-width: 2; }
.loop__progress { fill: none; stroke: var(--c-orange); stroke-width: 3; stroke-linecap: round; }
.loop__half { font-family: var(--f-display); font-weight: 600; font-size: 14px; fill: var(--c-grey-2); }
.loop__node circle { fill: var(--c-black); stroke: var(--c-line); stroke-width: 2; transition: stroke .3s, fill .3s; }
.loop__node text { font-family: var(--f-display); font-weight: 600; font-size: 20px; fill: var(--c-grey); transition: fill .3s; }
.loop__node .n { font-size: 16px; fill: var(--c-grey-2); }
.loop__node.is-active circle { stroke: var(--c-orange); fill: var(--c-orange); }
.loop__node.is-active .n { fill: var(--c-black); }
.loop__node.is-active text:not(.n) { fill: var(--c-white); }
.loop__center-title { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 34px; fill: var(--c-white); }
.loop__center-sub { font-size: 14px; fill: var(--c-grey); font-family: var(--f-body); }
.loop__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .25rem; counter-reset: loop; }
.loop__list li { padding: 1rem 0 1rem 3rem; position: relative; border-top: 1px solid var(--c-line); color: var(--c-grey); transition: color .3s; }
.loop__list li::before { counter-increment: loop; content: counter(loop); position: absolute; left: 0; top: 1rem; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--c-grey-2); }
.loop__list li b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--c-white); line-height: 1.1; margin-bottom: .2rem; }
.loop__list li.is-active::before { color: var(--c-orange); }
.loop__list li.is-active { color: var(--c-white); }
@media (max-width: 880px) { .loop { grid-template-columns: 1fr; } .loop__svg { max-width: 380px; } }

/* ==========================================================================
   Bloc Pro (teaser home) / CTA final
   ========================================================================== */
.pro-teaser { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-anthracite); border: 1px solid var(--c-line); padding: clamp(2rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.pro-teaser::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255,107,53,.25), transparent); }
.pro-teaser > * { position: relative; }
.pro-teaser h2 { margin: 1rem 0 1.25rem; }
.flow { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.flow li { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: rgba(3,3,4,.55); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.flow li b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--c-orange); width: 1.5rem; }
.flow li span { color: var(--c-grey); }
.flow li strong { color: var(--c-white); font-weight: 500; }
@media (max-width: 880px) { .pro-teaser { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.split > div { background: var(--c-black); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.split h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.split .who { font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; color: var(--c-orange); }
.split > div:last-child { background: var(--c-anthracite); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--c-line); }
.faq details:last-child { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--c-orange); border-bottom: 2px solid var(--c-orange); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { color: var(--c-grey); padding-bottom: 1.5rem; max-width: 44rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--c-line); padding: 4rem 0 calc(3rem + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer h2 { font-size: 1rem; font-style: normal; font-family: var(--f-body); font-weight: 500; color: var(--c-grey-2); margin-bottom: 1rem; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer a { text-decoration: none; color: var(--c-grey); transition: color .2s; }
.footer a:hover { color: var(--c-white); }
.footer__motto { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 1.75rem; line-height: 1.1; margin-top: 1rem; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   PAGE PRO
   ========================================================================== */
.pro-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 10vh, 7rem)); padding-bottom: clamp(4rem, 10vh, 7rem); overflow: hidden; }
.pro-hero h1 { font-size: clamp(3rem, 9vw, 7.25rem); max-width: 14ch; margin: 1.5rem 0 1.75rem; }
.pro-hero .lead { margin-bottom: 2.5rem; }
.pro-hero__lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.pro-hero__lines path { fill: none; stroke: var(--c-line); stroke-width: 1.2; }
.pro-hero__lines path.o { stroke: rgba(255,107,53,.5); stroke-width: 2; }

.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.sheet { position: relative; background: #e9e8e3; color: #1b1d21; border-radius: 6px; padding: 1.5rem; max-width: 380px; font-variant-numeric: tabular-nums; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transform: rotate(-3deg); }
.sheet h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.sheet td { padding: .35rem 0; border-bottom: 1px dotted #9a9a94; }
.sheet td:last-child { text-align: right; font-family: var(--f-display); font-weight: 600; }
.motion .sheet.is-in { animation: fade-sheet 5s 1s var(--ease-out) forwards; }
@keyframes fade-sheet { 60% { opacity: 1; filter: none; } 100% { opacity: .18; filter: blur(2px); transform: rotate(-6deg) translateY(30px); } }
.sheet__caption { margin-top: 2rem; font-size: .9375rem; color: var(--c-grey-2); }
@media (max-width: 880px) { .problem { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.steps li { background: var(--c-black); padding: 1.75rem 1.4rem 2rem; min-height: 220px; display: flex; flex-direction: column; gap: .75rem; }
.steps li b { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--c-orange); }
.steps li h3 { font-style: italic; font-weight: 700; font-size: 2rem; }
.steps li p { color: var(--c-grey); font-size: .9375rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } .steps li { min-height: 0; } }

/* Démo QR */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--c-anthracite); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.demo__board { background: #000; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 1.25rem; font-variant-numeric: tabular-nums; }
.demo__board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.demo__board-head b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.demo__rows { list-style: none; padding: 0; }
.demo__rows li { display: grid; grid-template-columns: 2.5rem 1fr auto; padding: .65rem 0; border-top: 1px solid #1a1b1e; align-items: center; }
.demo__rows li.is-you { color: var(--c-orange); }
.demo__rows .p { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.demo__rows .t { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; }
.demo__scan { display: flex; gap: 1.25rem; align-items: center; margin-top: 1.25rem; padding: 1rem; border-radius: var(--r-md); background: var(--c-white); color: var(--c-black); }
.demo__scan svg { width: 96px; height: 96px; flex: none; }
.demo__scan p { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.demo__scan .btn { margin-top: .75rem; min-height: 44px; background: var(--c-black); color: var(--c-white); font-size: .9375rem; }
.demo__phone .phone { --pw: 280px; }
.demo__phone .screen--scan::after { content: ""; position: absolute; left: 12%; right: 12%; top: 30%; height: 2px; background: var(--c-orange); box-shadow: 0 0 16px var(--c-orange); }
.motion .demo__phone .screen--scan.is-active::after { animation: scanline 1.1s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 62%; } }
.scan-frame { margin: 30px auto 0; width: 76%; aspect-ratio: 1; border-radius: 18px; position: relative; background: radial-gradient(circle at 50% 50%, #1a1b1f, #08090b); display: grid; place-items: center; }
.scan-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid transparent; background: linear-gradient(var(--c-orange), var(--c-orange)) top left / 28px 3px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) top left / 3px 28px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) top right / 28px 3px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) top right / 3px 28px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) bottom left / 28px 3px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) bottom left / 3px 28px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) bottom right / 28px 3px no-repeat, linear-gradient(var(--c-orange), var(--c-orange)) bottom right / 3px 28px no-repeat; }
.scan-frame svg { width: 64%; opacity: .85; }
.record { text-align: center; padding-top: 6px; }
.record__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--c-orange); color: var(--c-black); font-weight: 500; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.motion .screen.is-active .record__badge { animation: pop .6s .2s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.demo__controls { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.demo__progress { display: flex; gap: 6px; margin-top: 1.25rem; }
.demo__progress i { flex: 1; height: 3px; border-radius: 2px; background: var(--c-line); transition: background-color .4s; }
.demo__progress i.on { background: var(--c-orange); }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } .demo__phone { display: flex; justify-content: center; } .demo__phone .phone { --pw: min(280px, 76vw); } }

/* Valeur */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.values article { background: var(--c-black); padding: 2rem 1.75rem 2.25rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.values article h3 { font-size: 1.625rem; }
.values article p { color: var(--c-grey); font-size: .9875rem; }
.values article.wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr; } .values article.wide { grid-column: auto; grid-template-columns: 1fr; } }

.dash { background: var(--c-anthracite); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; position: relative; }
.dash__tile { background: var(--c-graphite); border-radius: 10px; padding: .9rem; }
.dash__tile span { font-size: .75rem; color: var(--c-grey-2); }
.dash__tile .skel { height: 22px; border-radius: 5px; background: linear-gradient(90deg, #26282d, #30333a, #26282d); margin-top: .5rem; }
.dash__chart { grid-column: 1 / -1; height: 120px; }
.dash__chart polyline { fill: none; stroke: var(--c-orange); stroke-width: 2.5; stroke-linejoin: round; }
.dash__chart .area { fill: url(#dashGrad); stroke: none; }
.dash__label { position: absolute; top: .9rem; right: .9rem; }

/* Parcours client */
.journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--c-line), var(--c-orange) 60%, var(--c-line)); }
.journey li { position: relative; padding-top: 2.5rem; }
.journey li::before { content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--c-black); border: 2px solid var(--c-orange); }
.journey h3 { font-style: italic; font-weight: 700; font-size: 2rem; margin-bottom: .75rem; }
.journey p { color: var(--c-grey); font-size: .9375rem; }
@media (max-width: 880px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--c-line), var(--c-orange), var(--c-line)); }
  .journey li { padding: 0 0 2rem 2.5rem; }
  .journey li::before { top: 4px; left: 0; }
}

.contact-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.contact-card h2 { margin-bottom: 1.25rem; }
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pages légales / support
   ========================================================================== */
.doc { padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)); padding-bottom: var(--section-y); }
.doc__inner { max-width: 46rem; }
.doc h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: clamp(1.625rem, 3vw, 2rem); margin: 2.5rem 0 1rem; color: var(--c-white); }
.doc h3 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.doc p, .doc li { color: var(--c-grey); }
.doc p { margin-bottom: 1.1rem; }
.doc ul { padding-left: 1.25rem; margin: 1rem 0 1.5rem; }
.doc li { margin-bottom: .5rem; }
.doc strong { color: var(--c-white); font-weight: 500; }
.doc a { color: var(--c-orange); }
.doc .info { background: var(--c-anthracite); border-left: 3px solid var(--c-orange); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.doc .info p:last-child { margin-bottom: 0; }
.doc__updated { font-size: .9375rem; color: var(--c-grey-2); margin-bottom: 2rem; }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--c-line); border-radius: 999px; margin-bottom: 2rem; }
.lang-switch button { padding: .45rem 1rem; border-radius: 999px; font-size: .875rem; color: var(--c-grey); }
.lang-switch button[aria-pressed="true"] { background: var(--c-white); color: var(--c-black); }
[data-lang-block][hidden] { display: none; }

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__phone { transform: none; }
}

/* Convergence : version large / version mobile */
.converge__svg--tall { display: none; }
@media (max-width: 640px) { .converge__svg--wide { display: none; } .converge__svg--tall { display: block; max-width: 420px; margin-inline: auto; } }

/* Parcours produit : sans JS, on garde les téléphones en ligne partout */
.tour__stage { display: none; }
.tour__inline { display: flex; justify-content: center; margin-top: 2rem; }
@media (min-width: 881px) {
  .js .tour__stage { display: flex; }
  .js .tour__inline { display: none; }
  .tour__inline .phone .screen, .tour__stage .phone .screen { position: absolute; }
}
.tour__inline .phone .screen { opacity: 1; transform: none; pointer-events: auto; }

/* Hero : tracé qui se dessine, puis la voiture part */
.motion .hero[data-hero] .track__base { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.motion .hero.is-drawing .track__base { animation: draw-track 1.4s var(--ease-out) forwards; }
.motion .hero[data-hero] .track__car, .motion .hero[data-hero] .track__trail, .motion .hero[data-hero] .track__mark { opacity: 0; transition: opacity .6s; }
.motion .hero.is-live .track__car, .motion .hero.is-live .track__trail, .motion .hero.is-live .track__mark { opacity: 1; }
.motion .hero[data-hero] .timing, .motion .hero[data-hero] .hero__phone .phone { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion .hero.is-drawing .timing { opacity: 1; transform: none; transition-delay: .5s; }
.motion .hero.is-drawing .hero__phone .phone { opacity: 1; transform: none; transition-delay: .8s; }
@keyframes draw-track { to { stroke-dashoffset: 0; } }
.hero__phone .screen__title { font-size: 21px; }
.hero__phone .ui-big { font-size: 36px; }
.hero__phone .ui-list li { grid-template-columns: 22px 1fr auto; font-size: 11px; padding: 6px 2px; }
.hero__phone .ui-list .ui-pill { display: none; }
.hero__phone .ui-list .t { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .converge__pulse { display: none; } }
.tour__step { min-height: 70vh; }
@media (max-width: 880px) { .tour__step { min-height: 0; } }

[hidden] { display: none !important; }
.ui-list { padding: 0; }
.dash__label { position: static; grid-column: 1 / -1; }

/* Hero Pro : ticket → téléphone */
.pro-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.pro-visual { position: relative; height: 540px; }
.pro-visual__ticket { position: absolute; left: 0; bottom: 40px; width: 230px; background: var(--c-white); color: var(--c-black); border-radius: 16px; padding: 1.1rem; transform: rotate(-6deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); z-index: 2; }
.pro-visual__head { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.pro-visual__row { display: flex; justify-content: space-between; margin: .4rem 0 .8rem; font-variant-numeric: tabular-nums; }
.pro-visual__row b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.pro-visual__qr svg { width: 100%; height: auto; }
.pro-visual__link { position: absolute; left: 170px; bottom: 250px; width: 160px; height: 120px; overflow: visible; z-index: 1; }
.pro-visual__link path { fill: none; stroke: var(--c-orange); stroke-width: 2.5; stroke-dasharray: 6 8; }
.motion .pro-visual__link path { animation: dash-flow 1.2s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -28; } }
.pro-visual__phone { position: absolute; right: 0; top: 0; --pw: 250px; transform: rotate(4deg); }
@media (max-width: 960px) {
  .pro-hero__grid { grid-template-columns: 1fr; }
  .pro-visual { height: 420px; max-width: 420px; width: 100%; margin-inline: auto; }
  .pro-visual__ticket { width: 180px; bottom: 10px; padding: .9rem; }
  .pro-visual__phone { --pw: 200px; }
  .pro-visual__link { left: 120px; bottom: 170px; width: 110px; }
}
@media (max-width: 400px) { .pro-visual { height: 380px; } .pro-visual__phone { --pw: 180px; } .pro-visual__ticket { width: 160px; } }
.demo > div { min-width: 0; }
@media (max-width: 520px) {
  .demo { padding: 1rem; }
  .demo__board { padding: 1rem; }
  .demo__scan { gap: .9rem; padding: .85rem; }
  .demo__scan svg { width: 76px; height: 76px; }
  .demo__scan p { font-size: 1.0625rem; }
  .demo__scan .btn { padding: 0 1rem; }
}
.footer a, .doc a, .btn-row .btn { overflow-wrap: anywhere; }
@media (max-width: 420px) { .footer__grid { grid-template-columns: 1fr; } .contact-card .btn { white-space: normal; text-align: center; } }
.dash { min-width: 0; }
@media (max-width: 420px) { .dash { grid-template-columns: 1fr 1fr; } }

/* ---------- Logo officiel ---------- */
.logo img { display: block; width: auto; object-fit: contain; }
.logo--nav img { height: 54px; }
.logo--footer img { height: 48px; opacity: .9; }
@media (max-width: 880px) { .logo--nav img { height: 48px; } .logo--footer img { height: 44px; } }

/* ---------- Menu mobile : couche opaque dédiée ---------- */
@media (max-width: 880px) {
  /* backdrop-filter sur .nav crée un bloc conteneur pour les éléments fixed :
     le menu restait coincé dans la barre et laissait voir le hero. On le coupe quand le menu est ouvert. */
  .nav.is-open {
    background: #000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 1000;
  }
  .nav__menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: auto;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: #000;
    opacity: 0;
    z-index: 1000;
    isolation: isolate;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
  }
  .nav.is-open .nav__menu { opacity: 1; }
  body.menu-open { overflow: hidden; touch-action: none; }
  body.menu-open .nav__menu { touch-action: pan-y; }
}
