/* ==========================================================================
   StackWeb — Design system (fait main, sans framework)
   Typo : Sora (titres) + Inter (texte) · Mobile-first · Accessible
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marque */
  --navy: #0a1b2e;
  --navy-2: #0f2942;
  --ink: #16263a;
  --primary: #1f6feb;
  --primary-600: #1a5fcc;
  --primary-700: #1850ab;
  --cyan: #38bdf8;
  --accent: #ff7a3d;
  --accent-600: #f4631c;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f3f7fc;
  --bg-tint: #eaf2fd;
  --surface: #ffffff;
  --border: #e4ecf5;
  --border-strong: #d3e0ef;

  /* Texte */
  --text: #19324a;
  --text-soft: #56657a;
  --text-mute: #7c8aa0;
  --on-dark: #eef5fd;
  --on-dark-soft: #a9bdd6;

  /* Dégradés */
  --grad-brand: linear-gradient(120deg, var(--primary), var(--cyan));
  --grad-warm: linear-gradient(120deg, #ff8a4c, var(--accent));
  --grad-hero: radial-gradient(60% 80% at 85% 10%, rgba(56, 189, 248, 0.20), transparent 60%),
               radial-gradient(50% 60% at 5% 0%, rgba(255, 122, 61, 0.14), transparent 55%),
               linear-gradient(180deg, #eef5ff 0%, #ffffff 65%);

  /* Typo */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ombres (douces + colorées) */
  --shadow-sm: 0 2px 8px rgba(16, 41, 66, 0.06);
  --shadow: 0 14px 40px rgba(16, 41, 66, 0.10);
  --shadow-lg: 0 30px 70px rgba(16, 41, 66, 0.16);
  --shadow-brand: 0 18px 40px rgba(31, 111, 235, 0.28);
  --shadow-accent: 0 16px 34px rgba(255, 122, 61, 0.34);

  /* Géométrie */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --container: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (et non hidden) : empêche le débordement horizontal SANS faire du
     <body> un conteneur de défilement (sinon double scroll-root). */
  overflow-x: clip;
}
html { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
ul { list-style: none; padding: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-soft); }

::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Texte en dégradé */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; }
.section { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.section--dark { background: radial-gradient(80% 120% at 50% -20%, var(--navy-2), var(--navy)); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-soft); }

.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.12rem; margin-top: 0.9rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-tint);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.section--dark .eyebrow { color: var(--cyan); background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.25); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--navy); color: #fff; padding: 0.8rem 1.3rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* Barre de progression de scroll (injectée par JS) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-brand); z-index: 200;
  box-shadow: 0 0 12px rgba(31, 111, 235, 0.6);
}

/* Décor : blobs flottants */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.blob--1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(56,189,248,0.55), transparent 70%); top: -120px; right: -80px; animation: float1 18s var(--ease) infinite; }
.blob--2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,122,61,0.40), transparent 70%); bottom: -140px; left: -90px; animation: float2 22s var(--ease) infinite; }
.section > .container { position: relative; z-index: 1; }
@keyframes float1 { 50% { transform: translate(-40px, 50px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(50px, -30px) scale(1.08); } }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 0.95rem 1.65rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn::after { /* balayage brillant */
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 140%; }
.btn--primary { background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { color: #fff; box-shadow: 0 22px 44px rgba(255, 122, 61, 0.45); }
.btn--brand { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--brand:hover { color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.6); color: var(--primary-700); border-color: var(--border-strong); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: var(--primary-700); border-color: var(--primary); background: #fff; }
.btn--light { background: #fff; color: var(--primary-700); }
.btn--light:hover { color: var(--primary-700); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.section--dark .btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.section--dark .btn--ghost:hover { color: #fff; background: rgba(255,255,255,0.16); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(228, 236, 245, 0.8);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.03em; }
.brand:hover { color: var(--navy); }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; border-radius: 11px;
  font-size: 0.95rem; box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand strong { color: var(--primary); }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle span { height: 2px; width: 20px; margin-inline: auto; background: var(--navy); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu { display: flex; align-items: center; gap: 0.2rem; }
.nav__menu a { position: relative; display: inline-block; padding: 0.55rem 0.95rem; color: var(--text); font-weight: 500; border-radius: 10px; transition: color 0.2s; }
.nav__menu a:hover { color: var(--primary); }
.nav__menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0.35rem; height: 2.5px; border-radius: 3px; background: var(--grad-warm); transition: left 0.25s var(--ease), right 0.25s var(--ease); }
.nav__menu a:hover::after { left: 0.95rem; right: 0.95rem; }
.nav__menu a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav__menu a[aria-current="page"]::after { left: 0.95rem; right: 0.95rem; }
.nav__cta { margin-left: 0.6rem; }
/* La règle .nav__menu a ne doit pas écraser la forme des boutons */
.nav__menu .nav__cta a.btn { border-radius: 999px; padding: 0.7rem 1.3rem; font-weight: 600; }
.nav__menu .nav__cta a.btn::after { display: none; } /* pas de soulignement de nav sur le bouton */
.nav__menu .nav__cta a.btn:hover { color: #fff; }

@media (max-width: 880px) {
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.1rem;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
    padding: 1.1rem 1.4rem 1.9rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); visibility: hidden;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__menu a { padding: 0.9rem 0.8rem; font-size: 1.1rem; }
  .nav__menu a::after, .nav__menu a[aria-current="page"]::after { display: none; }
  .nav__menu a[aria-current="page"] { background: var(--bg-tint); }
  .nav__cta { margin: 0.7rem 0 0; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 881px) { .nav__toggle { display: none; } .nav__menu { transform: none !important; visibility: visible !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem); overflow: hidden; }
.hero::after { /* fine grille */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(31,111,235,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,111,235,0.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: var(--primary-700);
  background: rgba(255,255,255,0.7); border: 1px solid var(--border-strong);
  padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px); margin-bottom: 1.4rem;
}
.hero__pill b { background: var(--grad-warm); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.03em; }
.hero h1 { margin-bottom: 0.4rem; }
.hero .lead { font-size: 1.18rem; color: var(--text-soft); margin-top: 1.2rem; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 2rem; }
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.hero__trust svg { color: #16a34a; flex: none; }
@media (min-width: 881px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

/* Mockup navigateur dans le hero */
.mockup { position: relative; z-index: 2; }
.browser {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.mockup:hover .browser { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.browser__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; background: #f6f9fc; border-bottom: 1px solid var(--border); }
.browser__dots { display: flex; gap: 0.4rem; }
.browser__dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser__dots span:nth-child(1) { background: #ff5f57; }
.browser__dots span:nth-child(2) { background: #febc2e; }
.browser__dots span:nth-child(3) { background: #28c840; }
.browser__url { flex: 1; font-size: 0.74rem; color: var(--text-mute); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.8rem; text-align: center; }
.browser__view { padding: 1.3rem; background: linear-gradient(180deg, #fff, #f7fbff); }
.mini-hero { display: grid; gap: 0.55rem; margin-bottom: 1rem; }
.mini-bar { height: 10px; border-radius: 6px; background: var(--bg-tint); }
.mini-bar.t { height: 18px; width: 70%; background: var(--grad-brand); }
.mini-bar.s { width: 90%; }
.mini-bar.s2 { width: 55%; }
.mini-cta { height: 30px; width: 120px; border-radius: 999px; background: var(--grad-warm); box-shadow: var(--shadow-accent); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.1rem; }
.mini-card { height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; }
.mini-card::before { content: ""; position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 7px; background: var(--bg-tint); }
.mini-card::after { content: ""; position: absolute; bottom: 12px; left: 10px; right: 10px; height: 6px; border-radius: 4px; background: var(--bg-tint); }

/* Badge flottant sur le mockup */
.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.6rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem 0.95rem;
  box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 600; color: var(--navy);
  animation: bob 4s ease-in-out infinite;
}
.float-badge .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.float-badge--1 { top: -18px; left: -24px; }
.float-badge--1 .dot { background: var(--grad-warm); }
.float-badge--2 { bottom: -20px; right: -16px; animation-delay: 1.5s; }
.float-badge--2 .dot { background: var(--grad-brand); }
.float-badge small { display: block; font-weight: 500; color: var(--text-mute); font-size: 0.72rem; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) { .float-badge { display: none; } }

/* ---------- Bandeau stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 1.6rem 1.2rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__label { font-size: 0.9rem; color: var(--text-soft); margin-top: 0.5rem; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Bento (section bénéfices) */
.bento { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento__item--wide { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento__item--wide { grid-column: span 2; } }

/* ---------- Cartes ---------- */
.card {
  position: relative; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.card::before { /* liseré dégradé au survol */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 1rem; }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px;
  background: var(--bg-tint); color: var(--primary); margin-bottom: 1.1rem;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s;
}
.card:hover .card__icon { background: var(--grad-brand); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; margin-top: 0.9rem; font-family: var(--font-display); }
.card__link::after { content: "→"; transition: transform 0.25s var(--ease); }
.card__link:hover::after { transform: translateX(4px); }
.bento__item--wide { background: radial-gradient(120% 140% at 0% 0%, var(--bg-tint), #fff); }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step__num {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem; box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 1.15rem; }
.steps--line .step::after { content: ""; }
@media (min-width: 980px) {
  .steps--line { position: relative; }
  .steps--line::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px); z-index: 0; }
  .steps--line .step { z-index: 1; }
}

/* ---------- Listes à puces ---------- */
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.55rem 0; color: var(--text); }
.feature-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 0.2rem; border-radius: 50%;
  background: var(--grad-brand) padding-box;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3C/svg%3E");
  position: relative;
}
.feature-list li { position: relative; }
.feature-list li::after {
  content: "✓"; position: absolute; left: 0; top: 0.2rem; width: 24px; height: 24px;
  display: grid; place-items: center; color: #fff; font-size: 0.72rem; font-weight: 800;
}
.section--dark .feature-list li { color: var(--on-dark); }

/* ---------- Service détaillé ---------- */
.service-block {
  position: relative; display: grid; gap: 2.2rem; align-items: start;
  padding: 2.2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.service-block::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--grad-warm); }
.service-block + .service-block { margin-top: 2rem; }
@media (min-width: 880px) { .service-block { grid-template-columns: 1.45fr 1fr; padding: 2.6rem; } }
.service-block__tag { display: inline-block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--primary); background: var(--bg-tint); padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 0.9rem; }

/* Encadré devis */
.quote-box {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, var(--navy-2), var(--navy));
  color: var(--on-dark); border-radius: var(--r-lg); padding: 1.9rem; text-align: center;
  box-shadow: var(--shadow);
}
.quote-box::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,61,0.4), transparent 70%); top: -60px; right: -40px; }
.quote-box h3 { color: #fff; font-size: 1.2rem; position: relative; }
.quote-box p { color: var(--on-dark-soft); font-size: 0.92rem; margin: 0.6rem 0 1.3rem; position: relative; }

/* ---------- Tarifs ---------- */
.pricing-group + .pricing-group { margin-top: 3.5rem; }
.pricing-group__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.pricing-group__head h3 { font-size: 1.5rem; }
.pricing-group__head span { font-size: 0.9rem; color: var(--text-mute); font-weight: 500; }
.pricing { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .pricing--quad { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 880px) { .pricing--trio { grid-template-columns: repeat(3, 1fr); } }
.pricing--duo { max-width: 780px; margin-inline: auto; }

.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem; margin: 0.7rem 0 0.2rem; }
.price-card__prefix { width: 100%; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }
.price-card__amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__period { font-size: 0.95rem; font-weight: 600; color: var(--text-mute); }
.price-card hr { border: none; border-top: 1px solid var(--border); margin: 1.2rem 0; }
.price-card .feature-list { margin-bottom: 1rem; }
.price-card .feature-list li { font-size: 0.94rem; padding: 0.4rem 0; }
.price-card__note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-mute); margin-bottom: 1.2rem; }
.price-card__note::before { content: "ⓘ"; font-style: normal; }
.price-card .btn { margin-top: auto; }

/* Carte mise en avant */
.price-card--featured { border-color: transparent; box-shadow: var(--shadow); }
.price-card--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: var(--grad-warm); padding: 0.3rem 0.85rem; border-radius: 999px;
  box-shadow: var(--shadow-accent); white-space: nowrap;
}

/* ---------- Réalisations ---------- */
.work-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.work-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.work-card__shot, .work-card__placeholder { width: 100%; height: 100%; }
.work-card__shot { object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__shot { transform: scale(1.06); }
.work-card__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-tint), #dce9f7); color: var(--primary); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; position: relative; }
.work-card__placeholder::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(31,111,235,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31,111,235,0.07) 1px, transparent 1px); background-size: 26px 26px; }
.work-card__badge { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2; font-size: 0.72rem; font-weight: 700; font-family: var(--font-display); color: #fff; background: rgba(10,27,46,0.7); backdrop-filter: blur(6px); padding: 0.3rem 0.7rem; border-radius: 999px; }
.work-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.work-card__type { font-size: 0.88rem; color: var(--text-mute); font-weight: 500; }
.work-card__link { margin-top: auto; padding-top: 0.9rem; font-weight: 600; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 0.4rem; }
.work-card__link::after { content: "→"; transition: transform 0.25s var(--ease); }
.work-card__link:hover::after { transform: translateX(4px); }

/* ---------- À propos ---------- */
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .about__grid { grid-template-columns: 0.85fr 1.15fr; } }
.about__media { position: relative; }
.about__portrait {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 120% at 20% 10%, var(--bg-tint), #dce9f7);
  display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.about__portrait svg { width: 38%; height: 38%; color: var(--primary); opacity: 0.6; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__signature {
  position: absolute; right: -14px; bottom: -16px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 0.85rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: 0.7rem; align-items: center;
}
.about__signature .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-warm); display: grid; place-items: center; color: #fff; flex: none; box-shadow: var(--shadow-accent); }
.about__signature strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 0.95rem; }
.about__signature span { font-size: 0.78rem; color: var(--text-mute); }
@media (max-width: 560px) { .about__signature { position: static; margin-top: 1rem; } }
.about__points { display: grid; gap: 0.75rem; margin-top: 1.4rem; }
.about__points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text); font-weight: 500; }
.about__points svg { color: var(--primary); flex: none; margin-top: 0.15rem; }
.about__local { margin-top: 1.4rem; font-size: 0.92rem; color: var(--text-soft); }
.about__local strong { color: var(--navy); }

/* Carte « zone d'intervention » (remplace le portrait) */
.coverage-card {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 15% 10%, var(--bg-tint), #fff);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
}
.coverage-card__pin {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); margin-bottom: 1.1rem;
}
.coverage-card h3 { font-size: 1.15rem; }
.coverage-card .depts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.1rem; }
.coverage-card .dept { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #fff; background: var(--grad-warm); padding: 0.35rem 0.85rem; border-radius: 999px; }
.coverage-card .towns { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.coverage-card .town { font-size: 0.82rem; font-weight: 500; color: var(--primary-700); background: #fff; border: 1px solid var(--border-strong); padding: 0.3rem 0.7rem; border-radius: 999px; }
.coverage-card .remote { display: block; margin-top: 1.1rem; font-size: 0.82rem; color: var(--text-mute); }

/* ---------- Témoignages ---------- */
.testimonial { position: relative; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial::before { content: "\201C"; position: absolute; top: 0.4rem; right: 1.3rem; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--bg-tint); }
.testimonial blockquote p { color: var(--text); font-size: 1.05rem; position: relative; z-index: 1; }
.testimonial__author { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.testimonial__author strong { display: block; color: var(--navy); font-family: var(--font-display); }
.testimonial__author span { font-size: 0.85rem; color: var(--text-mute); }
.stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 0.7rem; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 0.85rem; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq__item summary { position: relative; cursor: pointer; list-style: none; padding: 1.2rem 3.4rem 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { /* pastille ronde */
  content: ""; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tint); transition: background 0.3s;
}
.faq__item summary .faq__icon { position: absolute; right: calc(1.4rem + 9px); top: 50%; transform: translateY(-50%); width: 10px; height: 10px; z-index: 1; }
.faq__item summary .faq__icon::before, .faq__item summary .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--primary); border-radius: 2px; transform: translate(-50%, -50%); transition: opacity 0.3s, transform 0.3s var(--ease); }
.faq__item summary .faq__icon::before { width: 11px; height: 2.5px; }
.faq__item summary .faq__icon::after { width: 2.5px; height: 11px; }
.faq__item[open] summary::after { background: var(--grad-brand); }
.faq__item[open] summary .faq__icon::before, .faq__item[open] summary .faq__icon::after { background: #fff; }
.faq__item[open] summary .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__answer { padding: 0 1.4rem 1.3rem; }
.faq__answer p { font-size: 1rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(100% 160% at 0% 0%, var(--navy-2), var(--navy)); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(2.4rem, 6vw, 4rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,61,0.35), transparent 70%); top: -120px; right: -80px; }
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,0.30), transparent 70%); bottom: -140px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-soft); max-width: 54ch; margin: 1rem auto 2rem; font-size: 1.15rem; }

/* ---------- En-tête de page ---------- */
.page-header { position: relative; overflow: hidden; background: var(--grad-hero); padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--border); }
.page-header .container { position: relative; z-index: 1; }
.page-header p { font-size: 1.15rem; margin-top: 0.8rem; max-width: 62ch; }
.breadcrumb { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 0.8rem; display: flex; gap: 0.4rem; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.3fr 0.9fr; } }
.form { display: grid; gap: 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--shadow); }
.field { display: grid; gap: 0.45rem; }
.field--row { grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.field label .req { color: var(--accent-600); }
.field input, .field textarea { font: inherit; padding: 0.85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg-soft); color: var(--text); width: 100%; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(31,111,235,0.12); }
.field textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-soft); }
.consent input { width: 22px; height: 22px; margin-top: 0.1rem; flex: none; accent-color: var(--primary); }
.form__note { font-size: 0.8rem; color: var(--text-mute); }
.form-status { font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-ok { color: #16a34a; }
.form-status.is-err { color: #dc2626; }

.contact-aside { display: grid; gap: 1.2rem; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.55rem 0; }
.contact-list svg { color: #fff; background: var(--grad-brand); padding: 0.45rem; border-radius: 11px; width: 38px; height: 38px; flex: none; box-shadow: var(--shadow-brand); }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; margin-bottom: 0.6rem; padding-left: 0.9rem; border-left: 4px solid; border-image: var(--grad-warm) 1; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: 0.4rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal ul li { padding: 0.25rem 0; }
.legal a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: radial-gradient(90% 140% at 100% 0%, var(--navy-2), var(--navy)); color: var(--on-dark-soft); padding-block: 3.5rem 1.6rem; margin-top: 1rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-warm); }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 740px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 0.9rem; }
.site-footer .brand strong { color: var(--accent); }
.footer-links li { padding: 0.3rem 0; }
.footer-links a { position: relative; transition: padding-left 0.25s var(--ease); }
.footer-links a:hover { padding-left: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; font-size: 0.88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .work-card:hover, .card:hover, .testimonial:hover { transform: none; }
  .blob, .float-badge, .browser { animation: none !important; }
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.muted { color: var(--text-mute); }
.lead { font-size: 1.12rem; }

/* ==========================================================================
   ✦ COUCHE PREMIUM — effets « démonstration de force »
   Tout est additif : grain, aurora animée, spotlight au curseur,
   boutons magnétiques, parallaxe 3D, dégradés vivants, reveals enrichis.
   Respecte prefers-reduced-motion et reste 100 % accessible.
   ========================================================================== */

/* ---------- Grain de film global (injecté par JS) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Curseur lumineux global (suit la souris, très subtil) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; z-index: 1; pointer-events: none;
  margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.10), rgba(31,111,235,0.06) 40%, transparent 68%);
  transform: translate3d(var(--cgx, -999px), var(--cgy, -999px), 0);
  opacity: 0; transition: opacity 0.5s var(--ease); will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- Dégradé de texte vivant (shimmer lent) ---------- */
.grad-text { background-size: 220% 100%; animation: gradShift 9s ease-in-out infinite; }
.grad-text--warm { background-size: 220% 100%; animation: gradShift 9s ease-in-out infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Barre de progression enrichie ---------- */
.scroll-progress { height: 3px; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent)); background-size: 200% 100%; animation: gradShift 6s linear infinite; }

/* ---------- Aurora animée du hero ---------- */
.hero { isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 78% 18%, rgba(56,189,248,0.40), transparent 60%),
    radial-gradient(34% 46% at 18% 12%, rgba(255,122,61,0.26), transparent 60%),
    radial-gradient(40% 50% at 50% 88%, rgba(31,111,235,0.22), transparent 62%);
  filter: blur(28px); opacity: 0.9;
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2.5%, 1.5%, 0) scale(1.08); }
  100% { transform: translate3d(-2.5%, -1%, 0) scale(1.04); }
}
.hero canvas.hero-constellation { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__grid { z-index: 3; }
.hero .blobs { z-index: 1; }

/* En-têtes de pages internes : un soupçon d'aurora aussi */
.page-header { isolation: isolate; }
.page-header::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 160%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 82% 10%, rgba(56,189,248,0.32), transparent 60%),
    radial-gradient(36% 52% at 12% 0%, rgba(255,122,61,0.20), transparent 60%);
  filter: blur(26px); animation: aurora 24s ease-in-out infinite alternate;
}

/* ---------- Pill « Nouveau » : point qui pulse ---------- */
.hero__pill b { position: relative; }
.hero__pill { position: relative; }
.hero__pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(31,111,235,0.5), rgba(56,189,248,0.1), rgba(255,122,61,0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7;
}

/* ---------- Spotlight au curseur sur les cartes ---------- */
.glow { position: relative; }
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(31,111,235,0.13), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.glow:hover::after { opacity: 1; }
.glow > * { position: relative; z-index: 1; }
.price-card.glow::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(56,189,248,0.16), transparent 60%); }
.testimonial.glow::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,122,61,0.12), transparent 60%); }

/* ---------- Boutons magnétiques (le décalage vient du JS) ---------- */
.btn { will-change: transform; }
.btn--primary, .btn--brand { background-size: 160% 160%; }
.btn--primary:hover, .btn--brand:hover { animation: gradShift 4s ease-in-out infinite; }

/* ---------- Brand mark : éclat permanent ---------- */
.brand__mark { position: relative; overflow: hidden; background-size: 160% 160%; animation: gradShift 8s ease-in-out infinite; }
.brand__mark::after {
  content: ""; position: absolute; top: -60%; left: -60%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 160%; } }

/* ---------- Mockup : flottement doux + reflet ---------- */
.mockup { animation: floaty 7s ease-in-out infinite; will-change: transform; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.browser { position: relative; will-change: transform; }
.browser::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 40%);
  mix-blend-mode: screen; opacity: 0.6;
}
.mini-bar.t { background-size: 200% 100%; animation: gradShift 5s ease-in-out infinite; }

/* ---------- Stats : reflet au survol + accent ---------- */
.stat { position: relative; overflow: hidden; transition: background 0.35s; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.stat:hover { background: linear-gradient(180deg, #fff, var(--bg-tint)); }
.stat:hover::before { transform: scaleX(1); }

/* ---------- Cartes : icône avec halo ---------- */
.card__icon { position: relative; }
.card:hover .card__icon { box-shadow: 0 10px 24px rgba(31,111,235,0.35); }

/* ---------- Étapes : numéro qui réagit ---------- */
.step:hover .step__num { transform: translateY(-4px) scale(1.06) rotate(-4deg); box-shadow: 0 16px 30px rgba(31,111,235,0.4); }
.step__num { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }

/* ---------- Marquee de secteurs (ticker) ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 0.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap; animation: marquee 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); opacity: 0.78; }
.marquee__item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveals enrichis (blur + variantes directionnelles) ---------- */
.reveal { filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.is-visible { filter: blur(0); }
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale { transform: scale(0.94); }
.reveal--left.is-visible, .reveal--right.is-visible, .reveal--scale.is-visible { transform: none; }

/* ---------- Scrollbar sur mesure ---------- */
@media (pointer: fine) {
  html { scrollbar-color: var(--primary) var(--bg-soft); scrollbar-width: thin; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--bg-soft); }
  ::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--cyan)); border-radius: 999px; border: 3px solid var(--bg-soft); }
  ::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--primary-700), var(--primary)); }
}

/* ---------- CTA band : grain de lumière en mouvement ---------- */
.cta-band { background-size: 140% 140%; animation: gradShift 16s ease-in-out infinite; }

/* ---------- Désactivations pour reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grad-text, .grad-text--warm, .scroll-progress, .hero::before, .page-header::before,
  .brand__mark, .brand__mark::after, .mockup, .mini-bar.t, .marquee__track, .cta-band,
  .btn--primary:hover, .btn--brand:hover {
    animation: none !important;
  }
  .reveal { filter: none; }
  .cursor-glow, .glow::after { display: none; }
}

/* ==========================================================================
   ✦✦ COUCHE SHOWSTOPPER — « grosses dingueries »
   Hero sombre cinématique · mesh de gradient vivant · preloader ·
   curseur sur mesure · titres révélés mot à mot en 3D · cartes en relief
   avec reflet · parallaxe · ripples. Tout dégradé proprement si reduced-motion.
   ========================================================================== */

/* ---------- Preloader cinématique (accueil) ---------- */
html.is-preloading, html.is-preloading body { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 70% 0%, #133255, #0a1b2e 55%, #06101b);
  color: #fff; transition: clip-path 0.9s cubic-bezier(0.7,0,0.2,1), opacity 0.4s 0.7s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; transform: translateY(-2%); }
.preloader__mark {
  width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px;
  background: var(--grad-brand); background-size: 180% 180%; animation: gradShift 3s ease-in-out infinite;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff;
  box-shadow: 0 20px 60px rgba(31,111,235,0.6); position: relative; overflow: hidden;
}
.preloader__mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent); transform: translateX(-120%); animation: sheen 1.6s ease-in-out infinite; }
.preloader__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; opacity: 0.95; }
.preloader__brand strong { color: var(--cyan); }
.preloader__count { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--on-dark-soft); letter-spacing: 0.1em; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent)); box-shadow: 0 0 16px rgba(56,189,248,0.8); transition: width 0.2s linear; }
.no-js-preloader-fallback { animation: plFallback 0.1s linear 3s forwards; }
@keyframes plFallback { to { opacity: 0; visibility: hidden; } }

/* ---------- HERO SOMBRE CINÉMATIQUE ---------- */
.hero {
  background:
    radial-gradient(110% 120% at 78% 0%, #15406b 0%, transparent 55%),
    radial-gradient(90% 120% at 12% 8%, #3a1f3f 0%, transparent 52%),
    linear-gradient(180deg, #0a1b2e 0%, #0a1b2e 70%, #0c2138 100%);
  color: var(--on-dark);
  /* le hero passe SOUS le header sticky transparent */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
}
.hero canvas.hero-mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }
.hero::after { /* grille fine claire sur fond sombre */
  opacity: 0.6;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.hero h1 { color: #fff; }
.hero .lead { color: #c2d3e8; }
.hero__trust li { color: #e2ecf8; }
.hero__pill { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #e6f0fb; backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.hero__pill::before { opacity: 1; }
.hero .btn--ghost { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.22); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .browser { box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06); }
.hero .blob--1 { opacity: 0.7; }
.hero .blob--2 { opacity: 0.55; }
/* halo lumineux derrière le mockup */
.mockup::before {
  content: ""; position: absolute; inset: -12% -8% -8% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56,189,248,0.35), transparent 70%);
  filter: blur(20px);
}

/* ---------- Header adaptatif au-dessus du hero sombre ---------- */
.site-header--over:not(.is-scrolled) {
  background: transparent; border-bottom-color: transparent; box-shadow: none;
}
.site-header--over:not(.is-scrolled) .brand { color: #fff; }
.site-header--over:not(.is-scrolled) .brand strong { color: var(--cyan); }
.site-header--over:not(.is-scrolled) .nav__menu > a { color: #dceafa; }
.site-header--over:not(.is-scrolled) .nav__menu > a:hover { color: #fff; }
.site-header--over:not(.is-scrolled) .nav__menu > a[aria-current="page"] { color: #fff; }
.site-header--over:not(.is-scrolled) .nav__toggle { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.site-header--over:not(.is-scrolled) .nav__toggle span { background: #fff; }
.site-header { transition: box-shadow 0.3s, background 0.3s, border-color 0.3s; }

/* ---------- Curseur sur mesure ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .btn, .has-cursor summary, .has-cursor .glow { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s; mix-blend-mode: normal; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--primary); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(31,111,235,0.6); }
.cursor-dot.is-on, .cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(56,189,248,0.9); background: rgba(56,189,248,0.10); }
.cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
body:has(.hero) .cursor-dot { } /* placeholder */

/* ---------- Titres révélés mot à mot ---------- */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split .word > * , .split .word > span { display: inline-block; transform: translateY(115%) rotate(4deg); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); will-change: transform; }
.split.is-revealed .word > *, .split.is-revealed .word > span { transform: none; opacity: 1; }

/* ---------- Cartes en relief 3D + reflet ---------- */
.tilt { transform-style: preserve-3d; transition: transform 0.25s var(--ease); will-change: transform; }
.tilt .tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,0.5), transparent 45%);
  transition: opacity 0.3s; mix-blend-mode: overlay;
}
.tilt:hover .tilt-glare { opacity: 1; }
.tilt > *:not(.tilt-glare) { transform: translateZ(0.01px); }

/* ---------- Marquee plus affirmé ---------- */
.marquee__item { font-size: clamp(1.1rem, 2.2vw, 1.6rem); opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.marquee__item:hover { opacity: 1; color: var(--primary); }

/* ---------- Séparateurs lumineux entre sections ---------- */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(680px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.hero + .section::before, .section--soft::before, .section--dark::before { display: none; }

/* ---------- Ripple sur les boutons ---------- */
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,0.45); animation: ripple 0.65s var(--ease) forwards; pointer-events: none; z-index: 0; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Bouton retour en haut + anneau de progression ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 120; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--primary); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); color: var(--primary-700); }
.to-top svg { position: relative; z-index: 2; }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 3; }
.to-top__ring .bg { stroke: var(--border-strong); }
.to-top__ring .fg { stroke: url(#ttGrad); stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; }

/* ---------- Désactivations showstopper pour reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
  html.is-preloading, html.is-preloading body { overflow: auto; }
  .hero canvas.hero-mesh { display: none; }
  .split .word > *, .split .word > span { transform: none; opacity: 1; }
  .cursor-dot, .cursor-ring { display: none; }
  .has-cursor, .has-cursor * { cursor: auto; }
  .tilt { transform: none !important; }
  .preloader__mark, .preloader__mark::after { animation: none; }
}

/* ==========================================================================
   ✦✦✦ COUCHE ULTRA — « bombarde »
   Transitions de page · CTA sombres animés · bordures coniques rotatives ·
   traînée de curseur · parallaxe à la souris.
   ========================================================================== */

/* Angle des bordures coniques — piloté par JS (rAF) pour une compat totale.
   inherits:true pour que ::before / .cta-glow lisent la valeur posée sur l'hôte. */
@property --bd { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

/* ---------- Fondu d'arrivée de page ----------
   (Volontairement PAS appliqué sur <body> : une animation persistante sur le
   body le promeut en couche composite et perturbe le défilement. Le fondu
   d'entrée est porté par le rideau de transition .page-curtain à la place.) */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Rideau de transition entre pages ---------- */
.page-curtain {
  position: fixed; inset: 0; z-index: 1200; pointer-events: none; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 70% 0%, #133255, #0a1b2e 55%, #06101b);
  transform: translateY(100%);
}
.page-curtain.is-cover { transform: translateY(0); transition: transform 0.55s cubic-bezier(0.7,0,0.2,1); }
.page-curtain.is-up { transform: translateY(-100%); transition: transform 0.55s cubic-bezier(0.7,0,0.2,1); }
.page-curtain__mark {
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px;
  background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 20px 60px rgba(31,111,235,0.6); opacity: 0; transform: scale(0.8);
}
.page-curtain.is-cover .page-curtain__mark { opacity: 1; transform: scale(1); transition: opacity 0.3s 0.12s, transform 0.4s 0.12s var(--ease); }

/* ---------- Bordures coniques rotatives (cartes phares + CTA) ---------- */
.price-card--featured::before {
  background: conic-gradient(from var(--bd), var(--primary), var(--cyan), var(--accent), var(--primary));
}
.cta-glow {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; pointer-events: none; z-index: 0;
  background: conic-gradient(from var(--bd), var(--cyan), var(--primary), var(--accent), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.85;
}

/* ---------- CTA sombre : champ de particules ---------- */
.cta-band { position: relative; }
.cta-band canvas.field { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Traînée d'étincelles du curseur ---------- */
.cursor-trail {
  position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; z-index: 998; pointer-events: none;
  background: radial-gradient(circle, rgba(56,189,248,0.9), rgba(31,111,235,0.4) 50%, transparent 70%);
  animation: trailFade 0.65s var(--ease) forwards;
}
@keyframes trailFade { to { opacity: 0; transform: scale(0.2); } }

/* ---------- Parallaxe badges : on coupe le bob CSS quand le JS prend la main ---------- */
.float-badge.is-parallax { animation: none; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .page-curtain { display: none !important; }
  .price-card--featured::before, .cta-glow { animation: none; }
  .cta-band canvas.field, .cursor-trail { display: none; }
}
