/* ==========================================================================
   slides.contentwatch.io — Feuille de style
   Design System : Thibaut Loubère V1 · Juin 2026 (reporté fidèlement)
   Le récapitulatif complet de la charte figure en tête de index.html.
   Aucune valeur en dur dans les composants : tout passe par les tokens.
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Surfaces */
  --tl-teal:          #0F3B40;
  --tl-teal-deep:     #0B2E32;
  --tl-cream:         #F5F1E8;
  --tl-cream-bright:  #FFFDF7;
  --tl-white:         #FFFFFF;

  /* Accents acidulés */
  --tl-lime:          #D9F16A;
  --tl-mint:          #3CDFB4;
  --tl-pink:          #F5B5CC;
  --tl-pink-strong:   #F58FB0;

  /* Encre / texte */
  --tl-ink:           #0F3B40;
  --tl-ink-soft:      #46585A;

  /* Alias sémantiques */
  --surface-dark:        var(--tl-teal);
  --surface-dark-deep:   var(--tl-teal-deep);
  --surface-cream:       var(--tl-cream);
  --surface-cream-bright:var(--tl-cream-bright);
  --surface-card:        var(--tl-white);

  --text-strong:   var(--tl-ink);
  --text-body:     var(--tl-ink);
  --text-soft:     var(--tl-ink-soft);
  --text-on-dark:  var(--tl-cream);
  --text-on-dark-soft: rgba(245, 241, 232, 0.72);

  --accent-primary:   var(--tl-mint);
  --accent-hover:     var(--tl-lime);
  --accent-highlight: var(--tl-lime);
  --accent-scribble:  var(--tl-pink-strong);

  /* Typographie */
  --font-title: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (base 4px) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-section: clamp(72px, 11vw, 132px);

  /* Layout */
  --max-width:        1200px;
  --max-width-narrow: 780px;
  --gutter:           clamp(20px, 4vw, 40px);

  /* Rayons */
  --radius-sm: 14px;
  --radius:    16px;
  --radius-lg: 24px;
  --pill:      999px;

  /* Effets */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:      250ms;
  --transition-slow: 400ms;

  --shadow-soft: 0 4px 16px rgba(11, 46, 50, 0.06);
  --shadow-card: 0 18px 44px rgba(11, 46, 50, 0.12);
  --shadow-mint: 0 12px 30px rgba(60, 223, 180, 0.34);

  /* Z-index */
  --z-nav: 100;
  --z-invite: 200;
  --z-skip: 300;
}

/* ---------- 2. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. TYPOGRAPHIE ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-highlight);
}
.eyebrow--on-dark { color: var(--text-on-dark-soft); }
.eyebrow--on-dark::before { background: var(--accent-highlight); }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-strong);
  text-wrap: balance;
}
.hero__title {
  color: var(--text-on-dark);
  font-weight: 800;
  font-size: clamp(2.7rem, 8.5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.section__title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-soft);
}
.on-dark .lead, .lead--on-dark { color: var(--text-on-dark-soft); }

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--max-width-narrow); }
.section { padding-block: var(--space-section); }
.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.section--dark .section__title { color: var(--text-on-dark); }
.section--dark-deep {
  background: var(--surface-dark-deep);
  color: var(--text-on-dark);
}
.section--dark-deep .section__title { color: var(--text-on-dark); }

.section-header { max-width: 680px; margin-bottom: var(--space-12); }
.section-header .eyebrow { margin-bottom: var(--space-4); }
.section-header .lead { margin-top: var(--space-5); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -120px;
  z-index: var(--z-skip);
  background: var(--accent-primary);
  color: var(--tl-ink);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--pill);
  transition: top var(--transition) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- 5. NAV ------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: rgba(15, 59, 64, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 241, 232, 0.10);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 64px;
}
.nav__brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.nav__brand .dot { color: var(--accent-scribble); }
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav__links a {
  color: var(--text-on-dark-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition) var(--ease-out);
}
.nav__links a:hover { color: var(--text-on-dark); }
.nav .nav__cta { display: none; }
@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav .nav__cta { display: inline-flex; }
}

/* ---------- 6. BUTTONS --------------------------------------------------- */
.btn {
  --btn-bg: var(--accent-primary);
  --btn-fg: var(--tl-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-mint);
  transition: background var(--transition) var(--ease-out),
              box-shadow var(--transition) var(--ease-out),
              transform var(--transition) var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn .arrow { transition: transform var(--transition) var(--ease-spring); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(245, 241, 232, 0.34);
}
.btn--secondary:hover {
  --btn-bg: rgba(245, 241, 232, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(245, 241, 232, 0.6);
}
.btn--on-cream.btn--secondary {
  --btn-fg: var(--tl-ink);
  box-shadow: inset 0 0 0 1.5px rgba(15, 59, 64, 0.22);
}
.btn--on-cream.btn--secondary:hover {
  --btn-bg: rgba(15, 59, 64, 0.05);
  box-shadow: inset 0 0 0 1.5px rgba(15, 59, 64, 0.4);
}
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--text-strong);
  min-height: 44px;
}
.on-dark .link-arrow { color: var(--accent-highlight); }
.link-arrow .arrow { transition: transform var(--transition) var(--ease-spring); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.arrow { width: 18px; height: 18px; flex: none; }

/* ---------- 7. PILLS ----------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  padding: 7px 14px;
  border-radius: var(--pill);
  color: var(--tl-ink);
}
.pill--lime { background: var(--tl-lime); }
.pill--mint { background: var(--tl-mint); }
.pill--pink { background: var(--tl-pink); }
.pill--soft {
  background: rgba(15, 59, 64, 0.07);
  color: var(--text-soft);
}
.on-dark .pill--soft {
  background: rgba(245, 241, 232, 0.12);
  color: var(--text-on-dark-soft);
}

/* ---------- 8. SCRIBBLE -------------------------------------------------- */
.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribble > svg {
  position: absolute;
  left: -2%;
  bottom: -0.32em;
  width: 104%;
  height: 0.42em;
  overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none;
  stroke: var(--accent-scribble);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
.scribble.is-drawn path {
  animation: scribble-draw 900ms var(--ease-out) forwards;
}
@keyframes scribble-draw { to { stroke-dashoffset: 0; } }

/* ---------- 9. HERO ------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding-top: calc(64px + var(--space-16));
  padding-bottom: var(--space-section);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero__glow .g-mint { width: 46vw; height: 46vw; background: var(--tl-mint);  top: -8%;  left: -6%; }
.hero__glow .g-lime { width: 38vw; height: 38vw; background: var(--tl-lime);  bottom: -14%; right: 6%; opacity: 0.4; }
.hero__glow .g-pink { width: 34vw; height: 34vw; background: var(--tl-pink-strong); top: 22%; right: -10%; opacity: 0.35; }
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.hero__title { margin-bottom: var(--space-6); }
.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-on-dark-soft);
  max-width: 36ch;
  margin-bottom: var(--space-8);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__note {
  margin-top: var(--space-6);
  font-size: 0.92rem;
  color: var(--text-on-dark-soft);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__note svg { width: 18px; height: 18px; color: var(--accent-primary); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Schéma avant / après */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
}
.ba-card {
  position: relative;
  overflow: hidden;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.ba-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.ba-card svg { width: 100%; height: auto; }
.ba-card--after { border-color: rgba(60, 223, 180, 0.5); }
.ba-arrow {
  width: 30px; height: 30px;
  color: var(--accent-primary);
  flex: none;
}

/* Cartes interactives + aperçu au survol */
.ba-card[role="button"] {
  cursor: pointer;
  position: relative;
  transition: transform var(--transition) var(--ease-out),
              border-color var(--transition) var(--ease-out),
              background var(--transition) var(--ease-out);
}
.ba-card[role="button"]:hover,
.ba-card[role="button"]:focus-visible {
  transform: translateY(-3px);
  background: rgba(245, 241, 232, 0.10);
}
.ba-card--after[role="button"]:hover,
.ba-card--after[role="button"]:focus-visible { border-color: var(--accent-primary); }

/* « Avant » volontairement un peu plus petit pour figurer l'évolution */
.ba-card--before { transform: scale(0.94); }
.ba-card--before[role="button"]:hover,
.ba-card--before[role="button"]:focus-visible { transform: scale(0.94) translateY(-3px); }

/* Aperçu (GIF / WebM / MP4) qui remplace la carte au survol — object-fit: cover, ratio ~5:6 */
.ba-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition) var(--ease-out);
  z-index: 2;
}
.ba-card.gif-ready.is-tip-open .ba-card__preview { opacity: 1; }
.ba-card.gif-ready.is-tip-open .ba-card__schema,
.ba-card.gif-ready.is-tip-open .ba-card__label { opacity: 0.15; }

/* Bandeau "bientôt disponible" tant qu'aucun GIF n'est fourni */
.ba-card__soon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-2) var(--space-3);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(11, 46, 50, 0.86);
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity var(--transition) var(--ease-out),
              transform var(--transition) var(--ease-out);
  z-index: 3;
}
.ba-card.no-gif.is-tip-open .ba-card__soon { opacity: 1; transform: translateY(0); }
.ba-card__schema { transition: opacity var(--transition) var(--ease-out); }

.ba-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.btn--sm {
  min-height: 44px;
  padding: 0 var(--space-4);
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(60, 223, 180, 0.28);
}
.btn--secondary.btn--sm { box-shadow: inset 0 0 0 1.5px rgba(245, 241, 232, 0.34); }

/* ---------- POP-IN COMPARATIF ------------------------------------------- */
.compare {
  width: min(1400px, 94vw);
  height: 92vh;
  max-width: 94vw;
  max-height: 92vh;
  /* Recentre la pop-in : le reset global `* { margin: 0 }` écrase le
     margin:auto que le navigateur applique aux <dialog> modaux. */
  margin: auto;
  inset: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface-cream-bright);
  color: var(--text-body);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(11, 46, 50, 0.5);
}
.compare::backdrop {
  background: rgba(11, 46, 50, 0.62);
  backdrop-filter: blur(3px);
}
.compare[open] {
  display: flex;
  flex-direction: column;
  animation: compare-in var(--transition-slow) var(--ease-out);
}
@keyframes compare-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
.compare__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  flex: none;
}
.compare__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.compare__tabs {
  display: none;
  background: rgba(245, 241, 232, 0.10);
  border-radius: var(--pill);
  padding: 4px;
}
.compare__tab {
  min-height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-on-dark-soft);
}
.compare__tab[aria-selected="true"] {
  background: var(--accent-primary);
  color: var(--tl-ink);
}
.compare__close {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-on-dark);
  transition: background var(--transition) var(--ease-out);
}
.compare__close:hover { background: rgba(245, 241, 232, 0.12); }
.compare__close svg { width: 20px; height: 20px; }

.compare__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.compare__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid rgba(15, 59, 64, 0.10);
}
.compare__panel:last-child { border-right: none; }
.compare__panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface-cream);
  flex: none;
}
.compare__panel-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.compare__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tl-teal);
  background: rgba(60, 223, 180, 0.16);
  transition: background var(--transition) var(--ease-out);
}
.compare__live:hover { background: rgba(60, 223, 180, 0.32); }
.compare__live svg { width: 14px; height: 14px; flex: none; }
.compare__live[hidden] { display: none; }
.dot--pink { background: var(--tl-pink-strong); }
.dot--mint { background: var(--tl-mint); }
.compare__frame {
  flex: 1;
  min-height: 0;
  background: var(--surface-cream);
  position: relative;
}
.compare__frame iframe,
.compare__frame embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.compare__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-8);
  color: var(--text-soft);
}
.compare__ph svg { width: 40px; height: 40px; margin: 0 auto; color: var(--accent-primary); }
.compare__ph strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--text-strong); }

@media (max-width: 760px) {
  .compare { width: 96vw; height: 94vh; max-width: 96vw; max-height: 94vh; }
  .compare__title { display: none; }
  .compare__tabs { display: flex; margin-right: auto; }
  .compare__body { grid-template-columns: 1fr; }
  .compare__panel { display: none; border-right: none; }
  .compare__panel.is-active { display: flex; }
}

/* ---------- 10. MARQUEE -------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 3;
  background: var(--accent-highlight);
  transform: rotate(-0.8deg);
  /* La bande empiète légèrement sur le bas du hero (moins remontée). */
  margin-top: clamp(-36px, -3vw, -20px);
  margin-bottom: var(--space-10);
  padding-block: var(--space-3);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--tl-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}
.marquee span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tl-ink);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. PROBLÈME / LISTES --------------------------------------- */
/* Mise au point : le A4 n'est pas le problème */
.problem-note {
  margin-bottom: var(--space-10);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  background: rgba(60, 223, 180, 0.08);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius);
}
.problem-note__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-highlight);
  margin-bottom: var(--space-2);
}
.problem-note__text {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-on-dark);
}
.problem-note__text strong { color: var(--accent-highlight); font-weight: 600; }

.pain-list {
  display: grid;
  gap: var(--space-3);
}
.pain {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.pain__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(245, 143, 176, 0.16);
  color: var(--tl-pink-strong);
}
.pain__icon svg { width: 20px; height: 20px; }
.pain p { color: var(--text-on-dark-soft); font-size: 0.98rem; }
.pain strong { color: var(--text-on-dark); font-weight: 600; }
@media (min-width: 760px) { .pain-list { grid-template-columns: 1fr 1fr; } }

/* ---------- 12. PROMESSE J+5 -------------------------------------------- */
.promise {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.promise__points { display: grid; gap: var(--space-5); margin-top: var(--space-8); }
.promise__point { display: flex; gap: var(--space-4); align-items: flex-start; }
.promise__point .tick {
  flex: none; width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--tl-ink);
}
.promise__point .tick svg { width: 16px; height: 16px; }
.promise__point p { color: var(--text-on-dark-soft); }
.promise__point strong { color: var(--text-on-dark); }

.timeline-card {
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px dashed rgba(245, 241, 232, 0.16);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-day {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-highlight);
  flex: none;
  width: 56px;
}
.timeline-row p { color: var(--text-on-dark-soft); font-size: 0.95rem; }
.timeline-row.is-final .timeline-day { color: var(--accent-primary); }
@media (min-width: 880px) {
  .promise { grid-template-columns: 1fr 1fr; }
}

/* ---------- 13. ÉTAPES (COMMENT ÇA MARCHE) ------------------------------ */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: var(--space-3); right: var(--space-4);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(15, 59, 64, 0.06);
}
.step__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(60, 223, 180, 0.16);
  color: var(--tl-teal);
  margin-bottom: var(--space-5);
}
.step__icon svg { width: 24px; height: 24px; }
.step h3 { margin-bottom: var(--space-3); }
.step p { color: var(--text-soft); font-size: 0.96rem; }
@media (min-width: 680px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 14. ARGUMENTS (CARDS) --------------------------------------- */
.cards-grid {
  display: grid;
  gap: var(--space-5);
}
.feature {
  background: var(--surface-card);
  border: 1px solid rgba(15, 59, 64, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition) var(--ease-out),
              box-shadow var(--transition) var(--ease-out);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--tl-teal);
  color: var(--accent-highlight);
  margin-bottom: var(--space-5);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: var(--space-2); }
.feature p { color: var(--text-soft); font-size: 0.96rem; }
.feature .pill { margin-top: var(--space-4); }
/* Les cartes sont claires même en section sombre : on neutralise le style on-dark des pills soft. */
.feature .pill--soft {
  background: rgba(15, 59, 64, 0.08);
  color: var(--text-soft);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.pill-row .pill { margin-top: 0; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Note "héberger vous-même" sous les atouts */
.self-host {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 760px;
  margin: var(--space-12) auto 0;
  padding: var(--space-5) var(--space-6);
  background: rgba(60, 223, 180, 0.10);
  border: 1px solid rgba(60, 223, 180, 0.30);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  font-size: 1rem;
}
.self-host__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(60, 223, 180, 0.16);
  color: var(--accent-primary);
}
.self-host__icon svg { width: 22px; height: 22px; }
.self-host strong { font-weight: 600; color: var(--accent-highlight); }

/* ---------- 15. CAS D'USAGE --------------------------------------------- */
.usecases {
  display: grid;
  gap: var(--space-4);
}
.usecase {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface-cream-bright);
  border: 1px solid rgba(15, 59, 64, 0.07);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: transform var(--transition) var(--ease-out),
              box-shadow var(--transition) var(--ease-out);
}
.usecase:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.usecase__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(60, 223, 180, 0.18);
  color: var(--tl-teal);
}
.usecase__icon svg { width: 22px; height: 22px; }
.usecase h3 { font-size: 1.05rem; }
.usecase p { font-size: 0.88rem; color: var(--text-soft); }
@media (min-width: 620px) { .usecases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .usecases { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 16. FORMULAIRE DE DÉPÔT ------------------------------------- */
.deposit {
  background: var(--surface-cream-bright);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  box-shadow: var(--shadow-card);
}
.section--dark .deposit, .section--dark-deep .deposit { color: var(--text-body); }
.field { margin-bottom: var(--space-5); }
.field > label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
  color: var(--text-strong);
}
.field .req { color: var(--tl-pink-strong); }
.field input[type="email"],
.field input[type="text"],
.field input[type="url"] {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15, 59, 64, 0.16);
  background: var(--surface-card);
  color: var(--text-body);
  transition: border-color var(--transition) var(--ease-out),
              box-shadow var(--transition) var(--ease-out);
}
.field input::placeholder { color: rgba(15, 59, 64, 0.4); }
.field input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(60, 223, 180, 0.25);
}
.field__hint { font-size: 0.82rem; color: var(--text-soft); margin-top: var(--space-2); }
.field__error {
  display: none;
  font-size: 0.84rem;
  color: #B4264E;
  margin-top: var(--space-2);
  font-weight: 500;
}
.field.has-error input { border-color: #C7325C; }
.field.has-error .field__error { display: block; }

/* Choix upload / lien */
.source-toggle {
  display: inline-flex;
  background: rgba(15, 59, 64, 0.06);
  border-radius: var(--pill);
  padding: 4px;
  margin-bottom: var(--space-4);
}
.source-toggle button {
  min-height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background var(--transition) var(--ease-out),
              color var(--transition) var(--ease-out);
}
.source-toggle button[aria-selected="true"] {
  background: var(--surface-card);
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
}
.source-panel[hidden] { display: none; }

.filedrop {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  min-height: 64px;
  padding: var(--space-4);
  border: 1.5px dashed rgba(15, 59, 64, 0.28);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  text-align: left;
  transition: border-color var(--transition) var(--ease-out),
              background var(--transition) var(--ease-out);
}
.filedrop:hover, .filedrop.is-dragover {
  border-color: var(--accent-primary);
  background: rgba(60, 223, 180, 0.06);
}
.filedrop svg { width: 26px; height: 26px; color: var(--tl-teal); flex: none; }
.filedrop__text strong { display: block; font-weight: 600; color: var(--text-strong); }
.filedrop__text span { font-size: 0.84rem; color: var(--text-soft); }

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success {
  background: rgba(60, 223, 180, 0.16);
  color: #0B5443;
}
.form-status--error {
  background: rgba(245, 143, 176, 0.18);
  color: #97203F;
}
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label, .btn.is-loading .arrow { display: none; }
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(15, 59, 64, 0.3);
  border-top-color: var(--tl-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.deposit-layout { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 900px) {
  .deposit-layout { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- 17. FAQ ------------------------------------------------------ */
.faq { display: grid; gap: var(--space-3); }
.faq__item {
  background: var(--surface-card);
  border: 1px solid rgba(15, 59, 64, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
  min-height: 56px;
}
.faq__q .chev {
  flex: none; width: 20px; height: 20px;
  color: var(--tl-teal);
  transition: transform var(--transition) var(--ease-out);
}
.faq__item.is-open .chev { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow) var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* ---------- 18. INVITE EMAIL (NON-BLOQUANTE) ---------------------------- */
.invite {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: var(--z-invite);
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface-dark-deep);
  color: var(--text-on-dark);
  border: 1px solid rgba(60, 223, 180, 0.32);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 24px 60px rgba(11, 46, 50, 0.5);
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--transition-slow) var(--ease-spring),
              opacity var(--transition-slow) var(--ease-out);
}
.invite.is-shown { transform: translateY(0); opacity: 1; }
.invite[hidden] { display: none; }
.invite__close {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-on-dark-soft);
  transition: background var(--transition) var(--ease-out);
}
.invite__close:hover { background: rgba(245, 241, 232, 0.1); }
.invite__close svg { width: 18px; height: 18px; }
.invite h3 { color: var(--text-on-dark); font-size: 1.15rem; margin-bottom: var(--space-2); padding-right: var(--space-8); }
.invite p { color: var(--text-on-dark-soft); font-size: 0.92rem; margin-bottom: var(--space-4); }
.invite__form { display: flex; flex-direction: column; gap: var(--space-3); }
.invite__form input {
  width: 100%;
  min-height: 46px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(245, 241, 232, 0.2);
  background: rgba(245, 241, 232, 0.06);
  color: var(--text-on-dark);
}
.invite__form input::placeholder { color: rgba(245, 241, 232, 0.45); }
.invite__form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(60, 223, 180, 0.25);
}
.invite__continue {
  align-self: center;
  color: var(--text-on-dark-soft);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}
.invite__continue:hover { color: var(--text-on-dark); }
.invite .form-status { margin-top: 0; }

/* ---------- 19. FOOTER --------------------------------------------------- */
.footer {
  background: var(--surface-dark-deep);
  color: var(--text-on-dark);
  padding-block: var(--space-16) var(--space-10);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__brand .nav__brand { font-size: 1.4rem; margin-bottom: var(--space-3); }
.footer__brand p { color: var(--text-on-dark-soft); font-size: 0.95rem; max-width: 34ch; }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: var(--space-4);
}
.footer__col a, .footer__col li {
  display: block;
  color: var(--text-on-dark-soft);
  font-size: 0.95rem;
  padding-block: 10px;
  transition: color var(--transition) var(--ease-out);
}
.footer__col a:hover { color: var(--accent-highlight); }
.footer__signature {
  margin-bottom: var(--space-6);
  color: var(--text-on-dark-soft);
  font-size: 0.98rem;
  max-width: 60ch;
}
.footer__signature a {
  color: var(--accent-highlight);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition) var(--ease-out);
}
.footer__signature a:hover { color: var(--accent-primary); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  color: var(--text-on-dark-soft);
  font-size: 0.86rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ---------- 20. UTILITAIRES & REVEAL ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-slow) var(--ease-out),
              transform var(--transition-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.stack-gap > * + * { margin-top: var(--space-4); }
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }

/* ---------- 21. REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
  .invite { transform: translateY(0); }
}
