/* ===== EC5 Poutre Express — Website ===== */

:root {
  /* Brand palette (matches app) */
  --accent: #d35400;
  --accent-hover: #e67e22;
  --accent-soft: #fff5e6;
  --primary: #2c3e50;
  --primary-soft: #34495e;
  --ink: #1c2530;
  --ink-soft: #4a5563;
  --muted: #6b7280;
  --line: rgba(28, 37, 48, 0.10);
  --line-strong: rgba(28, 37, 48, 0.18);
  --bg: #f7f5f2;
  --bg-elev: #ffffff;
  --danger: #e74c3c;
  --success: #10b981;

  /* Glass tokens */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --card-solid: #ffffff;
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  --glass-shine: rgba(255, 255, 255, 0.75);
  --glass-blur: 18px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

/* === SCROLL HERO (container scroll animation, vanilla) === */
.scroll-hero {
  position: relative;
  z-index: 2;
  height: 140vh; /* tall section so scroll drives the animation */
  padding: 0;
  max-width: none;
  margin: 0;
}
.scroll-hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 24px 40px;
  perspective: 1200px;
  overflow: hidden;
}
.scroll-hero-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 8px;
  transform: translateY(var(--sh-translate, 10vh));
  transition: transform 0.06s linear;
}
.scroll-hero-title {
  font-size: clamp(1.8rem, 3.96vw, 4.05rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 12px;
}
.scroll-hero-accent {
  background: linear-gradient(120deg, #f39c12 0%, #e67e22 35%, #d35400 70%, #c0392b 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.scroll-hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.scroll-hero-card {
  width: min(857px, 65.6vw);
  height: min(58vh, 520px);
  margin: clamp(40px, 6vh, 80px) auto 0;
  /* Bezel métallique : gradient diagonal qui simule l'aluminium brossé */
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    /* Reflet en haut (highlight bezel) */
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.3) 100%),
    /* Reflet diagonal latéral */
    linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 22%, #1f1f1f 50%, #2a2a2a 78%, #4a4a4a 100%);
  border-radius: 32px;
  padding: clamp(10px, 1.1vw, 18px);
  /* Multi-shadow : reflet bezel + ombre interne sombre + ombres portées en cascade */
  box-shadow:
    /* Inset : reflet bord supérieur (lumière du dessus) */
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    /* Inset : ombre bord intérieur (profondeur du bezel) */
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    /* Ombres portées progressives (cascade réaliste) */
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 32px 48px rgba(0, 0, 0, 0.35),
    0 64px 80px rgba(0, 0, 0, 0.25),
    0 120px 100px rgba(0, 0, 0, 0.12);
  transform-origin: center top;
  transform:
    rotateX(var(--sh-rotate, 55deg))
    scale(var(--sh-scale, 1.05))
    translateY(var(--sh-translate, 10vh));
  transition: transform 0.06s linear;
  will-change: transform;
  position: relative;
  isolation: isolate;
}

/* Caméra frontale (pinhole) en haut au centre du bezel */
.scroll-hero-card::before {
  content: "";
  position: absolute;
  top: clamp(5px, 0.55vw, 9px);
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(60, 60, 80, 0.9) 0%, #050505 70%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 3;
  pointer-events: none;
}

.scroll-hero-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0f1115;
  position: relative;
  /* Effet "écran allumé" : léger glow intérieur + bord noir profond */
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 24px rgba(0, 0, 0, 0.5);
}

/* Reflet glass diagonal subtil sur l'écran (effet vitre brillante) */
.scroll-hero-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 52%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

.scroll-hero-app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px;
  overflow: hidden;
}
.scroll-hero-app .mk-root {
  border-radius: 22px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .scroll-hero-card {
    transform:
      rotateX(var(--sh-rotate, 55deg))
      scale(var(--sh-scale, 0.7))
      translateY(var(--sh-translate, 10vh));
  }
  .scroll-hero { height: 110vh; }
}
body[data-variant="editorial"] .scroll-hero-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(135deg, #ebe7e0 0%, #d6d2cc 22%, #c8c3bb 50%, #d6d2cc 78%, #ebe7e0 100%);
  border-color: rgba(0, 0, 0, 0.1);
}
body[data-variant="editorial"] .scroll-hero-card::before {
  background: radial-gradient(circle at 30% 30%, rgba(80, 80, 90, 0.6) 0%, #2a2a2a 70%);
}
.ambient {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.orb-1 { width: 620px; height: 620px; top: -180px; left: -160px; background: radial-gradient(circle, rgba(211,84,0,0.35), transparent 70%); }
.orb-2 { width: 540px; height: 540px; top: 260px; right: -140px; background: radial-gradient(circle, rgba(44,62,80,0.25), transparent 70%); }
.orb-3 { width: 480px; height: 480px; bottom: -100px; left: 40%; background: radial-gradient(circle, rgba(230,126,34,0.25), transparent 70%); }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(28,37,48,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,37,48,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* Infinite grid (base faint + spotlight revealed by cursor) */
.grid-base, .grid-spot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #1c2530;
  pointer-events: none;
}
.grid-base { opacity: 0.18; }
.grid-spot {
  color: #d35400;
  opacity: 1;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, -9999px) var(--my, -9999px), black 0%, black 30%, transparent 80%);
          mask-image: radial-gradient(420px circle at var(--mx, -9999px) var(--my, -9999px), black 0%, black 30%, transparent 80%);
}
.grid-spot svg path { stroke-width: 1.5 !important; }
.grid-base #infgrid, .grid-spot #infgrid2 {
  transform: translate(var(--gx, 0px), var(--gy, 0px));
}
body[data-variant="studio"] .grid-base { opacity: 0.12; color: #f0f6fc; }
body[data-variant="studio"] .grid-spot { opacity: 0.55; color: var(--accent); }
body[data-variant="editorial"] .grid-base,
body[data-variant="editorial"] .grid-spot { display: none; }

/* === NAV === */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 32px));
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 16px 10px 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--r-full);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark img {
  display: block;
  border-radius: 8px;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 0.98rem; color: var(--primary); letter-spacing: -0.01em; white-space: nowrap; }
.brand-tag { font-size: 0.72rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

.nav-links {
  display: flex; gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.5);
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--r-full);
  transition: all .2s;
}
.nav-links a:hover { color: var(--accent); background: rgba(255,255,255,0.6); }

.nav-cta { display: flex; gap: 8px; align-items: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(211, 84, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.6); border-color: var(--accent); color: var(--accent); }

.btn-outline {
  background: rgba(255,255,255,0.4);
  color: var(--primary);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: white; border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 13px 22px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* === HERO === */
.hero {
  position: relative;
  z-index: 2;
  padding: 0 24px 100px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 560px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(211,84,0,0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.5 } }

h1 {
  font-size: clamp(1.78rem, 3.40vw, 2.92rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--primary);
}
.accent-text {
  background: linear-gradient(135deg, var(--accent), #f39c12);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-ctas { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

.hero-badges {
  display: flex; flex-wrap: wrap;
  gap: 18px 24px;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-badges li { display: flex; align-items: center; gap: 6px; }

/* === HERO PROMISES — 3 bénéfices clés sous le sous-titre === */
.hero-promises {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-promise {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  transition:
    transform .3s cubic-bezier(.2, .85, .2, 1),
    border-color .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}
.hero-promise:hover {
  transform: translateX(4px);
  border-left-color: var(--accent-hover);
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.06), rgba(230, 126, 34, 0.02)), var(--glass-bg-strong);
  box-shadow: 0 10px 24px -10px rgba(211, 84, 0, 0.25);
}
.hero-promise-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
  transition: transform .3s cubic-bezier(.2, .85, .2, 1);
}
.hero-promise:hover .hero-promise-icon {
  transform: scale(1.08) rotate(-3deg);
}
.hero-promise-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.hero-promise-body strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.hero-promise-body span {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Mobile : padding réduit, icône plus petite */
@media (max-width: 720px) {
  .hero-promise { padding: 12px 14px; gap: 12px; }
  .hero-promise-icon { width: 34px; height: 34px; }
  .hero-promise-body strong { font-size: 0.92rem; }
  .hero-promise-body span { font-size: 0.8rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-promise,
  .hero-promise-icon {
    transition: none;
  }
  .hero-promise:hover {
    transform: none;
  }
  .hero-promise:hover .hero-promise-icon {
    transform: none;
  }
}
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-weight: 700;
  font-size: 0.68rem;
}

/* === HERO VISUAL (App preview) === */
.hero-visual { position: relative; }
.app-preview {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 30px 60px -20px rgba(31, 38, 135, 0.28),
    0 18px 36px -18px rgba(211, 84, 0, 0.22),
    inset 0 1px 0 var(--glass-shine);
  aspect-ratio: 16 / 10.5;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.app-preview:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 60px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  text-align: center;
}
.scroll-cue svg { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(4px) } }

/* === SECTION SCAFFOLD === */
section {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--primary);
  font-weight: 700;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* === DEMO === */
.demo-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.demo-steps { display: flex; flex-direction: column; gap: 10px; }
.demo-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card-solid, #ffffff);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .25s;
  color: inherit;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.demo-step:hover { transform: translateX(3px); border-color: var(--accent); }
.demo-step.active {
  background: linear-gradient(135deg, rgba(211,84,0,0.12), rgba(230,126,34,0.06));
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(211,84,0,0.18);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(211, 84, 0, 0.1);
  border-radius: 8px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.step-body { display: flex; flex-direction: column; gap: 2px; }
.step-title { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.step-desc { font-size: 0.82rem; color: var(--muted); }

.demo-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 50px -20px rgba(31, 38, 135, 0.22), inset 0 1px 0 var(--glass-shine);
  overflow: hidden;
  min-height: 540px;
  position: relative;
}

/* ============================================== */
/* === FEATURES — Carrousel marquee horizontal */
/* === Pattern : auto-scroll + drag manuel + circuit électrique */
/* ============================================== */

/* Conteneur principal — clip horizontal, hauteur ferme */
.feature-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 60px 0 50px;
  isolation: isolate;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.feature-marquee.is-dragging {
  cursor: grabbing;
}

/* Track : ligne horizontale qui défile, contient 22 cartes (11 dupliquées x2) */
.feature-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* Animation auto : translation -50% en 80s linear infinite (vitesse contemplative) */
  animation: feature-marquee-scroll 80s linear infinite;
  /* La transform est aussi pilotée par JS pendant le drag (CSS variable) */
  --drag-offset: 0px;
  transform: translateX(var(--drag-offset));
  will-change: transform;
}
@keyframes feature-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pendant le drag : pause complète + offset JS */
.feature-track.is-paused {
  animation-play-state: paused;
}
.feature-track.is-dragging {
  animation: none;
  transform: translateX(var(--drag-offset));
}

/* === CARTE FEATURE — pleine info visible === */
.feature {
  position: relative;
  flex: 0 0 320px; /* largeur fixe, pas de shrink */
  padding: 24px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  isolation: isolate;
  transition:
    transform .35s cubic-bezier(.2, .85, .2, 1),
    border-color .35s ease,
    box-shadow .35s ease;
}

/* Au hover sur une carte spécifique : élévation + bordure orange */
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 22px 50px -16px rgba(211, 84, 0, 0.32),
    0 8px 16px -8px rgba(211, 84, 0, 0.18),
    inset 0 1px 0 var(--glass-shine);
  z-index: 10;
}

/* Icône — gradient orange + animation hover */
.feature-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(211, 84, 0, 0.32);
  flex-shrink: 0;
  transition:
    transform .35s cubic-bezier(.2, .85, .2, 1),
    box-shadow .35s ease;
}
.feature:hover .feature-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 22px rgba(211, 84, 0, 0.45);
}

/* Titre + paragraphe — visibles d'emblée */
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.3;
  transition: color .3s ease;
}
.feature:hover h3 { color: var(--accent); }

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  /* Limiter à 5 lignes pour cohérence visuelle dans le carrousel */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature sub { font-size: 0.7em; }

/* Toggle + (cache subtil dans le coin) */
.feature-toggle {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(211, 84, 0, 0.1);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: all .3s ease;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.feature:hover .feature-toggle {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  opacity: 1;
  transform: rotate(45deg);
  box-shadow: 0 3px 8px rgba(211, 84, 0, 0.4);
}

/* Spotlight badge (Exclusif) — au-dessus du toggle */
.feature-spotlight {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(211, 84, 0, 0.4);
  z-index: 3;
}

/* === EDGE INDICATORS — chevrons sur les bords pour signaler le drag === */
.feature-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 64px;
  color: var(--accent);
  opacity: 0;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .85, .2, 1);
  background: linear-gradient(90deg, rgba(211, 84, 0, 0.1), transparent);
  border-radius: 0 8px 8px 0;
}
.feature-edge-left { left: 0; }
.feature-edge-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(211, 84, 0, 0.1), transparent);
  border-radius: 8px 0 0 8px;
}
.feature-marquee:hover .feature-edge {
  opacity: 0.6;
}
.feature-marquee:hover .feature-edge-left { transform: translateY(-50%) translateX(-4px); }
.feature-marquee:hover .feature-edge-right { transform: translateY(-50%) translateX(4px); }
.feature-marquee.is-dragging .feature-edge { opacity: 0; }

/* === BADGE CTA — "11 fonctionnalités · glissez pour explorer" === */
.feature-marquee-cta {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(211, 84, 0, 0.3);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  pointer-events: none;
}
.feature-marquee-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: feature-cta-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes feature-cta-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* === VARIANTE STUDIO (sombre) === */
body[data-variant="studio"] .feature-marquee-cta {
  color: #ff8c42;
  background: rgba(22, 27, 34, 0.7);
  border-color: rgba(255, 140, 66, 0.3);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .feature-track {
    animation: none;
  }
  .feature-marquee-cta-dot {
    animation: none;
  }
  .feature-marquee {
    overflow-x: auto;
    cursor: default;
  }
}

/* === MOBILE === */
@media (max-width: 720px) {
  .feature-marquee { padding: 40px 0 36px; }
  .feature {
    flex: 0 0 280px;
    min-height: 240px;
    padding: 20px 18px;
  }
  .feature-edge { display: none; }
  .feature-marquee-cta {
    font-size: 0.62rem;
    padding: 5px 11px;
  }
}


/* === DOWNLOAD === */
.download-fx {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.download-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease-out;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.download-fx.is-active .download-sparkles,
.scroll-hero-fx.is-active #scroll-hero-sparkles { opacity: 1; }

.download-glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -25%) scale(0.4);
  width: min(900px, 90%);
  aspect-ratio: 1 / 1;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(211,84,0,0.55) 0%, rgba(230,126,34,0.18) 35%, transparent 70%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 1.6s ease-out, transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.download-fx.is-active .download-glow {
  opacity: 0.85;
  transform: translate(-50%, -25%) scale(1);
}

.download-grid {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 380px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(28,37,48,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,37,48,0.05) 1px, transparent 1px);
  background-size: 70px 80px;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.download-fx.is-active .download-grid { opacity: 1; }

/* --- Reveal: vertical cut text (split into characters via JS, animated via CSS) --- */
.reveal-cut {
  display: inline-block;
  white-space: pre-wrap;
}
.reveal-cut .cut-word {
  display: inline-flex;
  white-space: pre;
}
.reveal-cut .cut-char {
  display: inline-block;
  overflow: hidden;
  line-height: 1.1;
}
.reveal-cut .cut-char > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.2, 0.85, 0.2, 1);
  transition-delay: var(--char-delay, 0s);
}
.download-fx.is-active .reveal-cut .cut-char > span,
.scroll-hero-fx.is-active .reveal-cut .cut-char > span,
section[data-reveal].is-revealed .reveal-cut .cut-char > span {
  transform: translateY(0);
}

/* --- Reveal: blur-fade --- */
.reveal-fade {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-12px);
  transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
.download-fx.is-active .reveal-fade,
.scroll-hero-fx.is-active .reveal-fade {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Reveal: card entrance with blur + glow pop on the popular card --- */
.reveal-card {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.85, 0.2, 1),
    filter 0.85s cubic-bezier(0.2, 0.85, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.85, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.download-fx.is-active .reveal-card {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.download-fx.is-active .plan-pro {
  box-shadow:
    0 30px 60px -22px rgba(0,0,0,0.45),
    0 -13px 200px -20px rgba(211, 84, 0, 0.55);
  transition: box-shadow 1.2s ease-out 0.9s;
}

/* --- Reveal: tablet entrance (opacity + blur only, transform driven by scroll) --- */
.reveal-tablet {
  opacity: 0;
  filter: blur(18px);
  transition:
    opacity 1.2s cubic-bezier(0.2, 0.85, 0.2, 1),
    filter 1.2s cubic-bezier(0.2, 0.85, 0.2, 1);
  transition-delay: var(--reveal-delay, 1.4s);
}
.scroll-hero-fx.is-active .reveal-tablet {
  opacity: 1;
  filter: blur(0);
}

/* --- Scroll-hero specific: sparkles canvas position --- */
#scroll-hero-sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease-out;
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 35%, #000 25%, transparent 70%);
          mask-image: radial-gradient(ellipse 65% 50% at 50% 35%, #000 25%, transparent 70%);
}
.scroll-hero-fx { position: relative; }
.scroll-hero-inner { position: relative; z-index: 1; }

/* Stagger chars within each cut-cut span via base delay */
.scroll-hero-fx .reveal-cut .cut-char > span {
  transition-delay: calc(var(--char-delay, 0s) + var(--reveal-base-delay, 0s));
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}
.plan {
  position: relative;
  padding: 32px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  display: flex; flex-direction: column; gap: 16px;
}
.plan-pro {
  background: linear-gradient(140deg, rgba(44,62,80,0.95), rgba(28,37,48,0.92));
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.35);
}
.plan-pro .plan-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.plan-pro h3 { color: white; }
.plan-pro .plan-desc, .plan-pro .plan-meta span { color: rgba(255,255,255,0.7); }
.plan-pro .plan-amount { color: white; }
.plan-pro .check { background: rgba(211,84,0,0.3); color: white; }

.plan-ribbon {
  position: absolute; top: -14px; right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-full);
  box-shadow: 0 6px 14px rgba(211,84,0,0.35);
}

.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-tag {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(211,84,0,0.1);
  padding: 5px 10px;
  border-radius: var(--r-full);
}
.plan-price { text-align: right; line-height: 1.1; }
.plan-amount { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.plan-unit { font-size: 0.8rem; color: var(--muted); }

.plan h3 { margin: 0; font-size: 1.35rem; color: var(--primary); letter-spacing: -0.015em; }
.plan-desc { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.plan-features { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }

.plan-meta {
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plan-pro .plan-meta { border-color: rgba(255,255,255,0.12); }

.sys-requirements {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}
.sys-requirements h4 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.sys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sys-grid > div { display: flex; flex-direction: column; gap: 2px; }
.sys-grid strong { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.sys-grid span { font-size: 0.95rem; color: var(--primary); font-weight: 600; font-family: var(--font-mono); }

/* === CONTACT === */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-form, .faq {
  padding: 32px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.75);
  color: var(--ink);
  transition: all .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211,84,0,0.15);
  background: white;
}
textarea { resize: vertical; min-height: 120px; font-family: inherit; }

.form-consent { margin: 8px 0 20px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--accent); }

.form-feedback {
  margin-top: 16px;
  padding: 0 14px;
  font-size: 0.88rem;
  color: var(--success);
  max-height: 0;
  overflow: hidden;
  transition: all .3s;
}
.form-feedback.show { padding: 12px 14px; max-height: 80px; background: rgba(16,185,129,0.12); border-radius: var(--r-md); }

/* FAQ */
.faq h3 { margin: 0 0 16px; font-size: 1.2rem; color: var(--primary); }
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform .2s;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 4px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* === FOOTER === */
.footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(44,62,80,0.04));
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 60px 24px 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { font-weight: 700; color: var(--primary); }
.footer-brand .brand-tag { font-size: 0.78rem; color: var(--muted); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h5 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-nav a, .footer-nav span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }

.legal {
  max-width: var(--container);
  margin: 40px auto 0;
}
.legal h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 600;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.legal-grid strong {
  display: block;
  color: var(--primary);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.legal-grid p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; }
.legal-copyright {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* === TWEAKS PANEL === */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), inset 0 1px 0 var(--glass-shine);
  z-index: 500;
  overflow: hidden;
}
.tweaks[hidden] { display: none; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
}
.tweaks-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1;
  color: var(--muted);
  padding: 0 4px;
}
.tweaks-close:hover { color: var(--accent); }
.tweaks-body { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.tweak-group { display: flex; flex-direction: column; gap: 8px; }
.tweak-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tweak-hint { margin: 0; font-size: 0.76rem; color: var(--muted); font-style: italic; }
.tweak-segmented {
  display: flex;
  background: rgba(0,0,0,0.04);
  border-radius: var(--r-md);
  padding: 3px;
}
.seg {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: calc(var(--r-md) - 3px);
  transition: all .2s;
}
.seg.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.tweak-row { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ============================================== */
/* ===== VARIANT 2 — EDITORIAL ==================== */
/* ============================================== */
body[data-variant="editorial"] {
  --bg: #faf8f4;
  background: var(--bg);
}
body[data-variant="editorial"] .orb { opacity: 0.25; filter: blur(140px); }
body[data-variant="editorial"] .grid-overlay { display: none; }

body[data-variant="editorial"] .nav-inner {
  border-radius: 4px;
  background: white;
  border-color: var(--line);
  backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body[data-variant="editorial"] .nav-links { border-radius: 2px; background: transparent; border: none; }
body[data-variant="editorial"] .nav-links a { border-radius: 2px; }
body[data-variant="editorial"] .btn { border-radius: 4px; }

body[data-variant="editorial"] h1, body[data-variant="editorial"] h2 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}
body[data-variant="editorial"] .feature,
body[data-variant="editorial"] .plan,
body[data-variant="editorial"] .contact-form,
body[data-variant="editorial"] .faq,
body[data-variant="editorial"] .sys-requirements,
body[data-variant="editorial"] .demo-viewport,
body[data-variant="editorial"] .app-preview,
body[data-variant="editorial"] .demo-step,
body[data-variant="editorial"] .pill {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body[data-variant="editorial"] .app-preview { transform: none; }
body[data-variant="editorial"] .plan-pro { background: var(--primary); }

/* ============================================== */
/* ===== VARIANT 3 — STUDIO DARK ================== */
/* ============================================== */
body[data-variant="studio"] {
  --bg: #0d1117;
  --bg-elev: #161b22;
  --ink: #e6edf3;
  --ink-soft: #c9d1d9;
  --muted: #8b949e;
  --primary: #f0f6fc;
  --line: rgba(240, 246, 252, 0.08);
  --line-strong: rgba(240, 246, 252, 0.16);
  --glass-bg: rgba(22, 27, 34, 0.6);
  --glass-bg-strong: rgba(22, 27, 34, 0.85);
  --glass-border: rgba(240, 246, 252, 0.1);
  --glass-shine: rgba(255,255,255,0.06);
  --card-solid: #161b22;
  background: var(--bg);
  color: var(--ink);
}
body[data-variant="studio"] .orb-1 { background: radial-gradient(circle, rgba(211,84,0,0.40), transparent 70%); opacity: 0.45; }
body[data-variant="studio"] .orb-2 { background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%); opacity: 0.4; }
body[data-variant="studio"] .orb-3 { background: radial-gradient(circle, rgba(230,126,34,0.30), transparent 70%); opacity: 0.35; }
body[data-variant="studio"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
}

body[data-variant="studio"] .brand-name { color: #f0f6fc; }
body[data-variant="studio"] .nav-links { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
body[data-variant="studio"] .nav-links a { color: var(--ink-soft); }
body[data-variant="studio"] .nav-links a:hover { background: rgba(255,255,255,0.06); }
body[data-variant="studio"] .btn-ghost { color: var(--ink); border-color: var(--line-strong); }
body[data-variant="studio"] .btn-outline { background: rgba(255,255,255,0.03); color: var(--ink); }
body[data-variant="studio"] input, body[data-variant="studio"] select, body[data-variant="studio"] textarea {
  background: rgba(255,255,255,0.04); color: var(--ink); border-color: var(--line-strong);
}
body[data-variant="studio"] input:focus { background: rgba(255,255,255,0.07); }
body[data-variant="studio"] .plan-amount { color: var(--ink); }
body[data-variant="studio"] .plan-pro { background: linear-gradient(140deg, rgba(211,84,0,0.20), rgba(22,27,34,0.95)); border-color: rgba(211,84,0,0.35); }
body[data-variant="studio"] .demo-step.active { background: linear-gradient(135deg, rgba(211,84,0,0.22), rgba(211,84,0,0.08)); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .app-preview { transform: none; max-width: 720px; margin: 0 auto; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-steps { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .demo-step { min-width: 240px; flex-shrink: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 8px 10px 8px 12px; }
  .nav-links { display: none; }
  .brand-tag { display: none; }
  .hero { padding: 110px 20px 60px; }
  section { padding: 70px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-wide .feature-icon { margin-bottom: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .tweaks { right: 10px; left: 10px; width: auto; bottom: 10px; }
  .sys-grid { grid-template-columns: 1fr; }
}

/* ===== particles.js — orange brand layer ===== */
#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;          /* don't block clicks/scroll on the page */
  z-index: 1;                    /* above orbs, below grid-spot/main */
  opacity: 0.85;
  mix-blend-mode: screen;        /* glow on dark, additive feel on light */
}
#particles-js canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
/* On light variants, screen blend would wash out — soften & switch blend */
body[data-variant="glass"] #particles-js,
body[data-variant="editorial"] #particles-js {
  mix-blend-mode: multiply;
  opacity: 0.55;
}
body[data-variant="editorial"] #particles-js { opacity: 0.40; }

@media (prefers-reduced-motion: reduce) {
  #particles-js { display: none; }
}

/* === Demo step: video card === */
.demo-step-video .step-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(211, 84, 0, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.demo-step-video:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(211, 84, 0, 0.45);
}
.demo-step-video {
  background: linear-gradient(135deg, rgba(211,84,0,0.06), rgba(230,126,34,0.02));
  border-color: rgba(211, 84, 0, 0.25);
}
.demo-step-video:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(211,84,0,0.10), rgba(230,126,34,0.04));
}

/* === Video modal === */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(8px);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.video-modal-frame {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06),
    0 -8px 60px -10px rgba(211, 84, 0, 0.35);
  transform: scale(0.94);
  transition: transform .35s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.video-modal.is-open .video-modal-frame {
  transform: scale(1);
}
.video-modal-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 24, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.video-modal-close:hover {
  background: rgba(211, 84, 0, 0.85);
  transform: scale(1.05);
}





/* ============================================================ */
/* === NOUVELLES SECTIONS — ajouts en fin de fichier ========== */
/* ============================================================ */

/* === HERO TRUST PILLS === */
.hero-trust {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
/* Quand placé dans le hero-visual : centré horizontalement au-dessus de l'image,
   pills à leur taille originale, sur une seule ligne */
.hero-visual .hero-trust {
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 18px;
  margin-top: 0;
}
.trust-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(211, 84, 0, 0.22);
  padding: 5px 10px;
  border-radius: var(--r-full);
}
body[data-variant="studio"] .trust-pill {
  background: rgba(211, 84, 0, 0.15);
  border-color: rgba(255, 140, 66, 0.35);
  color: #ff8c42;
}
body[data-variant="editorial"] .trust-pill {
  border-radius: 4px;
  background: white;
  border-color: var(--line-strong);
}

/* === NOUVELLE SECTION CONFIGS === */
.configs { padding: 80px 24px; }
.configs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.config-card {
  padding: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  transition: all .3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -10px rgba(211, 84, 0, 0.25);
}
.config-svg {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  padding: 12px;
  color: var(--accent);
}
.config-svg svg { width: 100%; height: 100%; max-width: 240px; }
.config-svg .cfg-beam { stroke: var(--accent); }
.config-svg .cfg-support { fill: var(--primary); }
.config-svg .cfg-ground { stroke: var(--primary); stroke-width: 2; }
.config-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.config-use {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.config-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.config-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  color: var(--muted);
}
body[data-variant="studio"] .config-card { background: rgba(22, 27, 34, 0.55); }
body[data-variant="studio"] .config-svg { background: rgba(211, 84, 0, 0.10); }
body[data-variant="studio"] .config-svg .cfg-support,
body[data-variant="studio"] .config-svg .cfg-ground { fill: #f0f6fc; stroke: #f0f6fc; }
body[data-variant="editorial"] .config-card {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (max-width: 1024px) { .configs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .configs-grid { grid-template-columns: 1fr; } }

/* === NOUVELLE SECTION AUDIENCE === */

/* === AUDIENCE CIRCUIT — alimentation orange entre sous-titre et cartes === */
.audience-circuit {
  position: relative;
  width: 100%;
  margin: -8px auto 12px;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}
.audience-circuit svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Traits du circuit (couches de base) */
.audience-circuit path {
  fill: none;
  stroke: #d35400;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(255, 140, 66, 0.35));
}
.audience-circuit .circuit-bar {
  stroke: url(#circuit-gradient);
  stroke-width: 1.8;
  stroke-opacity: 1;
  stroke-dasharray: 6 8;
  animation: circuit-flow 3.5s linear infinite;
}
.audience-circuit .circuit-trunk {
  stroke-width: 2;
  stroke-opacity: 0.75;
}
/* Nœuds aux jonctions */
.audience-circuit .circuit-node {
  fill: #ff8c42;
  filter: drop-shadow(0 0 5px rgba(255, 140, 66, 0.7));
}
.audience-circuit .circuit-node-top {
  fill: #ffb070;
  filter: drop-shadow(0 0 8px rgba(255, 176, 112, 0.85));
}
/* Pulses lumineux qui descendent dans les pattes */
.audience-circuit .circuit-pulse {
  fill: #ffe4cc;
  opacity: 0;
}
.audience-circuit .circuit-pulse-1 { animation: pulse-down 2.6s ease-in 0s infinite; }
.audience-circuit .circuit-pulse-2 { animation: pulse-down 2.6s ease-in 0.4s infinite; }
.audience-circuit .circuit-pulse-3 { animation: pulse-down 2.6s ease-in 0.8s infinite; }

@keyframes pulse-down {
  0%   { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}
@keyframes circuit-flow {
  to { stroke-dashoffset: -28; }
}

/* Variant studio (sombre) — plus lumineux */
body[data-variant="studio"] .audience-circuit path {
  stroke: #ff8c42;
  stroke-opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(255, 140, 66, 0.55));
}
body[data-variant="studio"] .audience-circuit .circuit-trunk {
  stroke-opacity: 0.9;
}
body[data-variant="studio"] .audience-circuit .circuit-node {
  filter: drop-shadow(0 0 8px rgba(255, 140, 66, 0.9));
}
body[data-variant="studio"] .audience-circuit .circuit-node-top {
  fill: #ffd6b0;
  filter: drop-shadow(0 0 12px rgba(255, 200, 150, 1));
}

/* Variant editorial — épuré, statique, sans glow */
body[data-variant="editorial"] .audience-circuit path {
  stroke: #d35400;
  stroke-opacity: 0.5;
  filter: none;
}
body[data-variant="editorial"] .audience-circuit .circuit-bar {
  animation: none;
  stroke: #d35400;
  stroke-dasharray: none;
}
body[data-variant="editorial"] .audience-circuit .circuit-pulse { display: none; }
body[data-variant="editorial"] .audience-circuit .circuit-node {
  filter: none;
  fill: #d35400;
}

/* Reduced motion — on garde le circuit mais sans animation */
@media (prefers-reduced-motion: reduce) {
  .audience-circuit .circuit-bar { animation: none; stroke-dasharray: none; }
  .audience-circuit .circuit-pulse { display: none; }
}

/* Responsive — circuit invisible en mobile (cartes empilées en colonne) */
@media (max-width: 1024px) {
  .audience-circuit { display: none; }
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience-card {
  padding: 32px 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  transition: all .3s;
}
.audience-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.audience-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(211, 84, 0, 0.32);
}
.audience-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.audience-tagline {
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 18px;
}
.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audience-card li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.audience-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
body[data-variant="studio"] .audience-card { background: rgba(22, 27, 34, 0.7); }
body[data-variant="editorial"] .audience-card {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (max-width: 1024px) { .audience-grid { grid-template-columns: 1fr; } }

/* === NOUVELLE SECTION METHODOLOGY === */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.method-card {
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  transition: all .25s;
}
.method-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.method-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.method-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.method-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 12px;
}
.method-card footer {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.method-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}
.method-elu .method-tag { background: rgba(231, 76, 60, 0.12); color: #c0392b; }
.method-els .method-tag { background: rgba(52, 152, 219, 0.12); color: #2874a6; }
.method-formula {
  display: block;
  background: var(--accent-soft);
  border: 1px dashed rgba(211, 84, 0, 0.3);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.method-combos {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}
.method-combos-head { margin-bottom: 20px; text-align: center; }
.method-combos-head p { color: var(--ink-soft); margin: 8px 0 0; font-size: 0.95rem; }
.method-combos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.combo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 14px;
  color: var(--ink-soft);
  transition: all .2s;
}
.combo-chip strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.combo-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.combo-chip-accident {
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.2);
}
.combo-chip-accident strong { color: #c0392b; }
body[data-variant="studio"] .method-card { background: rgba(22, 27, 34, 0.55); }
body[data-variant="studio"] .method-elu .method-tag { background: rgba(231, 76, 60, 0.18); color: #ff7f6e; }
body[data-variant="studio"] .method-els .method-tag { background: rgba(52, 152, 219, 0.18); color: #6cb6ff; }
body[data-variant="studio"] .method-formula { background: rgba(211, 84, 0, 0.12); border-color: rgba(255, 140, 66, 0.35); color: #ff8c42; }
body[data-variant="studio"] .combo-chip { background: rgba(22, 27, 34, 0.7); border-color: rgba(255,255,255,0.08); }
body[data-variant="studio"] .combo-chip-accident { background: rgba(231, 76, 60, 0.15); border-color: rgba(231, 76, 60, 0.35); }
body[data-variant="studio"] .combo-chip-accident strong { color: #ff7f6e; }
body[data-variant="editorial"] .method-card,
body[data-variant="editorial"] .method-combos {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body[data-variant="editorial"] .combo-chip { border-radius: 4px; }
@media (max-width: 1100px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .method-grid { grid-template-columns: 1fr; } }

/* === NOUVELLE SECTION VALIDATION === */
.validation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.validation-card {
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
}
.validation-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.validation-card ul { list-style: none; padding: 0; margin: 0; }
.validation-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.validation-card li:last-child { border-bottom: none; }
.validation-card strong { color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.validation-table-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.validation-card-warn {
  grid-column: 1 / -1;
  background: rgba(231, 76, 60, 0.04);
  border-color: rgba(231, 76, 60, 0.2);
}
.validation-card-warn h3 { color: #c0392b; }
.validation-card-warn strong { color: inherit; font-family: inherit; }
.validation-card-warn p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.6; }
.validation-card-warn p:last-child { margin-bottom: 0; }
body[data-variant="studio"] .validation-card { background: rgba(22, 27, 34, 0.55); }
body[data-variant="studio"] .validation-card-warn { background: rgba(231, 76, 60, 0.10); border-color: rgba(231, 76, 60, 0.30); }
body[data-variant="studio"] .validation-card-warn h3 { color: #ff7f6e; }
body[data-variant="editorial"] .validation-card {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (max-width: 860px) { .validation-grid { grid-template-columns: 1fr; } }


/* === HERO — réduction de l'espace sous le scroll-hero === */
.hero { margin-top: -42vh; }
@media (max-width: 768px) { .hero { margin-top: -45vh; } }


/* === CONFIGS — refonte layout style demo (steps + viewport) === */
.configs-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}
/* Conteneur droit : flex pour centrer l'image verticalement dans l'espace
   disponible (la sidebar gauche est plus haute que l'image). On ne laisse
   pas le viewport s'étirer pour éviter les bandes vides au-dessus/dessous. */
.configs-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.configs-steps { display: flex; flex-direction: column; gap: 10px; }
/* ============================================== */
/* === CONFIG STEPS — calqué sur demo-step pour cohérence visuelle */
/* === Effet propre : épuré au repos, élévation au hover, signature à l'actif */
/* ============================================== */
.config-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 22px;
  background: var(--card-solid, #ffffff);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform .3s cubic-bezier(.2, .8, .2, 1),
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

/* Barre verticale orange à gauche — signature de l'état actif (apparaît subtilement) */
.config-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent-hover));
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition:
    opacity .35s ease,
    transform .4s cubic-bezier(.2, .85, .2, 1);
}

/* Chevron à droite — apparaît à l'actif pour confirmer la sélection */
.config-step::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg) translateX(-4px);
  opacity: 0;
  transition:
    opacity .3s ease,
    transform .4s cubic-bezier(.2, .85, .2, 1);
}

/* === HOVER === */
.config-step:hover {
  transform: translateX(3px);
  border-color: var(--accent);
  box-shadow:
    0 10px 24px -8px rgba(211, 84, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.config-step:hover::before {
  opacity: 0.5;
  transform: scaleY(0.7);
}

/* === ACTIVE (carte sélectionnée) === */
.config-step.active {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.10), rgba(230, 126, 34, 0.04) 50%, transparent);
  border-color: var(--accent);
  box-shadow:
    0 14px 30px -10px rgba(211, 84, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.config-step.active::before {
  opacity: 1;
  transform: scaleY(1);
}
.config-step.active::after {
  opacity: 1;
  transform: rotate(45deg) translateX(0);
}

/* Step number badge */
.config-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  flex-shrink: 0;
  border: 1px solid rgba(211, 84, 0, 0.15);
  transition: all .3s ease;
}
.config-step:hover .step-num,
.config-step.active .step-num {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(211, 84, 0, 0.4);
}

/* === MINI-SCHÉMA SVG — mis en valeur avec un container raffiné === */
.config-step .step-mini-svg {
  flex: 0 0 88px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.05), rgba(230, 126, 34, 0.02));
  border: 1px solid rgba(211, 84, 0, 0.12);
  border-radius: 8px;
  padding: 4px 6px;
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}
.config-step .step-mini-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Schéma au repos : trait neutre, supports gris-orange */
.cfg-beam {
  stroke: rgba(211, 84, 0, 0.6);
  fill: none;
  stroke-linecap: round;
  transition: stroke .3s ease, stroke-width .3s ease;
}
.cfg-support {
  fill: rgba(211, 84, 0, 0.5);
  stroke: none;
  transition: fill .3s ease;
}
.cfg-ground {
  stroke: rgba(211, 84, 0, 0.3);
  stroke-width: 1.2;
  stroke-linecap: round;
  transition: stroke .3s ease;
}

/* Mini-SVG au hover : container plus lumineux, schéma orange vif */
.config-step:hover .step-mini-svg {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.10), rgba(230, 126, 34, 0.05));
  border-color: rgba(211, 84, 0, 0.3);
}
.config-step:hover .cfg-beam {
  stroke: var(--accent);
  stroke-width: 3.2;
}
.config-step:hover .cfg-support { fill: var(--accent); }
.config-step:hover .cfg-ground { stroke: rgba(211, 84, 0, 0.55); }

/* Mini-SVG à l'actif : container saturé + glow + schéma plein orange */
.config-step.active .step-mini-svg {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.18), rgba(230, 126, 34, 0.08));
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 4px 12px -4px rgba(211, 84, 0, 0.4);
}
.config-step.active .cfg-beam {
  stroke: var(--accent);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 4px rgba(255, 140, 66, 0.5));
}
.config-step.active .cfg-support {
  fill: var(--accent);
  filter: drop-shadow(0 1px 2px rgba(211, 84, 0, 0.4));
}
.config-step.active .cfg-ground { stroke: var(--accent); }

/* === STEP BODY (titre) === */
.config-step .step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.config-step .step-title {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  transition: color .3s ease;
}
.config-step:hover .step-title,
.config-step.active .step-title {
  color: var(--accent);
}

/* Description optionnelle */
.config-step .step-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.config-step .config-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.config-step .config-meta span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 2px 7px;
  color: var(--muted);
}

/* === VARIANTE STUDIO (sombre) === */
body[data-variant="studio"] .config-step {
  background: var(--card-solid, #1a2026);
}
body[data-variant="studio"] .config-step:hover .step-num {
  box-shadow: 0 3px 10px rgba(255, 140, 66, 0.5);
}
body[data-variant="studio"] .config-step.active {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.18), rgba(230, 126, 34, 0.08) 50%, transparent);
}
body[data-variant="studio"] .config-step .step-mini-svg {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.06), rgba(255, 140, 66, 0.02));
  border-color: rgba(255, 140, 66, 0.18);
}
body[data-variant="studio"] .config-step.active .step-mini-svg {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.22), rgba(255, 140, 66, 0.08));
}
body[data-variant="studio"] .cfg-beam { stroke: rgba(255, 140, 66, 0.7); }
body[data-variant="studio"] .cfg-support { fill: rgba(255, 140, 66, 0.6); }
body[data-variant="studio"] .cfg-ground { stroke: rgba(255, 140, 66, 0.35); }
body[data-variant="studio"] .config-step:hover .cfg-beam,
body[data-variant="studio"] .config-step.active .cfg-beam { stroke: #ff8c42; }
body[data-variant="studio"] .config-step:hover .cfg-support,
body[data-variant="studio"] .config-step.active .cfg-support { fill: #ff8c42; }

/* === EDITORIAL : sobre, pas de glow === */
body[data-variant="editorial"] .config-step {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}
body[data-variant="editorial"] .config-step.active {
  background: rgba(211, 84, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
body[data-variant="editorial"] .config-step.active .step-mini-svg {
  box-shadow: none;
}
body[data-variant="editorial"] .config-step.active .cfg-beam,
body[data-variant="editorial"] .config-step:hover .cfg-beam {
  filter: none;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .config-step,
  .config-step::before,
  .config-step::after,
  .config-step .step-mini-svg,
  .config-step .step-num,
  .config-step .step-title,
  .cfg-beam, .cfg-support, .cfg-ground {
    transition: none;
  }
  .config-step:hover { transform: none; }
}

/* === VIEWPORT (zone droite, image de la poutre) === */
.configs-viewport {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.config-shot { display: flex; align-items: center; justify-content: center; padding: 0; min-width: 0; max-width: 100%; width: 100%; }
.config-shot[hidden] { display: none; }
.config-shot img { width: 100%; height: auto; display: block; border-radius: 0; background: transparent; cursor: zoom-in; }

/* === BOUTON AGRANDIR — flotte au centre du viewport, orange liquid glass === */
.configs-zoom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  /* Liquid glass orange */
  background:
    linear-gradient(135deg, rgba(255, 200, 150, 0.28), rgba(211, 84, 0, 0.18) 50%, rgba(255, 140, 66, 0.22)),
    rgba(211, 84, 0, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 200, 150, 0.7);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 6px 20px rgba(211, 84, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  /* Pulse subtil pour attirer l'œil */
  animation: configsZoomPulse 2.2s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(.2, .85, .2, 1), box-shadow 0.25s ease;
}
.configs-zoom-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  animation: none;
  box-shadow:
    0 10px 28px rgba(211, 84, 0, 0.65),
    0 0 0 2px rgba(255, 200, 150, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.configs-zoom-btn:active {
  transform: translate(-50%, -50%) scale(0.98);
}
.configs-zoom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  flex-shrink: 0;
}
.configs-zoom-text {
  position: relative;
  z-index: 1;
}
@keyframes configsZoomPulse {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(211, 84, 0, 0.5),
      0 0 0 0 rgba(255, 140, 66, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(211, 84, 0, 0.6),
      0 0 0 14px rgba(255, 140, 66, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

/* Reduced motion : pas de pulse */
@media (prefers-reduced-motion: reduce) {
  .configs-zoom-btn { animation: none; }
}

/* Mobile : un peu plus compact */
@media (max-width: 720px) {
  .configs-zoom-btn {
    padding: 8px 14px 8px 10px;
    font-size: 0.78rem;
  }
  .configs-zoom-icon { width: 24px; height: 24px; }
}
.config-shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 32px;
  border: 2px dashed rgba(211, 84, 0, 0.3);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  width: 100%;
  text-align: center;
}
.config-shot-placeholder .ph-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.config-shot-placeholder .ph-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
body[data-variant="studio"] .config-step {
  background:
    linear-gradient(135deg, rgba(255, 140, 66, 0.14) 0%, rgba(211, 84, 0, 0.06) 45%, rgba(22, 27, 34, 0.55) 100%),
    rgba(22, 27, 34, 0.7);
  border-color: rgba(255, 140, 66, 0.18);
  box-shadow:
    0 6px 18px -10px rgba(255, 140, 66, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 140, 66, 0.08);
}
body[data-variant="studio"] .config-step::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 200, 150, 0.05) 30%, transparent 55%);
  opacity: 0.75;
}
body[data-variant="studio"] .config-step::after {
  background: radial-gradient(120% 80% at 0% 50%, rgba(255, 140, 66, 0.28), transparent 55%);
}
body[data-variant="studio"] .config-step:hover {
  border-color: rgba(255, 140, 66, 0.6);
  box-shadow:
    0 16px 36px -14px rgba(255, 140, 66, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 140, 66, 0.15);
}
body[data-variant="studio"] .config-step.active {
  background:
    linear-gradient(135deg, rgba(255, 140, 66, 0.28), rgba(211, 84, 0, 0.14) 55%, rgba(255, 140, 66, 0.05)),
    rgba(22, 27, 34, 0.75);
  border-color: rgba(255, 140, 66, 0.85);
  box-shadow:
    0 22px 50px -18px rgba(255, 140, 66, 0.55),
    0 0 0 1px rgba(255, 140, 66, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
body[data-variant="studio"] .config-step.active::after {
  background: radial-gradient(140% 90% at 0% 50%, rgba(255, 140, 66, 0.4), transparent 60%);
}
body[data-variant="studio"] .config-step .config-meta span { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
body[data-variant="studio"] .config-shot-placeholder { background: rgba(211, 84, 0, 0.10); }
body[data-variant="editorial"] .config-step,
body[data-variant="editorial"] .configs-viewport {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body[data-variant="editorial"] .config-step::before,
body[data-variant="editorial"] .config-step::after { display: none; }
body[data-variant="editorial"] .config-step:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(211, 84, 0, 0.18);
}
body[data-variant="editorial"] .config-step.active {
  background: rgba(211, 84, 0, 0.06);
  border-color: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(211, 84, 0, 0.22);
}
@media (max-width: 1024px) {
  .configs-layout { grid-template-columns: 1fr; }
  .configs-steps { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .config-step { min-width: 260px; flex-shrink: 0; }
  .configs-viewport { min-height: 320px; }
}


/* === CONFIGS — mini-schémas dans les step cards === */
.config-step .step-mini-svg {
  flex-shrink: 0;
  width: 92px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  padding: 6px 8px;
}
.config-step .step-mini-svg svg { width: 100%; height: 100%; }
.config-step .step-mini-svg .cfg-beam { stroke: var(--accent); }
.config-step .step-mini-svg .cfg-support { fill: var(--primary); }
.config-step .step-mini-svg .cfg-ground { stroke: var(--primary); stroke-width: 2; }
body[data-variant="studio"] .config-step .step-mini-svg {
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.22), rgba(211, 84, 0, 0.08) 70%);
  border: 1px solid rgba(255, 140, 66, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-variant="studio"] .config-step .step-mini-svg .cfg-support,
body[data-variant="studio"] .config-step .step-mini-svg .cfg-ground { fill: #f0f6fc; stroke: #f0f6fc; }


/* === NOUVELLE SECTION EXAMPLES (Neige & Vent) === */
.examples { padding: 80px 24px; max-width: var(--container); margin: 0 auto; }
.examples-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 24px;
  align-items: stretch;
}
.example-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.example-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 50px -18px rgba(211, 84, 0, 0.3), inset 0 1px 0 var(--glass-shine);
}
.example-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(211,84,0,0.08), rgba(230,126,34,0.02));
}
.example-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.example-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: white;
}
.example-shot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(211,84,0,0.06), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(230,126,34,0.05), transparent 55%);
}
.example-shot img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.25);
}
.example-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
body[data-variant="studio"] .example-card { background: rgba(22, 27, 34, 0.55); }
body[data-variant="studio"] .example-head { background: linear-gradient(135deg, rgba(211,84,0,0.18), rgba(22,27,34,0.4)); }
body[data-variant="editorial"] .example-card {
  background: white;
  backdrop-filter: none;
  border-radius: 4px;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (max-width: 1024px) {
  .examples-layout { grid-template-columns: 1fr; }
}


/* Hero tablet screen image */
.scroll-hero-screen { position: relative; overflow: hidden; }
.scroll-hero-app[hidden] { display: none !important; }
.scroll-hero-app-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  z-index: 2;
}


/* === MORPH WORDS (21st.dev liquid text effect) === */
.morph-svg-filters { position: absolute; width: 0; height: 0; }
.morph-words {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  font-size: 0.78em;
  margin-left: 0.35em;
  min-width: 13em;
  height: 1.15em;
  text-align: center;
  filter: url(#morph-threshold) blur(0.6px);
  -webkit-filter: url(#morph-threshold) blur(0.6px);
}
.morph-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 35%, #D35400 70%, #A04000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  will-change: filter, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .morph-words { filter: none; -webkit-filter: none; }
  .morph-word { transition: opacity 0.3s ease; }
}
@media (max-width: 600px) { .morph-words { min-width: 11em; } }


/* === GLOBAL SECTION REVEAL ON SCROLL === */
section[data-reveal] > .section-head > *,
section[data-reveal] > .section-head,
section[data-reveal] > * {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-stagger, 0s);
}
section[data-reveal].is-revealed > .section-head,
section[data-reveal].is-revealed > .section-head > *,
section[data-reveal].is-revealed > * {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  section[data-reveal] > *,
  section[data-reveal] > .section-head > * {
    opacity: 1; filter: none; transform: none; transition: none;
  }
}


/* Hero visual: static screenshot */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.hero-visual-img {
  display: block;
  width: 100%;
  max-width: 1400px;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.35), 0 0 0 1px var(--glass-border);
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-visual-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px -18px rgba(0,0,0,0.45), 0 0 0 1px var(--accent);
}
@media (max-width: 1024px) {
  .hero-visual-img { max-width: 720px; margin: 0 auto; }
}

/* === Theme compare slider (Demo step 07) === */
.theme-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  background: #0b0e13;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.5), 0 0 0 1px var(--glass-border);
}
.theme-compare .tc-before,
.theme-compare .tc-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
}
.theme-compare .tc-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.tc-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255,255,255,0.85);
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 0 18px rgba(255,255,255,0.4);
}
.tc-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* Liquid glass orange : gradient + blur + bordure fine + reflet */
  background:
    linear-gradient(135deg, rgba(255, 200, 150, 0.28), rgba(211, 84, 0, 0.18) 50%, rgba(255, 140, 66, 0.22)),
    rgba(211, 84, 0, 0.85);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 200, 150, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 6px 18px rgba(211, 84, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tc-handle:hover .tc-handle-knob,
.tc-handle.is-dragging .tc-handle-knob {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow:
    0 12px 28px rgba(211, 84, 0, 0.65),
    0 0 0 2px rgba(255, 200, 150, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.tc-label {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.tc-label-l { left: 14px; background: rgba(255,255,255,0.85); color: #1a1d22; }
.tc-label-r { right: 14px; background: rgba(0,0,0,0.6); color: white; }


/* Demo viewport wrapper to allow theme-compare overlay sibling */
.demo-viewport-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.demo-viewport-wrap .demo-viewport,
.demo-viewport-wrap .theme-compare {
  margin: auto 0;
}
.demo-viewport-wrap .demo-viewport[hidden],
.demo-viewport-wrap .theme-compare[hidden] { display: none !important; }


/* === Section cue (Découvrir + arrow at the bottom of each section) === */
.section-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 48px auto 0;
  padding: 8px 14px 10px;
  width: max-content;
  align-self: center;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-md, 10px);
  transition: color .25s ease, transform .25s ease;
  position: relative;
  z-index: 4;
}
.section-cue:hover { color: var(--accent); }
.section-cue svg { animation: section-cue-bounce 2s ease-in-out infinite; }
@keyframes section-cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .section-cue svg { animation: none; } }


/* === FEATURE SPOTLIGHT BADGE (Exclusif) === */
.feature { position: relative; }
.feature-spotlight {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 4px 10px rgba(211, 84, 0, 0.35);
  z-index: 2;
}
body[data-variant="studio"] .feature-spotlight {
  box-shadow: 0 4px 10px rgba(255, 140, 66, 0.45);
}

/* === METHOD SPOTLIGHT (BREKAR exclusive module) === */
.method-spotlight {
  margin-top: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(211,84,0,0.08), rgba(230,126,34,0.04));
  border: 1px solid rgba(211, 84, 0, 0.25);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}
.method-spotlight-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(211, 84, 0, 0.3);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}
.method-spotlight h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.method-spotlight p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.method-spotlight-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
}
.method-spotlight-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.method-spotlight-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.method-spotlight-list strong { color: var(--primary); font-family: var(--font-mono); }
body[data-variant="studio"] .method-spotlight {
  background: linear-gradient(135deg, rgba(255,140,66,0.12), rgba(255,107,26,0.06));
  border-color: rgba(255, 140, 66, 0.3);
}
@media (max-width: 860px) {
  .method-spotlight { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .method-spotlight-list { grid-template-columns: 1fr; }
}


/* === IMAGE LIGHTBOX (configs zoom) === */
.config-shot img { cursor: zoom-in; transition: transform 0.3s ease; }
.config-shot img:hover { transform: scale(1.005); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox:not([hidden]) { opacity: 1; }
.lightbox[hidden] { display: none !important; }
.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: block;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox:not([hidden]) .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }
.lightbox-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  pointer-events: none;
}
body.has-lightbox { overflow: hidden; }


/* Contact form select option dropdown — readable on dark theme */
.contact-form select option,
.contact-form select optgroup {
  background: #1a1d22;
  color: #e8eaed;
  padding: 10px;
}
.contact-form select:focus option:checked,
.contact-form select option:hover {
  background: var(--accent);
  color: #fff;
}


/* === METHODOLOGY ACCORDION (refonte compacte) === */
.method-accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .method-accordion { grid-template-columns: 1fr; gap: 24px; }
}
.method-accordion-col {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  padding: 24px 28px;
}
.method-accordion-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}
.method-accordion-head .method-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.method-accordion-head .method-tag-els {
  background: rgba(31, 119, 180, 0.92);
}
.method-accordion-head-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.method-detail {
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}
.method-detail:last-child { border-bottom: none; }
.method-detail summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s;
}
.method-detail summary::-webkit-details-marker { display: none; }
.method-detail summary:hover { color: var(--accent); }
.method-detail summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
  opacity: 0.55;
}
.method-detail[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  opacity: 0.85;
}
.method-detail-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.method-detail-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.method-detail[open] summary .method-detail-title { color: var(--accent); }

.method-detail-body {
  padding: 0 0 18px;
  animation: methodDetailIn .25s ease;
}
.method-detail-body p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.method-detail-body .method-formula {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(211, 84, 0, 0.08);
  border: 1px solid rgba(211, 84, 0, 0.18);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  white-space: normal;
}
.method-detail-els .method-detail-body .method-formula {
  color: rgba(31, 119, 180, 0.95);
  background: rgba(31, 119, 180, 0.08);
  border-color: rgba(31, 119, 180, 0.18);
}

@keyframes methodDetailIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Editorial variant */
body[data-variant="editorial"] .method-accordion-col {
  background: white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.08);
}


/* === Method spotlight — 2 columns: text + image === */
.method-spotlight-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px) {
  .method-spotlight-body { grid-template-columns: 1fr; gap: 24px; }
}
.method-spotlight-text { min-width: 0; }
.method-spotlight-text p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.method-spotlight-text .method-spotlight-list {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}
.method-spotlight-text .method-spotlight-list li {
  position: relative;
  padding: 4px 0 4px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.method-spotlight-text .method-spotlight-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 600;
  position: absolute;
  left: -18px;
}
.method-spotlight-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method-spotlight-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.4);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.method-spotlight-shot img:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
}
.method-spotlight-shot figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}


/* === Theme-compare handle: clearer affordance === */
.tc-handle-knob {
  /* Pulse orange à l'arrêt pour attirer l'œil */
  animation: tcKnobPulse 2s ease-in-out infinite;
}
.tc-handle:hover .tc-handle-knob,
.tc-handle.is-dragging .tc-handle-knob {
  animation: none;
}
@keyframes tcKnobPulse {
  0%, 100% {
    box-shadow:
      0 6px 18px rgba(211, 84, 0, 0.5),
      0 0 0 0 rgba(255, 140, 66, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 8px 22px rgba(211, 84, 0, 0.6),
      0 0 0 16px rgba(255, 140, 66, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}
.tc-handle-knob svg {
  display: block;
  color: #ffffff;
  width: 28px;
  height: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Pill "Glisser" — liquid glass orange clignotant */
.tc-handle-hint {
  position: absolute;
  top: calc(50% + 38px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Liquid glass orange */
  background:
    linear-gradient(135deg, rgba(255, 200, 150, 0.25), rgba(211, 84, 0, 0.15)),
    rgba(211, 84, 0, 0.88);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 200, 150, 0.7);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 4px 12px rgba(211, 84, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  /* Clignotement subtil pour attirer l'œil */
  animation: tcHintBlink 1.6s ease-in-out infinite;
}
.tc-handle:hover .tc-handle-hint,
.tc-handle.is-dragging .tc-handle-hint {
  opacity: 0;
  animation: none;
  transition: opacity .2s;
}
@keyframes tcHintBlink {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    opacity: 0.55;
    transform: translateX(-50%) translateY(2px) scale(0.97);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tc-handle-knob,
  .tc-handle-hint {
    animation: none;
  }
}


/* === Examples (Neige/Vent) — image clickable for lightbox === */
.example-shot img {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.example-shot img:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.4);
}


/* === Shiny animated text (EC5 Poutre Express title) === */
.shiny-text {
  background: linear-gradient(
    90deg,
    #f6a96b 0%,
    #ffffff 25%,
    #ffd9b8 50%,
    #ffffff 75%,
    #f6a96b 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  animation: shinyTextSlide 6s linear infinite;
  text-shadow: none;
  /* Keep the gradient crisp on dark backgrounds */
  filter: drop-shadow(0 1px 12px rgba(246, 169, 107, 0.18));
}
@keyframes shinyTextSlide {
  0%   { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .shiny-text { animation: none; background-position: 50% 50%; }
}


/* Shiny variant for hero H1 — wraps multiple lines correctly */
.shiny-text-hero {
  display: inline;
}


/* ============================================== */
/* === GLOW BORDER — contour orange rotatif au hover */
/* === Inspiration : 21st.dev animated-gradient-border */
/* === Stack : CSS pur + @property + conic-gradient */
/* ============================================== */

/* Déclaration de la variable angulaire animée
   (Chrome/Edge/Safari ≥ 16.4 / Firefox derrière flag) */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Conteneur — appliquer la classe .glow-border ou utiliser une des cartes ciblées */
.glow-border,
.audience-card,
.feature,
.example-card,
.plan,
.validation-card,
.method-spotlight {
  position: relative;
  isolation: isolate;
}
/* Pseudo-élément ::before qui dessine le ring rotatif au hover */
.glow-border::before,
.audience-card::before,
.feature::before,
.example-card::before,
.plan::before,
.validation-card::before,
.method-spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px; /* épaisseur du ring */
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    rgba(211, 84, 0, 0)    0%,
    rgba(211, 84, 0, 0.15) 8%,
    rgba(230, 126, 34, 0.6) 22%,
    rgba(255, 140, 66, 1)  30%,
    rgba(255, 200, 150, 1) 35%,
    rgba(255, 140, 66, 1)  40%,
    rgba(230, 126, 34, 0.6) 48%,
    rgba(211, 84, 0, 0.15) 62%,
    rgba(211, 84, 0, 0)    72%,
    rgba(211, 84, 0, 0)    100%
  );
  /* Mask pour ne garder que le contour, pas l'intérieur */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Au hover/focus : ring visible + rotation en boucle */
.glow-border:hover::before,
.glow-border:focus-visible::before,
.glow-border.is-active::before,
.audience-card:hover::before,
.feature:hover::before,
.example-card:hover::before,
.plan:hover::before,
.validation-card:hover::before,
.method-spotlight:hover::before {
  opacity: 1;
  animation: glow-border-rotate 4s linear infinite;
}

/* Halo extérieur très doux (drop-shadow orange diffus) */
.glow-border::after,
.audience-card::after,
.feature::after,
.example-card::after,
.plan::after,
.validation-card::after,
.method-spotlight::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 140, 66, 0); /* hidden */
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glow-border:hover::after,
.glow-border:focus-visible::after,
.glow-border.is-active::after,
.audience-card:hover::after,
.feature:hover::after,
.example-card:hover::after,
.plan:hover::after,
.validation-card:hover::after,
.method-spotlight:hover::after {
  opacity: 0.45;
  box-shadow: 0 0 24px 2px rgba(255, 140, 66, 0.55);
}

@keyframes glow-border-rotate {
  to { --glow-angle: 360deg; }
}

/* Variante glass (clair) — orange légèrement plus profond, halo plus discret */
body[data-variant="glass"] .glow-border::before,
body[data-variant="editorial"] .glow-border::before,
body[data-variant="glass"] .audience-card::before,
body[data-variant="glass"] .feature::before,
body[data-variant="glass"] .example-card::before,
body[data-variant="glass"] .plan::before,
body[data-variant="glass"] .validation-card::before,
body[data-variant="glass"] .method-spotlight::before {
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    rgba(211, 84, 0, 0)    0%,
    rgba(211, 84, 0, 0.2)  8%,
    rgba(230, 126, 34, 0.7) 22%,
    rgba(211, 84, 0, 1)    30%,
    rgba(255, 140, 66, 1)  35%,
    rgba(211, 84, 0, 1)    40%,
    rgba(230, 126, 34, 0.7) 48%,
    rgba(211, 84, 0, 0.2)  62%,
    rgba(211, 84, 0, 0)    72%,
    rgba(211, 84, 0, 0)    100%
  );
}
body[data-variant="glass"] .glow-border:hover::after,
body[data-variant="editorial"] .glow-border:hover::after,
body[data-variant="glass"] .audience-card:hover::after,
body[data-variant="glass"] .feature:hover::after,
body[data-variant="glass"] .example-card:hover::after,
body[data-variant="glass"] .plan:hover::after,
body[data-variant="glass"] .validation-card:hover::after,
body[data-variant="glass"] .method-spotlight:hover::after {
  opacity: 0.35;
  box-shadow: 0 0 22px 1px rgba(211, 84, 0, 0.4);
}

/* Editorial : effet désactivé (esprit sobre presse spécialisée) */
body[data-variant="editorial"] .glow-border::before,
body[data-variant="editorial"] .glow-border::after,
body[data-variant="editorial"] .audience-card::before,
body[data-variant="editorial"] .audience-card::after,
body[data-variant="editorial"] .feature::before,
body[data-variant="editorial"] .feature::after,
body[data-variant="editorial"] .example-card::before,
body[data-variant="editorial"] .example-card::after,
body[data-variant="editorial"] .plan::before,
body[data-variant="editorial"] .plan::after,
body[data-variant="editorial"] .validation-card::before,
body[data-variant="editorial"] .validation-card::after,
body[data-variant="editorial"] .method-spotlight::before,
body[data-variant="editorial"] .method-spotlight::after {
  display: none;
}

/* Reduced motion : on garde le ring statique en bordure orange permanente,
   pas de rotation */
@media (prefers-reduced-motion: reduce) {
  .glow-border:hover::before,
  .glow-border:focus-visible::before,
  .glow-border.is-active::before,
  .audience-card:hover::before,
  .feature:hover::before,
  .example-card:hover::before,
  .plan:hover::before,
  .validation-card:hover::before,
  .method-spotlight:hover::before {
    animation: none;
  }
}

/* Fallback navigateurs sans @property (Firefox sans flag) :
   l'opacité du ring s'allume au hover mais sans rotation perceptible.
   Le fallback CSS variable de --glow-angle reste 0deg → ring statique mais visible. */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .glow-border::before,
  .audience-card::before,
  .feature::before,
  .example-card::before,
  .plan::before,
  .validation-card::before,
  .method-spotlight::before {
    background: linear-gradient(135deg, rgba(211,84,0,0.6), rgba(255,140,66,1), rgba(211,84,0,0.6));
  }
}


/* ============================================== */
/* === GLOW BORDER — État ACTIVE (rotation permanente) */
/* ============================================== */

/* Pour les 7 cartes premium : si elles sont .active OU portent .is-active,
   le ring est visible en permanence et tourne (sans avoir besoin de hover) */
.glow-border.is-active::before,
.audience-card.is-active::before,
.feature.is-active::before,
.example-card.is-active::before,
.plan.is-active::before,
.validation-card.is-active::before,
.method-spotlight.is-active::before {
  opacity: 1;
  animation: glow-border-rotate 4s linear infinite;
}
.glow-border.is-active::after,
.audience-card.is-active::after,
.feature.is-active::after,
.example-card.is-active::after,
.plan.is-active::after,
.validation-card.is-active::after,
.method-spotlight.is-active::after {
  opacity: 0.45;
  box-shadow: 0 0 24px 2px rgba(255, 140, 66, 0.55);
}

/* === ÉTAPES DE NAV (.demo-step, .config-step) — approche dédiée === */
/* Ces deux composants ont déjà des ::before/::after occupés par leur effet
   liquid glass orange existant. On ne peut pas y greffer le ring conique
   sans casser leur design. À la place, on leur ajoute un halo orange animé
   via box-shadow sur l'état .active, qui simule l'effet "carte sous courant". */

.demo-step.active {
  animation: glow-step-pulse 2.4s ease-in-out infinite;
}

/* Glow rotatif visuel via outline animé qui tourne au hover */
.demo-step:not(.active):hover {
  /* Le hover existant (translateX, border-color, shadow) reste actif —
     on ajoute juste un léger renforcement orange pour cohérence visuelle */
  box-shadow:
    0 14px 30px -12px rgba(211, 84, 0, 0.45),
    0 0 0 1px rgba(255, 140, 66, 0.35),
    inset 0 1px 0 var(--glass-shine);
}

/* Animation pulse — alternance subtile de l'intensité du halo orange
   et de la bordure pour donner l'impression que la carte "respire" */
@keyframes glow-step-pulse {
  0%, 100% {
    box-shadow:
      0 18px 40px -16px rgba(211, 84, 0, 0.5),
      0 0 0 1px rgba(211, 84, 0, 0.35),
      0 0 12px 0 rgba(255, 140, 66, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 22px 50px -16px rgba(211, 84, 0, 0.65),
      0 0 0 1.5px rgba(255, 140, 66, 0.7),
      0 0 24px 2px rgba(255, 140, 66, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

/* Mode studio (sombre) — orange plus saturé pour ressortir sur le fond */
body[data-variant="studio"] .demo-step.active {
  animation: glow-step-pulse-studio 2.4s ease-in-out infinite;
}
@keyframes glow-step-pulse-studio {
  0%, 100% {
    box-shadow:
      0 18px 40px -16px rgba(255, 140, 66, 0.5),
      0 0 0 1px rgba(255, 140, 66, 0.45),
      0 0 14px 0 rgba(255, 140, 66, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 22px 50px -16px rgba(255, 140, 66, 0.7),
      0 0 0 1.5px rgba(255, 200, 150, 0.85),
      0 0 28px 4px rgba(255, 140, 66, 0.65),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

/* Editorial : pas de pulse (esprit sobre) */
body[data-variant="editorial"] .demo-step.active {
  animation: none;
}

/* Reduced motion : pas de pulse non plus, on garde un état statique fort */
@media (prefers-reduced-motion: reduce) {
  .demo-step.active {
    animation: none;
  }
  .glow-border.is-active::before,
  .audience-card.is-active::before,
  .feature.is-active::before,
  .example-card.is-active::before,
  .plan.is-active::before,
  .validation-card.is-active::before,
  .method-spotlight.is-active::before {
    animation: none;
  }
}

/* ============================================================ */
/* === MENU BURGER MOBILE (audit mobile fix #1) === */
/* ============================================================ */

/* Bouton burger : caché par défaut (desktop) */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.85,.2,1), opacity .2s ease;
}
.nav-burger:hover {
  background: var(--glass-bg-strong);
  border-color: var(--accent);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile overlay : caché par défaut */
.nav-mobile-menu {
  display: none;
}
.nav-mobile-menu[hidden] { display: none !important; }

/* Affichage mobile uniquement */
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  /* On masque les CTA desktop pour gagner de la place */
  .nav-cta { display: none; }

  .nav-mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    padding: 16px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 999;
    animation: navMenuSlide .25s cubic-bezier(.2,.85,.2,1);
  }
  .nav-mobile-menu a {
    padding: 14px 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-md);
    -webkit-tap-highlight-color: rgba(211,84,0,0.1);
    transition: background .2s ease;
  }
  .nav-mobile-menu a:hover,
  .nav-mobile-menu a:active {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .nav-mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}
@keyframes navMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span,
  .nav-mobile-menu:not([hidden]) {
    animation: none;
    transition: none;
  }
}

/* ============================================================ */
/* === FIX iOS — anti-zoom auto sur focus input (mobile fix #2) === */
/* ============================================================ */
@media (max-width: 720px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px; /* iOS ne zoome pas si >= 16px */
  }
}

/* ============================================================ */
/* === FIX iOS — safe area notch iPhone X+ (mobile fix #3) === */
/* ============================================================ */
.nav {
  padding-top: env(safe-area-inset-top, 0);
}
.tweaks {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ============================================================ */
/* === FIX Android — pas de flash bleu sur tap (mobile fix #4) === */
/* ============================================================ */
a, button, .btn, summary, [role="button"] {
  -webkit-tap-highlight-color: rgba(211, 84, 0, 0.15);
}

/* ============================================================ */
/* === FIX MOBILE — cartes demo/configs en stack vertical === */
/* (Correctif : à 1024px elles passent en row+scroll-x, mais  */
/*  sur mobile <720px on veut qu'elles s'empilent proprement) */
/* ============================================================ */
@media (max-width: 720px) {
  /* Demo steps : Mode Sombre/Clair, Cheminement, Réglages, etc. */
  .demo-steps {
    flex-direction: column !important;
    overflow-x: visible !important;
    padding-bottom: 0;
    gap: 10px;
  }
  .demo-step {
    min-width: 0 !important;
    width: 100%;
    flex-shrink: 1;
  }

  /* Configs steps : Poutre 2 appuis, 3 appuis, 4 appuis, etc. */
  .configs-steps {
    flex-direction: column !important;
    overflow-x: visible !important;
    padding-bottom: 0;
    gap: 10px;
  }
  .config-step {
    min-width: 0 !important;
    width: 100%;
    flex-shrink: 1;
  }
}

/* ============================================================ */
/* === FIX MOBILE — Tablette hero plus grande sur iPhone === */
/* (Au lieu de 65.6vw, on force ~88vw pour mieux remplir l'écran) */
/* ============================================================ */
@media (max-width: 720px) {
  .scroll-hero-card {
    width: min(857px, 95vw) !important;
    height: min(50vh, 460px) !important;
  }
}

/* ============================================================ */
/* === FIX MOBILE — Carrousel features moins rapide === */
/* (80s sur desktop OK, mais 80s avec petites cartes = visuellement trop rapide) */
/* ============================================================ */
@media (max-width: 720px) {
  .feature-track {
    animation-duration: 140s !important;
  }
}

/* ============================================================ */
/* === FIX — Centrage fiable de tous les "Découvrir" === */
/* (override pour neutraliser tout parent flex/grid qui */
/*  pourrait perturber le margin: auto) */
/* ============================================================ */
.scroll-cue,
.section-cue {
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  justify-self: center !important;
}

/* ============================================================ */
/* === ZOOM MOBILE 90% — test de réduction globale === */
/* (Réduction proportionnelle de tous les rem sur mobile) */
/* ============================================================ */
@media (max-width: 720px) {
  html {
    font-size: 90%; /* 16px → 14.4px : tout le rem se réduit de 10% */
  }
}

/* ============================================================ */
/* === FIX MOBILE — Annuler scroll-hero sticky pour iPhone === */
/* (Sur mobile, le sticky cause un vide énorme sous la tablette */
/*  car .scroll-hero-inner fait 100vh. On désactive le sticky    */
/*  pour que la tablette suive le scroll naturellement.)         */
/* ============================================================ */
@media (max-width: 768px) {
  .scroll-hero {
    height: auto !important;
  }
  .scroll-hero-inner {
    position: relative !important;
    height: auto !important;
    padding: 40px 16px 20px !important;
  }
  /* Le hero suit immédiatement, pas de margin négatif */
  .hero {
    margin-top: 0 !important;
  }
  /* Tablette : statique sur mobile (pas d'animation rotation 3D) */
  .scroll-hero-card {
    transform: none !important;
    width: min(857px, 95vw) !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 24px auto 0 !important;
  }
  /* Le header reste lisible */
  .scroll-hero-header {
    transform: none !important;
  }
}
