/* =====================================================================
   STYLE — mise en page & composants.
   Ne dérive QUE des variables de theme.css. Normalement tu n'y touches pas.
   ===================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* =========================================================
   FOND ANIME AU SCROLL  (l'effet)
   ========================================================= */
.bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(var(--bg-blur));
  opacity: var(--bg-opacity);
  will-change: transform;
}
.blob--1 { width: 55vw; height: 55vw; left: -12vw; top: -12vw;  background: var(--accent);   }
.blob--2 { width: 46vw; height: 46vw; right: -10vw; top: 18vh;  background: var(--accent-2); }
.blob--3 { width: 52vw; height: 52vw; left: 22vw;  bottom: -22vw; background: var(--accent-3); }

@supports (animation-timeline: scroll()) {
  .blob--1 { animation: drift1 linear both; animation-timeline: scroll(root); }
  .blob--2 { animation: drift2 linear both; animation-timeline: scroll(root); }
  .blob--3 { animation: drift3 linear both; animation-timeline: scroll(root); }
}
@keyframes drift1 { to { transform: translate(28vw, 65vh) rotate(90deg) scale(1.3); } }
@keyframes drift2 { to { transform: translate(-38vw, -28vh) scale(0.7); } }
@keyframes drift3 { to { transform: translate(-18vw, -72vh) rotate(-55deg) scale(1.4); } }

.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Tout le contenu passe AU-DESSUS du fond */
.page { position: relative; z-index: 1; }

/* =========================================================
   NAV
   ========================================================= */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn svg { width: 18px; height: 18px; }

/* =========================================================
   SECTIONS génériques
   ========================================================= */
section { padding: 110px 0; position: relative; }
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; }

/* Reveal au scroll (JS ajoute .in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 90px; text-align: center; }
.hero h1 { max-width: 16ch; margin: 0 auto; }
.hero .lead { margin: 26px auto 0; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.trust { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.trust-label { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.trust-avatars { display: flex; }
.trust-avatars img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -12px; }
.trust-avatars img:first-child { margin-left: 0; }
.hero-visual { margin: 70px auto 0; max-width: 1000px; }
.hero-visual img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 40px 120px -40px var(--accent); }

/* =========================================================
   SPLIT (titre + visuel côte à côte)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.split .btn-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--accent); opacity: .5; }

/* =========================================================
   LOGOS partenaires (marquee)
   ========================================================= */
.partners { text-align: center; padding: 70px 0; }
.partners .eyebrow { color: var(--muted); }
.marquee { overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee-track img { height: 30px; color: var(--muted); opacity: .7; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* =========================================================
   CARTES features
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   Grille solutions (2x2)
   ========================================================= */
.grid-solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sol {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
}
.sol img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.sol h3 { font-size: 1.15rem; }
.sol p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   STATS
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.stat { text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat .big { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--ink); }
.stat .lbl { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.testi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.testi-head img { width: 48px; height: 48px; border-radius: 50%; }
.testi-head .n { font-weight: 600; }
.testi-head .r { color: var(--muted); font-size: .85rem; }
.testi blockquote { color: var(--ink); font-size: 1.05rem; line-height: 1.55; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.plan--featured { border-color: var(--accent); box-shadow: 0 30px 90px -40px var(--accent); }
.plan .tier { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.plan .desc { color: var(--muted); font-size: .92rem; margin: 8px 0 22px; min-height: 42px; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); }
.plan li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.plan .btn { width: 100%; justify-content: center; }

/* =========================================================
   CTA final + FOOTER
   ========================================================= */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin: 0 auto; }
.cta-final .hero-actions { margin-top: 30px; }

footer { border-top: 1px solid var(--line); padding: 60px 0 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { font-size: 1.2rem; margin-bottom: 10px; }
.foot-brand p { color: var(--muted); font-size: .92rem; }
.foot-col h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 10px; opacity: .85; }
.foot-col a:hover { opacity: 1; }
.foot-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; }

/* =========================================================
   SÉQUENCE DE FRAMES (effet 3D au scroll, façon Apple)
   - .seq fait plusieurs écrans de haut : c'est cette hauteur
     qui définit la "durée" de l'animation au scroll.
   - .seq-sticky reste collé pendant qu'on scrolle à travers.
   ========================================================= */
.seq { height: 320vh; position: relative; padding: 0; }
.seq-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.seq-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.seq-overlay {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px; pointer-events: none;
}
.seq-overlay .eyebrow { justify-content: center; }
.seq-overlay h2 { max-width: 18ch; margin: 0 auto; text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.seq-overlay .lead { margin: 18px auto 0; text-shadow: 0 1px 16px rgba(0,0,0,.55); }

@media (max-width: 900px) {
  .seq { height: 260vh; }
}
@media (prefers-reduced-motion: reduce) {
  .seq { height: auto; }
  .seq-sticky { position: relative; height: 70vh; }
}

/* Indicateur de progression (comme le "0%" du site peach) */
.progress { position: fixed; bottom: 22px; left: 22px; z-index: 40; color: var(--muted); font-size: .82rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .grid-3, .grid-solutions, .stats, .testi-grid, .pricing-grid, .foot-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 80px 0; }
  .foot-bottom { flex-direction: column; gap: 10px; }
}

/* Accessibilité : coupe les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .blob, .marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
