/* =========================================================
   Chateq : Direction C « Édito Néon » (néon sur encre)
   Space Grotesk (display) + Inter (corps), thème sombre par défaut.
   ========================================================= */
:root,
[data-theme="dark"] {
  --ink: #0E0E12;
  --bg: #0E0E12;
  --surface: #17171F;
  --surface-2: #1E1E28;
  --border: #2A2A36;
  --text: #F2F2F5;
  --text-2: #9A9AA8;

  --yellow: #F4D03F;
  --coral: #FF5470;
  --mint: #2DE1A6;
  --violet: #6C5CE7;
  --focus: #8B7CF0;

  /* texte posé sur un aplat d'accent (AA) */
  --on-yellow: #0E0E12;
  --on-coral: #F2F2F5;
  --on-mint: #0E0E12;

  /* accent par défaut (surchargé par section via [data-accent]) */
  --accent: var(--coral);
  --on-accent: var(--on-coral);
  --accent-2: var(--yellow);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --ink: #0E0E12;
  --bg: #FBFBF7;
  --surface: #FFFFFF;
  --surface-2: #F4F4EE;
  --border: #E4E4DC;
  --text: #0E0E12;
  --text-2: #54545F;

  --yellow: #C9A406;
  --coral: #E0285A;
  --mint: #0E9E72;
  --violet: #5A47C2;
  --focus: #5A47C2;

  --on-yellow: #0E0E12;
  --on-coral: #FFFFFF;
  --on-mint: #FFFFFF;

  --accent: var(--coral);
  --on-accent: var(--on-coral);
  --accent-2: var(--yellow);

  --shadow: 0 10px 30px rgba(14, 14, 18, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 14, 18, 0.14);
}

/* ---- Accent dominant par section (rythme magazine) ---- */
[data-accent="coral"]  { --accent: var(--coral);  --on-accent: var(--on-coral);  --accent-2: var(--yellow); }
[data-accent="yellow"] { --accent: var(--yellow); --on-accent: var(--on-yellow); --accent-2: var(--coral); }
[data-accent="mint"]   { --accent: var(--mint);   --on-accent: var(--on-mint);   --accent-2: var(--yellow); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.05; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--coral); color: var(--on-coral);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Anti-FOUC de langue : masque le corps tant que l'EN n'est pas appliqué (filet de sécurité 1200ms côté JS) */
html[data-i18n-pending] body { visibility: hidden; }

/* détails éditoriaux (sur-titres, numéros, labels) */
.eyebrow {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8125rem;
  color: var(--text-2); margin: 0 0 14px;
}
.eyebrow--accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary {
  background: var(--coral); color: var(--on-coral);
  box-shadow: 0 0 0 transparent, 0 14px 40px -10px color-mix(in srgb, var(--coral) 70%, transparent);
}
.btn--primary:hover {
  background: var(--yellow); color: var(--on-yellow);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 34px color-mix(in srgb, var(--yellow) 55%, transparent), 0 16px 44px -10px color-mix(in srgb, var(--yellow) 60%, transparent);
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
/* reflet glissant */
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 150%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), height .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--violet); }
.logo__text { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--text); letter-spacing: -0.03em; }
.nav { display: flex; gap: 24px; }
.nav a { position: relative; color: var(--text-2); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.theme-toggle:hover { transform: rotate(12deg); border-color: var(--violet); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
/* Bascule de langue FR / EN (néon sur encre) */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 1px;
  height: 42px; padding: 0 5px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--violet); }
.lang-toggle__btn {
  appearance: none; -webkit-appearance: none; border: 0; background: none; cursor: pointer;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em;
  color: var(--text-2); padding: 7px 10px; line-height: 1;
  border-radius: var(--radius-pill);
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-toggle__btn:hover { color: var(--accent); }
.lang-toggle__btn.is-active {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.lang-toggle__sep { width: 1px; height: 16px; background: var(--border); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: .25s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 72px; position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(46% 50% at 76% 18%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%),
    radial-gradient(40% 46% at 60% 78%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 72%),
    radial-gradient(40% 44% at 12% 24%, color-mix(in srgb, var(--coral) 16%, transparent), transparent 72%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(3rem, 9vw, 7rem); font-weight: 700; margin-bottom: 22px;
  background: linear-gradient(100deg, var(--text) 0%, var(--coral) 46%, var(--yellow) 70%, var(--text) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-pan 10s ease-in-out infinite;
}
.hero__sub { font-size: 1.18rem; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__reassure { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 26px 0 0; color: var(--text-2); font-size: 0.92rem; }
.hero__reassure li { display: inline-flex; align-items: center; gap: 8px; }
.hero__reassure li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero__visual { position: relative; }
.visual-frame {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 70px color-mix(in srgb, var(--violet) 38%, transparent), 0 0 90px color-mix(in srgb, var(--mint) 18%, transparent), var(--shadow-lg);
}
.visual-frame img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section--alt { background: var(--surface); }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; position: relative; }
.section__num {
  display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
  margin-bottom: 6px;
}
.section__title { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0; }
.section__lead { color: var(--text-2); font-size: 1.12rem; margin-top: 16px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
}
.section--alt .card { background: var(--surface-2); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--accent); opacity: 0; transform: scaleX(.4); transform-origin: left; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card:hover::before { opacity: 1; transform: scaleX(1); }
/* halo néon */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 30px 70px -24px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 1px transparent;
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover::after { opacity: 1; }
.card__num { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 18px; transition: box-shadow .3s var(--ease); }
.card:hover .card__icon { box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); }
.card__title { font-size: 1.4rem; margin-bottom: 12px; }
.card__text { color: var(--text-2); }
.card__tag { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.card__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-weight: 600; font-family: "Space Grotesk", sans-serif; color: var(--accent); font-size: 0.95rem; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card--pillar { padding: 36px; }
.card--pillar .card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* valeurs (triptyque) */
.values-grid { margin-top: 22px; }
.value { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.section--alt .value { background: var(--surface); }
.value__title { font-size: 1.25rem; margin-bottom: 8px; color: var(--accent); }
.value__text { color: var(--text-2); }

.values { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding: 0; margin: 38px 0 0; }
.values li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-family: "Space Grotesk", sans-serif; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Prix ---------- */
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); position: relative; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.price:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 26px 60px -24px color-mix(in srgb, var(--accent) 50%, transparent); }
.price h3 { font-size: 1.2rem; margin-bottom: 12px; }
.price__text { color: var(--text-2); font-size: 0.98rem; }
.price__note { margin-top: 16px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.note { text-align: center; color: var(--text-2); font-size: 0.92rem; margin-top: 16px; }

.promise { max-width: 760px; margin: 48px auto 0; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: 0 0 50px -22px color-mix(in srgb, var(--accent) 60%, transparent); }
.promise__title { font-size: 1.4rem; margin-bottom: 18px; }
.promise__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise__list li { position: relative; padding-left: 32px; }
.promise__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ---------- Estimateur ---------- */
.estimator { max-width: 780px; margin: 48px auto 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.estimator__title { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.estimator__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.estimator__options { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.estimator__options legend { padding: 0 8px; font-weight: 600; font-size: 0.85rem; color: var(--text-2); font-family: "Space Grotesk", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.estimator__options label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.estimator__result {
  text-align: center; padding: 24px; border-radius: var(--radius); margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.estimator__label { display: block; font-size: 0.82rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.14em; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.estimator__amount {
  display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent); margin-top: 8px;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent);
}
.estimator .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; font-family: "Space Grotesk", sans-serif; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
.estimator .field input, .estimator .field select { background: var(--bg); }
input[type="range"] { accent-color: var(--accent); padding: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 660px; margin: 0 auto; }
.field--full, .form .btn, .form__status { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.form__status { font-weight: 600; color: var(--mint); min-height: 1.2em; }

/* ---------- Banner ---------- */
.banner { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border)); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 36px; color: var(--text); }
.banner strong { color: var(--accent); }

/* ---------- Démo (layout image + cartes) ---------- */
.demo__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; }
.demo__visual { margin: 0; }
.demo__visual img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 0 60px color-mix(in srgb, var(--coral) 40%, transparent), var(--shadow-lg); }
.demo__visual figcaption { margin-top: 14px; text-align: center; font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.demo__cards { display: grid; gap: 22px; }

/* playground de thème (sélecteur d'accent) */
.playground { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.playground__label { font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.playground__swatches { display: flex; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.swatch--yellow { background: var(--yellow); }
.swatch--coral { background: var(--coral); }
.swatch--mint { background: var(--mint); }
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px currentColor; }
.swatch--yellow.is-active { color: var(--yellow); }
.swatch--coral.is-active { color: var(--coral); }
.swatch--mint.is-active { color: var(--mint); }

/* prototype d'app mobile */
.phone { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone__screen { width: 150px; height: 280px; border-radius: 26px; border: 2px solid var(--border); background: var(--bg); padding: 14px; overflow: hidden; position: relative; box-shadow: 0 0 30px -10px color-mix(in srgb, var(--accent) 50%, transparent); }
.phone__slides { display: flex; width: 300%; height: 100%; transition: transform .4s var(--ease); }
.phone__slide { width: 33.3333%; height: 100%; display: flex; flex-direction: column; gap: 9px; padding: 0 2px; }
.phone__bar { height: 22px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); }
.phone__line { height: 9px; border-radius: 6px; background: var(--surface-2); }
.phone__line--sm { width: 60%; }
.phone__block { flex: 1; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
.phone__block--big { min-height: 110px; }
.phone__row { height: 38px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--accent); }
.phone__dots { display: flex; gap: 8px; }
.phone__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.phone__dot.is-active { background: var(--accent); transform: scale(1.25); box-shadow: 0 0 10px var(--accent); }

/* ---------- Process (stepper) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.section--alt .step { background: var(--surface-2); }
.step.is-visible { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 0 40px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: "Space Grotesk", sans-serif; font-weight: 700; margin-bottom: 16px; box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 55%, transparent); }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Tags ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 0 0 32px; }
.tags li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 10px 20px; font-family: "Space Grotesk", sans-serif; font-weight: 600; transition: border-color .2s var(--ease), color .2s var(--ease); }
.section--alt .tags li { background: var(--surface); }
.tags li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s var(--ease); }
.section--alt .faq__item { background: var(--surface-2); }
.faq__item:has(.faq__q[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 24px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq__sign { position: relative; width: 18px; height: 18px; flex: none; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.faq__sign::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__sign::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding: 0 24px 22px; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 36px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer__brand .logo__text { font-size: 1.4rem; }
.footer__brand p { color: var(--text-2); margin-top: 8px; }
.footer__pledge { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--text); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; max-width: 360px; }
.footer__nav a { color: var(--text-2); font-weight: 500; }
.footer__nav a:hover { color: var(--coral); }
.footer__social { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.footer__social a { color: var(--text-2); font-weight: 600; font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; }
.footer__social a:hover { color: var(--violet); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal, .steps .reveal, .faq .reveal, .demo__cards .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Curseur custom (desktop pointeur fin uniquement) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
  .cursor__ring { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #fff; transform: translate(-50%, -50%); transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease); }
  .cursor.is-hover .cursor__ring { width: 56px; height: 56px; background: rgba(255,255,255,.12); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Barre de progression de défilement ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint));
  box-shadow: 0 0 14px color-mix(in srgb, var(--coral) 70%, transparent);
}

/* Keyframes */
@keyframes gradient-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }
.dot { animation: pulse 2.8s ease-in-out infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 0 0 0 0; flex-direction: column; gap: 0; justify-content: center; align-items: center;
    background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(16px);
    padding: 24px; transform: translateX(100%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 16px 0; font-size: 1.4rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .demo__layout { grid-template-columns: 1fr; gap: 28px; }
  .demo__visual { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4, .steps, .estimator__grid, .estimator__options, .form { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 44px; }
  .values-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PREMIUM V2 : couleur + profondeur au repos, vie ambiante,
   rythme editorial. (Le hero promettait, le corps suit.)
   ========================================================= */

/* Hero : les halos respirent et derivent */
.hero__glow { animation: heroDrift 16s ease-in-out infinite; }
@keyframes heroDrift { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-2.5%, 2%, 0) scale(1.07); } }
/* visuel hero + visuel demo : legere flottaison */
.visual-frame { animation: floaty 7s ease-in-out infinite; }
.demo__visual img { animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Chaque section porte SA couleur au repos : grand halo d'accent confine + separateur neon */
.section { isolation: isolate; overflow: hidden; }
.section > .container { position: relative; z-index: 2; }
.section::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(70vw, 820px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 64%);
  filter: blur(28px); opacity: .5; top: -14%; right: -14%;
  animation: glowPulse 10s ease-in-out infinite;
}
.section:nth-of-type(even)::before { right: auto; left: -14%; top: auto; bottom: -14%; }
.section::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3;
  width: min(92%, var(--maxw)); height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 75%, transparent), transparent);
  opacity: .55;
}
@keyframes glowPulse { 0%, 100% { opacity: .38; transform: scale(1); } 50% { opacity: .62; transform: scale(1.12); } }

/* Numero de section : grand filigrane editorial en accent (derriere le titre) */
.section__head { position: relative; z-index: 1; }
.section__num {
  position: absolute; left: 50%; top: -0.62em; transform: translateX(-50%); z-index: -1;
  font-size: clamp(6rem, 15vw, 13rem); line-height: .8; letter-spacing: -0.05em;
  -webkit-text-stroke: 0; color: color-mix(in srgb, var(--accent) 15%, transparent);
  text-shadow: 0 0 70px color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none; margin: 0;
}

/* Cartes : presence de l'accent au repos (filet haut + lavis + profondeur) */
.card::before { opacity: .6; transform: scaleX(1); }
.card:hover::before { opacity: 1; }
.card { background-color: var(--surface); background-image: linear-gradient(158deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%); }
.section--alt .card { background-color: var(--surface-2); background-image: linear-gradient(158deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%); }
.price, .value, .step { background-image: linear-gradient(158deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 48%); }

/* Prix : prix de depart en gros, lisible (au lieu d'un simple paragraphe) */
.price h3 { color: var(--accent); }

/* Stepper : ligne de connexion neon entre les etapes */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; top: 48px; left: 8%; right: 8%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
}
.step { z-index: 1; }

/* Tags : ruban qui defile doucement (touche editoriale) */
.tags { animation: none; }
.tags li { animation: tagFloat 6s ease-in-out infinite; }
.tags li:nth-child(2n) { animation-delay: .8s; }
.tags li:nth-child(3n) { animation-delay: 1.4s; }
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title { color: var(--text); -webkit-text-fill-color: var(--text); }
  .cursor { display: none !important; }
  .phone__slides { transition: none !important; }
}
