/* ==========================================================
   Fiducia IA — Design System
   Charte : logo noir / cerveau bleu électrique / cyan
   Typo : Space Grotesk (titres) + DM Sans (texte)
   ========================================================== */

:root {
  --bg: #05070d;
  --bg-soft: #0a0f1c;
  --bg-card: #0d1424;
  --border: rgba(56, 152, 255, 0.16);
  --border-strong: rgba(56, 152, 255, 0.35);
  --blue: #2e8fff;
  --cyan: #37c8ff;
  --glow: rgba(46, 143, 255, 0.45);
  --text: #eaf1fb;
  --text-muted: #a8b6cc;
  --gradient: linear-gradient(100deg, #2e8fff 0%, #37c8ff 100%);
  --radius: 16px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --z-nav: 50;
  --z-overlay: 30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-muted); max-width: 68ch; }

a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Texte dégradé + reflet lumineux qui balaye (Animated Shiny Text) */
.grad-text {
  background-image: linear-gradient(100deg,
    #2e8fff 0%, #37c8ff 38%, #c9ecff 50%, #37c8ff 62%, #2e8fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
  filter: drop-shadow(0 0 22px rgba(46, 143, 255, 0.45));
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* H1 : dégradé animé sur tout le titre (Animated Gradient Text) */
.h1-grad {
  background-image: linear-gradient(100deg,
    #eaf1fb 0%, #2e8fff 22%, #37c8ff 42%, #c9ecff 52%, #37c8ff 62%, #2e8fff 80%, #eaf1fb 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: h1-flow 7s linear infinite;
  filter: drop-shadow(0 0 26px rgba(46, 143, 255, 0.35));
}
@keyframes h1-flow { to { background-position: -300% 0; } }
.h1-grad .grad-text {
  background: none; color: inherit; animation: none; filter: none;
  -webkit-background-clip: border-box; background-clip: border-box;
}
.h1-grad .typed-cursor { background: var(--cyan); }

/* Apparition des H1 mot à mot (flou + montée) */
.w {
  display: inline-block;
  opacity: 0; transform: translateY(0.55em); filter: blur(8px);
  animation: word-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d) * 70ms);
}
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: var(--z-nav);
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.nav__logo img { height: 58px; width: auto; display: block; }
.nav__links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav__links a {
  color: var(--text-muted); font-size: 0.92rem; font-weight: 500;
  white-space: nowrap; transition: color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__burger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: box-shadow 0.25s, background-color 0.25s, border-color 0.25s;
  border: none;
}
.btn--primary {
  background: var(--gradient); color: #04101f;
  box-shadow: 0 0 24px var(--glow);
  position: relative; overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn--primary:hover { box-shadow: 0 0 44px var(--glow); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(55, 200, 255, 0.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
#neural-canvas, #shader-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.85;
}
#shader-canvas { opacity: 0.85; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 70% 30%, transparent 0%, var(--bg) 78%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(46, 143, 255, 0.08);
  color: var(--cyan); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 26px;
}
.hero__eyebrow { position: relative; }
.hero__eyebrow::before {
  content: ""; position: absolute; inset: -1px; border-radius: 999px;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--bb-angle),
    transparent 0% 60%, rgba(46, 143, 255, 0.9) 78%, rgba(201, 236, 255, 1) 88%, transparent 100%);
  -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;
  animation: bb-spin 4s linear infinite;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 { max-width: 17ch; margin-bottom: 22px; }
.hero__sub { font-size: 1.15rem; margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 0.88rem; color: var(--text-muted); }

/* Ligne de "frappe" IA */
.typed-line { min-height: 1.6em; display: block; }
.typed-cursor {
  display: inline-block; width: 2px; height: 1em; background: var(--cyan);
  vertical-align: -0.12em; margin-left: 3px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Hero de page intérieure ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 170px 0 80px;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(46, 143, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 15% 100%, rgba(55, 200, 255, 0.08), transparent 50%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero #neural-canvas { z-index: 0; opacity: 0.5; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 22ch; margin-bottom: 20px; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero .hero__sub { font-size: 1.12rem; margin-bottom: 32px; }
.breadcrumb {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 26px;
  list-style: none;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ---------- Visuel de page ---------- */
.page-visual { margin: 8px 0 40px; }
.page-visual img {
  display: block; width: 100%; height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 60px rgba(46, 143, 255, 0.18);
}
.page-visual figcaption {
  margin-top: 12px; text-align: center;
  font-size: 0.85rem; color: var(--text-muted); opacity: 0.85;
}

/* ---------- Bloc contenu éditorial ---------- */
.prose h2 { margin: 56px 0 18px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.check-list { list-style: none; margin-left: 0 !important; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--cyan); border-radius: 50%;
  background: radial-gradient(circle at center, rgba(55,200,255,0.35), transparent 70%);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-soft); }
.section__head { margin-bottom: 52px; }
.section__head .kicker {
  color: var(--cyan); font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; display: block; margin-bottom: 12px;
}
.section__head p { margin-top: 14px; }

/* ---------- Grille offres ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  cursor: pointer;
}
.offer:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 40px rgba(46, 143, 255, 0.14);
  background: #101a2f;
}
/* Spotlight qui suit le curseur (Magic Card) */
.offer::before, .step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(55, 200, 255, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.offer:hover::before, .step:hover::after { opacity: 1; }
.offer > *, .step > * { position: relative; z-index: 1; }

/* Bordure lumineuse rotative (Border Beam) */
@property --bb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.offer--featured::after, .gain-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--bb-angle),
    transparent 0% 72%, rgba(46, 143, 255, 0.9) 84%, rgba(55, 200, 255, 1) 90%, transparent 100%);
  -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;
  animation: bb-spin 7s linear infinite;
}
@keyframes bb-spin { to { --bb-angle: 360deg; } }
.gain-panel { position: relative; }
.gain-panel > * { position: relative; z-index: 1; }
.offer--featured {
  grid-column: span 3;
  flex-direction: row; align-items: center; gap: 36px;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(46, 143, 255, 0.14), transparent 55%),
    var(--bg-card);
  border-color: var(--border-strong);
}
.offer--featured .offer__body { flex: 1; }
.offer--featured h3 { font-size: 1.6rem; }
.offer__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(46, 143, 255, 0.1); color: var(--cyan);
}
.offer__icon svg { width: 24px; height: 24px; }
.offer__tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #04101f;
  background: var(--gradient); padding: 4px 10px; border-radius: 999px;
}
.offer p { font-size: 0.96rem; }
.offer__link {
  margin-top: auto; font-family: var(--font-head); font-weight: 600;
  font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px;
}
.offer__link::after { content: "→"; transition: transform 0.2s; }
.offer:hover .offer__link::after { transform: translateX(4px); }

/* ---------- Chiffres / urgence ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact {
  border-left: 2px solid var(--blue);
  padding: 8px 0 8px 24px;
}
.fact strong {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  display: block; color: var(--text);
}
.fact span { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 2.6rem;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.9; display: block; margin-bottom: 10px;
}
.step p { font-size: 0.96rem; margin-top: 8px; }

/* ---------- Panneau gains (graphe heures gagnées) ---------- */
.gain-panel {
  border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 34px 30px;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(46, 143, 255, 0.12), transparent 60%),
    var(--bg-card);
}
.gain-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.gain-head h3 { font-size: 1.15rem; }
.gain-tabs { display: flex; gap: 6px; }
.gain-tab {
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-muted); font-family: var(--font-head); font-weight: 600; font-size: 0.88rem;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.gain-tab:hover { color: var(--text); }
.gain-tab.is-active {
  background: var(--gradient); color: #04101f;
  box-shadow: 0 0 16px var(--glow); border-color: transparent;
}
.gain-chart { position: relative; }
.gain-chart svg { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: pan-y; }
.gain-tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(10, 18, 34, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(46, 143, 255, 0.18);
  white-space: nowrap;
}
.gain-tooltip span {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan);
}
.gain-tooltip strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--text); }
.gain-tooltip em { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }
.gain-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 26px;
}
.gain-stat {
  border-left: 2px solid var(--blue); padding-left: 18px;
}
.gain-stat strong {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; display: block;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gain-stat span { color: var(--text-muted); font-size: 0.88rem; }
.gain-note { margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); opacity: 0.85; }
@media (max-width: 640px) {
  .gain-stats { grid-template-columns: 1fr; }
  .gain-panel { padding: 24px 18px; }
}

/* ---------- Chiffres réels IA : bandeau + donuts ---------- */
.proof-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 28px 0 8px;
}
.proof {
  text-align: center; padding: 22px 14px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.proof:hover { border-color: var(--border-strong); box-shadow: 0 0 24px rgba(46, 143, 255, 0.12); }
.proof strong {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; display: block;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof span { color: var(--text-muted); font-size: 0.85rem; display: block; margin-top: 6px; }

.donut-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px;
}
.donut {
  position: relative; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 28px 20px 22px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.donut:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 44px rgba(46, 143, 255, 0.16);
}
.donut-ring { position: relative; width: 128px; height: 128px; margin: 0 auto 16px; }
.donut-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-ring .ring-bg { fill: none; stroke: rgba(56, 152, 255, 0.12); stroke-width: 10; }
.donut-ring .ring-arc {
  fill: none; stroke-width: 10; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(46, 143, 255, 0.5));
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.donut-val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--text);
}
.donut h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.donut p { font-size: 0.86rem; margin: 0 auto 12px; }
.donut-meta { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.badge--mesure { color: var(--cyan); border: 1px solid var(--border-strong); background: rgba(55, 200, 255, 0.08); }
.badge--declare { color: var(--text-muted); border: 1px solid rgba(168, 182, 204, 0.35); }
.donut-meta .src { font-size: 0.78rem; color: var(--text-muted); opacity: 0.85; }
@media (max-width: 900px) {
  .proof-band { grid-template-columns: 1fr 1fr; }
  .donut-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .donut-grid { grid-template-columns: 1fr; }
}

/* ---------- Bloc fondateur (à propos) ---------- */
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
  margin: 8px 0 12px;
}
.founder__photo {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 50px rgba(46, 143, 255, 0.22);
}
.founder__photo img { display: block; width: 100%; height: auto; }
.founder__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(5, 7, 13, 0.55));
  pointer-events: none;
}
.founder__name {
  position: absolute; left: 16px; bottom: 12px; z-index: 1;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.founder__name small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--cyan); }
@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 320px; }
}

/* ---------- Simulateur agents IA ---------- */
.sim-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.sim-field { margin-bottom: 26px; }
.sim-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  margin-bottom: 10px; color: var(--text);
}
.sim-field output {
  font-size: 1.05rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sim-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 7px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, #2e8fff, #37c8ff var(--pct, 50%), rgba(56, 152, 255, 0.14) var(--pct, 50%));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  outline: none; margin: 10px 0;
}
.sim-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfeaff 60%);
  border: 3px solid #37c8ff;
  box-shadow: 0 0 16px rgba(55, 200, 255, 0.85), 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: grab; transition: transform 0.15s, box-shadow 0.15s;
}
.sim-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); box-shadow: 0 0 26px rgba(55, 200, 255, 1); }
.sim-field input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.sim-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #eaf1fb; border: 3px solid #37c8ff;
  box-shadow: 0 0 16px rgba(55, 200, 255, 0.85);
  cursor: grab;
}
.sim-field input[type="range"]::-moz-range-track {
  height: 7px; border-radius: 999px; background: rgba(56, 152, 255, 0.14);
}
.sim-field input[type="range"]::-moz-range-progress {
  height: 7px; border-radius: 999px; background: linear-gradient(90deg, #2e8fff, #37c8ff);
}
.sim-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.sim-res {
  position: relative; overflow: hidden;
  text-align: center; padding: 18px 10px;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: rgba(46, 143, 255, 0.06);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.sim-res::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(190, 230, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-130%); pointer-events: none;
}
.sim-res.pop { animation: res-pop 0.5s ease; }
.sim-res.pop::after { animation: res-shine 0.7s ease; }
@keyframes res-pop {
  35% { transform: scale(1.05); border-color: var(--cyan); box-shadow: 0 0 32px rgba(55, 200, 255, 0.35); }
}
@keyframes res-shine { to { transform: translateX(130%); } }
.sim-res strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(46, 143, 255, 0.35));
}
.sim-res span { font-size: 0.8rem; color: var(--text-muted); }
.day-bars { display: flex; flex-direction: column; gap: 18px; }
.day-bar h5 {
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 8px;
}
.day-track {
  display: flex; height: 42px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.day-seg {
  display: grid; place-items: center; overflow: hidden;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}
.day-seg--work { background: rgba(46, 143, 255, 0.14); color: var(--text-muted); }
.day-seg--rep {
  background: repeating-linear-gradient(45deg, rgba(255, 120, 120, 0.22) 0 8px, rgba(255, 120, 120, 0.12) 8px 16px);
  color: #ffb3b3;
}
.day-seg--free {
  background: var(--gradient); color: #04101f;
  box-shadow: 0 0 22px var(--glow);
  animation: free-pulse 2.4s ease-in-out infinite;
}
@keyframes free-pulse { 50% { box-shadow: 0 0 36px var(--glow); } }
.sim-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 0.8rem; color: var(--text-muted); }
.sim-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 900px) {
  .sim-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Cartes de résultats empilées : le chiffre et son libellé sur une ligne lisible */
  .sim-results { grid-template-columns: 1fr; gap: 10px; }
  .sim-res {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; text-align: left; padding: 14px 16px;
  }
  .sim-res strong { font-size: 1.45rem; white-space: nowrap; }
  .sim-res span { text-align: right; }
  .day-seg { font-size: 0.68rem; }
}

/* ---------- Témoignage ---------- */
.quote {
  max-width: 780px; margin: 0 auto; text-align: center;
}
.quote blockquote {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500; color: var(--text); line-height: 1.45;
}
.quote figcaption { margin-top: 20px; color: var(--text-muted); font-size: 0.95rem; }
.quote .stars { color: var(--cyan); letter-spacing: 4px; margin-bottom: 18px; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); margin-bottom: 12px;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 20px 24px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--cyan); transition: transform 0.25s; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 24px 22px; }
.faq .faq__body p { font-size: 0.97rem; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; padding: 110px 24px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(46, 143, 255, 0.16), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cta-final h2 { max-width: 22ch; margin: 0 auto 18px; }
.cta-final p { margin: 0 auto 36px; }

/* ---------- Footer (carte à halo dégradé) ---------- */
.footer { padding: 48px 0 36px; background: var(--bg); }
.footer-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 52px 48px;
  background:
    radial-gradient(ellipse 60% 80% at 12% 0%, rgba(46, 143, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 100%, rgba(55, 200, 255, 0.14), transparent 55%),
    var(--bg-card);
  box-shadow: 0 0 60px rgba(46, 143, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
.footer h4 {
  font-size: 0.8rem; margin-bottom: 18px; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; color: var(--text-muted); font-size: 0.94rem; }
.footer a { color: var(--text-muted); font-size: 0.94rem; transition: color 0.2s; }
.footer a:hover { color: var(--cyan); }
.footer__logo img { height: 44px; width: auto; margin-bottom: 16px; }
.footer__contacts { display: flex; gap: 12px; margin-top: 22px; }
.footer__contacts a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(46, 143, 255, 0.08); color: var(--cyan);
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.footer__contacts a:hover {
  background: rgba(55, 200, 255, 0.18);
  box-shadow: 0 0 18px var(--glow); color: var(--text);
}
.footer__contacts svg { width: 19px; height: 19px; }
.footer__legal {
  padding-top: 28px; text-align: center;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px;
  color: var(--text-muted); font-size: 0.85rem;
}

/* ---------- Révélation au scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* H2 animés : dé-floutage + barre dégradée + reflet balayé (sheen) */
h2 {
  position: relative; padding-bottom: 16px;
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(190, 230, 255, 0.95) 50%, transparent 58%),
    linear-gradient(#eaf1fb, #eaf1fb);
  background-size: 250% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2.reveal.is-visible, .reveal.is-visible h2 {
  animation: h2-sheen 1.4s ease-out 0.35s both;
}
@keyframes h2-sheen {
  from { background-position: 130% 0, 0 0; }
  to   { background-position: -160% 0, 0 0; }
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0; border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
h2.reveal, .reveal h2, .section__head.reveal h2 {
  filter: blur(10px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.9s ease;
}
h2.reveal.is-visible, .reveal.is-visible h2, .section__head.reveal.is-visible h2 { filter: blur(0); }
h2.reveal.is-visible::after, .reveal.is-visible h2::after { width: 68px; }
.cta-final h2::after { left: 50%; transform: translateX(-50%); }
.quote blockquote { padding-bottom: 0; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .offers, .facts, .steps { grid-template-columns: 1fr 1fr; }
  .offer--featured { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1199px) {
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(7, 11, 20, 0.96); backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 14px; padding: 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 10px 8px; width: 100%; }
  .nav__burger { display: block; }
}
@media (max-width: 640px) {
  .offers, .facts, .steps { grid-template-columns: 1fr; }
  .offer--featured { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ---------- Accessibilité mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .typed-cursor, .hero__eyebrow .dot { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
