/* ==========================================================================
   BEN · design system
   Direction : sombre et technique. Fond ardoise profond, accent menthe signal,
   typographie Space Grotesk (titres) / DM Sans (texte).
   Jetons repris à l'identique du projet d'origine.
   ========================================================================== */

:root {
  color-scheme: dark;
  --radius: 0.75rem;
  --radius-md: calc(var(--radius) - 2px);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --background: oklch(0.17 0.015 240);
  --foreground: oklch(0.96 0.005 240);
  --surface: oklch(0.21 0.017 243);
  --surface-raised: oklch(0.25 0.018 243);
  --surface-deep: oklch(0.19 0.016 243);

  --primary: oklch(0.83 0.16 165);
  --primary-foreground: oklch(0.18 0.03 170);
  --muted: oklch(0.25 0.018 243);
  --muted-foreground: oklch(0.72 0.012 245);
  --accent: oklch(0.78 0.13 210);
  --border: oklch(0.31 0.018 243);
  --input: oklch(0.3 0.018 243);
  --ring: oklch(0.83 0.16 165);

  --grid-line: oklch(1 0 0 / 4%);
  --glow: 0 0 60px -12px oklch(0.83 0.16 165 / 35%);
  --shadow-panel: 0 24px 60px -30px oklch(0 0 0 / 80%);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  --page: 1040px;
  --page-narrow: 760px;
  --header-h: 67px;
}

*,
*::before,
*::after { box-sizing: border-box; border-color: var(--border); }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- utilitaires ---------- */

.grid-backdrop {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

.panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; transform: none; filter: none; cursor: default; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.95rem 1.6rem;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.btn-ghost:hover { background-color: var(--surface-raised); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
}

.field {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background-color: oklch(0.19 0.016 243);
  color: var(--foreground);
  font-family: var(--font-sans);
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.field::placeholder { color: oklch(0.58 0.012 245); }
.field:focus { border-color: var(--ring); }

/* ---------- structure ---------- */

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--page-narrow); margin: 0 auto; padding: 0 24px; }

section { position: relative; padding: 96px 0; border-top: 1px solid var(--border); }
section.alt { background-color: var(--surface-deep); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.08; }
.section-lead {
  color: var(--muted-foreground);
  max-width: 620px;
  margin-top: 18px;
  font-size: 1.02rem;
}
.section-head { margin-bottom: 44px; }

/* Une locution mise en avant dans un titre : menthe et italique. */
.mint-em {
  color: var(--primary);
  font-style: italic;
}

/* ---------- en-tête ---------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background-color: oklch(0.17 0.015 240 / 88%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.2; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
footer.bottom .brand { gap: 0; }
header.top .btn-ghost { padding: 0.6rem 1.15rem; font-size: 0.92rem; flex: none; }

/* ---------- bandeau défilant ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface-deep);
  padding: 13px 0;
  font-size: 0.92rem;
  color: var(--muted-foreground);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track > span { display: inline-flex; align-items: center; }
.ticker-item { padding: 0 22px; white-space: nowrap; }
.ticker-item.hot { color: var(--primary); font-weight: 500; }
.ticker-dot { width: 5px; height: 5px; border-radius: 999px; background: var(--primary); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- héros ---------- */

.hero {
  position: relative;
  border-top: 0;
  padding: 0;
  min-height: calc(100vh - var(--header-h) - 48px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  position: absolute;
  inset: -9% 0;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: 62% 30%;
}
/* Repli visuel si aucune photo n'est déposée dans assets/hero.jpg */
.hero-fallback {
  position: absolute;
  inset: -9% 0;
  background: var(--surface-deep);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 620px at 74% 34%, oklch(0.83 0.16 165 / 22%), transparent 68%),
    radial-gradient(900px 700px at 96% 8%, oklch(0.78 0.13 210 / 16%), transparent 70%),
    radial-gradient(1000px 640px at 8% 96%, oklch(0.15 0.014 240 / 85%), transparent 72%);
}
/* la photo masque le repli dès qu'elle existe */
.hero.has-photo .hero-fallback { display: none; }
/* sans photo, on allège le voile pour laisser respirer la grille */
.hero.no-photo .hero-scrim {
  background:
    linear-gradient(95deg, oklch(0.15 0.014 240 / 92%) 0%, oklch(0.15 0.014 240 / 62%) 46%, oklch(0.15 0.014 240 / 18%) 78%, transparent 100%),
    linear-gradient(to bottom, oklch(0.15 0.014 240 / 30%), transparent 30%, oklch(0.17 0.015 240 / 92%));
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, oklch(0.15 0.014 240 / 97%) 0%, oklch(0.15 0.014 240 / 88%) 42%, oklch(0.15 0.014 240 / 58%) 68%, oklch(0.15 0.014 240 / 46%) 100%),
    linear-gradient(to bottom, oklch(0.15 0.014 240 / 55%), transparent 35%, oklch(0.15 0.014 240 / 80%));
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.06; max-width: 15ch; }
.hero h1 .mint { color: var(--primary); display: block; max-width: 22ch; }
.hero-lead {
  margin-top: 26px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: oklch(0.93 0.005 240);
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-keywords {
  margin-top: 46px;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- section « Arrêtez de perdre du temps » ---------- */
/* Titre et sous-titre en vrai texte, au-dessus. Le visuel est l'image fournie,
   utilisée telle quelle : on rogne seulement sa zone vide du haut pour la
   rapprocher du titre. */

.lost {
  position: relative;
  padding: 100px 0 96px;
  background:
    radial-gradient(1200px 720px at 50% 62%, oklch(0.24 0.035 172 / 50%), transparent 72%),
    oklch(0.155 0.013 188);
}

.lost-head { text-align: center; margin-bottom: 8px; }
.lost-head h2 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.04;
}
.lost-head h2 .mint { color: var(--primary); display: block; }
.lost-head p {
  margin-top: 16px;
  color: oklch(0.89 0.008 240);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* La scène est découpée en cinq calques détourés : l'ordinateur au centre et
   les quatre blocs autour. Chacun arrive séparément, en s'écartant du centre,
   pour donner à voir la dispersion. Remis en place, les calques reforment
   exactement l'image d'origine. */
.lost-figure {
  /* on sort de la colonne de texte : la scène respire beaucoup mieux large */
  --sw: min(1340px, 94vw);
  width: var(--sw);
  margin: 6px 0 0 calc(50% - var(--sw) / 2);
}
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1448 / 1086;
}
/* Chaque bloc a deux couches de mouvement : l'enveloppe gère l'arrivée,
   l'image à l'intérieur continue de dériver doucement ensuite. Les deux
   transforms ne se marchent donc pas dessus. */
.scene .lay {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  transition:
    opacity 1s var(--ease),
    transform 1.25s var(--ease),
    filter 0.9s ease-out;
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.scene .lay img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px oklch(0 0 0 / 48%));
  animation: derive var(--p, 9s) ease-in-out infinite;
  animation-delay: var(--pd, 0s);
}
.js .scene .lay {
  opacity: 0;
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0) scale(0.84) rotate(var(--rz, 0deg));
  filter: blur(9px);
}
.js .scene.in .lay { opacity: 1; transform: none; filter: none; }

/* dérive continue : quelques pixels, une fraction de degré, jamais deux
   blocs en phase */
@keyframes derive {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(var(--ax, 4px), calc(var(--ay, -5px)), 0) rotate(var(--ar, 0.5deg)); }
  66% { transform: translate3d(calc(var(--ax, 4px) * -0.7), calc(var(--ay, -5px) * -0.6), 0) rotate(calc(var(--ar, 0.5deg) * -0.8)); }
}

.closing {
  margin: 44px auto 0;
  max-width: 56ch;
  text-align: center;
  font-size: 1.05rem;
  color: var(--foreground);
  font-weight: 500;
}

/* ---------- pastilles ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.83rem;
  line-height: 1.3;
  color: var(--muted-foreground);
}

/* ---------- carrousel des prestations ---------- */
/* Défilement natif avec accroche : la molette, le doigt, les flèches et le
   clavier marchent tous sans code spécifique. La diapositive centrée
   s'allume, les voisines reculent. */

.carousel-zone { position: relative; }

.carousel {
  --cw: clamp(228px, 68vw, 340px);
  cursor: grab;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* marges intérieures égales à la moitié d'une carte : la première et la
     dernière peuvent ainsi atteindre le centre. Déclaré après, sinon le
     raccourci padding remettrait l'horizontale à zéro. */
  padding-block: 26px 30px;
  padding-inline: calc(50% - var(--cw) / 2);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging .slide { cursor: grabbing; }


.slide {
  cursor: pointer;
  flex: 0 0 var(--cw);
  scroll-snap-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(158deg, oklch(0.27 0.04 168 / 26%), oklch(0.21 0.017 243 / 92%) 62%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 26px 24px 24px;
  box-shadow: 0 26px 60px -40px oklch(0 0 0 / 90%);
  opacity: 0.3;
  transform: scale(0.86);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    border-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}
.slide.is-on { cursor: default; }
.slide.is-on {
  opacity: 1;
  transform: scale(1.04);
  border-color: oklch(0.83 0.16 165 / 52%);
  box-shadow:
    0 0 0 1px oklch(0.83 0.16 165 / 22%),
    0 0 60px -18px oklch(0.83 0.16 165 / 45%),
    0 30px 70px -44px oklch(0 0 0 / 95%);
}

/* la tuile en verre qui porte le pictogramme */
.tile {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid oklch(0.83 0.16 165 / 26%);
  background: linear-gradient(150deg, oklch(0.83 0.16 165 / 16%), oklch(0.83 0.16 165 / 4%));
  color: oklch(0.88 0.14 166);
  transition: border-color 0.55s var(--ease), box-shadow 0.55s var(--ease), transform 0.55s var(--ease);
}
.tile svg { width: 46px; height: 46px; display: block; }
.slide.is-on .tile {
  border-color: oklch(0.83 0.16 165 / 68%);
  box-shadow:
    0 0 34px -6px oklch(0.83 0.16 165 / 55%),
    inset 0 1px 0 oklch(1 0 0 / 20%);
  transform: translateY(-2px);
}

.slide-num {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.slide h3 { font-size: 1.08rem; line-height: 1.32; margin-top: 8px; }
.slide p { margin-top: 12px; color: var(--muted-foreground); font-size: 0.96rem; }
.slide .chips { margin-top: auto; padding-top: 20px; }

/* le doigt, sous la carte centrale : il désigne ce qu'on est en train de voir */
.touch {
  /* largeur de la main ; le bout du doigt se trouve à 14,3 % de la hauteur de
     l'image, soit 21,5 % de sa largeur. On remonte le bloc d'autant pour que
     le doigt touche pile le bas de la carte, à toutes les tailles d'écran. */
  --hw: clamp(132px, 18vw, 188px);
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  /* 0,215 × largeur remonte le doigt jusqu'au bord du rail ; les 24 px de
     plus compensent la marge intérieure basse du rail, pour que le bout du
     doigt touche vraiment le bas de la carte (vérifié à la mesure). */
  margin-top: calc(-24px - var(--hw) * 0.215);
  pointer-events: none;
  color: oklch(0.88 0.13 166);
  z-index: 1;
}

/* Main photographiée : sa lueur menthe est déjà dans l'image, on n'ajoute
   qu'une ombre discrète. */
.touch-photo {
  width: var(--hw);
  aspect-ratio: 1024 / 1536;
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 26px oklch(0 0 0 / 55%));
  animation: flotte 3.4s ease-in-out infinite;
}
.touch.no-photo .touch-photo { display: none; }
.touch.has-photo .touch-hand,
.touch.has-photo .touch-ring { display: none; }

/* Repli dessiné, tant que la photo n'est pas déposée */
.touch-hand {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 14px oklch(0.83 0.16 165 / 50%));
  animation: flotte 2.8s ease-in-out infinite;
}
.touch-ring {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid oklch(0.83 0.16 165 / 70%);
  animation: onde 2.8s ease-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes onde {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* barre de contrôle : puces à gauche, flèches à droite */
.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dots { display: flex; gap: 9px; }
.dot {
  width: 30px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background-color: var(--border);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), width 0.4s var(--ease);
}
.dot.is-on { background-color: var(--primary); width: 46px; box-shadow: 0 0 16px -2px oklch(0.83 0.16 165 / 60%); }

.arrows { display: flex; gap: 10px; }
.arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: oklch(1 0 0 / 3%);
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { border-color: oklch(0.83 0.16 165 / 55%); background-color: oklch(0.83 0.16 165 / 10%); }
.arrow:active { transform: scale(0.94); }
.arrow[disabled] { opacity: 0.35; cursor: default; transform: none; }

.carousel-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: oklch(0.56 0.012 245);
}

/* ---------- liste des douleurs, compacte ---------- */
/* La question est en menthe : c'est la ligne que le visiteur balaie.
   La réponse suit en gris, plus petite. */

.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 52px;
}
.pain {
  padding: 19px 0;
  border-top: 1px solid var(--border);
}
.pain h3 {
  color: var(--primary);
  font-size: 1.02rem;
  line-height: 1.32;
  font-weight: 600;
}
.pain p {
  margin-top: 7px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ---------- coût ---------- */

/* Un seul encadré pour les deux volets : deux cadres côte à côte alourdissaient
   la section. Un filet vertical sépare le calcul du graphique. */
.cost-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  background-color: var(--surface);
  border: 1px solid oklch(0.83 0.16 165 / 20%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.cost-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}
.cost-half + .cost-half {
  border-left: 1px solid var(--border);
  justify-content: flex-start;
}
.cost-label { color: var(--muted-foreground); font-size: 0.95rem; }
.cost-eq {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-top: 18px;
  color: var(--foreground);
}
.cost-eq .op { color: var(--muted-foreground); }
.cost-result {
  display: flex;
  align-items: flex-end;
  gap: 0.26em;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  line-height: 1;
  margin-top: 26px;
  color: oklch(0.91 0.125 166);
  font-variant-numeric: tabular-nums;
  /* lueur néon : trois couches, de la plus serrée à la plus diffuse */
  text-shadow:
    0 0 14px oklch(0.83 0.16 165 / 32%),
    0 0 40px oklch(0.83 0.16 165 / 16%);
}
.cost-suffix { line-height: 1; }

/* Compteur à rouleaux : chaque chiffre est une colonne de 0 à 9 que l'on
   translate. Tout se joue en transform, donc c'est fluide. */
.odo { display: inline-flex; line-height: 1; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-col {
  display: block;
  height: 10em;
  transform: translateY(0);
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.odo-col > span { display: block; height: 1em; line-height: 1; }
.odo-sep { display: inline-block; }

.cost-unit {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.83 0.16 165 / 68%);
}

/* Choix de la valeur de l'heure : le montant se recalcule à la volée. */
.rates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rate {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.rate:hover { color: var(--foreground); border-color: oklch(0.83 0.16 165 / 45%); }
.rate.is-on {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

/* ---------- graphique en ligne : coût annuel selon la valeur de l'heure ---------- */
/* Trait fin de 2 px qui se dessine de gauche à droite, points discrets, et les
   montants qui apparaissent l'un après l'autre à mesure que la ligne monte. */

.chart { margin: 20px 0 0; }

.line-chart { display: block; width: 100%; height: auto; overflow: visible; }

.axe { stroke: var(--border); stroke-width: 1; }

.trace {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px oklch(0.83 0.16 165 / 45%));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.33, 0.9, 0.35, 1);
}
.chart.in .trace { stroke-dashoffset: 0; }

.aire { opacity: 0; transition: opacity 0.9s var(--ease) 0.7s; }
.chart.in .aire { opacity: 1; }

.pt {
  fill: oklch(0.155 0.013 188);
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  transition-delay: var(--d, 0s);
}
.chart.in .pt { opacity: 1; transform: none; }

.ptv {
  fill: oklch(0.88 0.09 166);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  transition-delay: var(--d, 0s);
}
.chart.in .ptv { opacity: 1; }

.xaxis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4px;
}
.xaxis span {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.xlegend {
  margin-top: 12px;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: oklch(0.54 0.012 245);
}

/* équivalent textuel, présent mais hors écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cost-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 52px;
  margin-top: 30px;
}
.cost-notes p { color: var(--muted-foreground); font-size: 0.97rem; }
.cost-notes strong { color: var(--foreground); font-weight: 600; }

/* ---------- étapes ---------- */

.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 22px; align-items: flex-start; background-color: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px 26px; box-shadow: var(--shadow-panel); }
.step-num { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1.35rem; line-height: 1.2; flex: none; width: 42px; }
.step h3 { font-size: 1.08rem; }
.step p { margin-top: 8px; color: var(--muted-foreground); font-size: 0.97rem; }

/* ---------- questions fréquentes ---------- */

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
}
.faq-q:hover { color: var(--primary); }
.faq-sign { color: var(--primary); font-size: 1.3rem; line-height: 1; flex: none; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-sign { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s ease; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted-foreground); padding: 0 4px 24px; max-width: 62ch; font-size: 0.97rem; }

/* ---------- contact ---------- */

.contact { background-color: var(--surface-deep); }
.contact-head { text-align: center; }
.contact-head .section-lead { margin-left: auto; margin-right: auto; text-align: center; }
.contact-strong { color: var(--primary); font-weight: 600; }
form.contact-form { margin-top: 40px; padding: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.92rem; margin-bottom: 8px; }
.form-field .opt { color: var(--muted-foreground); font-size: 0.82rem; }
textarea.field { min-height: 140px; resize: vertical; line-height: 1.5; }
form.contact-form .btn-primary { width: 100%; margin-top: 22px; }
.form-note { text-align: center; color: var(--muted-foreground); font-size: 0.85rem; margin-top: 14px; }
.form-error { color: oklch(0.72 0.17 25); font-size: 0.85rem; margin-top: 12px; text-align: center; }
.form-done { text-align: center; padding: 28px 10px; }
.form-done h3 { color: var(--primary); font-size: 1.25rem; }
.form-done p { color: var(--muted-foreground); margin-top: 12px; }
[hidden] { display: none !important; }

/* ---------- pied de page ---------- */

footer.bottom { border-top: 1px solid var(--border); padding: 34px 0; }
footer.bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.bottom .brand-mark { font-size: 0.9rem; }
footer.bottom p { color: var(--muted-foreground); font-size: 0.88rem; }

/* ---------- mouvement ---------- */
/* Une seule courbe pour tout le site, très amortie en fin de course :
   le mouvement démarre franc puis se pose, sans rebond. */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.99);
  filter: blur(7px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    filter calc(var(--dur) * 0.8) ease-out;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.in { will-change: auto; }

/* Les enfants d'une grille en cascade se révèlent un par un ;
   le décalage est posé par le script via --delay. */
.js .stagger > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.7s ease-out;
  transition-delay: var(--delay, 0s);
}
.js .stagger > *.in { opacity: 1; transform: none; filter: none; }

/* Le grand visuel arrive comme un plan qui se cale : plus lent, plus ample. */
.js .lost-figure.reveal {
  transform: translate3d(0, 46px, 0) scale(0.945);
  filter: blur(12px);
  transition-duration: 1.25s;
}
.js .lost-figure.reveal.in { transform: none; filter: none; }

/* Entrée du héros au chargement, ligne par ligne. */
.js .hero [data-enter] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}
.js .hero.entered [data-enter] { opacity: 1; transform: none; filter: none; }

/* Le voile et la photo du héros se posent aussi, plus lentement. */
.js .hero-photo, .js .hero-fallback {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease-out, transform 2.2s var(--ease);
}
.hero.entered .hero-photo,
.hero.entered .hero-fallback { opacity: 1; transform: none; }

/* Parallaxe : la valeur est posée par le script, le rendu reste en GPU.
   La couche est positionnée pour que ses enfants calent leur inset dessus. */
.hero-parallax { position: absolute; inset: 0; will-change: transform; }

/* ---------- confort de navigation ---------- */

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn-primary,
.btn-ghost { transition: transform 0.35s var(--ease), filter 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 70px -10px oklch(0.83 0.16 165 / 45%); }
.btn-primary:active,
.btn-ghost:active { transform: translateY(0) scale(0.985); }

.pain { transition: border-color 0.45s var(--ease); }
.pain:hover { border-color: oklch(0.83 0.16 165 / 38%); }
.step { transition: border-color 0.45s var(--ease), transform 0.45s var(--ease); }
.step:hover { transform: translateX(4px); border-color: oklch(0.83 0.16 165 / 30%); }

/* L'en-tête se compacte dès qu'on quitte le haut de page. */
header.top {
  transition: height 0.45s var(--ease), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
header.top.condensed {
  height: 58px;
  background-color: oklch(0.15 0.014 240 / 94%);
  box-shadow: 0 10px 30px -22px oklch(0 0 0 / 90%);
}

/* Le compteur d'heures : chiffres de largeur fixe pour éviter le tremblement. */
.cost-result { font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .pains { column-gap: 36px; }
  .cost-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 68px 0; }
  .pains, .form-row, .cost-notes, .cost-panel { grid-template-columns: 1fr; }
  .cost-half { padding: 24px; }
  .cost-half + .cost-half { border-left: 0; border-top: 1px solid var(--border); }
  .carousel { gap: 12px; }
  .brand-mark { font-size: 0.95rem; }
  .brand-tag { font-size: 0.7rem; }
  header.top .btn-ghost { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
  .hero { min-height: 0; align-items: stretch; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { max-width: none; }
  .hero h1 .mint { max-width: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; }

  /* Sans photo : grille et halo, voile léger */
  .hero.no-photo .hero-scrim {
    background:
      linear-gradient(to bottom, oklch(0.15 0.014 240 / 55%), oklch(0.17 0.015 240 / 88%) 62%, var(--background));
  }

  /* Avec photo : bandeau en haut qui se fond dans le fond, texte en dessous.
     L'image est carrée : en plein cadre sur un héros haut, elle se recadrerait
     à l'extrême. Bornée à 360 px, elle reste presque entière. */
  .hero.has-photo .hero-photo {
    inset: 0 0 auto 0;
    height: 360px;
    background-position: 58% 26%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  }
  .hero.has-photo .hero-fallback { display: block; }
  .hero.has-photo .hero-scrim {
    background:
      linear-gradient(to bottom, oklch(0.15 0.014 240 / 40%) 0%, oklch(0.15 0.014 240 / 18%) 34%, oklch(0.17 0.015 240 / 82%) 60%, var(--background) 82%);
  }
  .hero.has-photo .wrap { padding-top: 300px; }

  .lost { padding: 68px 0 64px; }
  .step { gap: 14px; }
  form.contact-form { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal,
  .stagger > *,
  .scene .lay,
  .scene .lay img,
  .lost-figure.reveal,
  .hero [data-enter],
  .hero-photo,
  .hero-fallback {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .odo-col { transition: none; }
  .trace { stroke-dashoffset: 0; transition: none; }
  .aire, .pt, .ptv { opacity: 1; transform: none; transition: none; }
  .touch-hand, .touch-ring { animation: none; }
  .step:hover,
  .btn-primary:hover { transform: none; }
  header.top { transition: none; }
}

/* =========================================================================
   Finition premium
   Registre visuel fintech : fonds verts diffus, coutures lumineuses entre
   les sections, verre dépoli, grain fin sur toute la page.
   ========================================================================= */

/* --- grain : casse le dégradé plat et donne de la matière --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* --- couture lumineuse à la place du trait plat entre les sections --- */
section:not(.hero) { border-top: 0; }
section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent,
    oklch(0.83 0.16 165 / 26%) 22%,
    oklch(0.83 0.16 165 / 26%) 78%,
    transparent
  );
}

/* --- halos verts diffus, placés différemment d'une section à l'autre --- */
#cout,
#offre,
#methode,
#exemples { overflow: hidden; }
#cout::after,
#offre::after,
#methode::after,
#exemples::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#cout::after {
  background: radial-gradient(880px 520px at 88% -8%, oklch(0.83 0.16 165 / 11%), transparent 70%);
}
#offre::after {
  background: radial-gradient(820px 500px at 6% 0%, oklch(0.83 0.16 165 / 8%), transparent 70%);
}
#exemples::after {
  background: radial-gradient(900px 460px at 94% 108%, oklch(0.78 0.13 210 / 8%), transparent 70%);
}
#methode::after {
  background: radial-gradient(860px 520px at 10% 112%, oklch(0.83 0.16 165 / 9%), transparent 70%);
}
#cout .wrap,
#offre .wrap,
#methode .wrap,
#exemples .wrap { position: relative; z-index: 1; }

/* --- panneaux : filet de lumière en haut, verre dépoli, halo au survol --- */
.cost-panel,
.step,
.contact-form {
  position: relative;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cost-panel::before,
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    oklch(1 0 0 / 22%) 30%,
    oklch(1 0 0 / 22%) 70%,
    transparent
  );
}
.cost-panel {
  background:
    linear-gradient(158deg, oklch(0.29 0.045 168 / 26%), oklch(0.21 0.017 243 / 90%) 62%);
}

/* --- le visuel de la section douleur : halo menthe diffus derrière la scène --- */
.lost-figure { position: relative; }
.lost-figure::before {
  content: "";
  position: absolute;
  inset: 6% 4% 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.83 0.16 165 / 16%), transparent 72%);
  filter: blur(28px);
}

/* --- reflet qui balaie le bouton principal au survol --- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    104deg,
    transparent 32%,
    oklch(1 0 0 / 38%) 50%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

/* --- pastilles en verre --- */
.chip,
.rate {
  background-color: oklch(1 0 0 / 3%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.rate.is-on {
  background-color: var(--primary);
  box-shadow: 0 0 26px -6px oklch(0.83 0.16 165 / 55%);
}

/* --- les filets de la liste des douleurs s'allument au survol --- */
.pain { position: relative; }
.pain::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, oklch(0.83 0.16 165 / 55%), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.pain:hover::after { opacity: 1; }

/* --- section contact : halo sous le formulaire --- */
.contact { position: relative; overflow: hidden; }
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(760px 520px at 50% 46%, oklch(0.83 0.16 165 / 10%), transparent 70%);
}
.contact .wrap-narrow { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { display: none; }
}


/* =========================================================================
   AJOUTS : réalisations, cases à cocher, contact direct, mentions légales
   ========================================================================= */
.hero-for { margin-top: 14px; color: var(--muted-foreground); font-size: 0.95rem; }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.work-shot {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; overflow: hidden;
  border: 1px dashed var(--border); border-radius: var(--radius-xl);
  background-color: var(--surface-deep); color: var(--muted-foreground);
  font-size: 0.9rem; text-align: center;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work h3 { font-size: 1.02rem; line-height: 1.3; }
.work p { margin-top: 6px; color: var(--muted-foreground); font-size: 0.93rem; line-height: 1.45; }
@media (max-width: 820px) { .works { grid-template-columns: 1fr; } }

fieldset.checks-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.checks-field legend { font-size: 0.92rem; margin-bottom: 10px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; display: inline-block; }
.check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check span {
  display: inline-block; padding: 0.55rem 0.95rem; border: 1px solid var(--input);
  border-radius: 999px; background-color: var(--surface-deep); font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.check input:checked + span { border-color: var(--primary); color: var(--primary); background-color: oklch(0.83 0.16 165 / 12%); }
.check input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }

.contact-alt { margin-top: 28px; text-align: center; }
.contact-alt p { color: var(--muted-foreground); font-size: 0.95rem; margin-bottom: 14px; }
.contact-alt-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.form-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

footer.bottom .wrap.legal { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.legal details { margin-top: 10px; }
.legal summary { cursor: pointer; color: var(--muted-foreground); font-size: 0.88rem; }
.legal summary:hover { color: var(--primary); }
.legal .legal-body { color: var(--muted-foreground); font-size: 0.88rem; line-height: 1.55; max-width: 70ch; padding-top: 10px; }
.legal .legal-body p + p { margin-top: 8px; }
mark.todo { background-color: oklch(0.83 0.16 165 / 14%); color: var(--primary); padding: 0 4px; border-radius: 4px; }

.work-shot.has-img { padding: 0; border-style: solid; }
