@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── @property — permet d'animer l'angle du conic-gradient ── */
@property --siri-ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

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

/* ── THÈME CLAIR (défaut) ──────────────────────────────────── */
:root {
  --bg:      #FFFFFF;
  --bg2:     #F3F3FA;
  --bg3:     #E9E9F4;
  --bg-card: #FFFFFF;
  --blue:    #2D6EFF;
  --blue-lt: #4A7EFF;
  --blue2:   #5C9AFF;     /* accent secondaire — remplace le violet */
  --grad:    linear-gradient(135deg, #1B5FEC 0%, #5192FF 100%);
  --grad-soft: linear-gradient(135deg, rgba(27,95,236,0.09) 0%, rgba(81,146,255,0.07) 100%);
  --white:   #FFFFFF;
  --off:     #10102B;
  --muted:   #5E5E88;
  --border:  rgba(0,0,80,0.09);
  --border2: rgba(0,0,80,0.16);
  --nav-bg:       rgba(255,255,255,0.93);
  --nav-mob-bg:   rgba(248,248,252,0.97);
  --hero-grid:    rgba(0,0,80,0.05);
  --stats-bg:     rgba(243,243,250,0.88);
  --card-shadow:  0 1px 4px rgba(0,0,80,0.07), 0 4px 24px rgba(0,0,80,0.05);
  --toggle-surf:  rgba(0,0,80,0.06);
  --body-text:    #10102B;
  /* Glassmorphism */
  --glass-bg:     rgba(255,255,255,0.68);
  --glass-border: rgba(255,255,255,0.88);
  --glass-blur:   blur(14px) saturate(160%);
  --serif:   'Syne', sans-serif;
  --sans:    'Inter', system-ui, sans-serif;
  --r:       20px;
  --r-sm:    12px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── THÈME SOMBRE ──────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:      #07070E;
  --bg2:     #0D0D1A;
  --bg3:     #12121F;
  --bg-card: #141428;
  --blue-lt: #5B8FFF;
  --blue2:   #4E82EE;
  --off:     #E8E8F0;
  --muted:   #7E7EA8;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --nav-bg:       rgba(7,7,14,0.80);
  --nav-mob-bg:   rgba(13,13,26,0.96);
  --hero-grid:    rgba(255,255,255,0.025);
  --stats-bg:     rgba(13,13,26,0.62);
  --card-shadow:  none;
  --toggle-surf:  rgba(255,255,255,0.08);
  --body-text:    #FFFFFF;
  --glass-bg:     rgba(255,255,255,0.045);
  --glass-border: rgba(255,255,255,0.11);
  --glass-blur:   blur(14px) saturate(130%);
}

/* ── SIRI BUTTON GLOW ──────────────────────────────────────── */
/*
  Anneau lumineux tournant sur le contour des boutons primaires au hover.
  Même technique que l'effet Siri iOS 26 :
  – ::before dépasse légèrement (inset:-2px) pour créer un anneau
  – conic-gradient tournant avec @property --siri-ang
  – masque "contenu-box / plein" pour ne montrer que le bord (2px)
*/
@keyframes siriSpin { to { --siri-ang: 360deg; } }

/* ── GRAIN TEXTURE ─────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
[data-theme="dark"] body::after { opacity: 0.045; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── ACCESSIBILITÉ ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-lt);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--blue); color: var(--white);
  padding: 10px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
}

/* ── SCROLL PROGRESS BAR ───────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--grad);
  z-index: 300; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(45,110,255,0.6);
}

/* ── CURSOR SPOTLIGHT (desktop only) ───────────────────────── */
.spotlight {
  position: fixed; top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,110,255,0.10) 0%, transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1; opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: screen;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .spotlight { opacity: 1; }
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 32px;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.nav-logo img {
  width: 30px; height: 30px;
  transition: transform .4s var(--ease-out), filter .4s;
}
.nav-logo:hover img {
  transform: rotate(45deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(45,110,255,0.6));
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 400;
  color: var(--muted); transition: color .2s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--blue-lt);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--white); }
.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-cta {
  background: var(--grad) !important;
  color: var(--white) !important;
  padding: 9px 22px !important; border-radius: 24px !important;
  font-size: 0.85rem !important; font-weight: 500 !important;
  transition: box-shadow .25s var(--ease-out) !important;
  box-shadow: 0 4px 16px rgba(45,110,255,0.3) !important;
  position: relative !important;
  overflow: visible !important;
  --siri-ang: 0deg;
}
/* Anneau Siri sur le bouton nav */
.nav-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px; /* 24px + 2px */
  padding: 2px;
  background: conic-gradient(
    from var(--siri-ang),
    transparent        0%,
    transparent       16%,
    rgba(27,95,236,0)  20%,
    rgba(27,95,236,.8) 27%,
    rgba(140,210,255,1) 32%,
    rgba(27,95,236,.8) 37%,
    rgba(27,95,236,0)  42%,
    transparent       48%,
    transparent       67%,
    rgba(65,130,255,0) 71%,
    rgba(65,130,255,.6) 76%,
    rgba(115,188,255,.85) 79.5%,
    rgba(65,130,255,.6) 83%,
    rgba(65,130,255,0) 87%,
    transparent       92%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s var(--ease-out);
  animation: siriSpin 2.5s linear infinite;
  animation-play-state: paused;
}
.nav-cta:hover {
  box-shadow: 0 8px 24px rgba(45,110,255,0.45) !important;
}
.nav-cta:hover::before {
  opacity: 1;
  animation-play-state: running;
}
.nav-toggle {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: transparent; border: none;
  -webkit-appearance: none; appearance: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px; padding: 0;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--off); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (NEW SPLIT LAYOUT) ──────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 130px 0 80px;
  position: relative; overflow-x: hidden;
  display: flex; align-items: center;
}

/* Aurora animée — blob bleu qui dérive doucement */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(45,110,255,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 70%, rgba(45,110,255,0.10) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
  animation: auroraShift 14s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { background-position: 0% 0%; opacity: 1; }
  50%  { background-position: 4% 6%; opacity: 0.85; }
  100% { background-position: -4% 3%; opacity: 1; }
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none; z-index: 0;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left { text-align: left; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(45,110,255,0.10);
  border: 1px solid rgba(45,110,255,0.28);
  border-radius: 20px; padding: 7px 16px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--blue-lt);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp .7s .15s var(--ease-out) forwards;
  position: relative; overflow: hidden;
}
.hero-badge::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(91,143,255,0.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 4s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-lt); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(91,143,255,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91,143,255,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(91,143,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,143,255,0); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: wordIn .8s var(--ease-out) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: .15s; }
.hero h1 .word:nth-child(2) { animation-delay: .23s; }
.hero h1 .word:nth-child(3) { animation-delay: .35s; }
.hero h1 .word:nth-child(4) { animation-delay: .43s; }
.hero h1 .word:nth-child(5) { animation-delay: .51s; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 .hl {
  color: var(--blue);
  position: relative;
  text-shadow: 0 0 30px rgba(45,110,255,0.45);
}

.hero-sub {
  max-width: 520px;
  font-size: 1.05rem; color: var(--muted); line-height: 1.75; font-weight: 300;
  margin-bottom: 36px;
  opacity: 0; animation: fadeUp .7s .65s var(--ease-out) forwards;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0; animation: fadeUp .7s .8s var(--ease-out) forwards;
}

/* HERO VISUAL — colonne droite avec slot 3D */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  justify-self: end;
  opacity: 0; animation: visualIn 1.2s .3s var(--ease-out) forwards;
}
@keyframes visualIn {
  from { opacity: 0; transform: scale(0.85) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* anneaux orbitaux décoratifs */
.hero-orbit {
  position: absolute; inset: -8%;
  border-radius: 50%;
  border: 1px dashed rgba(91,143,255,0.18);
  animation: orbit 60s linear infinite;
}
.hero-orbit::before, .hero-orbit::after {
  content: ''; position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-lt);
  box-shadow: 0 0 16px rgba(91,143,255,0.8);
}
.hero-orbit::before { top: -5px; left: 50%; }
.hero-orbit::after  { bottom: -5px; left: 50%; background: var(--blue2); box-shadow: 0 0 16px rgba(45,110,255,0.7); }
.hero-orbit.r2 {
  inset: 4%;
  border-color: rgba(45,110,255,0.10);
  animation-direction: reverse;
  animation-duration: 45s;
}
.hero-orbit.r2::before { background: #FFF; box-shadow: 0 0 14px rgba(255,255,255,0.8); }
.hero-orbit.r2::after  { background: var(--blue); box-shadow: 0 0 16px rgba(45,110,255,0.8); }
@keyframes orbit {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* halo derrière le logo */
.hero-halo {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,110,255,0.45) 0%, rgba(45,110,255,0.15) 40%, transparent 70%);
  filter: blur(40px);
  animation: pulseHalo 6s ease-in-out infinite;
}
@keyframes pulseHalo {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* le slot 3D : drop your logo here */
.hero-logo-3d {
  position: absolute; inset: -2%;
  display: flex; align-items: center; justify-content: center;
  animation: floatLogo 5.5s ease-in-out infinite;
  will-change: transform;
}
.hero-logo-3d img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 40px rgba(45,110,255,0.45))
    drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.hero-logo-3d .placeholder {
  width: 70%; aspect-ratio: 1;
  border: 2px dashed rgba(91,143,255,0.4);
  border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(45,110,255,0.03),
      rgba(45,110,255,0.03) 10px,
      transparent 10px,
      transparent 20px
    );
}
.hero-logo-3d .placeholder code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem; color: var(--blue-lt);
  background: rgba(45,110,255,0.12);
  padding: 4px 10px; border-radius: 6px;
}
.hero-logo-3d .placeholder small {
  font-size: 0.75rem; color: var(--muted);
  line-height: 1.5; max-width: 220px;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

/* particules flottantes */
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-lt);
  box-shadow: 0 0 12px var(--blue-lt);
  opacity: 0.6;
  animation: floatParticle 8s ease-in-out infinite;
}
.particle:nth-child(2) { background: var(--blue2); box-shadow: 0 0 12px var(--blue2); }
.particle:nth-child(4) { background: #FFF; box-shadow: 0 0 8px #FFF; }
@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-15px, -50px); }
  75% { transform: translate(25px, -20px); }
}

/* stats : meilleur design, with hover micro-tilt */
.hero-stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--stats-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 520px;
  opacity: 0; animation: fadeUp .7s .95s var(--ease-out) forwards;
}
.hero-stat {
  flex: 1 1 0;
  padding: 22px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background .3s var(--ease);
  min-width: 100px;
  position: relative; overflow: visible;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(45,110,255,0.06); }
.hero-stat::before {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .35s var(--ease-out);
}
.hero-stat:hover::before { width: 60%; }
.hero-stat-num {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 4px;
  line-height: 1.25;
}
.hero-stat-lbl {
  font-size: 0.72rem; color: var(--muted);
  margin-top: 4px; line-height: 1.4;
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s 1.4s var(--ease-out) forwards;
  z-index: 2;
}
.scroll-cue .mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--muted);
  border-radius: 12px; position: relative;
}
.scroll-cue .mouse::before {
  content: ''; position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--blue-lt); border-radius: 2px;
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: translate(-50%, -4px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 28px;
  font-family: var(--sans); font-size: 0.93rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: background-color .25s var(--ease-out),
              border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out),
              transform .25s var(--ease-out),
              opacity .25s var(--ease-out);
  position: relative;
  overflow: visible; /* nécessaire pour que l'anneau Siri déborde légèrement */
  text-decoration: none;
}
.btn .arrow {
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad); color: var(--white);
  box-shadow: 0 4px 18px rgba(45,110,255,0.30);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
  --siri-ang: 0deg;
}

/* Anneau Siri iOS 26 — tourne autour du bouton au hover */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;           /* dépasse légèrement pour créer l'anneau extérieur */
  border-radius: 30px;   /* 28px bouton + 2px débordement */
  padding: 2px;          /* épaisseur de l'anneau */
  background: conic-gradient(
    from var(--siri-ang),
    transparent        0%,
    transparent       16%,
    rgba(27,95,236,0)  20%,
    rgba(27,95,236,.8) 27%,
    rgba(140,210,255,1) 32%,
    rgba(27,95,236,.8) 37%,
    rgba(27,95,236,0)  42%,
    transparent       48%,
    transparent       67%,
    rgba(65,130,255,0) 71%,
    rgba(65,130,255,.6) 76%,
    rgba(115,188,255,.85) 79.5%,
    rgba(65,130,255,.6) 83%,
    rgba(65,130,255,0) 87%,
    transparent       92%
  );
  /* Masque : ne montre que le padding (= l'anneau) */
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s var(--ease-out);
  animation: siriSpin 2.5s linear infinite;
  animation-play-state: paused;
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(45,110,255,0.48);
}
.btn-primary:hover::before {
  opacity: 1;
  animation-play-state: running;
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent; color: var(--off);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(91,143,255,0.45);
}
.btn-ghost:active { transform: scale(0.98); }

/* ── REVEAL ON SCROLL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 18px 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  position: relative;
}
.marquee-strip::before, .marquee-strip::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.marquee-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.marquee-item:hover { color: var(--off); }
.m-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-lt); flex-shrink: 0;
  box-shadow: 0 0 6px var(--blue-lt);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTIONS ────────────────────────────────────────────── */
section { padding: 110px 0; position: relative; }

.sec-label {
  display: inline-flex; align-items: center;
  background: rgba(45,110,255,0.10);
  border: 1px solid rgba(45,110,255,0.22);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue-lt);
  margin-bottom: 20px;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.18; margin-bottom: 14px;
  padding-bottom: 2px;
}

/* ── PROBLEM ──────────────────────────────────────────────── */
.problem { background: var(--bg2); }
.problem-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.problem-left { position: sticky; top: 90px; }
.problem-left p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.8;
  margin-top: 16px; font-weight: 300;
}
.problem-cards { display: flex; flex-direction: column; gap: 10px; }
.problem-card {
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 26px;
  background: var(--bg3);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: default;
  position: relative; overflow: hidden;
}
.problem-card:hover {
  border-color: rgba(45,110,255,0.32);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-border);
}
.p-num {
  font-size: 0.67rem; color: var(--blue-lt); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.problem-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.problem-card p {
  color: var(--muted); font-size: 0.875rem; line-height: 1.7; font-weight: 300;
}

/* ── OFFRES ───────────────────────────────────────────────── */
.offres-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end; margin-bottom: 48px;
}
.offres-intro p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.8; font-weight: 300;
}
.offres-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.offre-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.offre-card:hover {
  border-color: rgba(45,110,255,0.30);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-border);
}

.offre-card.glow-card {
  background: linear-gradient(160deg, rgba(45,110,255,0.10) 0%, rgba(45,110,255,0.05) 100%);
  border-color: rgba(45,110,255,0.30);
}
.offre-card.glow-card:hover {
  border-color: rgba(45,110,255,0.45);
  background: linear-gradient(160deg, rgba(45,110,255,0.14) 0%, rgba(45,110,255,0.08) 100%);
}

.offre-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 16px;
  position: relative; z-index: 1;
}
.offre-icon {
  width: 56px; height: 56px;
  margin-bottom: 16px;
  background: rgba(45,110,255,0.08);
  border: 1px dashed rgba(91,143,255,0.40);
  border-radius: 14px;
  position: relative; z-index: 1;
  transition: transform .35s var(--ease-out), background .35s, border-color .35s;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.offre-icon img { width: 100%; height: 100%; object-fit: contain; }
.offre-icon svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.offre-icon::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 6px,
      rgba(91,143,255,0.06) 6px,
      rgba(91,143,255,0.06) 7px
    );
}
.offre-icon:has(img)::before { display: none; }
.offre-card:hover .offre-icon {
  background: rgba(45,110,255,0.14);
  border-color: rgba(91,143,255,0.65);
}
.offre-card h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.offre-desc {
  font-size: 0.9rem; color: var(--muted); flex: 1;
  line-height: 1.75; font-weight: 300;
  position: relative; z-index: 1;
}
.offre-price {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.03em; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.offre-price small {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--muted); font-weight: 300;
}
.offre-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--blue-lt);
  margin-top: 14px; transition: gap .25s var(--ease-out);
  position: relative; z-index: 1;
}
.offre-link:hover { gap: 14px; }

/* ── ABONNEMENTS ──────────────────────────────────────────── */
.abo-section { background: var(--bg2); position: relative; }
.abo-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 100%, rgba(45,110,255,0.08), transparent 70%);
  pointer-events: none;
}
.abo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 48px;
  position: relative;
}
.abo-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
  box-shadow: var(--card-shadow);
}
.abo-card:hover {
  border-color: rgba(45,110,255,0.32);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-border);
}
.abo-card.featured {
  background: linear-gradient(160deg, rgba(45,110,255,0.14) 0%, rgba(45,110,255,0.07) 100%);
  border-color: rgba(45,110,255,0.35);
  position: relative; padding-top: 44px;
  transform: scale(1.02);
}
.abo-card.featured:hover { transform: scale(1.02); }
.abo-card.featured::before {
  content: 'Recommandé';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--white);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 18px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(45,110,255,0.4);
}
.abo-name {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.abo-card.featured .abo-name { color: var(--blue-lt); }
.abo-price {
  font-family: var(--serif); font-size: 2.8rem; font-weight: 700;
  letter-spacing: -0.05em; line-height: 1.15;
  padding-bottom: 4px;
}
.abo-sub {
  font-size: 0.8rem; color: var(--muted);
  margin: 6px 0 24px; font-weight: 300;
}
.abo-sep { height: 1px; background: var(--border); margin: 20px 0; }
.abo-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 12px; margin-bottom: 28px; flex: 1;
}
.abo-features li {
  font-size: 0.88rem; display: flex; align-items: flex-start;
  gap: 10px; color: var(--off); font-weight: 300;
}
.abo-features li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  background-color: rgba(45,110,255,0.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5 L6.5 12 L13 4.5' fill='none' stroke='%235B8FFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  border-radius: 50%;
}

/* ── PROCESS ──────────────────────────────────────────────── */
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 52px;
  position: relative;
}
/* ligne reliant les étapes (desktop) */
.process-row::before {
  content: ''; position: absolute;
  top: 51px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,143,255,0.4), rgba(91,143,255,0.4), transparent);
  z-index: 0;
}
.process-step {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px 24px;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative; z-index: 1;
}
.process-step:hover {
  border-color: rgba(45,110,255,0.32);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-border);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 20px; flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(45,110,255,0.35);
  position: relative;
}
.step-num::after {
  content: ''; position: absolute; inset: -4px;
  border: 1px solid rgba(91,143,255,0.4);
  border-radius: 50%; opacity: 0;
  transition: opacity .3s, transform .3s;
}
.process-step:hover .step-num::after {
  opacity: 1; transform: scale(1.15);
}
.process-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.process-step p {
  font-size: 0.86rem; color: var(--muted);
  line-height: 1.7; font-weight: 300;
}

/* ── TEMOIGNAGES ──────────────────────────────────────────── */
.temoignages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 48px;
}
.temo-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative;
}
.temo-card::before {
  content: '"';
  position: absolute; top: 12px; right: 24px;
  font-family: var(--serif); font-size: 5rem;
  font-weight: 700; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
}
.temo-card:hover {
  border-color: rgba(45,110,255,0.32);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-border);
}
.temo-stars {
  color: #E8A838; letter-spacing: 2px;
  font-size: 0.9rem; margin-bottom: 16px;
}
.temo-card blockquote {
  font-size: 0.95rem; color: var(--off); line-height: 1.75;
  margin-bottom: 24px; font-weight: 300;
  flex: 1;
  position: relative;
}
.temo-author { display: flex; align-items: center; gap: 12px; }
.temo-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem;
  flex-shrink: 0; color: var(--white);
  box-shadow: 0 4px 12px rgba(45,110,255,0.3);
}
.temo-name { font-size: 0.9rem; font-weight: 500; }
.temo-role { font-size: 0.76rem; color: var(--muted); }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg,
    rgba(45,110,255,0.12) 0%,
    rgba(45,110,255,0.06) 50%,
    rgba(45,110,255,0.06) 100%
  );
  border-top: 1px solid rgba(45,110,255,0.18);
  border-bottom: 1px solid rgba(45,110,255,0.18);
  padding: 110px 0; text-align: center;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(45,110,255,0.10) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px;
  line-height: 1.3; padding-bottom: 10px;
  position: relative;
}
.cta-band p {
  color: var(--off); font-size: 1rem;
  margin-bottom: 36px; font-weight: 300;
  position: relative;
  opacity: 0.85;
}
.cta-band .btn { position: relative; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  padding: 48px 0; border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
}
.footer-logo img {
  width: 28px; height: 28px;
  transition: transform .4s var(--ease-out);
}
.footer-logo:hover img { transform: rotate(45deg); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.86rem; color: var(--muted); transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* ── PAGE HERO (offres/devis) ─────────────────────────────── */
.page-hero {
  padding: 140px 0 72px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 20% 100%, rgba(45,110,255,0.12), transparent 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 14px; line-height: 1.05;
  opacity: 0; animation: fadeUp .8s .1s var(--ease-out) forwards;
}
.page-hero .breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px;
  opacity: 0; animation: fadeUp .6s 0s var(--ease-out) forwards;
}
.page-hero > .container > p {
  opacity: 0; animation: fadeUp .8s .25s var(--ease-out) forwards;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }

/* ── OFFRE DETAIL ─────────────────────────────────────────── */
.detail-block {
  padding: 80px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.detail-block:last-child { border-bottom: none; }
.detail-tag {
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 12px;
}
.detail-block h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 16px; line-height: 1.1;
}
.detail-block > div > p {
  color: var(--muted); font-size: 0.95rem;
  line-height: 1.8; margin-bottom: 28px; font-weight: 300;
}
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.price-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 20px;
  transition: all .3s var(--ease-out);
}
.price-card:hover {
  border-color: rgba(45,110,255,0.32);
  background: linear-gradient(180deg, rgba(45,110,255,0.05), transparent 70%), var(--bg3);
}
.price-card.glow-pc {
  background: rgba(45,110,255,0.09); border-color: rgba(45,110,255,0.25);
}
.price-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.pc-sub { font-size: 0.76rem; color: var(--muted); margin-bottom: 10px; font-weight: 300; }
.pc-price {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.03em;
}
.pc-note { font-size: 0.74rem; color: var(--muted); margin-top: 4px; font-weight: 300; }
.detail-includes {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px;
  transition: border-color .3s;
}
.detail-includes:hover { border-color: rgba(91,143,255,0.25); }
.detail-includes h3 {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.detail-includes ul {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.detail-includes li {
  font-size: 0.9rem; display: flex; gap: 10px;
  line-height: 1.5; color: var(--off); font-weight: 300;
  transition: transform .25s var(--ease-out), color .25s;
}
.detail-includes li:hover { transform: translateX(4px); color: var(--white); }
.detail-includes li::before { content: '→'; color: var(--blue-lt); flex-shrink: 0; }

/* ── FORMULAIRE ───────────────────────────────────────────── */
.devis-layout {
  display: grid; grid-template-columns: 1fr 290px;
  gap: 64px; align-items: start;
}
.aside-sticky { position: sticky; top: 88px; }
.aside-block {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; margin-bottom: 12px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.aside-block:hover { border-color: rgba(45,110,255,0.30); background: linear-gradient(180deg, rgba(45,110,255,0.04), transparent 80%), var(--bg2); }
.aside-block.glow-aside {
  border-color: rgba(45,110,255,0.25);
  background: rgba(45,110,255,0.06);
}
.aside-block h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 10px; }
.aside-block p {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.65; font-weight: 300;
}
.aside-block ul {
  list-style: none; margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.aside-block li {
  font-size: 0.84rem; display: flex; gap: 8px;
  color: var(--off); font-weight: 300;
}
.aside-block li::before { content: '→'; color: var(--blue-lt); flex-shrink: 0; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; position: relative; }
label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: var(--off); }
input, select, textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border2); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 0.95rem; color: var(--white);
  background: var(--bg2); transition: border-color .25s, box-shadow .25s, transform .25s;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: var(--bg2); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45,110,255,0.15);
}
textarea { resize: vertical; min-height: 140px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note {
  font-size: 0.78rem; color: var(--muted);
  margin-top: 14px; text-align: center; font-weight: 300;
}
.success-box {
  display: none;
  background: rgba(45,110,255,0.08); border: 1px solid rgba(45,110,255,0.28);
  border-radius: var(--r); padding: 48px; text-align: center; margin-top: 24px;
  animation: fadeUp .6s var(--ease-out);
}
.success-check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(45,110,255,0.18);
  border: 1.5px solid var(--blue);
  position: relative;
}
.success-check::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 9px;
  border-left: 2.5px solid var(--blue-lt);
  border-bottom: 2.5px solid var(--blue-lt);
  transform: translate(-50%, -65%) rotate(-45deg);
}
.success-box h3 {
  font-family: var(--serif); font-size: 2rem;
  font-weight: 700; margin-bottom: 10px;
}
.success-box p { font-size: 0.92rem; color: var(--muted); font-weight: 300; }

/* ── THEME TOGGLE ─────────────────────────────────────────── */
/* Toggle dans la nav (desktop) */
.theme-toggle {
  background: var(--toggle-surf);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--off); border-color: var(--border2); transform: rotate(20deg); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; }

/* Toggle FAB (mobile) — injecté sur <body> par JS, pas dans la nav */
.theme-toggle-fab {
  position: fixed;
  bottom: 22px; right: 18px;
  z-index: 9989; /* sous le grain, au-dessus de tout le reste */
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.14), 0 0 0 1px var(--border);
  cursor: pointer;
  display: none; /* masqué par défaut — JS le montre sur mobile */
  align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.theme-toggle-fab:hover { color: var(--off); transform: rotate(20deg); }
.theme-toggle-fab svg { width: 18px; height: 18px; stroke: currentColor; }
@media (max-width: 600px) {
  .theme-toggle-fab { display: flex; }
  /* Masquer le toggle dans la nav sur mobile */
  .nav-inner .theme-toggle { display: none; }
}
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── SYSTÈME SOLAIRE IA ───────────────────────────────────── */
.ai-hub-section { background: var(--bg2); overflow: hidden; }
.ai-hub-header { text-align: center; margin-bottom: 64px; }
.ai-hub-sub {
  color: var(--muted); font-weight: 300; font-size: 0.95rem;
  max-width: 480px; margin: 12px auto 0; line-height: 1.75;
}

.solar-hub {
  position: relative;
  width: 680px; height: 680px;
  margin: 0 auto;
}
.solar-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Étoile centrale */
.solar-star {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(91,143,255,0.28), rgba(45,110,255,0.14) 55%, rgba(45,110,255,0.06));
  border: 1px solid rgba(45,110,255,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 0 36px rgba(45,110,255,0.28), 0 0 70px rgba(45,110,255,0.10);
}
.solar-star img { width: 42px; height: 42px; position: relative; z-index: 1; }
.solar-glow {
  position: absolute; inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,110,255,0.12), transparent 70%);
  animation: solarGlow 4s ease-in-out infinite;
}
@keyframes solarGlow {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.2); opacity: 1; }
}

/*
  Système solaire — positions calculées par JS (sin/cos).
  Pas de CSS animation → zéro bug de téléportation.
  JS pose directement left/top/transform sur chaque .planet-arm.
*/
.planet-arm {
  position: absolute;
  min-width: 52px;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto;
  cursor: pointer;
  overflow: visible;
  /* left/top/transform injectés par initSolarOrbit() */
}

/* Disque du logo */
.planet-disc {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 1.5px solid rgba(45,110,255,0.28);
  box-shadow: 0 0 18px rgba(45,110,255,0.20), 0 2px 8px rgba(0,0,0,0.10);
  display: flex; align-items: center; justify-content: center;
  transition: transform .28s var(--ease-out), box-shadow .28s;
}
.planet-arm:hover .planet-disc {
  transform: scale(1.32);
  box-shadow: 0 0 32px rgba(45,110,255,0.55), 0 6px 20px rgba(0,0,0,0.18);
}
.planet-disc img {
  width: 68%; height: 68%;
  object-fit: contain; display: block;
  transition: filter .3s;
}
/* Logos noirs (ChatGPT, Perplexity, Grok) invisibles sur fond sombre */
[data-theme="dark"] .dark-inv img { filter: invert(1); }

/* Badge nom arrondi */
.planet-label {
  margin-top: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px) scale(0.88);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(45,110,255,0.30);
}
.planet-arm:hover .planet-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile : grille de logos — 4 colonnes = 2 lignes de 4, aucun orphelin */
.ai-chips {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 380px;
  margin: 40px auto 0;
}
.ai-chip {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--card-shadow);
  min-width: 74px;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.ai-chip:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(45,110,255,0.12); }
.chip-img {
  width: 40px; height: 40px;
  object-fit: contain; display: block;
}
[data-theme="dark"] .chip-img.dark-inv { filter: invert(1); }
.ai-chip span {
  font-size: 0.58rem; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first, 3 breakpoints
   ≤ 900px  : tablette / mobile général
   ≤ 600px  : petite tablette / grand téléphone
   ≤ 420px  : petit téléphone
   ══════════════════════════════════════════════════════════ */

/* ── 900 px ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .spotlight { display: none; }

  /* Nav */
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 78px;
    left: 12px; right: 12px;
    background: var(--nav-mob-bg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    padding: 16px;
    gap: 4px;
    border: 1px solid var(--border2);
    border-radius: var(--r);
    box-shadow: 0 24px 60px -16px rgba(0,0,0,0.5),
                0 0 0 1px rgba(45,110,255,0.08);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transform-origin: top right;
    animation: menuOpen .25s var(--ease-out);
    z-index: 190;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 14px; border-radius: 10px;
    font-size: 0.95rem; color: var(--off);
    transition: background .2s, color .2s;
  }
  .nav-links a:not(.nav-cta):hover { background: rgba(45,110,255,0.10); color: var(--off); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; justify-content: center; display: inline-flex; }
  @keyframes menuOpen {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  /* scroll lock géré par JS (position:fixed + savedScroll) — pas ici */
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 100px 0 56px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-left { text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-stats {
    margin: 0 auto; flex-wrap: wrap;
    max-width: 100%; border-radius: var(--r-sm);
  }
  .hero-stat { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .hero-visual { max-width: 280px; width: 100%; margin: 0 auto; justify-self: center; order: -1; }
  .scroll-cue { display: none; }

  /* Sections */
  .problem-inner { grid-template-columns: 1fr; gap: 36px; }
  .problem-left { position: static; }
  .offres-intro { grid-template-columns: 1fr; gap: 20px; }
  .offres-grid { grid-template-columns: 1fr; }
  .abo-grid { grid-template-columns: 1fr; }
  .abo-card.featured { transform: none; }
  .abo-card.featured:hover { transform: none; }
  .process-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .process-row::before { display: none; }
  .temoignages-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  /* Pages offres / devis */
  .devis-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .form-2col { grid-template-columns: 1fr; }
  .detail-block { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .price-cards { grid-template-columns: 1fr 1fr; }

  /* Système solaire → grille de logos */
  .solar-hub { display: none; }
  .ai-chips { display: grid; }
  .ai-hub-header { margin-bottom: 0; }
}

/* ── 600 px ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  nav { padding: 0 16px; }

  /* Nav compacte */
  .nav-inner { height: 60px; }
  .nav-logo { font-size: 1rem; }
  .nav-logo img { width: 26px; height: 26px; }
  .nav-links { top: 68px; }

  /* Toggle déplacé hors de la nav par JS — rester cohérent avec son positionnement */
  .theme-toggle {
    /* Hérité du .theme-toggle global, rien à surcharger ici */
  }

  /* Hero */
  .hero { padding: 86px 0 48px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .hero-visual { max-width: 220px; }

  /* Stats */
  .hero-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-stat-num { font-size: 1.5rem; }

  /* Sections */
  .sec-title { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
  .offres-grid { gap: 10px; }
  .offre-card { padding: 24px; }
  .offre-price { font-size: 1.5rem; }
  .abo-price { font-size: 2.2rem; }
  .abo-card { padding: 24px; }
  .process-row { grid-template-columns: 1fr; }
  .cta-band { padding: 72px 0; }
  .cta-band h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }

  /* Témoignages */
  .temo-card { padding: 22px; }

  /* Footer */
  .footer-copy { font-size: 0.75rem; }
  .footer-links a { font-size: 0.82rem; }

  /* Pages */
  .page-hero { padding: 100px 0 48px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .detail-block { padding: 40px 0; }
  .price-cards { grid-template-columns: 1fr; }
  .devis-layout { gap: 32px; }
  .aside-block { padding: 20px; }

  /* Chips IA */
  .ai-chips { gap: 8px; }
  .ai-chip { padding: 7px 14px; font-size: 0.78rem; }
}

/* ── 420 px ─────────────────────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  section { padding: 48px 0; }

  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); line-height: 1.22; }
  .hero-sub { font-size: 0.9rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .sec-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .sec-label { font-size: 0.65rem; }

  .offre-card { padding: 20px; }
  .abo-card { padding: 20px; }
  .abo-price { font-size: 2rem; }
  .process-step { padding: 22px 18px; }

  .nav-logo { gap: 8px; font-size: 0.95rem; }

  .footer-inner { gap: 10px; }
  .footer-links { gap: 12px; }

  .form-group { margin-bottom: 14px; }
  input, select, textarea { padding: 11px 14px; font-size: 0.9rem; }

  .cta-band { padding: 56px 0; }
  .cta-band p { font-size: 0.9rem; }

  /* Grille logos très petits écrans */
  .ai-chips { gap: 8px; max-width: 300px; }
  .ai-chip { padding: 10px 8px 8px; min-width: unset; }
  .chip-img { width: 32px; height: 32px; }
  .ai-chip span { font-size: 0.52rem; }
}

/* Tablette large : hub solaire réduit */
@media (min-width: 901px) and (max-width: 1100px) {
  .solar-hub {
    transform: scale(0.76);
    transform-origin: top center;
    margin-bottom: -120px;
  }
}
