/* =========================================================
   E'potto, styles du header / landing
   Repères :
   - Variables de thème  -> :root
   - Écran d'intro        -> .splash
   - Navigation           -> .nav
   - Hero (titre/boutons) -> .hero
   - Image héro + scan    -> .showcase / .scan
   ========================================================= */

:root {
  --bg:        #edebea;   /* fond gris clair de la page */
  --ink:       #2c2c2c;   /* texte foncé (titres) */
  --ink-soft:  #b7b4b1;   /* mot grisé du titre */
  --muted:     #6e6b69;   /* sous-titres, liens */
  --line:      #dad7d5;   /* fines bordures */
  --black:     #161616;   /* boutons noirs */
  --soft:      #dcdad8;   /* bouton secondaire */
  --pink:      #f2a0c0;   /* rose de l'intro + bouton d'envoi */
  --cost:      #c2705f;   /* "temps perdu" : durées du parcours classique */
  /* courbes d'easing fortes (Emil Kowalski) : plus de punch que les easings natifs */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-emph:   cubic-bezier(.32, .72, 0, 1);
  --card-radius: 28px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* =========================================================
   THÈME SAISONNIER  (data-season sur <html>, défaut = été)
   - --s-accent / -deep / -soft : couleur d'accent de la saison
   - --s-scan*  : couleurs de l'overlay de scan (header)
   - --s-g1/2/3 : dégradés des cartes colorées (mission)
   ========================================================= */
:root,
[data-season="ete"] {
  --s-accent:      #18a866;
  --s-accent-deep: #0c6e44;
  --s-accent-soft: rgba(24,168,102,.14);
  --s-scan:        #1fb877;
  --s-scan-strong: #0c6e44;
  --s-scan-line:   #ecfff5;
  --s-scan-glow:   rgba(40,210,140,.55);
  --s-g1a:#c7ecd6; --s-g1b:#a3ddbb;
  --s-g2a:#c4ebe2; --s-g2b:#a2ddd0;
  --s-g3a:#e0eebb; --s-g3b:#c6e5a3;
  --s-soft:        #e7f5ed;
  --s-shadow:      rgba(40,150,100,.2);
}
[data-season="automne"] {
  --s-accent:      #e8772b;
  --s-accent-deep: #b8501a;
  --s-accent-soft: rgba(232,119,43,.15);
  --s-scan:        #ff7a45;
  --s-scan-strong: #c2451f;
  --s-scan-line:   #fff0e6;
  --s-scan-glow:   rgba(255,140,80,.6);
  --s-g1a:#ffe0c0; --s-g1b:#ffc7ad;
  --s-g2a:#ffd9b8; --s-g2b:#f4bb9c;
  --s-g3a:#f4c8ad; --s-g3b:#ecb0cb;
  --s-soft:        #fdeede;
  --s-shadow:      rgba(200,110,60,.2);
}
[data-season="hiver"] {
  --s-accent:      #4a8ee0;
  --s-accent-deep: #2a5ca8;
  --s-accent-soft: rgba(74,142,224,.15);
  --s-scan:        #5b9bf0;
  --s-scan-strong: #2a5ca8;
  --s-scan-line:   #eef5ff;
  --s-scan-glow:   rgba(120,170,255,.55);
  --s-g1a:#d4e7fb; --s-g1b:#b8d2f5;
  --s-g2a:#cdeef4; --s-g2b:#aaddea;
  --s-g3a:#d8daf8; --s-g3b:#c2c4f2;
  --s-soft:        #e9f2fd;
  --s-shadow:      rgba(80,120,200,.2);
}
[data-season="printemps"] {
  --s-accent:      #ec5b9e;
  --s-accent-deep: #c43f86;
  --s-accent-soft: rgba(236,91,158,.14);
  --s-scan:        #f178b0;
  --s-scan-strong: #b8407e;
  --s-scan-line:   #fff0f7;
  --s-scan-glow:   rgba(255,150,200,.55);
  --s-g1a:#ffd7e6; --s-g1b:#fbbcd5;
  --s-g2a:#e7d4f6; --s-g2b:#d2b8ee;
  --s-g3a:#daeec5; --s-g3b:#c2e3ac;
  --s-soft:        #fdeaf2;
  --s-shadow:      rgba(210,110,160,.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }   /* pas de scroll pendant l'intro */

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================================
   ÉCRAN D'INTRO (SPLASH)
   ========================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 24px;
  text-align: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.6vw, 2.6rem);
  letter-spacing: -.02em;
  color: var(--s-accent);
  opacity: 0;
  transform: translateY(8px);
  animation: splashIn .8s ease .15s forwards;
}
@keyframes splashIn {
  to { opacity: 1; transform: none; }
}

/* =========================================================
   STRUCTURE
   ========================================================= */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Apparition douce du contenu après l'intro */
/* bloc du haut = panneau gris à coins arrondis en bas, posé sur le fond blanc */
.page {
  background: var(--bg);
  border-radius: 0 0 40px 40px;
  padding-top: 26px;
}
.page > .container > * {
  opacity: 0;
  transform: translateY(14px);
}
body.ready .page > .container > * {
  animation: rise .7s cubic-bezier(.22,.61,.36,1) forwards;
}
body.ready .nav   { animation-delay: .02s; }
body.ready .hero  { animation-delay: .12s; }
body.ready .showcase { animation-delay: .24s; }
body.ready .brands   { animation-delay: .34s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* =========================================================
   NAVIGATION (barre sticky en verre dépoli)
   ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
/* couche de flou qui se DISSOUT vers le bas (aucune ligne / bordure) */
.topbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: -26px;
  z-index: -1;
  pointer-events: none;
  background: rgba(237, 235, 234, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
          backdrop-filter: blur(14px) saturate(1.25);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  transition: background .25s ease;
}
.topbar.is-scrolled::before { background: rgba(237, 235, 234, 0.6); }
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: .95rem;
  color: var(--muted);
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-mark { width: 26px; height: 26px; color: var(--ink); display: inline-flex; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav-actions { justify-self: end; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 20px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-soft {
  background: var(--soft);
  color: var(--ink);
}
.btn-soft:hover { background: #d2cfcd; transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.play {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.play svg { width: 14px; height: 14px; margin-left: 1px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  text-align: center;
  padding: 92px 0 46px;
}
.social-proof {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background-size: cover;
}
.avatar:first-child { margin-left: 0; }
.a1 { background: linear-gradient(135deg,#7fd6c2,#4aa6c4); }
.a2 { background: linear-gradient(135deg,#f1907f,#d6536c); }
.a3 { background: linear-gradient(135deg,#9aa2b1,#6b7280); }
.social-proof-text { font-size: .85rem; color: var(--muted); }

.hero-title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}
.hero-title .muted-word { color: var(--ink-soft); }
/* mots accentués -> dégradé de la saison */
.hl {
  background: linear-gradient(100deg, var(--s-accent-deep), var(--s-scan));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .pill { margin-bottom: 22px; }

.hero-sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
/* flèche dans un cercle blanc (bouton sombre) */
.btn-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-arrow svg { width: 15px; height: 15px; }

/* =========================================================
   IMAGE HÉRO : scan du parking (assets/test 1.png + overlay codé)
   - couleur d'accent = rose marque (voir --scan*)
   - pour changer l'image : remplace assets/test 1.png
   ========================================================= */
.showcase {
  --scan:        var(--s-scan);          /* contours des voitures, grille (couleur de la saison) */
  --scan-strong: var(--s-scan-strong);   /* texte de la télémétrie */
  --scan-line:   var(--s-scan-line);     /* cœur lumineux du rayon */
  --scan-glow:   var(--s-scan-glow);
  width: 100%;                       /* dashboard large, remplit le conteneur */
  max-width: 1200px;
  margin: 22px auto 0;
}
.scan {
  position: relative;
  container-type: inline-size;       /* échelle du HUD/tags selon la largeur réelle */
  border-radius: clamp(14px, 1.8cqi, 26px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(70,40,80,.5),
              inset 0 2px 0 rgba(255,255,255,.4);
}
.scan-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

/* léger assombrissement haut/bas pour la lisibilité de la télémétrie */
.scan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(60,30,22,.32), transparent 16%,
    transparent 82%, rgba(55,30,28,.34));
}

/* grille de scan subtile */
.scan-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .14;
  background-image:
    repeating-linear-gradient(90deg, var(--scan) 0 1px, transparent 1px 8.333%),
    repeating-linear-gradient(0deg,  var(--scan) 0 1px, transparent 1px 16.666%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 50%, #000 58%, transparent 100%);
}

/* rayon de scan : balaie de haut en bas */
.scan-beam {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22%;
  z-index: 2;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateY(-100%);
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--scan) 14%, transparent) 55%,
    color-mix(in srgb, var(--scan) 30%, transparent) 84%,
    color-mix(in srgb, var(--scan) 12%, transparent) 100%);
  animation: sweep 5s cubic-bezier(.66,0,.34,1) infinite;
}
.scan-beam::after {                 /* cœur lumineux (bord d'attaque) */
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--scan-line) 18%, var(--scan-line) 82%, transparent);
  box-shadow: 0 0 12px 2px var(--scan-glow), 0 0 28px 7px var(--scan-glow);
}
@keyframes sweep {
  0%   { transform: translateY(-100%); opacity: 0; }
  7%   { opacity: 1; }
  93%  { opacity: 1; }
  100% { transform: translateY(454%); opacity: 0; }
}

/* cadre type viseur */
.scan-frame {
  position: absolute;
  inset: clamp(7px, 1.3cqi, 16px);
  z-index: 3;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--scan) 34%, transparent);
  border-radius: clamp(9px, 1.4cqi, 18px);
}

/* voitures détectées
   Chaque cadre a son propre cycle (--dur / --delay) : il apparaît, tient,
   puis disparaît, de façon désynchronisée pour un effet de scan « vivant ». */
.bbox {
  position: absolute;
  z-index: 3;
  border: 1.4px solid color-mix(in srgb, var(--scan) 88%, transparent);
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  opacity: 0;
  will-change: opacity, transform;
  animation: pop var(--dur, 5s) cubic-bezier(.22,.61,.36,1) var(--delay, 0s) infinite;
}
.bbox::after {                      /* halo : flash à l'apparition puis lueur douce */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--scan), 0 0 16px 2px var(--scan-glow);
  opacity: 0;
  animation: flare var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}

/* cadences propres à chaque détection (durée + décalage distincts) */
.b-match    { --dur: 7s;   --delay: .3s; }
.b-berline  { --dur: 4.3s; --delay: 1.7s; }
.b-citadine { --dur: 5.3s; --delay: .9s; }
.b-break    { --dur: 4.8s; --delay: 2.6s; }

/* le MATCH reste affiché plus longtemps (cible verrouillée) */
.bbox.match::after { animation-name: flareMatch; }

@keyframes pop {
  0%   { opacity: 0; transform: scale(.9); }
  4%   { opacity: 1; transform: scale(1.04); }
  11%  { transform: scale(1); }
  64%  { opacity: 1; transform: scale(1); }
  74%  { opacity: 0; transform: scale(.95); }
  100% { opacity: 0; transform: scale(.95); }
}
@keyframes popMatch {
  0%   { opacity: 0; transform: scale(.92); }
  3%   { opacity: 1; transform: scale(1.05); }
  9%   { transform: scale(1); }
  86%  { opacity: 1; transform: scale(1); }
  94%  { opacity: 0; transform: scale(.97); }
  100% { opacity: 0; transform: scale(.97); }
}
@keyframes flare {
  0%, 100% { opacity: 0; }
  4%  { opacity: .95; }
  13% { opacity: .3; }
  64% { opacity: .3; }
  74% { opacity: 0; }
}
@keyframes flareMatch {
  0%, 100% { opacity: 0; }
  3%  { opacity: 1; }
  10% { opacity: .35; }
  86% { opacity: .35; }
  94% { opacity: 0; }
}

.bbox-tag {
  position: absolute;
  bottom: 100%;
  left: -1px;
  margin-bottom: clamp(3px, .5cqi, 6px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: clamp(2px, .35cqi, 4px) clamp(5px, .8cqi, 9px);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: clamp(.46rem, 1.02cqi, .72rem);
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--scan-strong);
  background: rgba(255,255,255,.82);
  border: 1px solid color-mix(in srgb, var(--scan) 50%, transparent);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

/* la voiture la mieux notée */
.bbox.match {
  border: 2px solid #fff;
  background: color-mix(in srgb, var(--scan) 18%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--scan) 60%, transparent), 0 0 26px 2px var(--scan-glow);
  animation-name: popMatch;
}
.bbox.match .bbox-tag {
  color: #fff;
  background: linear-gradient(180deg, var(--scan), var(--scan-strong));
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--scan) 45%, transparent);
}

/* télémétrie (HUD) dans les coins */
.hud {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: clamp(.5rem, 1.15cqi, .82rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--scan-strong);
  text-shadow: 0 1px 3px rgba(255,255,255,.5);
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, .8cqi, 9px);
}
.hud-tl { top: clamp(9px, 1.7cqi, 20px); left: clamp(10px, 1.9cqi, 22px); }
.hud-tr { top: clamp(9px, 1.7cqi, 20px); right: clamp(10px, 1.9cqi, 22px); }
.hud-bl { bottom: clamp(8px, 1.6cqi, 19px); left: clamp(10px, 1.9cqi, 22px); }
.hud-br { bottom: clamp(8px, 1.6cqi, 19px); right: clamp(10px, 1.9cqi, 22px); }
.rec {
  width: clamp(6px, .9cqi, 10px); height: clamp(6px, .9cqi, 10px);
  border-radius: 50%;
  background: var(--scan);
  box-shadow: 0 0 8px 1px var(--scan-glow);
  animation: blink 1.3s steps(1) infinite;
}
@keyframes blink { 0%,60% { opacity: 1; } 61%,100% { opacity: .2; } }

/* =========================================================
   BANDEAU LOGOS (marquee défilant)
   ========================================================= */
.brands {
  padding: 84px 0 56px;            /* vrai espace sous l'image + sous le bandeau */
}
.brands-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.brands-label {
  flex: none;
  max-width: 170px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
}

/* zone défilante : on masque les bords pour un fondu propre */
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* exactement un jeu de logos -> boucle continue */
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 38px;                 /* marges symétriques = couture invisible à -50% */
  flex: none;
  white-space: nowrap;
  color: #aba7a4;                 /* logos grisés type « placeholder » */
  opacity: .8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  transition: color .25s ease, opacity .25s ease;
}
.brand-logo svg { width: 30px; height: 30px; flex: none; }
.brand-logo:hover { color: var(--ink); opacity: 1; }

/* =========================================================
   NOTRE MISSION (en-tête + bloc image avec cartes)
   ========================================================= */
.mission {
  padding: 84px 0 90px;
}

.pill {
  display: inline-block;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
}

.mission-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-top: 22px;
}
.mission-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink);
}
.mission-title .muted-word { color: var(--ink-soft); }
.mission-intro {
  flex: none;
  max-width: 430px;
  text-align: right;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

/* le bloc à fond image */
.mission-board {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: clamp(20px, 2.6vw, 40px);
  border-radius: 28px;
  background-image: url("assets/imagebloc1.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 80px -34px rgba(70,40,80,.5);
}

/* cartes en verre dépoli */
.feature-card {
  padding: 26px 24px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
          backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: 0 10px 30px -16px rgba(60,30,50,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(60,30,50,.5);
}
.feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  color: var(--accent-pink, #ec5b9e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.feature-ico svg { width: 25px; height: 25px; }
.feature-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.feature-text {
  margin-top: 9px;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- variante : cartes en dégradé (sans image de fond) --- */
.grad-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grad-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  padding: 30px 28px 32px;
  color: var(--ink);                 /* texte foncé sur pastel */
  transition: transform .25s ease, box-shadow .25s ease;
}
.grad-card:hover { transform: translateY(-4px); }
.gc-1 { background: linear-gradient(150deg, var(--s-g1a), var(--s-g1b)); box-shadow: 0 24px 46px -26px var(--s-shadow); }
.gc-2 { background: linear-gradient(150deg, var(--s-g2a), var(--s-g2b)); box-shadow: 0 24px 46px -26px var(--s-shadow); }
.gc-3 { background: linear-gradient(150deg, var(--s-g3a), var(--s-g3b)); box-shadow: 0 24px 46px -26px var(--s-shadow); }
.grad-card:hover { box-shadow: 0 32px 58px -28px var(--s-shadow); }
/* éclat doux en coin */
.grad-glow {
  position: absolute; z-index: -1;
  top: -45%; right: -22%;
  width: 75%; height: 95%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 70%);
}
.grad-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  color: var(--s-accent-deep);
  box-shadow: 0 6px 14px -6px rgba(40,30,50,.2);
}
.grad-ico svg { width: 25px; height: 25px; }
.grad-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.grad-text {
  margin-top: 9px;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================================================
   FONCTIONNALITÉS (grille bento)
   ========================================================= */
.features {
  background: #fff;               /* fond de section blanc */
  padding: 64px 0 96px;
}
.features-head {
  text-align: center;
  margin-bottom: 40px;
}

/* --- 3 cartes "comment ça marche" (maquettes animées, pastel) --- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.flow-card {
  background: #fff;
  border-radius: 24px;
  padding: 14px 14px 26px;
  box-shadow: 0 26px 52px -32px rgba(60,40,60,.42);
}
.flow-stage {
  position: relative;
  height: 234px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.fc-1 { background: linear-gradient(180deg, var(--s-g1a), #fff 88%); }
.fc-2 { background: linear-gradient(180deg, var(--s-g2a), #fff 88%); }
.fc-3 { background: linear-gradient(180deg, var(--s-g3a), #fff 88%); }
.flow-title {
  margin: 22px 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.flow-desc { margin: 9px 14px 0; font-size: .98rem; line-height: 1.55; color: var(--muted); }

/* maquette 1 : habitudes qui défilent (bas -> haut) */
.habits {
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.habits-track { display: flex; flex-direction: column; animation: habitsScroll 15s linear infinite; }
.habit {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .9rem; color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 5px 14px -7px rgba(40,30,50,.22);
}
.habit svg { width: 20px; height: 20px; flex: none; color: var(--s-accent); }
@keyframes habitsScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* maquette 2 : scan qui s'écrit / s'efface */
.scan-mock {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px -18px rgba(40,30,50,.32);
}
.scan-mock-head { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--s-accent-deep); }
.scan-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--s-accent); animation: blink 1.4s steps(1) infinite; }
.scan-mock-title { margin-top: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); min-height: 1.4em; }
.type-cycle::after { content: "▏"; color: var(--s-accent); margin-left: 1px; animation: caret 1.05s steps(1) infinite; }
.scan-mock-tags { margin-top: 15px; display: flex; gap: 7px; flex-wrap: wrap; }
.scan-mock-tags span { font-size: .73rem; font-weight: 600; padding: 4px 10px; border-radius: 7px; background: var(--s-accent-soft); color: var(--s-accent-deep); }

/* maquette 3 : swipe Tinder (en boucle) */
.swipe { position: relative; width: 150px; height: 204px; }
.swipe-deck { position: absolute; inset: 0; }
.swipe-card {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 16px;
  transition: transform .55s cubic-bezier(.5,0,.25,1), opacity .5s ease;
  will-change: transform;
}
.swipe-card.out-left  { transform: translateX(-160%) rotate(-20deg) !important; opacity: 0; }
.swipe-card.out-right { transform: translateX(160%) rotate(20deg) !important; opacity: 0; }
.swipe-badge { position: absolute; top: 6px; width: 48px; height: 48px; opacity: 0; transition: opacity .2s ease; z-index: 6; pointer-events: none; }
.badge-like { right: 2px; }
.badge-nope { left: 2px; }
.swipe.show-like .badge-like { opacity: 1; }
.swipe.show-nope .badge-nope { opacity: 1; }
.features-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}
.features-title .muted-word { color: var(--ink-soft); }
.features-sub {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

/* carte grise (bloc) sur fond blanc */
.glass-card {
  border-radius: 24px;
  padding: 28px 28px 30px;
  background: #f1efee;
}

.feat-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 28ch;
}
.feat-line {
  margin-top: 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 1.04rem;
  color: var(--muted);
}
.feat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px 5px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .92rem;
}
.feat-pill svg { width: 15px; height: 15px; }
.p-detect  { color: #d6457f; background: rgba(236,91,158,.15); }
.p-enhance { color: #d56a1e; background: rgba(240,145,58,.18); }

/* fenêtre maquette */
.win {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 36px -22px rgba(60,30,50,.30);
}
.win-body { padding: 18px; }

.thumbs { display: flex; gap: 10px; }
.thumbs img {
  flex: 1; min-width: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.prompt {
  font-size: 1rem; line-height: 1.55; color: var(--ink);
}
.prompt mark {
  background: rgba(236,91,158,.18);
  color: #c43f86;
  padding: 0 2px; border-radius: 3px;
}
.prompt-cursor { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-left: 1px; }
.prompt-tags { margin-top: 16px; display: flex; gap: 8px; }
.ptag {
  font-size: .82rem; font-weight: 600;
  padding: 4px 11px; border-radius: 8px;
}
.ptag.blue { color: #2f6df0; background: rgba(47,109,240,.12); }
.ptag.pink { color: #d6457f; background: rgba(236,91,158,.14); }

/* bloc large : texte + galerie */
.feat-wide { display: flex; align-items: center; gap: 40px; }
.wide-text { flex: 1; min-width: 0; }
.wide-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
  color: var(--ink);
}
.wide-desc {
  margin-top: 14px; max-width: 44ch;
  font-size: 1.02rem; line-height: 1.55; color: var(--muted);
}
.wide-btn { margin-top: 24px; }
.wide-btn svg { width: 16px; height: 16px; }

/* galerie verticale : 2 colonnes qui défilent en sens opposés */
.vmarquee {
  flex: none;
  width: 46%;
  height: clamp(300px, 30vw, 380px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}
.vcol { display: flex; flex-direction: column; will-change: transform; }
.vcol img {
  width: 100%;
  margin-bottom: 14px;          /* marge = couture invisible à -50% */
  border-radius: 14px;
  display: block;
}
.vcol-up   { animation: vscroll-up   26s linear infinite; }
.vcol-down { animation: vscroll-down 32s linear infinite; }
.vmarquee:hover .vcol { animation-play-state: paused; }
@keyframes vscroll-up   { from { transform: translateY(0); }      to { transform: translateY(-50%); } }
@keyframes vscroll-down { from { transform: translateY(-50%); }   to { transform: translateY(0); } }

.fcard {
  background: #f1efed;
  border-radius: 24px;
  padding: 28px 28px 30px;
}
.fcard-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.fcard-text {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
}

/* --- maquette chat (mémoire) --- */
.chat { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  font-size: .92rem;
  line-height: 1.4;
  padding: 11px 15px;
  border-radius: 16px;
  max-width: 84%;
}
.bubble.user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #ff9ec0, #f173a6);
  border-bottom-right-radius: 5px;
}
.chat-row { display: flex; align-items: flex-end; gap: 9px; }
.chat-ava {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ff9ec0, #ee5b9e);
}
.chat-ava svg { width: 17px; height: 17px; }
.bubble.bot {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px -3px rgba(40,25,40,.14);
  border-bottom-left-radius: 5px;
}
.mem-code {
  margin-top: 2px;
  background: #1c1b1f;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
}
.mem-code .ck { color: #ff8fb6; }
.mem-code .cv { color: #d8d5d2; }
.mem-code .cc { color: #6f7d6a; }
.bubble.recall {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fbe4ef;
  color: #c43f86;
  font-weight: 600;
  font-size: .85rem;
}
.bubble.recall i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ec5b9e; flex: none;
}

/* --- maquette exécution --- */
.exec { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.exec-input {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; box-shadow: 0 2px 10px -4px rgba(40,25,40,.16);
  border-radius: 14px; padding: 11px 12px 11px 15px;
  font-size: .92rem; color: var(--ink);
}
.exec-send {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff9ec0, #ee5b9e);
}
.exec-send svg { width: 15px; height: 15px; }
.exec-prog {
  background: #fff; box-shadow: 0 2px 10px -4px rgba(40,25,40,.16);
  border-radius: 14px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 9px;
}
.exec-done { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #1f9d57; font-weight: 600; }
.exec-done .dot { width: 8px; height: 8px; border-radius: 50%; background: #2bc16b; }
.exec-prog .bars { display: flex; flex-direction: column; gap: 7px; }
.exec-prog .bars b { display: block; height: 7px; border-radius: 4px; background: #e7e4e2; }
.exec-prog .bars b:first-child { width: 100%; }
.exec-prog .bars b:last-child { width: 62%; }
.exec-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: #e3f6ea; color: #1f9d57;
  font-weight: 600; font-size: .88rem;
  padding: 7px 13px; border-radius: 999px;
}
.exec-badge svg { width: 15px; height: 15px; }

/* --- maquette suggestion --- */
.suggest {
  margin-top: 22px;
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(140deg, #ff9ec0, #f0628f);
}
.suggest-label { font-size: .8rem; font-weight: 600; opacity: .9; }
.suggest-q { margin-top: 7px; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.suggest-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.sg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  background: rgba(255,255,255,.92);
}
.sg-btn svg { width: 15px; height: 15px; }
.sg-btn.yes { color: #1f9d57; }
.sg-btn.no  { color: #e2553f; }

/* --- carte connexion + anneaux contra-rotatifs --- */
.card-connect {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.connect-text {
  position: relative;
  z-index: 2;
  max-width: 48%;
}

.orbit {
  position: absolute;
  top: 50%;
  right: clamp(-36px, -1vw, 8px);
  transform: translateY(-50%);
  width: clamp(300px, 33vw, 440px);
  height: clamp(300px, 33vw, 440px);
}
.orbit-core {
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px; margin: -27px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ff9ec0, #ee5b9e);
  box-shadow: 0 10px 26px -8px rgba(238,91,158,.6);
  z-index: 3;
}
.orbit-core svg { width: 28px; height: 28px; }

.ring { position: absolute; inset: 0; border-radius: 50%; }
.ring-cw  { animation: orbit-spin 46s linear infinite; }
.ring-ccw { animation: orbit-spin 34s linear infinite reverse; }
/* contre-rotation des icônes pour qu'elles restent droites */
.ring-cw  .orb { animation: orbit-spin 46s linear infinite reverse; }
.ring-ccw .orb { animation: orbit-spin 34s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* perf : stoppe les boucles hors écran (classe posée par app.js) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

.orb {
  position: absolute;
  top: calc(50% + var(--y));
  left: calc(50% + var(--x));
  width: var(--s, 48px); height: var(--s, 48px);
  margin-left: calc(var(--s, 48px) / -2);
  margin-top: calc(var(--s, 48px) / -2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;                       /* pastille blanche par défaut */
  box-shadow: 0 9px 22px -8px rgba(40,20,40,.34);
}
.orb svg { width: 50%; height: 50%; }

/* =========================================================
   POURQUOI NOUS (témoignage + stats)
   ========================================================= */
.why {
  background: #fff;
  padding: 86px 0 98px;
}

/* --- comparatif Sans E'potto / E'potto (inutilisé pour l'instant) --- */
.compare-grid {
  margin: 40px auto 0;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 30px 32px;
  box-shadow: 0 22px 48px -34px rgba(60,40,60,.4);
}
.compare-card.is-epotto {
  border: 2px solid var(--s-accent);
  box-shadow: 0 26px 56px -30px var(--s-shadow);
}
.compare-title {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em;
  color: var(--ink);
}
.compare-logo {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--s-accent); color: #fff;
}
.compare-logo svg { width: 20px; height: 20px; }
.compare-list { display: flex; flex-direction: column; gap: 16px; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1rem; line-height: 1.45;
  color: var(--muted);
}
.is-epotto .compare-list li { color: var(--ink); }
.ci {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ci svg { width: 14px; height: 14px; }
.ci-x { background: #e8e6e4; color: #9b9794; }
.ci-check { background: var(--s-accent); color: #fff; }

.why-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 46px;
  align-items: stretch;
}

/* carte témoignage (image + overlay) */
.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 470px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -34px rgba(70,40,80,.5);
}
.testimonial-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial-body { padding: 30px 30px 32px; color: #fff; }
.stars { display: flex; gap: 4px; margin-bottom: 16px; }
.stars svg { width: 20px; height: 20px; color: #ffc04d; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.34;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.testimonial-author { margin-top: 18px; }
.testimonial-author strong { display: block; font-weight: 700; }
.testimonial-author span { font-size: .9rem; opacity: .82; }

/* colonne texte */
.why-text { align-self: center; }
.why-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  color: var(--ink);
}
.why-title .muted-word { color: var(--ink-soft); }
.why-p {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}
.why-p:first-of-type { margin-top: 22px; }

/* cartes statistiques */
.stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: #f1efee;
  border-radius: 18px;
  padding: 22px 24px 20px;
}
.stat-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transform-origin: 0 100%;
  transition: transform .7s cubic-bezier(.2,.7,.25,1), opacity .5s ease;
}
/* état initial (uniquement si JS actif) : caché + réduit -> grandit à l'arrivée */
body.js .stat-num { opacity: 0; transform: scale(.55); }
body.js .stat.in .stat-num { opacity: 1; transform: scale(1); }
.stat-label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink);
}
.stat-sub {
  display: block;
  margin-top: 2px;
  font-size: .9rem;
  color: var(--muted);
}

/* =========================================================
   DÉMARRE EN 3 ÉTAPES (onglets)
   ========================================================= */
.steps {
  background: #fff;
  padding: 64px 0 98px;
}

/* barre d'onglets */
.steps-tabs {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 0 auto 26px;
  padding: 5px;
  background: #e9e7e5;
  border-radius: 999px;
}
.steps-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.steps-tab:hover { color: var(--ink); }
.steps-tab.is-active { background: var(--black); color: #fff; }

/* grande carte */
.steps-stage {
  background: #f1efee;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
}
.step-panel {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: center;
}
.step-panel[hidden] { display: none; }

.step-no {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--muted);
}
.step-ico {
  display: none;                 /* icônes retirées des panneaux */
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  margin: 0 0 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(60,30,50,.34);
}
.step-ico svg { width: 26px; height: 26px; }
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.step-desc {
  margin-top: 12px; max-width: 42ch;
  font-size: 1.04rem; line-height: 1.55; color: var(--muted);
}
.step-visual { display: flex; align-items: center; justify-content: center; min-height: 320px; border-radius: 18px; overflow: hidden; }

/* lien CTA des panneaux */
.step-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--s-accent-deep);
}
.step-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.step-link:hover svg { transform: translateX(3px); }

/* visuels : panneau pastel / vidéo */
.sv-soft { background: linear-gradient(150deg, var(--s-soft), #fff); padding: 26px; }
.sv-video { background: #d6d2cf; }
.step-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.04);        /* léger sur-cadrage : supprime le liseré noir des bords */
}

/* Instantané : flux de voitures trouvées qui défile (bas -> haut) */
.ifeed {
  width: 100%; max-width: 360px;
  height: 290px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
.ifeed-track { display: flex; flex-direction: column; animation: ifeedScroll 22s linear infinite; }
.ifeed-card {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  background: #fff; border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 7px 18px -10px rgba(40,30,50,.28);
}
.ifeed-ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--s-soft); color: var(--s-accent-deep);
}
.ifeed-ico svg { width: 20px; height: 20px; }
.ifeed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ifeed-body strong {
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; line-height: 1.2; color: var(--ink);
}
.ifeed-body em { font-style: normal; font-size: .8rem; line-height: 1.25; color: var(--muted); }
.ifeed-time {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1;
  color: var(--cost); white-space: nowrap;
}
.ifeed-time svg { width: 15px; height: 15px; opacity: .85; }
@keyframes ifeedScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Impartial : 3 cartes */
.impartial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.imp-card {
  background: #fff; border-radius: 14px; padding: 18px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center;
  font-weight: 600; font-size: .8rem; line-height: 1.3; color: var(--ink);
  box-shadow: 0 10px 26px -18px rgba(40,30,50,.4);
}
.imp-card.imp-ok { box-shadow: 0 12px 30px -16px var(--s-shadow); outline: 2px solid color-mix(in srgb, var(--s-accent) 42%, transparent); outline-offset: -2px; }
.imp-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.imp-ico svg { width: 22px; height: 22px; }
/* apparition en cascade qui tourne en boucle : 1 puis 2 puis 3, maintien, reset */
.step-panel.run .impartial > :nth-child(1) { animation: impAppear1 5.4s ease-in-out infinite both; }
.step-panel.run .impartial > :nth-child(2) { animation: impAppear2 5.4s ease-in-out infinite both; }
.step-panel.run .impartial > :nth-child(3) { animation: impAppear3 5.4s ease-in-out infinite both; }
@keyframes impAppear1 {
  0%, 6%    { opacity: 0; transform: translateY(12px) scale(.97); }
  14%, 88%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(12px) scale(.97); }
}
@keyframes impAppear2 {
  0%, 28%   { opacity: 0; transform: translateY(12px) scale(.97); }
  36%, 88%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(12px) scale(.97); }
}
@keyframes impAppear3 {
  0%, 50%   { opacity: 0; transform: translateY(12px) scale(.97); }
  58%, 88%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(12px) scale(.97); }
}

/* Large Catalogue : marques qui défilent */
.brands {
  width: 100%;
  display: flex; flex-direction: column; gap: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands-row { display: flex; width: max-content; }
.brands-row span {
  margin-right: 38px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: .02em; color: #b6b2af; white-space: nowrap;
}
.brands-l { animation: brandsL 26s linear infinite; }
.brands-r { animation: brandsR 32s linear infinite; }
@keyframes brandsL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes brandsR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* --- maquette 1 : frappe clavier --- */
.type-box {
  width: 100%;
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 44px -24px rgba(60,30,50,.42);
}
.type-ava {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #ff9ec0, #ee5b9e);
}
.type-ava svg { width: 21px; height: 21px; }
.type-text {
  font-size: 1.12rem; line-height: 1.5; color: var(--ink);
  min-height: 4.5em;
}
.type-text::after {
  content: "▏"; color: var(--ink-soft); margin-left: -2px;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* --- maquette 2 : classement --- */
.rank {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 44px -24px rgba(60,30,50,.42);
}
.rank-head { display: flex; justify-content: space-between; align-items: center; }
.rank-head > span:first-child { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; color: var(--muted); }
.rank-live { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: #1f9d57; background: #e3f6ea; padding: 4px 9px; border-radius: 999px; }
.rank-live i { width: 7px; height: 7px; border-radius: 50%; background: #2bc16b; }
.rank-title { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.rank-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.rank-list li { display: grid; grid-template-columns: auto minmax(64px, 110px) 1fr auto; align-items: center; gap: 10px; font-size: .9rem; }
.rank-pos { font-family: var(--font-mono); color: var(--muted); }
.rank-name { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); white-space: nowrap; }
.rank-name i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rank-bar { position: relative; height: 10px; border-radius: 6px; background: #ece9e7; }
.rank-bar b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 6px; transform: scaleX(0); transform-origin: left; }
.rank-val { font-family: var(--font-mono); font-weight: 600; }
.step-panel.run .rank-bar b { animation: barGrow .9s cubic-bezier(.2,.7,.3,1) both; }
.rank-list li:nth-child(1) .rank-bar b { animation-delay: .05s; }
.rank-list li:nth-child(2) .rank-bar b { animation-delay: .13s; }
.rank-list li:nth-child(3) .rank-bar b { animation-delay: .21s; }
.rank-list li:nth-child(4) .rank-bar b { animation-delay: .29s; }
.rank-list li:nth-child(5) .rank-bar b { animation-delay: .37s; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- maquette 3 : actions --- */
.actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.act-card {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border-radius: 14px; padding: 13px 15px;
  box-shadow: 0 12px 28px -20px rgba(60,30,50,.4);
}
.act-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.act-body strong { font-size: .95rem; color: var(--ink); }
.act-body em { font-style: normal; font-size: .82rem; color: var(--muted); }
.act-tag { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 5px 9px; border-radius: 7px; }
.act-foot {
  display: flex; align-items: center; gap: 9px;
  background: var(--black); color: #fff;
  border-radius: 12px; padding: 13px 15px;
  font-size: .9rem; font-weight: 600;
}
.act-foot i { width: 9px; height: 9px; border-radius: 50%; background: #2bc16b; flex: none; }
.step-panel.run .act-card,
.step-panel.run .act-foot { animation: actIn .5s ease both; }
.actions > :nth-child(1) { animation-delay: .04s; }
.actions > :nth-child(2) { animation-delay: .12s; }
.actions > :nth-child(3) { animation-delay: .20s; }
.actions > :nth-child(4) { animation-delay: .28s; }
.actions > :nth-child(5) { animation-delay: .36s; }
@keyframes actIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   FAQ (accordéon)
   ========================================================= */
.faq {
  background: #fff;
  padding: 64px 0 98px;
}
.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #f1efee;
  border-radius: 18px;
  overflow: hidden;
  transition: background .2s ease;
}
.faq-item:hover { background: #ece9e8; }
.faq-q {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 26px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.faq-ico {
  flex: none;
  display: inline-flex;
  color: var(--s-accent);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.faq-ico svg { width: 22px; height: 22px; }
.faq-item.is-open .faq-ico { transform: rotate(45deg); }   /* + -> x */

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  margin: 0;
  padding: 0 26px 22px;
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================================================
   SÉLECTEUR DE SAISON (navbar : déclencheur + menu verre dépoli)
   ========================================================= */
.nav-actions { display: inline-flex; align-items: center; gap: 12px; }
.season-switch { position: relative; }

.season-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  box-shadow: 0 2px 9px -3px rgba(40,30,50,.22);
  transition: transform .2s ease, box-shadow .25s ease;
}
.season-trigger:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -7px color-mix(in srgb, var(--s-accent) 55%, transparent); }
.season-trigger img { width: 22px; height: 22px; display: block; }

.season-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  min-width: 190px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
          backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 28px 54px -18px rgba(40,30,50,.42), inset 0 1px 0 rgba(255,255,255,.7);
  transform-origin: top right;
  transform: scale(.92) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .26s cubic-bezier(.2,.85,.3,1), visibility .2s;
}
.season-switch.is-open .season-menu { opacity: 1; visibility: visible; transform: none; }

.sm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-align: left;
  transition: background .15s ease;
}
.sm-item img {
  width: 22px; height: 22px; flex: none; display: block;
  background: #fff; border-radius: 50%; padding: 5px;
  box-shadow: 0 1px 5px -1px rgba(40,30,50,.16);
}
.sm-item span { flex: 1; }
.sm-item:hover { background: rgba(0,0,0,.045); }
.sm-item[aria-checked="true"] { background: var(--s-accent-soft); color: var(--s-accent-deep); }
.sm-item[aria-checked="true"]::after {
  content: "";
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--s-accent);
}

/* =========================================================
   CTA + MASCOTTE SAISONNIÈRE
   ========================================================= */
.cta {
  background: #fff;
  padding: 72px 0 64px;
  overflow: hidden;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.cta-title .muted-word { color: var(--ink-soft); }
.cta-sub {
  margin-top: 14px;
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}
.cta-btn { margin-top: 28px; }
.mascot-img {
  margin-top: 18px;
  width: clamp(240px, 34vw, 400px);
  height: auto;
  display: block;
  /* fondu : le bas de la mascotte se dissout (comme l'arbre) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 94%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 94%);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #fff;
  padding: 0 0 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);   /* ligne limitée à la largeur du contenu */
  padding-top: 28px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--s-accent);
  transition: color .35s ease;
}
.footer-links a { font-size: .9rem; color: var(--muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .85rem; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  .nav-links { gap: 18px; font-size: .85rem; }
  .nav { grid-template-columns: auto 1fr auto; }
  .brand { font-size: 1.15rem; }
  .hero-sub br { display: none; }
  /* HUD / tags / cadre : échelle gérée fluidement par les container queries (cqi) */
  .hud { letter-spacing: .08em; }
}

/* Sous 560px : nav simplifiée (logo à gauche + CTA à droite) pour éviter le tassement */
@media (max-width: 560px) {
  .nav { grid-template-columns: 1fr auto; padding: 12px 0; }
  .nav-links { display: none; }
  .brand { justify-self: start; font-size: 1.2rem; }
  .hero { padding: 40px 0 38px; }
  .hero-cta { flex-wrap: wrap; }
}

/* bandeau logos : label au-dessus du défilement sur petits écrans */
@media (max-width: 640px) {
  .brands { padding: 58px 0 44px; }
  .brands-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .brands-label { max-width: none; text-align: center; }
  .brand-logo { font-size: 1.3rem; margin: 0 28px; }
  .brand-logo svg { width: 26px; height: 26px; }
}

/* section mission : en-tête puis cartes empilées sur écrans réduits */
@media (max-width: 880px) {
  .mission { padding: 60px 0 64px; }
  .mission-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mission-intro { text-align: left; max-width: 560px; }
  .mission-board { grid-template-columns: 1fr; }
}

/* bloc fonctionnalités : 2 cartes puis large -> empilé sur écrans réduits */
@media (max-width: 880px) {
  .features { padding: 44px 0 72px; }
  .flow-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }

  .why { padding: 56px 0 72px; }
  .why-inner { grid-template-columns: 1fr; gap: 30px; }
  .testimonial { min-height: 400px; }
}
@media (max-width: 430px) {
  .stats { grid-template-columns: 1fr; }
}

/* bloc 3 étapes : info au-dessus de la maquette sur écrans réduits */
@media (max-width: 800px) {
  .steps { padding: 44px 0 72px; }
  .step-panel { grid-template-columns: 1fr; gap: 26px; align-items: stretch; }
  .step-ico { margin: 18px 0 14px; }
  .step-visual { min-height: 0; }
}
@media (max-width: 480px) {
  .steps-tab { padding: 9px 15px; font-size: .9rem; }
  .rank-list li { grid-template-columns: auto auto 1fr auto; gap: 8px; font-size: .82rem; }
  .rank-bar { min-width: 40px; }
  /* Instantané : on resserre la carte pour laisser de la place au texte */
  .sv-soft { padding: 16px; }
  .ifeed-card { gap: 10px; padding: 11px 12px; }
  .ifeed-ico { width: 32px; height: 32px; border-radius: 9px; }
  .ifeed-ico svg { width: 17px; height: 17px; }
  .ifeed-time { font-size: .92rem; gap: 4px; }
  .ifeed-time svg { width: 13px; height: 13px; }
}

/* Accessibilité : on respecte la réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .splash-text { animation: none; opacity: 1; transform: none; }
  .page > .container > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .splash { transition: opacity .2s ease; }

  .scan-beam { animation: none; transform: translateY(180%); opacity: .55; }
  .bbox { animation: none; opacity: 1; transform: none; }
  .bbox::after { animation: none; opacity: .4; }
  .rec { animation: none; }
  .marquee-track { animation: none; transform: none; }
  .ring, .orb { animation: none; }
  .vcol { animation: none; }
  body.js .stat-num { opacity: 1; transform: none; transition: none; }
  .type-text::after { animation: none; }
  .rank-bar b { animation: none; transform: scaleX(1); }
  .step-panel .act-card, .step-panel .act-foot { animation: none; }
  .step-panel .imp-card { animation: none; opacity: 1; transform: none; }
  .faq-a, .faq-ico { transition: none; }
  .season-menu { transition: opacity .15s ease, visibility .15s; }
  .habits-track { animation: none; }
  .ifeed-track { animation: none; }
  .type-cycle::after, .scan-dot { animation: none; }
  .swipe-card { transition: none; }
  .brands-l, .brands-r { animation: none; }
  .cb-launcher { animation: none; }
  .cb-panel, .cb-launcher-img, .cb-launcher-close, .cb-launcher:hover { transition: none; }
  .cb-typing i { animation: none; }
}

/* =========================================================
   CHATBOT, bouton flottant + fenêtre verre dépoli (saisonnier)
   ========================================================= */
.chatbot {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 90;
  font-family: var(--font-text);
}

/* --- Bouton flottant --- */
.cb-launcher {
  position: relative;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 12px 26px -10px var(--s-shadow), 0 8px 18px -8px rgba(40,30,50,.3);
  cursor: pointer;
  transition: transform .16s ease-out, box-shadow .2s ease;
  animation: cbPop .42s cubic-bezier(.2,.8,.3,1.2) both;
}
.cb-launcher:hover { transform: scale(1.06); box-shadow: 0 16px 32px -10px var(--s-shadow), 0 10px 22px -8px rgba(40,30,50,.34); }
.cb-launcher:active { transform: scale(.96); }
.cb-launcher:focus-visible { outline: 3px solid var(--s-accent-soft); outline-offset: 3px; }
.cb-launcher-img { width: 60px; height: 60px; border-radius: 50%; display: block; transition: opacity .2s ease, transform .2s ease; }
.cb-launcher-close {
  position: absolute; width: 26px; height: 26px;
  color: var(--s-accent-deep);
  opacity: 0; transform: scale(.5) rotate(-30deg);
  transition: opacity .2s ease, transform .2s ease;
}
.chatbot.is-open .cb-launcher-img { opacity: 0; transform: scale(.5); }
.chatbot.is-open .cb-launcher-close { opacity: 1; transform: none; }

/* pastille non-lue */
.cb-notif {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; line-height: 1;
  color: #fff; background: var(--s-accent);
  border: 2px solid #fff; border-radius: 999px;
  transition: opacity .2s ease, transform .2s ease;
}
.cb-notif.is-hidden { opacity: 0; transform: scale(.4); pointer-events: none; }

@keyframes cbPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* --- Fenêtre de discussion (verre dépoli, même recette que le menu saison) --- */
.cb-panel {
  position: absolute;
  right: 0; bottom: calc(100% + 14px);
  width: min(372px, calc(100vw - 28px));
  max-height: min(72dvh, 564px);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.66);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
          backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 60px -20px rgba(40,30,50,.46), inset 0 1px 0 rgba(255,255,255,.7);
  transform-origin: bottom right;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.85,.3,1);
}
.chatbot.is-open .cb-panel { opacity: 1; transform: none; }
.cb-panel[hidden] { display: none; }

/* en-tête */
.cb-head {
  flex: none;
  display: flex; align-items: center; gap: 11px;
  padding: 14px 14px 13px;
  background: rgba(255,255,255,.4);
  border-bottom: 1px solid rgba(255,255,255,.55);
}
.cb-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8), 0 6px 14px -6px var(--s-shadow);
}
.cb-avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.cb-head-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-head-id strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.cb-status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); }
.cb-online { width: 8px; height: 8px; border-radius: 50%; background: var(--s-accent); box-shadow: 0 0 0 3px var(--s-accent-soft); }
.cb-close {
  margin-left: auto; flex: none;
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; transition: background .16s ease, color .16s ease;
}
.cb-close svg { width: 18px; height: 18px; }
.cb-close:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.cb-close:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 1px; }

/* corps scrollable */
.cb-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin;
}
.cb-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.cb-msg-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.cb-msg-ava img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.cb-bubble {
  font-size: .9rem; line-height: 1.5; color: var(--ink);
  padding: 11px 14px; border-radius: 16px 16px 16px 5px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 18px -12px rgba(40,30,50,.4);
  text-wrap: pretty;
}
.cb-msg--user { margin-left: auto; flex-direction: row-reverse; }
.cb-msg--user .cb-bubble {
  color: #fff; background: var(--s-accent);
  border: none; border-radius: 16px 16px 5px 16px;
  box-shadow: 0 10px 20px -12px var(--s-shadow);
}
/* indicateur de saisie */
.cb-typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-accent); opacity: .45; animation: cbTyping 1s infinite ease-in-out; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbTyping { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }

/* suggestions rapides */
.cb-quick { flex: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 12px; }
.cb-chip {
  font-family: var(--font-text); font-size: .8rem; font-weight: 600;
  color: var(--s-accent-deep);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--s-accent-soft);
  cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.cb-chip:hover { background: var(--s-soft); border-color: var(--s-accent); }
.cb-chip:active { transform: scale(.97); }
.cb-chip:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 1px; }

/* zone de saisie */
.cb-input {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.4);
}
.cb-field {
  flex: 1; min-width: 0;
  font-family: var(--font-text); font-size: .9rem; color: var(--ink);
  padding: 11px 14px; border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(40,30,50,.1);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.cb-field::placeholder { color: var(--muted); }
.cb-field:focus { outline: none; border-color: var(--s-accent); box-shadow: 0 0 0 3px var(--s-accent-soft); }
.cb-send {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: #fff; background: var(--s-accent);
  box-shadow: 0 8px 16px -8px var(--s-shadow);
  transition: background .16s ease, transform .16s ease;
}
.cb-send svg { width: 19px; height: 19px; }
.cb-send:hover { background: var(--s-accent-deep); }
.cb-send:active { transform: scale(.94); }
.cb-send:focus-visible { outline: 3px solid var(--s-accent-soft); outline-offset: 2px; }

@media (max-width: 480px) {
  .chatbot { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cb-panel { max-height: min(76dvh, 540px); }
}

/* =========================================================
   FEEL POLISH (Emil Kowalski) : feedback :active + hover tactile
   ========================================================= */
.btn { transition-timing-function: var(--ease-out); }
.season-trigger:active { transform: scale(.96); }
.sm-item:active { transform: scale(.98); }
@media (hover: none) {
  .btn-dark:hover, .btn-soft:hover, .grad-card:hover, .season-trigger:hover,
  .cb-launcher:hover, .cb-chip:hover { transform: none; }
  .step-link:hover svg { transform: none; }
}
