/* ============================================================
   UPWISE — LANDING PAGE
   Direction artistique : futuriste sobre, nuit urbaine (GTA-like),
   élégant, sans néon criard. Tout le design passe par les
   variables CSS déclarées dans :root.
   ============================================================ */

/* Typo : Space Grotesk (titres) + Inter (corps) — seul import externe autorisé */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

/* ---------- Variables de design ---------- */
:root {
  /* Couleurs */
  --bg: #070B14;                            /* bleu nuit très sombre, fond global */
  --bg-card: rgba(13, 18, 32, 0.7);         /* fond des cards */
  --border-card: rgba(255, 255, 255, 0.08); /* bordure neutre (chrome structurel) */
  --border-amber: rgba(245, 166, 35, 0.35);      /* liseré ambré — grandes cartes */
  --border-amber-soft: rgba(245, 166, 35, 0.20); /* liseré ambré doux — petites cartes */
  --text: #FFFFFF;                          /* titres ET texte courant : blanc pur */
  --text-muted: #C6D0E2;                    /* micro-éléments secondaires uniquement
                                               (labels uppercase, sous-prix, mentions,
                                               labels des compteurs) */
  --accent: #F5A623;                        /* jaune ambre — CTA & progression */
  --accent-contrast: #0A0A0A;               /* texte sur fond accent */
  --accent-2: #5BE0E6;                      /* cyan clair — micro-détails uniquement */

  /* Typographie */
  --font-base: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-base);
  --font-size-base: 1rem;
  /* texte courant : ~19px desktop, plancher ~16px mobile */
  --font-size-body: clamp(1rem, 0.92rem + 0.33vw, 1.1875rem);
  --font-size-sm: 0.875rem;
  --font-size-xs: 0.75rem;
  --font-size-lg: 1.125rem;
  --font-size-h1: 2.25rem;
  --font-size-h2: 1.625rem;
  --font-size-h3: 1.25rem;
  --font-size-stat: 2.25rem;
  --line-height-base: 1.65;
  --line-height-heading: 1.15;
  --letter-spacing-label: 0.18em;           /* labels techniques esprit jeu */

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 6rem;

  /* Mise en page */
  --container-max-width: 60rem;
  --content-max-width: 42rem;

  /* Divers */
  --radius: 16px;
  --btn-padding: 1rem 2.5rem;
  --card-blur: 8px;

  /* Voile + fondu appliqués par-dessus les images de fond de section
     (transparent en haut → var(--bg) en bas, pour fondre dans la page) */
  --section-overlay: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.45) 0%,
    rgba(7, 11, 20, 0.6) 55%,
    #070B14 100%
  );
}

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

html {
  scroll-behavior: smooth;
  /* compense le menu fixed lors de la navigation par ancres */
  scroll-padding-top: 110px;
  /* les ellipses d'ambiance débordent des bords : aucun scroll
     latéral. clip (et non hidden) : hidden transformerait body en
     conteneur de scroll et casserait le position: sticky du laptop */
  overflow-x: clip;
}

body {
  overflow-x: clip;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  /* texte courant blanc partout ; --text-muted réservé aux
     micro-éléments qui le déclarent explicitement */
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: var(--line-height-heading);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Structure générale ---------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

/* Rythme vertical harmonisé : ~52px de padding par section, soit
   ~104px d'écart total entre deux sections — un seul espacement à
   chaque jonction, jamais deux qui s'empilent */
.section {
  padding-block: clamp(2.5rem, 6vw, 3.25rem);
}

/* Titres de section : gros (28px → 48px), 2 lignes MAXIMUM.
   text-wrap: balance équilibre les lignes ; main.js réduit le
   font-size sous le clamp si un titre dépasserait 2 lignes dans
   sa colonne (règle absolue, à toutes les largeurs). */
/* Règle générale : tous les titres de section sont centrés au-dessus
   de leur section, EN DEHORS des cartes. */
.section h2 {
  /* Le facteur vw garantit que la ligne la plus longue de la page
     (niveaux, ~28em en majuscules) tient dans le viewport avec
     ≥24px de marge de chaque côté : (100vw - 48px) / 28 */
  font-size: clamp(1.625rem, calc((100vw - 48px) / 28), 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em; /* lisibilité indispensable en majuscules */
  text-wrap: balance;
  text-align: center;
  margin-bottom: 2.25rem;
}

/* Lignes forcées d'un titre (ex. dashboard) : blocs empilés */
.h2-line {
  display: block;
}

/* Barre d'accent jaune sous chaque titre de section.
   Alignée à gauche par défaut (titres alignés à gauche) ; pour un
   futur titre centré, ajouter margin-inline: auto dans son contexte. */
.section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  margin-inline: auto; /* barre centrée, comme tous les titres */
  border-radius: 999px;
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
}

.section p {
  max-width: var(--content-max-width);
  font-size: var(--font-size-body);
  line-height: 1.75;
  margin-bottom: 1.2em;
}

/* Sections avec image de fond : même principe que le hero.
   Usage futur : class="section section--img" + style ou règle dédiée
   définissant --section-bg (ex. --section-bg: url("../img/niveaux.png")). */
.section--img {
  background-color: var(--bg); /* fallback tant que l'image n'existe pas */
  background-image: var(--section-overlay), var(--section-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Bouton CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: var(--btn-padding);
  /* bordure transparente par défaut : hauteur identique entre
     bouton principal (sans bordure visible) et secondaire (ghost) */
  border: 1px solid transparent;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  overflow: hidden; /* contient le reflet (shine sweep) */
}

.btn__icon {
  flex: none;
  transform-origin: center;
}

/* Shake de l'icône au survol du bouton : oscillation en rotation à
   amplitude dégressive, jouée UNE fois par survol (pas de boucle),
   rejouée à chaque nouveau survol. Rotation seule : le texte du
   bouton ne bouge jamais. Les hovers du bouton (élévation, shine)
   se jouent en même temps. */
.btn:hover .btn__icon {
  animation: icon-shake 0.5s ease;
}

@keyframes icon-shake {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-12deg); }
  30%  { transform: rotate(10deg); }
  45%  { transform: rotate(-8deg); }
  60%  { transform: rotate(6deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

.btn--primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
  /* très léger glow ambré, volontairement discret */
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary:hover {
  background-color: #FFB93E; /* léger éclaircissement de var(--accent) */
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245, 166, 35, 0.32), 0 0 48px rgba(245, 166, 35, 0.2);
}

/* Reflet qui balaie le bouton au survol */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn--primary:hover::after {
  animation: btn-shine 0.9s ease;
}

@keyframes btn-shine {
  from { left: -75%; }
  to   { left: 125%; }
}

/* Bouton secondaire (ghost) — ne concurrence jamais le principal.
   Pas d'icône, pas d'effet shine. */
.btn--secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

/* ---------- Hero ----------
   L'image de fond est portée par .hero__bg (couche séparée) pour
   permettre le reveal fondu + zoom arrière à la fin du loader.
   L'image est atténuée (lueur d'ambiance) : le produit — texte
   et VSL — redevient le héros.
   Empilement : image (0) → voile + dégradé (1) →
   particules (3) → contenu (4). */
.section--hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  text-align: center;
  /* haut : espace supplémentaire pour le menu fixed.
     bas : réduit — c'est le seul espacement entre la VSL et la
     bordure de la section chiffres (pas d'empilement). */
  padding-block: calc(var(--space-xl) + 4rem) clamp(2.5rem, 8vw, 3.5rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* décor discret : image assombrie et désaturée */
  filter: brightness(0.6) saturate(0.75);
  transform: scale(1.1);
  transform-origin: center;
  opacity: 0;
  transition: transform 1.5s ease-out, opacity 1.5s ease-out;
  will-change: transform, opacity;
}

/* Déclenché par main.js à la fin du loader */
body.is-loaded .hero__bg {
  transform: scale(1);
  opacity: 1;
}

/* Respiration infinie une fois le reveal terminé (classe posée par
   main.js sur transitionend) : démarre exactement à scale(1) — aucun
   à-coup — et ne descend jamais sous 1 (bords de l'image invisibles).
   Seule l'image respire ; voile, dégradé, particules et contenu sont
   des calques séparés qui ne bougent pas. */
@keyframes hero-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero__bg.is-breathing {
  /* ~6,5s par phase, aller-retour : cycle complet ~13s */
  animation: hero-breathe 6.5s ease-in-out infinite alternate;
}

/* Voile uni + dégradé vers var(--bg), en place pendant tout le reveal.
   Le dégradé (ancré en bas, "to top") est calibré sur la géométrie
   réelle du hero :
   - opacité totale de 0 jusqu'à la mi-hauteur du bloc VSL, soit
     padding-bas (--space-xl) + la moitié de la hauteur de la VSL
     (largeur du contenu × 9/16 ÷ 2 = largeur × 9/32) ;
   - fondu progressif au-dessus (stops intermédiaires pour éviter
     toute bande visible), qui s'achève juste sous le H1. */
.hero__veil {
  --fade-solid: calc(var(--space-xl) + min(100vw - 2rem, 58rem) * 9 / 32);
  --fade-span: clamp(260px, 40vw, 500px);
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(7, 11, 20, 0.35);
  background-image: linear-gradient(
    to top,
    #070B14 0,
    #070B14 var(--fade-solid),
    rgba(7, 11, 20, 0.78) calc(var(--fade-solid) + var(--fade-span) * 0.28),
    rgba(7, 11, 20, 0.48) calc(var(--fade-solid) + var(--fade-span) * 0.55),
    rgba(7, 11, 20, 0.22) calc(var(--fade-solid) + var(--fade-span) * 0.78),
    rgba(7, 11, 20, 0) calc(var(--fade-solid) + var(--fade-span))
  );
}

/* Particules ambrées (canvas dessiné par main.js) */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.section--hero .container {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1. Overline : badge pill, italique, sans soulignement
   (sélecteur p.* : prime sur la taille générique de .section p) */
p.hero__overline {
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--text);
  padding: 10px 50px;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  background-color: rgba(245, 166, 35, 0.07);
  margin-bottom: var(--space-md);
}

/* 2. H1 : 2 lignes exactement, majuscules, imposant avec de l'air.
   Chaque ligne est un bloc nowrap : aucun retour interne possible.
   La ligne 1 (~21,25em en Space Grotesk 700, letter-spacing -0.01em
   et padding des surlignés inclus) vise ~66% de la largeur utile :
   facteur /32, plafonné à 3.5625rem (57px). Sous ~1056px, le
   min(…/23, 2rem) reprend la main pour ne pas devenir trop petit
   sur mobile (~92% de la largeur, comme avant). */
.hero__title {
  font-size: clamp(0.8rem, max(calc((100vw - 2rem) / 32), min(calc((100vw - 2rem) / 23), 2rem)), 3.5625rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em; /* léger resserrement : gagne ~0,4em sur la ligne 1 */
  max-width: none;
  margin-bottom: var(--space-md);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

/* Cadre jaune très léger sur les mots clés du H1 (inline dans la ligne) */
.hero__hl {
  display: inline;
  background-color: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 8px;
  padding: 0 0.2em;
}

/* 3. Sous-titre (p.* : prime sur la taille générique de .section p)
   Blanc pur + léger text-shadow sombre pour la lisibilité sur image */
p.hero__subtitle {
  /* toujours un cran au-dessus du texte courant (~20px desktop) */
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  max-width: var(--content-max-width);
  margin-bottom: var(--space-lg);
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  text-wrap: balance; /* 2 lignes équilibrées maximum */
}

/* Boutons CTA du hero : côte à côte, principal en premier */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Badge de preuve sociale, sous les CTA */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 24px;
  max-width: 100%;
  background-color: rgba(13, 18, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Stack de 3 avatars en cercles CSS, découpés par la bordure var(--bg) */
.social-proof__avatars {
  display: flex;
  flex: none;
}

.social-proof__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.social-proof__avatar + .social-proof__avatar {
  margin-left: -10px;
}

.social-proof__avatar--1 { background: linear-gradient(135deg, #7B5CF0, #3D6BFF); }
.social-proof__avatar--2 { background: linear-gradient(135deg, #3D6BFF, #5BE0E6); }
.social-proof__avatar--3 { background: linear-gradient(135deg, #F5A623, #F0762B); }

.social-proof__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.social-proof__stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  filter: drop-shadow(0 0 3px rgba(245, 166, 35, 0.35));
}

.social-proof__stars svg {
  display: block;
}

/* p.* : prime sur la taille générique de .section p */
p.social-proof__text {
  font-size: 0.9375rem; /* +1px, proportionnel au nouveau texte courant */
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Zone VSL : la banderole marquee traverse tout l'écran derrière
   le bloc vidéo, centrée sur sa mi-hauteur */
.vsl-zone {
  position: relative;
  width: 100%;
  margin-top: var(--space-lg);
}

.vsl-zone .marquee {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  transform: translateY(-50%);
  z-index: 0;
}

/* [VSL] conteneur vidéo 16:9 vide — point focal du hero.
   Fond montés à 0.85 : la banderole se devine à travers le verre
   sans transparaître trop fort. */
.vsl {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgba(13, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--card-blur));
  /* halo ambré très diffus — perceptible, jamais néon */
  box-shadow: 0 0 80px rgba(245, 166, 35, 0.10);
}

/* Bouton play au centre exact du cadre : au-dessus du fond de la VSL
   et de la banderole qui passe derrière. Inerte pour l'instant. */
.vsl__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--accent);
  /* halo diffus, jamais néon */
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.35);
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.vsl__play svg {
  margin-left: 4px; /* centrage optique du triangle */
}

.vsl__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 56px rgba(245, 166, 35, 0.45);
}

.vsl > iframe,
.vsl > video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- Section chiffres : grands compteurs sans cadres ----------
   Les stats sont posées directement sur le fond — un vrai moment
   de la page. Valeurs animées de 0 à la cible au scroll (main.js). */
.section--chiffres {
  /* compact : ~56px desktop, réduit proportionnellement sur mobile */
  padding-block: clamp(2.5rem, 8vw, 3.5rem);
  /* section délimitée et affirmée malgré sa hauteur réduite,
     même traitement que la banderole */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* La rangée peut occuper jusqu'à ~1200px */
.section--chiffres .container {
  max-width: 75rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr; /* < 480px : 1 colonne, gap vertical net */
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 30rem) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56.25rem) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  /* énorme : 48px → 84px */
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 800; /* Space Grotesk plafonne à 700 : rendu au max dispo */
  line-height: 1.05;
  color: var(--accent); /* la progression est ambrée */
  /* très léger glow ambré */
  text-shadow: 0 0 24px rgba(245, 166, 35, 0.25);
}

.stat__label {
  display: block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ---------- Emplacements image ---------- */
.img-placeholder {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius);
  margin-top: var(--space-lg);
}

.img-placeholder--16-9 {
  aspect-ratio: 16 / 9;
}

/* ---------- Fond d'ambiance : ellipses de dégradés très légers ----------
   Alternées gauche/droite le long de la page, décalées vers les bords,
   jamais centrées sous le texte. À peine perceptibles. */
.section--dashboard,
.section--niveaux,
.section--espaces {
  position: relative;
}

.section--dashboard::before,
.section--niveaux::before,
.section--espaces::before {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.section--dashboard::before {
  width: 850px;
  height: 620px;
  right: -420px;
  top: 5%;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.12), transparent);
}

.section--niveaux::before {
  width: 780px;
  height: 600px;
  left: -400px;
  top: 20%;
  background: radial-gradient(closest-side, rgba(120, 80, 220, 0.13), transparent);
}

.section--espaces::before {
  width: 820px;
  height: 640px;
  right: -430px;
  top: 15%;
  background: radial-gradient(closest-side, rgba(120, 80, 220, 0.10), rgba(245, 166, 35, 0.06) 60%, transparent);
}

/* Zone pricing : même ambiance, côté gauche */
.section--pricing {
  position: relative;
}

.section--pricing::before {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  width: 840px;
  height: 640px;
  left: -420px;
  top: 12%;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.10), rgba(120, 80, 220, 0.07) 60%, transparent);
}

/* ---------- Layout 2 colonnes visuel / texte (réutilisable) ----------
   Par défaut : visuel à gauche, texte à droite (grid 55/45).
   .section-split--media-right : visuel à droite (sections suivantes,
   en alternance). Sous 900px : empilement, visuel au-dessus. */
.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* Plus d'air entre le titre (et sa barre) et le corps de texte */
.section-split__text h2 {
  margin-bottom: 2.25rem;
}

/* Colonne large : longueur de ligne lisible */
.section-split__text p {
  max-width: 40rem;
  line-height: 1.75;
  margin-bottom: 1.2em;
}


@media (min-width: 56.25rem) {
  .section-split {
    grid-template-columns: 60fr 40fr;
    gap: 4rem;
  }

  /* Variante media-right : TEXTE à gauche (60%), VISUEL à droite (40%) */
  .section-split--media-right {
    grid-template-columns: 60fr 40fr;
  }

  .section-split--media-right .section-split__media {
    order: 2;
  }
}

/* ---------- Visuel produit : mockup nu + halo circulaire ----------
   Halo : petit cercle très flou qui rayonne bien au-delà de son
   diamètre. Empilement fiable SANS z-index négatif (l'ancien -1
   le rendait invisible derrière les fonds) : conteneur relative,
   ::before z-index 0, img relative z-index 1. Pas d'overflow:
   hidden sur ces conteneurs. */
.section-split__media,
.dashboard-card__media,
.niveaux-media {
  position: relative;
  min-width: 0;
}

.section-split__media::before,
.dashboard-card__media::before,
.niveaux-media::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.55), transparent 70%);
  filter: blur(90px);
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Au survol : le cercle grossit nettement, visible sans être un projecteur */
.section-split__media:hover::before,
.dashboard-card__media:hover::before {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

/* Section niveaux : montée d'INTENSITÉ au survol, pas de taille —
   halo au repos plus discret (0.55), nettement plus lumineux au
   hover (0.85 + micro-scale 1.05 max), aller-retour doux 0.4s */
.niveaux-media::before {
  opacity: 0.55;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.niveaux-media:hover::before {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 0.85;
}

/* Mockup : ombre qui épouse la forme du laptop (drop-shadow) */
.product-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.product-shot.is-missing {
  display: none;
}

/* Dans une section splittée : débord jusqu'à ~115% de la colonne,
   vers le bord extérieur (gauche par défaut, droite en .media-right).
   Jamais de chevauchement du texte : le débord part vers l'extérieur. */
@media (min-width: 56.25rem) {
  .section-split__media .product-shot {
    width: 115%;
    margin-left: -15%;
  }

  .section-split--media-right .section-split__media .product-shot {
    margin-left: 0;
    margin-right: -15%;
  }
}

/* Visuel vertical (ex. niveaux) : image nue, jamais étirée ni rognée,
   centrée dans sa colonne — le débord 115% ne s'applique pas.
   Sélecteur à 3 classes : prime sur les règles de débord ci-dessus. */
.section-split__media--tall {
  display: flex;
  justify-content: center;
}

.section-split__media .product-shot.product-shot--tall,
.section-split--media-right .section-split__media .product-shot.product-shot--tall {
  width: auto;
  max-width: 100%;
  max-height: 640px;
  margin: 0;
  object-fit: contain;
}

/* ---------- Section dashboard : layout centré, laptop qui ressort ----------
   Titre centré → laptop géant → carte texte. Le laptop appartient à
   la carte mais dépasse au-dessus de sa bordure via un margin-top
   négatif (image 4:3 → hauteur = 0,75 × largeur ; -36% ≈ sa moitié
   haute dehors). --shot-w pilote largeur, centrage et débords. */
.section--dashboard .container {
  max-width: 75rem;
}

/* Un seul espacement entre la bordure basse des chiffres et le
   titre : padding-top réduit (pas d'empilement avec les 56px de
   padding-bottom de la section chiffres).
   --shot-w (largeur du laptop) et --card-pad sont posés ici :
   partagés par la zone sticky, le média et la carte texte. */
.section--dashboard {
  padding-top: clamp(2.5rem, 8vw, 3.5rem);
  --card-pad: clamp(30px, 4.5vw, 60px);
  --shot-w: calc(100vw - 2rem - 2 * var(--card-pad));
}

@media (min-width: 30rem) {
  .section--dashboard {
    --shot-w: min(calc((100vw - 2rem) * 1.05), 96vw);
  }
}

@media (min-width: 56.25rem) {
  .section--dashboard {
    --shot-w: min(66rem, calc((100vw - 2rem) * 1.15), 96vw);
  }
}


.dashboard__title {
  text-align: center;
}

.section--dashboard h2::after {
  margin-inline: auto;
}

/* Carte texte (880px) centrée sous le laptop (élément du flux
   normal, dézoom simple au scroll). --shot-w (défini sur
   .section--dashboard) est en valeurs viewport/px, jamais en %,
   pour rester cohérent entre width et margins. Le garde-fou
   anti-scroll horizontal est le overflow-x: clip global. */
/* Carte texte : arrive après la zone sticky, enchaînement naturel */
/* DIAGNOSTIC du bug « laptop qui flotte au-dessus de la carte » :
   les règles de chevauchement (margin-top négatif du média + réserve
   de hauteur sur la carte) avaient été supprimées lors du passage au
   pattern sticky, et l'annulation du sticky a rétabli le flux normal
   SANS les restaurer — le média était resté un FRÈRE de la carte,
   séparé par un margin-top: 48px plat. Correction structurelle :
   le média est désormais le premier ENFANT de la carte. */
.dashboard-card {
  max-width: 55rem;
  margin-inline: auto;
  /* réserve la moitié haute du laptop qui dépasse (0.36 × largeur),
     moins la zone transparente du PNG (14,9% du haut ≈ 0.112 × largeur) :
     écart VISUEL titre → laptop ≈ 45px à toute largeur */
  margin-top: calc(var(--shot-w) * 0.248 + 45px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--card-blur));
  padding: var(--card-pad);
}

.dashboard-card__media {
  width: var(--shot-w);
  /* débord latéral maîtrisé : centré même plus large que la zone
     de contenu de la carte (marges latérales négatives symétriques) */
  margin-left: calc((100% - var(--shot-w)) / 2);
  /* ressort par le haut : -0.36 × largeur = 48% de la hauteur 4:3
     (0.75 × largeur), le padding-top de la carte étant soustrait
     pour que la moitié haute dépasse au-dessus de la BORDURE */
  margin-top: calc(var(--shot-w) * -0.36 - var(--card-pad));
  /* au-dessus de la bordure de la carte à tous les breakpoints ;
     aucun overflow: hidden sur la carte ni ses parents */
  z-index: 2;
}

.dashboard-card__text {
  max-width: 45rem;
  /* démarre sous le laptop, jamais recouvert (il est au-dessus
     dans le flux) ; l'écart visuel vient aussi des ~5,7% de
     transparence du bas du PNG */
  margin-top: 13px;
  text-align: left; /* calé sur le padding gauche de la carte */
}

/* ---------- Section niveaux : carte-fond + image en chevauchement ----------
   Mobile-first : image au-dessus en taille naturelle, carte texte
   pleine largeur en dessous. Dès ~900px : la carte (65%, ancrée à
   gauche) sert de FOND, l'image se pose PAR-DESSUS son bord droit
   (~1/3 de sa largeur sur la carte via translateX(-33%)), hauteur
   115% de la carte — elle dépasse en haut et en bas, c'est voulu.
   Aucun overflow: hidden ici : le garde-fou anti-scroll reste global. */
.section--niveaux .container {
  max-width: 75rem;
}

.niveaux-layout {
  position: relative;
}

/* Clip horizontal au niveau de la section : le texte géant peut
   filer vers le bord droit sans créer de scroll ; l'axe vertical
   reste visible (l'image niveaux déborde de la carte sans rognage) */
.section--niveaux {
  overflow-x: clip;
}

/* Texte décoratif géant derrière la carte : démarre au-dessus du
   bord supérieur de la carte et glisse partiellement derrière elle.
   Élément de fond — jamais en concurrence avec le vrai titre. */
.niveaux-bg-text {
  position: absolute;
  top: 0;
  /* ancré sur le bord gauche de la carte ; sa largeur se termine où
     elle tombe naturellement (~3,95em, soit ~43% du viewport au
     maximum du clamp : jamais coupé). S'il touche le cercle ou
     l'image, il passe simplement derrière. */
  left: 0;
  /* la majorité de la hauteur des lettres est visible AU-DESSUS du
     bord supérieur de la carte, seule leur base glisse derrière */
  transform: translateY(-70%);
  z-index: 0; /* sous la carte (1) et sous l'image (2) */
  font-family: var(--font-heading);
  font-weight: 800; /* graisse max : Space Grotesk rend son 700 */
  font-size: clamp(72px, 11vw, 170px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em; /* naturel, très légèrement resserré */
  white-space: nowrap;
  /* le mot fond dans la section : dégradé vertical dans le texte,
     ambré en haut des lettres → transparent en bas */
  background-image: linear-gradient(
    180deg,
    rgba(245, 166, 35, 0.30),
    rgba(245, 166, 35, 0.12) 55%,
    rgba(245, 166, 35, 0) 88%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 30rem) {
  /* superposition illisible en très petit écran : masqué */
  .niveaux-bg-text {
    display: none;
  }
}

/* ---------- Section mentor : fond immersif + téléphone / carte glass ----------
   SEUL break visuel de la page : image full-bleed fortement atténuée,
   voile uni, et fondus de ~200px vers var(--bg) en haut et en bas
   pour une entrée/sortie de section imperceptibles. */
.section--mentor {
  position: relative;
}

.mentor-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/bg-mentor.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* ambiance visible sans concurrencer le contenu */
  filter: brightness(0.72);
}

.mentor-veil {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 11, 20, 0.28);
  background-image: linear-gradient(
    180deg,
    #070B14 0,
    transparent 200px,
    transparent calc(100% - 200px),
    #070B14 100%
  );
}

.section--mentor .container {
  position: relative; /* au-dessus du fond et du voile */
  max-width: 75rem;
}

/* Téléphone à gauche ~40%, texte à droite ~60% */
@media (min-width: 56.25rem) {
  .section--mentor .section-split {
    grid-template-columns: 40fr 60fr;
  }
}

.section-split__media--phone {
  display: flex;
  justify-content: center;
}

/* Téléphone nu : jamais étiré, le débord 115% ne s'applique pas */
.section-split__media .product-shot.product-shot--phone {
  width: auto;
  max-width: 100%;
  max-height: 660px;
  margin: 0;
  object-fit: contain;
}

/* Placeholder propre tant que img/mentor.png n'existe pas
   (affiché par CSS quand main.js a marqué l'image manquante) */
.phone-placeholder {
  display: none;
  width: min(300px, 70%);
  aspect-ratio: 9 / 19;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius);
}

.product-shot.is-missing + .phone-placeholder {
  display: block;
}

/* Carte glass : lisibilité du texte sur fond image */
.mentor-card {
  background-color: rgba(13, 18, 32, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  padding: clamp(30px, 4.5vw, 60px); /* 60px minimum en desktop */
}

.mentor-card p:last-of-type {
  margin-bottom: 0;
}

/* 3 mini-cartes bénéfices sous la carte glass : accent BLEUTÉ propre
   à cette section (#7AA5FF) — le jaune n'est pas utilisé ici */
.mentor-benefits {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.mentor-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(13, 18, 32, 0.55);
  /* liseré ambré doux — les icônes restent bleutées */
  border: 1px solid var(--border-amber-soft);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(var(--card-blur));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mentor-benefit:hover {
  border-color: rgba(245, 166, 35, 0.4); /* le liseré s'intensifie */
  transform: translateY(-3px); /* comme les autres mini-cartes */
}

.mentor-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background-color: rgba(122, 165, 255, 0.12);
  color: #7AA5FF;
}

.mentor-benefit__text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem; /* ~17px */
}

.mentor-benefit__arrow {
  flex: none;
  color: var(--text);
  opacity: 0.4;
}

/* Phrase de conclusion, encadrée de deux étincelles bleutées */
p.mentor-punch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.96rem; /* ~15.4px */
  color: var(--text-muted);
  max-width: none;
}

.mentor-punch svg {
  flex: none;
  color: #7AA5FF;
}

.mentor-punch strong {
  color: var(--text);
}

/* Titre net sur le fond éclairci (la carte glass protège déjà le texte) */
.mentor__title {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.niveaux-media {
  --nv-x: 0%; /* décalage horizontal de base (devient -33% en desktop) */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(var(--nv-x));
  margin-bottom: var(--space-md);
  z-index: 2; /* image DEVANT la carte */
}

.niveaux-media .product-shot {
  width: auto;
  max-width: 100%;
  max-height: 480px;
}

/* Carte texte : liseré ambré fin, signature de cette section.
   Padding minimum 60px en desktop (~30px sous 768px) ; la zone sûre
   anti-chevauchement de 120px s'AJOUTE au minimum à droite. */
.niveaux-card {
  /* au-dessus du texte géant (0), sous l'image (2) : son verre
     (fond translucide + blur) voile le texte là où ils se superposent */
  position: relative;
  z-index: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--card-blur));
  padding: clamp(30px, 4.5vw, 60px);
  text-align: left;
}

.niveaux-card p:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 56.25rem) {
  /* espace titre → composition : ~40-50px d'écart VISUEL avec le
     haut de l'image qui déborde de la carte (~12-20% de sa hauteur,
     d'où la marge en vw — à ajuster à l'œil si besoin) */
  .niveaux-layout {
    margin-top: clamp(7.5rem, 13vw, 12rem);
  }

  .niveaux-card {
    width: 65%;
    padding: 60px;
    padding-right: calc(60px + 130px); /* minimum + zone sûre image */
  }

  .niveaux-media {
    --nv-x: -33%;
    position: absolute;
    top: -12%;
    bottom: -12%; /* hauteur = 124% de la carte, centrée dessus */
    left: 65%;
    margin: 0;
    justify-content: flex-start;
  }

  .niveaux-media .product-shot {
    height: 100%;
    max-height: none;
    max-width: none;
  }

  /* halo agrandi en proportion de l'image */
  .niveaux-media::before {
    width: 190px;
    height: 190px;
  }
}

/* Écrans larges : image à ~140% de la carte, chevauchement accentué,
   zone sûre renforcée — aucune ligne de texte recouverte */
@media (min-width: 72rem) {
  .niveaux-card {
    padding-right: calc(60px + 160px);
  }

  .niveaux-media {
    top: -20%;
    bottom: -20%; /* hauteur = 140% de la carte */
  }
}

.dashboard-card__text p:last-of-type {
  margin-bottom: 0;
}

/* CTA de fin de section : centré, inscrit dans le rythme
   inter-sections (aucun espace en double dessous) */
.dashboard-cta {
  text-align: center;
  margin-top: 40px;
}

/* Bloc confiance sous le CTA : carte horizontale compacte,
   informative et non interactive (aucun hover) */
.dashboard-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 40rem; /* ~640px */
  margin: 28px auto 0;
  background-color: rgba(13, 18, 32, 0.55);
  border: 1px solid var(--border-amber-soft);
  border-radius: 14px;
  padding: 20px 24px;
  backdrop-filter: blur(var(--card-blur));
  text-align: left;
}

/* badge bouclier : teinte bleutée, comme les mini-cartes mentor */
.dashboard-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background-color: rgba(122, 165, 255, 0.12);
  color: #7AA5FF;
}

.dashboard-trust__title {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem; /* ~17px */
}

/* p.* : prime sur la taille générique de .section p */
p.dashboard-trust__desc {
  font-size: 0.9375rem; /* ~15px */
  line-height: 1.5;
  color: var(--text-muted);
  margin: 2px 0 0;
  max-width: none;
}

@media (max-width: 30rem) {
  .dashboard-trust {
    align-items: flex-start; /* icône en haut à gauche */
    padding: 16px 18px;
  }
}

/* ---------- Trois espaces : 3 sous-blocs en quinconce ---------- */
/* intro centrée sous le titre */
p.espaces__intro {
  text-align: center;
  margin-inline: auto;
}

.espaces {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(70px, 8vw, 110px); /* ~110px entre sous-blocs en desktop */
  margin-top: var(--space-lg);
}

/* proportions ~45% visuel / ~55% texte (les .section-split par
   défaut sont en 60/40 : surchargé pour ces sous-blocs) */
@media (min-width: 56.25rem) {
  .espace-block {
    grid-template-columns: 45fr 55fr;
  }

  .espace-block.section-split--media-right {
    grid-template-columns: 55fr 45fr;
  }
}

.espace-block__title {
  font-size: var(--font-size-h3);
  margin: 14px 0 20px;
}

/* mini-grille de mini-cartes modules : 2 colonnes (1 sous ~640px),
   hauteurs équilibrées par rangée */
.espace-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 40rem) {
  .espace-block__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mini-carte module, structure interne RIGIDE et identique partout :
   rangée 1 = header à hauteur fixe (minmax 40px : icône 34px + titre
   sur UNE ligne, centrés verticalement), rangée 2 = description qui
   démarre toujours à 40px + 12px sous le padding, alignée sur le
   padding GAUCHE (grid-column 1/-1, aucune indentation). Sur une
   même rangée de cartes : tous les titres au même niveau, toutes
   les descriptions au même niveau. La règle des 60px ne s'applique
   pas ici : elle vaut pour les grandes cartes de contenu. */
.module-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: minmax(40px, auto) auto;
  column-gap: 12px;
  row-gap: 12px;
  align-content: start;
  background-color: rgba(13, 18, 32, 0.55);
  border: 1px solid var(--border-amber-soft);
  border-radius: 14px;
  padding: 20px; /* strictement identique sur toutes les cartes */
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.module-card:hover {
  border-color: rgba(245, 166, 35, 0.4); /* le liseré s'intensifie */
  transform: translateY(-3px); /* micro-élévation */
}

/* Badge d'icône : carré arrondi teinté à la micro-couleur des pills */
.module-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  align-self: center;
  border-radius: 10px;
  background-color: rgba(91, 224, 230, 0.12); /* var(--accent-2) à 12% */
  color: var(--accent-2);
}

.module-card__icon svg {
  width: 18px;
  height: 18px;
}

/* titre sur UNE ligne : si trop long à une largeur donnée, c'est la
   taille de police qui s'ajuste (clamp de base + ajusteur JS
   content-aware, cf. main.js), jamais la hauteur du header.
   min-width: 0 : la cellule peut rétrécir ; overflow: hidden en
   ceinture le temps que l'ajusteur passe — le titre ne touche
   jamais le bord (le padding 20px de la carte fait l'air à droite). */
.module-card__name {
  display: block;
  align-self: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem); /* ~15 → 17px */
}

/* p.* : prime sur la taille générique de .section p */
p.module-card__desc {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0; /* le row-gap fixe de 12px fait l'espacement */
  max-width: none;
}

/* Chips des modules de cadre (Pilotage : Roadmap / Administratif /
   Guide) : pills compactes, nom seul, sans description */
.espace-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.espace-chips__label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.espace-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-amber-soft);
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  color: var(--text);
}

.espace-chip svg {
  flex: none;
  color: var(--accent-2);
}

/* halo : montée d'intensité au hover, pas de grossissement
   (même comportement que la section niveaux) */
.espace-block .section-split__media::before {
  opacity: 0.55;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.espace-block .section-split__media:hover::before {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 0.85;
}

/* Zoom doux de l'image elle-même au survol — s'ajoute à la montée
   d'intensité du halo, sur tous les visuels de section avec halo
   (niveaux, mentor, espaces). Le dashboard est exclu : son transform
   est piloté par le dézoom JS. Transform seul : aucun layout shift,
   le drop-shadow suit, rien n'est rogné (aucun overflow: hidden
   sur ces conteneurs). */
.niveaux-media .product-shot,
.section-split__media .product-shot {
  transform-origin: center;
  transition: transform 0.45s ease-out;
}

.niveaux-media:hover .product-shot,
.section-split__media:hover .product-shot {
  transform: scale(1.05);
}

/* placeholder générique tant qu'un mockup n'existe pas */
.media-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius);
}

.product-shot.is-missing + .media-placeholder {
  display: block;
}

/* Label technique esprit interface de jeu (PILOTAGE / PRODUCTION / PERSO) */
.espace__label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

/* Micro-détail cyan : fine barre devant le label */
.espace__label::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  background-color: var(--accent-2);
  vertical-align: baseline;
}


/* ---------- Pricing ---------- */
.section--pricing .container {
  max-width: 75rem;
}

.pricing__header {
  text-align: center;
}

.pricing__header h2 {
  max-width: 46rem;
  margin-inline: auto;
}

/* Barre d'accent centrée sous le titre centré */
.section--pricing h2::after {
  margin-inline: auto;
}

.pricing__header p {
  max-width: 40rem;
  margin-inline: auto;
}

/* Mots clés en dégradé ambré → doré */
.pricing__grad {
  background-image: linear-gradient(90deg, var(--accent), #FFD98A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr; /* < 1024px : empilé */
  gap: 24px;
  max-width: 68.75rem; /* ~1100px */
  margin-inline: auto;
  margin-top: var(--space-lg);
}

/* --lift : décalage vertical permanent de la carte mise en avant.
   Passe par une custom property pour rester compatible avec les
   transforms de l'animation d'entrée. */
.price-card {
  --lift: 0px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-amber-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--card-blur));
  padding: var(--space-md);
  transform: translateY(var(--lift));
}

/* mise en avant : bordure nettement au-dessus des deux autres + halo */
.price-card--featured {
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 0 60px rgba(245, 166, 35, 0.12); /* halo doux */
}

.price-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--text-muted);
}

.price-badge svg {
  flex: none;
}

.price-card__name {
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-xs);
}

/* p.* : prime sur la taille générique de .section p */
p.price-card__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.price-card__unit {
  font-family: var(--font-base);
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-muted);
}

p.price-card__sub {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.price-card__list {
  display: grid;
  gap: 10px;
  font-size: var(--font-size-body);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* coches ambrées */
.price-card__list svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.price-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto; /* CTA calé en bas, cartes alignées */
}

@media (min-width: 64rem) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* mise en avant : légère élévation, desktop uniquement */
  .price-card--featured {
    --lift: -8px;
  }
}

/* Sous la grille */
.pricing__footer {
  text-align: center;
  margin-top: var(--space-lg);
}

p.pricing__later {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

p.pricing__punch {
  margin-inline: auto;
  margin-bottom: 0;
}

.pricing__accent {
  color: var(--accent);
}

/* ---------- FAQ (+ CTA final fusionné) ---------- */
/* Glow unicolore orangé collé au bord inférieur de la section
   fusionnée : centre posé sur la ligne section/footer, seule la
   moitié haute est visible (clip par overflow: hidden) et monte
   librement derrière le bouton puis s'estompe vers les items —
   plus aucune frontière interne ne coupe la lueur. z-index -1 :
   bouton et items parfaitement lisibles, bordure du footer nette. */
.section--faq {
  position: relative;
  overflow: hidden;
}

.section--faq::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 1200px;
  max-width: 96vw;
  height: 580px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(245, 166, 35, 0.22),
    rgba(245, 166, 35, 0.10) 45%,
    rgba(245, 166, 35, 0.04) 68%,
    transparent 82%
  );
}

/* CTA final : marge interne, le rythme visuel ne change pas */
.faq-cta {
  text-align: center;
  margin-top: 80px;
}

.faq {
  max-width: 50rem; /* ~800px */
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background-color: rgba(13, 18, 32, 0.5);
  border: 1px solid var(--border-amber-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--card-blur));
  padding: 26px 30px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(245, 166, 35, 0.3); /* s'intensifie, sous l'état ouvert */
  background-color: rgba(13, 18, 32, 0.72);
}

/* état OUVERT : bordure renforcée — la hiérarchie reste lisible */
.faq-item.is-open {
  border-color: var(--border-amber);
}

.faq-item__heading {
  margin: 0;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

/* Pastille numérotée : écho visuel au système de niveaux */
.faq-item__num {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.4);
  background-color: rgba(245, 166, 35, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* item ouvert : pastille pleinement allumée */
.faq-item.is-open .faq-item__num {
  background-color: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.8);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.25);
}

.faq-item__question {
  flex: 1;
  color: var(--text);
  font-weight: 600;
  font-size: var(--font-size-body);
  line-height: 1.4;
}

.faq-item__icon {
  flex: none;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.3s ease;
}

/* le « + » pivote en « × » */
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

/* Déploiement en douceur via grid-template-rows (jamais sec) */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  overflow: hidden;
}

.faq-item__answer p {
  /* alignée sous le texte de la question : pastille 40px + gap 16px */
  margin: 14px 0 0 56px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.7;
  max-width: none;
}


/* ---------- Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  /* parfaitement sobre : aucune lueur, le body porte var(--bg) */
  padding-block: 80px 40px;
}

/* 1 colonne < 560px, 2 colonnes < 900px, 4 colonnes au-delà
   (bloc marque large ~40%) */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 35rem) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 56.25rem) {
  .footer__grid {
    grid-template-columns: 40fr 20fr 20fr 20fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: auto;
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 30rem;
}

.footer__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--font-size-sm);
}

.footer__list svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent); /* coches ambrées */
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 18px;
  background-color: rgba(13, 18, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.footer__badge svg {
  flex: none;
  color: var(--accent);
}

.footer__col-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-lg);
  padding-top: 28px;
}

.footer__legal {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Loader d'entrée (barre d'XP) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: opacity 0.4s ease;
}

.loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader__label {
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--text-muted);
}

.loader__track {
  width: min(320px, 70vw);
  height: 7px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
}

.loader__fill {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background-color: var(--accent);
  /* glow néon ambré doux */
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.55), 0 0 28px rgba(245, 166, 35, 0.3);
  animation: loader-fill 2s linear forwards;
}

@keyframes loader-fill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ---------- Barre de progression de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent);
  z-index: 2500; /* au-dessus du menu */
  transition: width 0.3s ease-out;
}

/* ---------- Menu fixed glassmorphism ---------- */
.nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  /* pill élargie : alignée sur le conteneur large de la page (~1250px) */
  width: min(calc(100% - 2rem), 78rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  /* padding droit réduit : ~10px entre le CTA compact et le bord
     arrondi interne de la pill */
  padding: 8px 10px 8px 24px;
  background-color: rgba(13, 18, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  z-index: 2000;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-img {
  height: 30px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap; /* jamais de retour à la ligne dans la pill */
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

/* Liens + CTA groupés à droite de la pill */
.nav__right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Version compacte du CTA principal pour le menu */
.nav__cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.nav__cta .btn__icon {
  width: 14px;
  height: 14px;
}

/* Hover atténué par rapport au CTA principal */
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.24), 0 0 28px rgba(245, 166, 35, 0.14);
}

/* Sous ~768px : les liens se masquent, logo + CTA restent
   (menu burger prévu dans une étape ultérieure) */
@media (max-width: 48rem) {
  .nav__links {
    display: none;
  }
}

/* ---------- Banderole défilante ----------
   Verre dépoli : fond translucide + blur + lueurs radiales internes
   (le blur seul serait invisible sur fond uni). */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 24px;
  background-color: rgba(13, 18, 32, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Faibles reflets ambrés + une lueur violette discrète,
   derrière le texte, à l'intérieur de la bande */
.marquee__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 320px 90px at 12% 50%, rgba(245, 166, 35, 0.10), transparent 70%),
    radial-gradient(ellipse 280px 80px at 48% 35%, rgba(245, 166, 35, 0.08), transparent 70%),
    radial-gradient(ellipse 340px 100px at 85% 65%, rgba(124, 92, 246, 0.07), transparent 70%);
}

/* Fenêtre de défilement : fondu des bords gauche/droite */
.marquee__viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee__content {
  display: flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(0.9375rem, 0.86rem + 0.4vw, 1.125rem); /* ~15 → 18px (+1px) */
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--accent);
  opacity: 0.9;
}

.marquee__item {
  flex: none;
}

/* Le séparateur porte tout l'espacement : 56px entre deux mots,
   « · » centré dans cet espace */
.marquee__sep {
  flex: none;
  width: 56px;
  text-align: center;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Variante : défilement en sens inverse, même vitesse. Les deux
   moitiés du track étant identiques, la boucle reste seamless. */
.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

/* ---------- Apparition des sections au scroll ----------
   Filet de sécurité : tous les états CACHÉS sont scopés sous
   body.js-ready (classe posée par main.js dès son exécution).
   Si le JS plante ou ne charge pas, rien n'est masqué : la page
   reste entièrement lisible.
   .reveal / .reveal-split sont posées par main.js sur les sections
   hors hero, .is-visible une seule fois via IntersectionObserver. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  /* none (et non translateY(0)) : un transform même nul crée un
     contexte d'empilement qui bloquerait les décors en z-index
     négatif (glow de bas de page) */
  transform: none;
}

/* Cartes pricing : cascade (~0,12s) greffée sur le fade-up de la
   section. Le transform final préserve --lift (carte mise en avant). */
.js-ready .reveal .price-card {
  opacity: 0;
  transform: translateY(calc(24px + var(--lift)));
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-ready .reveal .price-card:nth-child(2) {
  transition-delay: 0.12s;
}

.js-ready .reveal .price-card:nth-child(3) {
  transition-delay: 0.24s;
}

.js-ready .reveal.is-visible .price-card {
  opacity: 1;
  transform: translateY(var(--lift));
}

/* Variante pour les sections 2 colonnes (classe posée par main.js) :
   la section elle-même ne bouge pas, chaque colonne entre depuis son
   propre côté — visuel d'abord, texte ~0,15s après. */
.js-ready .reveal-split .section-split__media {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-ready .reveal-split .section-split__text {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.15s;
}

/* .media-right : directions inversées, chacun entre depuis son côté */
.js-ready .reveal-split .section-split--media-right .section-split__media {
  transform: translateX(40px);
}

.js-ready .reveal-split .section-split--media-right .section-split__text {
  transform: translateX(-40px);
}

.js-ready .reveal-split.is-visible .section-split__media,
.js-ready .reveal-split.is-visible .section-split__text {
  opacity: 1;
  transform: translateX(0);
}

/* Sous-blocs de la section espaces : observés individuellement
   (classe posée par main.js), chaque colonne entre depuis SON côté */
.js-ready .reveal-block .section-split__media {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-ready .reveal-block .section-split__text {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.15s;
}

.js-ready .reveal-block.section-split--media-right .section-split__media {
  transform: translateX(40px);
}

.js-ready .reveal-block.section-split--media-right .section-split__text {
  transform: translateX(-40px);
}

.js-ready .reveal-block.is-visible .section-split__media,
.js-ready .reveal-block.is-visible .section-split__text {
  opacity: 1;
  transform: translateX(0);
}

/* Mini-cartes modules : cascade légère (~0,06s) greffée sur l'entrée
   du sous-bloc. Fill backwards (pas both) : après l'animation, la
   carte reprend ses styles normaux et le hover (transform) refonctionne. */
.js-ready .reveal-block .module-card {
  opacity: 0;
}

.js-ready .reveal-block.is-visible .module-card {
  opacity: 1;
  animation: module-in 0.5s ease-out backwards;
}

.js-ready .reveal-block.is-visible .module-card:nth-child(2) { animation-delay: 0.06s; }
.js-ready .reveal-block.is-visible .module-card:nth-child(3) { animation-delay: 0.12s; }
.js-ready .reveal-block.is-visible .module-card:nth-child(4) { animation-delay: 0.18s; }
.js-ready .reveal-block.is-visible .module-card:nth-child(5) { animation-delay: 0.24s; }
.js-ready .reveal-block.is-visible .module-card:nth-child(6) { animation-delay: 0.3s; }
.js-ready .reveal-block.is-visible .module-card:nth-child(7) { animation-delay: 0.36s; }

@keyframes module-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bloc confiance dashboard : entre avec le fade-up de la section,
   léger décalage après le bouton */
.js-ready .reveal .dashboard-trust {
  opacity: 0;
}

.js-ready .reveal.is-visible .dashboard-trust {
  opacity: 1;
  animation: module-in 0.5s ease-out 0.15s backwards;
}

/* Bénéfices mentor : entrent avec la carte texte (colonne à +0,15s),
   cascade de 0,08s chacun, la phrase de conclusion en dernier.
   Fill backwards : le hover (transform) refonctionne après l'entrée. */
.js-ready .reveal-split .mentor-benefit,
.js-ready .reveal-split .mentor-punch {
  opacity: 0;
}

.js-ready .reveal-split.is-visible .mentor-benefit,
.js-ready .reveal-split.is-visible .mentor-punch {
  opacity: 1;
  animation: module-in 0.5s ease-out backwards;
  animation-delay: 0.15s;
}

.js-ready .reveal-split.is-visible .mentor-benefit:nth-child(2) { animation-delay: 0.23s; }
.js-ready .reveal-split.is-visible .mentor-benefit:nth-child(3) { animation-delay: 0.31s; }
.js-ready .reveal-split.is-visible .mentor-punch { animation-delay: 0.39s; }

/* Items FAQ : fade-up + cascade légère (~0,08s par item).
   En animation (pas en transition) pour ne pas écraser les
   transitions hover/ouverture des items. */
.js-ready .reveal .faq-item {
  opacity: 0;
}

.js-ready .reveal.is-visible .faq-item {
  animation: faq-in 0.6s ease-out both;
}

.js-ready .reveal.is-visible .faq-item:nth-child(2) { animation-delay: 0.08s; }
.js-ready .reveal.is-visible .faq-item:nth-child(3) { animation-delay: 0.16s; }
.js-ready .reveal.is-visible .faq-item:nth-child(4) { animation-delay: 0.24s; }
.js-ready .reveal.is-visible .faq-item:nth-child(5) { animation-delay: 0.32s; }
.js-ready .reveal.is-visible .faq-item:nth-child(6) { animation-delay: 0.4s; }
.js-ready .reveal.is-visible .faq-item:nth-child(7) { animation-delay: 0.48s; }

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

/* Titres hors cartes des sections directionnelles : fade-up simple,
   cohérent avec les sections .reveal */
.js-ready .reveal-split > .container > h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-ready .reveal-split.is-visible > .container > h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Section niveaux (carte-fond + image) : carte depuis la gauche,
   image depuis la droite (+0,15s). Le transform final de l'image
   préserve son décalage de chevauchement --nv-x. */
.js-ready .reveal-split .niveaux-card {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-ready .reveal-split .niveaux-media {
  opacity: 0;
  transform: translateX(var(--nv-x)) translateX(40px);
  transition: opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.15s;
}

.js-ready .reveal-split.is-visible .niveaux-card {
  opacity: 1;
  transform: translateX(0);
}

.js-ready .reveal-split.is-visible .niveaux-media {
  opacity: 1;
  transform: translateX(var(--nv-x));
}

/* ---------- Responsive (mobile-first) ---------- */
@media (min-width: 48rem) {
  :root {
    --font-size-h1: 3.25rem;
    --font-size-h2: 2.125rem;
    --font-size-h3: 1.375rem;
  }
}

@media (max-width: 30rem) {
  .nav {
    padding: 8px 10px 8px 16px;
  }

  .hero__overline {
    padding-inline: 24px;
  }

  /* CTA empilés : principal au-dessus, même largeur */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .social-proof {
    padding: 10px 14px;
    gap: 12px;
  }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loader,
  .scroll-progress,
  .btn--primary,
  .btn--secondary {
    transition: none;
  }

  .btn--secondary:hover {
    transform: none;
  }

  .loader__fill {
    animation: none;
    width: 100%;
  }

  .hero__bg {
    transition: none;
    transform: none;
    opacity: 1;
    animation: none; /* pas de respiration : image fixe */
  }

  .marquee__track,
  .btn--primary:hover::after,
  .btn:hover .btn__icon {
    animation: none;
  }

  .browser-frame {
    transform: none;
    transition: none;
  }


  .btn--primary:hover {
    transform: none;
  }

  .js-ready .reveal,
  .js-ready .reveal-split .section-split__media,
  .js-ready .reveal-split .section-split__text,
  .js-ready .reveal-block .section-split__media,
  .js-ready .reveal-block .section-split__text,
  .js-ready .reveal-split .niveaux-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* préserve le décalage de chevauchement de l'image niveaux */
  .js-ready .reveal-split .niveaux-media {
    opacity: 1;
    transform: translateX(var(--nv-x));
    transition: none;
  }

  .js-ready .reveal .price-card {
    opacity: 1;
    transform: translateY(var(--lift));
    transition: none;
  }

  .js-ready .reveal .faq-item,
  .js-ready .reveal.is-visible .faq-item {
    opacity: 1;
    animation: none;
  }

  .js-ready .reveal-block .module-card,
  .js-ready .reveal-block.is-visible .module-card {
    opacity: 1;
    animation: none;
  }

  .js-ready .reveal-split .mentor-benefit,
  .js-ready .reveal-split .mentor-punch,
  .js-ready .reveal-split.is-visible .mentor-benefit,
  .js-ready .reveal-split.is-visible .mentor-punch,
  .js-ready .reveal .dashboard-trust,
  .js-ready .reveal.is-visible .dashboard-trust {
    opacity: 1;
    animation: none;
  }

  .vsl__play {
    transition: none;
  }

  .vsl__play:hover {
    transform: translate(-50%, -50%);
  }

  .mentor-benefit:hover {
    transform: none;
  }

  .module-card:hover {
    transform: none;
  }

  /* pas de zoom d'image au survol */
  .niveaux-media:hover .product-shot,
  .section-split__media:hover .product-shot {
    transform: none;
    transition: none;
  }

  .faq-item__answer {
    transition: none;
  }

  .faq-item__icon {
    transition: none;
  }
}
