/* =====================================================================
   PAGE D'ACCUEIL "3D" (index.php)
   - Boitier PC en CSS 3D pur (aucune librairie : CSP stricte)
   - Scenes pilotees par le scroll : chaque [data-scroll] recoit --p (0 -> 1)
     depuis assets/js/home-3d.js, le reste est calcule ici en CSS
   - Typo display : Unbounded (titres), JetBrains Mono (labels techniques)

   REGLES DE PERFORMANCE (la page doit rester fluide sur mobile) :
   - n'animer que transform / opacity (executes par la carte graphique) ;
   - aucune animation de couleur, de background-position, de box-shadow ou
     de variable CSS en continu (repeint / recalcul a chaque image) ;
   - pas de filter: blur ni de backdrop-filter sur un element qui bouge ;
   - les zones [data-anim-zone] hors ecran mettent leurs animations en pause.

   Variables posees en JS : --p, --hdr, --vel, --hs-dist, --rx/--ry, --px/--py,
   --sx/--sy, --n/--i (texte decoupe). Classes : html.home-scroll-ready,
   html.home-inview-ready, .is-in, .split-ready, .is-hscroll, .is-paused,
   .is-copied, [data-step].
   ===================================================================== */

/* Polices propres a la page d'accueil (autorisees par la CSP : style-src
   fonts.googleapis.com / font-src fonts.gstatic.com). Doit rester en tete. */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap");

.home3d {
  --font-hero: "Unbounded", var(--font-display);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --grad-text: linear-gradient(95deg, #a78bff 0%, #00d4ff 45%, #00e39a 100%);
  --led: #3ea6ff;                    /* eclairage bleu ElecStore (fixe) */
  --led-soft: rgba(62, 166, 255, 0.45);
  --cyan: #00d4ff;
  --box-radius: 22px;
  --box-border: rgba(255, 255, 255, 0.08);
  --box-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%), rgba(17, 21, 32, 0.78);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr: 0px;
  /* overflow "clip" (et non hidden) : ne casse pas les sections sticky */
  overflow-x: clip;
}

.home3d h1,
.home3d h2 {
  font-family: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Degrade fixe : animer background-position repeindrait le texte en continu */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Zones hors ecran : toutes les animations internes sont mises en pause */
[data-anim-zone].is-paused *,
[data-anim-zone].is-paused *::before,
[data-anim-zone].is-paused *::after { animation-play-state: paused !important; }

/* Sections du bas de page : le navigateur ne les calcule qu'a l'approche */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Point "en direct" : onde en transform/opacity (pas de box-shadow anime) */
@keyframes live-blink {
  50% { transform: scale(0.75); opacity: 0.45; }
}

/* ==================== Apparitions (data-inview) ==================== */
/* Animation (et non transition) : "backwards" libere la propriete transform a
   la fin, pour que l'inclinaison au survol reprenne la main ensuite. */
html.home-inview-ready [data-inview]:not(.is-in) { opacity: 0; }
[data-inview].is-in {
  animation: inview-up 1s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
[data-inview="clip"].is-in {
  animation-name: inview-clip;
  animation-duration: 1.2s;
}
[data-inview="clip"].is-in img {
  animation: inview-img 1.4s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes inview-up {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes inview-clip {
  from { opacity: 0.2; clip-path: inset(14% 10% 14% 10% round 28px); transform: translate3d(0, 50px, 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round var(--box-radius)); transform: none; }
}
@keyframes inview-img {
  from { transform: scale(1.25); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

/* ==================== Titres decoupes en mots (data-split) ==================== */
.home3d h2.split-ready .split-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.home3d h2.split-ready .split-i {
  display: inline-block;
  transform: translate3d(0, 108%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 50ms);
}
.home3d h2.split-ready.is-in .split-i { transform: none; }

/* ==================== Boite "verre" reutilisable ==================== */
.box3d {
  position: relative;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: var(--box-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 28px 60px -30px rgba(0, 0, 0, 0.85),
    0 20px 50px -30px rgba(124, 92, 255, 0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Liseré degrade (bordure lumineuse) */
.box3d::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(167, 139, 255, 0.75), rgba(0, 212, 255, 0.2) 35%, transparent 60%, rgba(0, 212, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
/* Reflet qui suit le curseur (--sx/--sy poses par home-3d.js) */
.box3d::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.box3d:hover::before,
.box3d:hover::after { opacity: 1; }
.box3d:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 30px 70px -28px rgba(124, 92, 255, 0.55);
}
/* Inclinaison au survol (transform ecrit par home-3d.js, lisse par la transition) */
@media (hover: none) {
  [data-incline] { transform: none !important; }
}

/* Un "filter", meme nul, aplatit le rendu 3D : on retire celui de base.css une
   fois les elements apparus (grille des nouveautes). */
html.reveal-ready .home3d [data-reveal-group].is-visible > *,
html.reveal-ready .home3d [data-reveal].is-visible { filter: none; }

/* =====================================================================
   BANDEAU CODE PROMO
   ===================================================================== */
.promo-bar {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.16), rgba(0, 212, 255, 0.09) 50%, rgba(124, 92, 255, 0.16)),
    #0b0e17;
}
.promo-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.85) 25%, rgba(0, 212, 255, 0.85) 75%, transparent);
}
.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-height: 54px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.promo-bar-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}
.promo-bar-live {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d6d;
}
/* Le point lui-meme clignote : jamais d'animation sur ::after (voir .stock-dot
   dans components.css : elle ferait repasser toute la page par le thread principal) */
.promo-bar-live { animation: live-blink 1.8s ease-in-out infinite; }
.promo-bar-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8fa3;
}
.promo-bar-value {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promo-bar-text { color: var(--text-muted); }

/* Code facon "ticket" : clic = copie */
.promo-bar-code {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}
.promo-bar-code:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); }
.promo-bar-code:active { transform: scale(0.97); }
.promo-bar-code:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.promo-bar-code-label {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px dashed rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.promo-bar-code-value {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.promo-bar-code-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #fff;
  color: #0a0d13;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.promo-bar-code-action svg { width: 14px; height: 14px; flex-shrink: 0; }
.promo-bar-icon-ok { display: none; }
.promo-bar-code.is-copied { border-style: solid; border-color: var(--success); }
.promo-bar-code.is-copied .promo-bar-code-action { background: var(--success); }
.promo-bar-code.is-copied .promo-bar-icon-copy { display: none; }
.promo-bar-code.is-copied .promo-bar-icon-ok { display: block; }

/* Compte a rebours en cases (chiffres a largeur fixe : aucun "saut") */
.promo-bar-timer { display: flex; align-items: center; gap: 5px; }
.promo-bar-timer-label {
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.promo-bar-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.promo-bar-unit b {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.promo-bar-unit i { font-style: normal; font-size: 0.66rem; color: var(--text-faint); }

@media (max-width: 640px) {
  .promo-bar-inner { gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .promo-bar-tag, .promo-bar-timer-label, .promo-bar-code-label { display: none; }
  .promo-bar-offer { font-size: 0.84rem; gap: 8px; }
  .promo-bar-value { font-size: 1rem; }
  .promo-bar-code-value { padding: 5px 10px; font-size: 0.84rem; }
  .promo-bar-unit { padding: 3px 6px; }
  .promo-bar-unit b { font-size: 0.8rem; }
}

/* =====================================================================
   HERO 3D  (--p "exit" : 0 en haut de page -> 1 quand le hero est sorti)
   ===================================================================== */
.hero3d {
  --p: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

/* ---- Decor fixe : halos (degrades, sans filtre flou) + sol quadrille ---- */
.hero3d-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero3d-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 40%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero3d-glow { position: absolute; border-radius: 50%; }
.hero3d-glow-1 { width: 760px; height: 760px; top: -340px; left: -280px; background: radial-gradient(circle, rgba(109, 77, 255, 0.3), transparent 62%); }
.hero3d-glow-2 { width: 820px; height: 820px; top: -140px; right: -320px; background: radial-gradient(circle, rgba(0, 150, 255, 0.24), transparent 62%); }
.hero3d-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -2%;
  height: 58%;
  background-image:
    linear-gradient(rgba(62, 166, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 166, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 80%);
  mask-image: linear-gradient(to top, #000 5%, transparent 80%);
  opacity: 0.4;
}

.hero3d-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

/* ---- Colonne texte (s'envole au scroll) ---- */
.hero3d-copy {
  transform: translate3d(0, calc(var(--p) * -110px), 0);
  opacity: calc(1 - var(--p) * 1.35);
  will-change: transform, opacity;
}
.hero3d-badges,
.hero3d-lead,
.hero3d-actions,
.hero3d-stats { animation: hero-rise 1s var(--ease-out) backwards; }
.hero3d-badges { animation-delay: 0.05s; }
.hero3d-lead { animation-delay: 0.4s; }
.hero3d-actions { animation-delay: 0.5s; }
.hero3d-stats { animation-delay: 0.6s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

.hero3d-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.hero3d-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero3d-pill-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.hero3d-pill-dot { animation: live-blink 2s ease-in-out infinite; }
.hero3d-pill-rating { color: var(--text); transition: border-color var(--transition), transform var(--dur-fast) var(--ease-snap); }
.hero3d-pill-rating:hover { border-color: var(--warning); transform: translateY(-2px); }
.hero3d-pill-rating .stars { display: inline-flex; gap: 1px; color: var(--warning); }
.hero3d-pill-rating .stars svg { width: 12px; height: 12px; }
.hero3d-pill-rating strong { color: var(--warning); font-weight: 700; }
.hero3d-pill-rating span { color: var(--text-faint); }

/* Titre : chaque ligne monte depuis un masque (une seule fois, au chargement) */
.hero3d-title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.5rem, 1.1rem + 4.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
}
.hero3d-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero3d-title-line > span {
  display: inline-block;
  animation: line-up 1.1s var(--ease-out) backwards;
}
.hero3d-title-line:nth-child(2) > span { animation-delay: 0.1s; }
.hero3d-title-line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes line-up {
  from { transform: translate3d(0, 110%, 0) rotate(5deg); }
  to { transform: none; }
}
/* Degrade / contour poses sur le span interne (celui qui bouge) : un
   background-clip:text sur le parent ne suivrait pas l'enfant transforme. */
.hero3d-title-gradient > span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero3d-title-outline > span {
  /* contour : trait double peint SOUS un remplissage couleur fond -> masque les
     traces internes de la police variable (lettres qui se chevauchent) */
  color: #0b0e16;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.5);
  paint-order: stroke fill;
}

.hero3d-lead {
  max-width: 34rem;
  margin: 0 0 var(--space-6);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
}
.hero3d-lead strong { color: var(--text); font-weight: 600; }

.hero3d-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.hero3d-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 34px -10px rgba(124, 92, 255, 0.7);
}
.hero3d-cta svg,
.final-cta .btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-snap); }
.hero3d-cta:hover svg,
.final-cta .btn:hover svg { transform: translateX(4px); }
.hero3d-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 600;
}
.hero3d-cta-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(0, 212, 255, 0.5); color: #fff; }
.hero3d-cta-ghost svg { width: 18px; height: 18px; color: var(--success); }

.hero3d-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--space-8);
  margin: 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* Chiffre au-dessus du libelle, alignes en haut meme si un libelle passe sur 2 lignes */
.hero3d-stats div { display: flex; flex-direction: column; gap: 6px; }
.hero3d-stats dd { order: -1; }
.hero3d-stats dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero3d-stats dd {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 1rem + 1.1vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero3d-stats dd small { font-size: 0.5em; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }

/* ---- Colonne scene 3D ---- */
.hero3d-stage {
  --px: 0;
  --py: 0;
  position: relative;
  height: 580px;
  display: grid;
  place-items: center;
  animation: stage-in 1.2s 0.2s var(--ease-out) backwards;
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
/* Lumiere de studio derriere le boitier + reflet au sol (fixes) */
.hero3d-spot {
  position: absolute;
  inset: -10% -15% -5%;
  z-index: -1;
  background:
    radial-gradient(ellipse 42% 48% at 54% 44%, rgba(62, 166, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 34% 16% at 54% 90%, rgba(62, 166, 255, 0.16), transparent 70%);
  pointer-events: none;
}
/* Au scroll, le PC plonge et bascule legerement */
.hero3d .pc3d-scene {
  transform: translate3d(0, calc(var(--p) * 120px), 0) scale(calc(1 - var(--p) * 0.14)) rotate(calc(var(--p) * -5deg));
  will-change: transform;
}
.hero3d .hero3d-chip { opacity: calc(1 - var(--p) * 1.8); }

/* =====================================================================
   BOITIER PC EN CSS 3D (partage : hero + anatomie) - version "studio"
   ===================================================================== */
.pc3d-scene {
  position: relative;
  width: 300px;
  height: 480px;
  perspective: 1500px;
  perspective-origin: 50% 35%;
}
/* Ombre et anneau lumineux au sol (fixes) */
.pc3d-shadow {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 440px;
  height: 90px;
  margin-left: -220px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 70%);
}
.pc3d-shadow::after {
  content: "";
  position: absolute;
  inset: 24% 13%;
  border-radius: 50%;
  border: 1px solid rgba(62, 166, 255, 0.5);
  box-shadow: 0 0 24px rgba(62, 166, 255, 0.35), inset 0 0 24px rgba(62, 166, 255, 0.2);
}

.pc3d-rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -10deg)) rotateY(var(--ry, -50deg));
}
.pc3d {
  --w: 210px;  /* largeur (face avant) */
  --h: 420px;  /* hauteur */
  --d: 400px;  /* profondeur (vitre laterale) */
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d;
  /* balancement au repos en pur CSS (execute par la carte graphique) */
  animation: pc-idle 9s ease-in-out infinite;
}
@keyframes pc-idle {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-12px) rotateY(5deg); }
}
@keyframes pc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* -- Faces du boitier -- */
.pc3d-face,
.pc3d-layer { position: absolute; left: 0; top: 0; }
.pc3d-face {
  background: linear-gradient(180deg, #1a2030, #0b0e16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pc3d-front,
.pc3d-back { width: var(--w); height: var(--h); }
/* Facade en verre fume : 3 ventilateurs a anneau lumineux */
.pc3d-front {
  transform: translateZ(calc(var(--d) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 6px solid #0c1019;
  border-radius: 4px;
  background: radial-gradient(ellipse at 50% 50%, rgba(62, 166, 255, 0.1), transparent 70%), #080b12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.pc3d-front::after {
  /* reflet du verre, par-dessus les ventilateurs */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 32%, transparent 55%);
  pointer-events: none;
}
.pc3d-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.pc3d-glass,
.pc3d-left {
  width: var(--d);
  height: var(--h);
  left: calc((var(--w) - var(--d)) / 2);
}
.pc3d-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
/* Vitre laterale (s'ecarte avec --gl, 0 -> 1, dans la section anatomie) */
.pc3d-glass {
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 + var(--gl, 0) * 320px)) translateY(calc(var(--gl, 0) * -40px));
  opacity: calc(1 - var(--gl, 0) * 0.85);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.035) 20%, transparent 38%, transparent 64%, rgba(255, 255, 255, 0.06) 76%, transparent 88%),
    rgba(90, 130, 210, 0.045);
  border: 5px solid #0b0e16;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 50px rgba(62, 166, 255, 0.12);
}
.pc3d-top,
.pc3d-bottom {
  width: var(--w);
  height: var(--d);
  top: calc((var(--h) - var(--d)) / 2);
}
.pc3d-top {
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 9px) 18px 30px / calc(100% - 36px) calc(100% - 60px) no-repeat,
    linear-gradient(90deg, #212839, #121724);
}
.pc3d-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #07090f; }
.pc3d-power {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
}

/* -- Ventilateurs : pales sombres et douces, anneau LED fin (couleurs fixes) -- */
.pc3d-fan {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0c1019 0 14%, rgba(255, 255, 255, 0.2) 14.5% 15.5%, transparent 16%),
    repeating-conic-gradient(from 8deg, rgba(150, 185, 235, 0.14) 0deg 18deg, rgba(8, 11, 18, 0.92) 18deg 40deg),
    #080b12;
  box-shadow:
    0 0 0 2px #06080d,
    0 0 0 4px var(--led),
    0 0 18px 3px var(--led-soft),
    inset 0 0 0 6px rgba(6, 8, 13, 0.9),
    inset 0 0 22px var(--led-soft);
  animation: fan-spin 1.4s linear infinite;
}
@keyframes fan-spin { to { transform: rotate(360deg); } }

/* -- Interieur : calques paralleles a la vitre --
   Tous ont la meme taille/position ; seule la profondeur change :
   --z = distance depuis la paroi gauche, --zx = ecart en vue eclatee,
   --zy = decalage vertical en vue eclatee, --ex = taux d'eclatement (0 -> 1).
   Reperes du calque : x = 0 cote facade (gauche), x = 372px cote arriere. */
.pc3d-layer {
  --z: 10px;
  --zx: 0px;
  --zy: 0px;
  width: calc(var(--d) - 28px);
  height: calc(var(--h) - 28px);
  left: calc((var(--w) - var(--d)) / 2 + 14px);
  top: 14px;
  transform: rotateY(90deg) translateZ(calc(var(--w) / -2 + var(--z) + var(--ex, 0) * var(--zx))) translateY(calc(var(--ex, 0) * var(--zy)));
  pointer-events: none;
}
.pc3d-layer > span { position: absolute; }

/* Carte mere : PCB noir, radiateurs VRM / chipset, slot PCIe */
.pc3d-board {
  border-radius: 3px;
  background:
    linear-gradient(180deg, #252c40, #151a27) 64% 20px / 118px 16px no-repeat,
    linear-gradient(135deg, #20283a, #121724) 8% 252px / 52px 40px no-repeat,
    linear-gradient(90deg, #283044, #1a2030) 62% 300px / 214px 5px no-repeat,
    radial-gradient(ellipse 60% 45% at 58% 26%, rgba(62, 166, 255, 0.24), transparent 70%),
    linear-gradient(180deg, #0d121d, #080b12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.pc3d-io {
  top: 26px;
  right: 8px;
  width: 24px;
  height: 112px;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, #2a3146 0 10px, #0f131d 10px 16px);
}
/* Cable 24 broches gaine (blanc), cote facade */
.pc3d-cable {
  top: 64px;
  left: 10px;
  width: 22px;
  height: 150px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #dfe6f3 0 3px, #8d97ad 3px 5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
}
.pc3d-l-ssd { --z: 14px; --zx: 250px; --zy: 70px; }
.pc3d-ssd {
  top: 198px;
  left: 44%;
  width: 72px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2a3246, #161b29);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 10px rgba(62, 166, 255, 0.35);
}
/* Cache-alimentation avec logo ElecStore lumineux */
.pc3d-l-psu { --z: 18px; --zx: 120px; --zy: 110px; }
.pc3d-psu {
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  display: flex;
  align-items: center;
  padding-left: 22px;
  border-radius: 0 0 3px 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)) 0 0 / 100% 1px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 72% 50% / 7px 7px,
    linear-gradient(180deg, #161b28, #0b0e16);
}
.pc3d-psu em {
  font-family: var(--font-hero);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #cfe8ff;
  text-shadow: 0 0 8px var(--led), 0 0 18px var(--led-soft);
}
/* Barrettes de RAM a barre lumineuse (cote facade du socket) */
.pc3d-l-ram { --z: 26px; --zx: 190px; --zy: -120px; }
.pc3d-ram {
  top: 34px;
  left: 34%;
  display: flex;
  gap: 5px;
}
.pc3d-ram i {
  display: block;
  width: 8px;
  height: 116px;
  border-radius: 2px;
  background: linear-gradient(180deg, #eaf5ff 0 4px, var(--led) 4px 9px, #1b2233 9px, #10141f);
  box-shadow: 0 0 10px rgba(62, 166, 255, 0.45);
}
/* Watercooling : tete de pompe avec le bouclier ElecStore + tuyaux */
.pc3d-l-cpu { --z: 36px; --zx: 270px; --zy: -70px; }
.pc3d-pump {
  top: 52px;
  left: 54%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 57%, var(--led) 58% 62%, transparent 63%),
    url("../../img/logo/favicon-64.png") center / 46% no-repeat,
    radial-gradient(circle at 35% 30%, #232a3d, #0b0f18 70%);
  box-shadow: 0 0 0 3px #0a0d15, 0 0 20px var(--led-soft), 0 12px 22px rgba(0, 0, 0, 0.6);
}
.pc3d-pump::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 34px;
  height: 36px;
  margin-left: -17px;
  border: 5px solid #1c2232;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}
/* Radiateur en haut du boitier (vu de profil) */
.pc3d-l-rad { --z: 100px; --zx: 150px; --zy: -150px; }
.pc3d-rad {
  top: 4px;
  left: 44px;
  width: 250px;
  height: 26px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(62, 166, 255, 0.85) 6% 94%, transparent 94%) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, #2a3144 0 2px, #141925 2px 5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}
/* Carte graphique vue de profil : logo lumineux + bande LED */
.pc3d-l-gpu { --z: 140px; --zx: 330px; --zy: 40px; }
.pc3d-gpu {
  top: 226px;
  right: 16px;
  width: 290px;
  height: 64px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 5%, var(--led) 5% 62%, transparent 62%) 0 100% / 100% 2px no-repeat,
    linear-gradient(180deg, #2c3448 0%, #171c29 55%, #0d1019 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 #0a0d15, 0 16px 26px rgba(0, 0, 0, 0.65);
}
.pc3d-gpu em {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) skewX(-10deg);
  font-family: var(--font-hero);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #eef7ff;
  text-shadow: 0 0 8px var(--led), 0 0 18px var(--led-soft);
  white-space: nowrap;
}
/* Bande LED le long de la vitre */
.pc3d-l-rgb { --z: calc(var(--w) - 16px); }
.pc3d-rgb-strip {
  top: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--led);
  box-shadow: 0 0 12px 2px var(--led-soft);
}

/* -- Etiquettes flottantes du hero (opaques : aucun flou de fond) -- */
.hero3d-chip {
  --d: 30;
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(13, 17, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px), 0);
  animation: chip-bob 6s ease-in-out infinite;
}
@keyframes chip-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
/* Ecrans tactiles : pas de flottement. Cumule au parallaxe (transform), il n'est
   pas confie au GPU et relancerait le rendu de toute la page a chaque image. */
@media (hover: none) { .hero3d-chip { animation: none; } }
.hero3d-chip small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero3d-chip strong { display: block; font-size: 0.88rem; color: #fff; white-space: nowrap; }
.hero3d-chip-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(118, 185, 0, 0.16);
  color: #8fd400;
}
.hero3d-chip-icon svg { width: 20px; height: 20px; }
.hero3d-chip-icon-cpu { background: rgba(255, 84, 112, 0.15); color: #ff6b83; }
.hero3d-chip-icon-ok { background: var(--success-bg); color: var(--success); }
/* Etiquette prix d'appel */
.hero3d-price {
  padding: 12px 20px;
  border-color: rgba(62, 166, 255, 0.45);
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.2), rgba(13, 17, 27, 0.94) 62%);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.85), 0 14px 40px -14px rgba(62, 166, 255, 0.55);
}
.hero3d-price strong {
  margin-top: 2px;
  font-family: var(--font-hero);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero3d-chip-1 { top: 3%; left: -4%; }
.hero3d-chip-2 { top: 38%; right: -6%; animation-delay: -2s; }
.hero3d-chip-3 { bottom: 5%; left: -2%; animation-delay: -4s; }

/* ---- Hero responsive ---- */
@media (max-width: 1100px) {
  .hero3d-chip-2 { right: 0; }
  .hero3d-chip-1 { left: 0; }
}
@media (max-width: 960px) {
  .hero3d-grid { grid-template-columns: 1fr; }
  .hero3d-copy { text-align: center; }
  .hero3d-badges, .hero3d-actions { justify-content: center; }
  .hero3d-lead { margin-left: auto; margin-right: auto; }
  .hero3d-stats { justify-content: center; gap: var(--space-6); }
  .hero3d-stage { height: 520px; order: -1; }
  .hero3d-actions { margin-bottom: var(--space-6); }
}
@media (max-width: 640px) {
  .hero3d-stage { height: 400px; }
  .hero3d-stage .pc3d-scene { scale: 0.72; }
  .hero3d-chip { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 13px; }
  .hero3d-chip-icon { width: 30px; height: 30px; border-radius: 9px; }
  .hero3d-chip-icon svg { width: 16px; height: 16px; }
  .hero3d-chip strong { font-size: 0.78rem; }
  .hero3d-price { padding: 8px 14px; }
  .hero3d-price strong { font-size: 1.15rem; }
  .hero3d-chip-1 { top: 2%; left: 0; }
  .hero3d-chip-2 { display: none; }
  .hero3d-chip-3 { bottom: 4%; left: auto; right: 0; }
  .hero3d-stats { gap: var(--space-5); }
}
@media (max-width: 380px) {
  .hero3d-stage .pc3d-scene { scale: 0.62; }
  .hero3d-stage { height: 350px; }
  .hero3d-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}

/* ==================== Bandeau defilant de reassurance ==================== */
.assurance-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.09), rgba(0, 212, 255, 0.06), rgba(0, 227, 154, 0.07));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.assurance-marquee:hover .marquee-track { animation-play-state: paused; }
/* Sans duplication JS (script absent / animations reduites) : liste centree fixe */
.marquee-track:not([data-duplicate]) {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  animation: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-item svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

/* ==================== Entetes de section ==================== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.home-head { gap: var(--space-5); flex-wrap: wrap; }
.home-head h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.08;
}
.home-head p { color: var(--text-muted); max-width: 36rem; }

.section-head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.section-head-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-snap); }
.section-head-link:hover { border-color: var(--primary-2); background: rgba(0, 212, 255, 0.06); color: #fff; }
.section-head-link:hover svg { transform: translateX(3px); }

/* =====================================================================
   MANIFESTE  (--p "through" : les mots s'allument pendant la traversee)
   ===================================================================== */
.statement {
  --p: 1;
  /* progression de lecture : 0 quand le texte entre, 1 vers le milieu d'ecran */
  --pp: clamp(0, calc((var(--p) - 0.14) * 2.6), 1);
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}
.statement::before {
  content: "";
  position: absolute;
  inset: 10% 0 auto;
  height: 70%;
  background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(124, 92, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.statement-text {
  max-width: 1120px;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  font-family: var(--font-hero);
  font-size: clamp(1.6rem, 0.9rem + 3.1vw, 3.8rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #fff;
}
/* Chaque mot passe de 14% a 100% d'opacite, l'un apres l'autre (seuls les
   mots en cours de transition changent de valeur a chaque image) */
.statement-text.split-ready .split-i {
  opacity: clamp(0.14, calc(var(--pp) * (var(--n) + 4) - var(--i)), 1);
}
.statement-hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.statement-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5) var(--space-5) 0 0;
  color: inherit;
}
.statement-stat + .statement-stat { padding-left: var(--space-5); border-left: 1px solid rgba(255, 255, 255, 0.08); }
.statement-stat strong {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.statement-stat > span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
a.statement-stat:hover strong { color: var(--primary-2); }
@media (max-width: 860px) {
  .statement-stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-5); }
  .statement-stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ==================== Concours ==================== */
.concours-teaser-section { padding: 0; }
.concours-teaser {
  display: block;
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
}
.concours-teaser img { display: block; width: 100%; height: auto; }
.concours-teaser-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.concours-teaser-cta svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-snap); }
.concours-teaser:hover .concours-teaser-cta { color: var(--primary-2); }
.concours-teaser:hover .concours-teaser-cta svg { transform: translateX(4px); }

/* ==================== Categories (bento) ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.bento-tile { display: block; overflow: hidden; padding: 0; }
.bento-tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  transition: transform 0.8s var(--ease-snap);
}
.bento-tile:hover img { transform: scale(1.035); }
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* =====================================================================
   PC DU MOMENT : scroll horizontal epingle (desktop, .is-hscroll)
   Le deplacement du rail et la barre de progression sont ecrits
   directement en transform par home-3d.js (aucune variable CSS : pas de
   recalcul de style des 8 cartes produit a chaque image).
   Sans .is-hscroll (mobile, petit ecran, animations reduites) : simple
   carrousel natif qu'on fait glisser au doigt.
   ===================================================================== */
.hs {
  --card-w: 290px;
  --hs-pad: max(var(--space-5), calc((100vw - var(--container-max)) / 2 + var(--space-5)));
  position: relative;
  isolation: isolate;
  padding: var(--space-10) 0 var(--space-8);
}
.hs::before {
  content: "";
  position: absolute;
  inset: 15% 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124, 92, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-5);
}
.hs-head h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.08;
}
.hs-head p { margin: 0; color: var(--text-muted); }
.hscroll-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--hs-pad);
  scrollbar-width: none;
  padding: 16px 0 28px;
}
.hscroll-viewport::-webkit-scrollbar { display: none; }
.hscroll-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-inline: var(--hs-pad);
}
.hs-item {
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
  display: flex;
}
.hs-item > .product-card { width: 100%; }
.hs-end {
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124, 92, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(0, 212, 255, 0.3), transparent 70%),
    var(--box-bg);
}
.hs-end-count {
  font-family: var(--font-hero);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #151a28;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.5);
  paint-order: stroke fill;
}
.hs-end strong { font-family: var(--font-hero); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; }
.hs-end-arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #0a0d13;
  transition: transform 0.4s var(--ease-snap);
}
.hs-end-arrow svg { width: 22px; height: 22px; }
.hs-end:hover .hs-end-arrow { transform: translateX(8px) rotate(-45deg); }

.hs-foot { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.hs-progress {
  display: none;
  flex: 1 1 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.hs-progress span {
  display: block;
  height: 100%;
  background: var(--primary-gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.hs-assurances { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.hs-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hs-assurances svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* -- Mode epingle : la section fait la hauteur du trajet horizontal -- */
.home-scroll-ready .hs.is-hscroll {
  height: calc(100vh - var(--hdr) + var(--hs-dist, 0px));
  padding: 0;
}
.hs.is-hscroll .hs-sticky {
  position: sticky;
  top: var(--hdr);
  height: calc(100vh - var(--hdr));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
}
.hs.is-hscroll {
  /* carte dimensionnee pour tenir en hauteur d'ecran */
  --card-w: clamp(250px, calc(100vh - 530px), 300px);
}
.hs.is-hscroll .hs-head p { display: none; }
.hs.is-hscroll .hscroll-viewport { overflow: visible; scroll-snap-type: none; padding: 12px 0 18px; }
.hs.is-hscroll .hscroll-track { will-change: transform; }
.hs.is-hscroll .product-card-image { aspect-ratio: 4 / 3; }
.hs.is-hscroll .hs-progress { display: block; }

/* =====================================================================
   ANATOMIE : scroll epingle, le PC tourne, perd sa vitre, se desassemble
   puis se remonte.  --p (sticky) est decoupe en 4 phases :
     a1 0.00 -> 0.20  rotation vers la vitre
     a2 0.20 -> 0.40  la vitre s'ecarte
     a3 0.35 -> 0.60  vue eclatee + etiquettes
     a4 0.78 -> 0.95  remontage + tampon "30/30"
   ===================================================================== */
.anatomy {
  --p: 0.6; /* vue par defaut sans JS / animations reduites (voir data-p-static) */
  --a1: clamp(0, calc(var(--p) * 5), 1);
  --a2: clamp(0, calc((var(--p) - 0.2) * 5), 1);
  --a3: clamp(0, calc((var(--p) - 0.35) * 4), 1);
  --a4: clamp(0, calc((var(--p) - 0.78) * 6), 1);
  --ex: calc(var(--a3) * (1 - var(--a4)));
  --gl: calc(var(--a2) * (1 - var(--a4)));
  position: relative;
  scroll-margin-top: 120px;
}
.home-scroll-ready .anatomy { height: 420vh; }
.anatomy-sticky {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: var(--space-10) 0;
  overflow: clip;
}
.home-scroll-ready .anatomy-sticky {
  position: sticky;
  top: var(--hdr);
  height: calc(100vh - var(--hdr));
  padding: 0;
}
/* Fond fixe (ne depend pas de --p : aucun repeint pendant le scroll) */
.anatomy-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 68% 50%, rgba(62, 166, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 35% 40% at 80% 72%, rgba(124, 92, 255, 0.12), transparent 70%);
}
.anatomy-bg::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 45%;
  background-image:
    linear-gradient(rgba(62, 166, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 166, 255, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
  mask-image: linear-gradient(to top, #000, transparent 85%);
  opacity: 0.45;
}
.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}
.anatomy-copy h2 {
  margin: 0 0 var(--space-6);
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem);
  line-height: 1.08;
}
.anatomy-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.anatomy-step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: 16px;
  border: 1px solid transparent;
  transition: opacity 0.4s ease, background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-out);
}
.anatomy-step h3 { margin: 0 0 4px; font-size: 1.02rem; }
.anatomy-step p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); }
.anatomy-step-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
/* Etape active (attribut data-step pose par le JS) */
.home-scroll-ready .anatomy-step { opacity: 0.3; }
.anatomy[data-step="0"] .anatomy-step:nth-child(1),
.anatomy[data-step="1"] .anatomy-step:nth-child(2),
.anatomy[data-step="2"] .anatomy-step:nth-child(3),
.anatomy[data-step="3"] .anatomy-step:nth-child(4) {
  opacity: 1;
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.anatomy[data-step="0"] .anatomy-step:nth-child(1) .anatomy-step-num,
.anatomy[data-step="1"] .anatomy-step:nth-child(2) .anatomy-step-num,
.anatomy[data-step="2"] .anatomy-step:nth-child(3) .anatomy-step-num,
.anatomy[data-step="3"] .anatomy-step:nth-child(4) .anatomy-step-num {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
}
.anatomy-rail {
  margin-top: var(--space-5);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.anatomy-rail span {
  display: block;
  height: 100%;
  background: var(--primary-gradient);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
}

.anatomy-stage {
  position: relative;
  height: min(620px, calc(100vh - var(--hdr) - 60px));
  min-height: 460px;
  display: grid;
  place-items: center;
}
.pc3d-scene--anatomy {
  /* recule et glisse a gauche pendant l'eclatement pour laisser la place aux pieces */
  transform:
    translate3d(calc(var(--ex) * -90px), calc(var(--ex) * 10px), 0)
    scale(calc(0.9 + var(--a1) * 0.12 - var(--a4) * 0.06 - var(--ex) * 0.14));
}
.pc3d-scene--anatomy .pc3d { animation-name: pc-float; }
.pc3d-scene--anatomy .pc3d-rig {
  transform:
    rotateX(calc(-14deg + var(--a1) * 4deg))
    rotateY(calc(-18deg - var(--a1) * 40deg + var(--a4) * 16deg));
}

/* Etiquettes des composants : apparaissent en cascade pendant l'eclatement */
.anatomy-tag {
  --tv: clamp(0, calc((var(--a3) - var(--t)) * 5), 1);
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 10px 26px;
  border-radius: 12px;
  background: rgba(12, 16, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.8);
  opacity: clamp(0, calc(var(--tv) * (1 - var(--a4) * 2)), 1);
  transform: translate3d(0, calc((1 - var(--tv)) * 16px), 0);
  white-space: nowrap;
}
.anatomy-tag i {
  position: absolute;
  left: 11px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.18), 0 0 12px var(--primary-2);
}
.anatomy-tag strong { font-size: 0.84rem; color: #fff; }
.anatomy-tag strong .anatomy-tag-suite { font: inherit; letter-spacing: inherit; color: inherit; } /* masque sur petit ecran avec les autres span */
.anatomy-tag span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--text-muted); }
.anatomy-tag-gpu { --t: 0; right: 0; top: 58%; }
.anatomy-tag-cpu { --t: 0.2; right: 4%; top: 14%; }
.anatomy-tag-ram { --t: 0.4; right: 64%; top: 9%; }
.anatomy-tag-psu { --t: 0.55; left: 6%; bottom: 5%; }
.anatomy-tag-ssd { --t: 0.7; left: 16%; top: 60%; }

/* Tampon final "30/30" */
.anatomy-stamp {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 26px;
  border-radius: 20px;
  border: 2px solid var(--success);
  background: rgba(6, 20, 16, 0.9);
  color: var(--success);
  box-shadow: 0 0 0 6px rgba(0, 227, 154, 0.1), 0 20px 60px -10px rgba(0, 227, 154, 0.45);
  opacity: var(--a4);
  transform: translate(-50%, -50%) rotate(-8deg) scale(calc(1.7 - var(--a4) * 0.7));
  pointer-events: none;
}
.anatomy-stamp svg { width: 28px; height: 28px; }
.anatomy-stamp strong { font-family: var(--font-hero); font-size: 2.2rem; line-height: 1; color: #fff; }
.anatomy-stamp small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 960px) {
  .home-scroll-ready .anatomy { height: 380vh; }
  .anatomy-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .anatomy-copy h2 { margin-bottom: var(--space-3); font-size: 1.5rem; }
  .anatomy-stage { height: 380px; min-height: 0; order: 2; }
  .anatomy-stage .pc3d-scene--anatomy {
    scale: 0.62;
    transform:
      translate3d(calc(var(--ex) * -20px), 0, 0)
      scale(calc(0.9 + var(--a1) * 0.12 - var(--a4) * 0.06 - var(--ex) * 0.14));
  }
  .anatomy-tag { padding: 7px 10px 7px 22px; }
  .anatomy-tag-ssd { display: none; } /* 4 etiquettes suffisent sur petit ecran */
  .anatomy-tag strong { font-size: 0.74rem; }
  .anatomy-tag span { display: none; }
  .anatomy-tag i { left: 9px; top: 12px; }
  /* Une seule etape visible a la fois (empilees, fondu enchaine) */
  .home-scroll-ready .anatomy-steps { grid-template-areas: "etape"; }
  .home-scroll-ready .anatomy-step { grid-area: etape; opacity: 0; padding: var(--space-3); }
  .anatomy[data-step] .anatomy-step { transform: none !important; }
  .home-scroll-ready .anatomy-rail { margin-top: var(--space-2); }
}
@media (max-width: 960px) and (max-height: 700px) {
  .anatomy-stage { height: 300px; }
  .anatomy-stage .pc3d-scene--anatomy { scale: 0.5; }
  .anatomy-step p { font-size: 0.8rem; }
}

/* =====================================================================
   TYPO GEANTE  (--p "through" + --vel, poses sur la section elle-meme)
   ===================================================================== */
.bigtype {
  --p: 0.5;
  --vel: 0;
  padding: clamp(3rem, 7vw, 6rem) 0;
  overflow: clip;
  pointer-events: none;
  user-select: none;
}
.bigtype-row {
  display: flex;
  align-items: center;
  gap: 0.35em;
  width: max-content;
  font-family: var(--font-hero);
  font-size: clamp(3rem, 1.6rem + 6.5vw, 8.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate3d(calc(-8vw - var(--p) * 55vw), 0, 0) skewX(calc(var(--vel) * -12deg));
  will-change: transform;
}
.bigtype-row-2 { transform: translate3d(calc(-70vw + var(--p) * 55vw), 0, 0) skewX(calc(var(--vel) * 12deg)); }
.bigtype-row .is-fill { color: #fff; }
.bigtype-row .is-outline {
  color: #0a0d13;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.32);
  paint-order: stroke fill;
}
.bigtype-row-2 .is-fill {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bigtype-dot { font-size: 0.35em; color: var(--primary-2); }

/* ==================== Univers (marques & rayons) ==================== */
.univers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center; /* bannieres de proportions differentes : pas d'etirement */
  gap: var(--space-4);
}
.univers-tile { display: block; overflow: hidden; --box-radius: 16px; }
.univers-tile img { display: block; width: 100%; height: auto; border-radius: inherit; }
@media (max-width: 900px) { .univers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .univers-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ==================== Produits (nouveautes) ==================== */
.home-products { position: relative; isolation: isolate; }
.home-products::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(1100px, 100%);
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.1), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ==================== Avis clients ==================== */
.trust-showcase { position: relative; isolation: isolate; overflow: hidden; }
.trust-showcase::before {
  content: "";
  position: absolute;
  top: -160px; right: -80px;
  width: 640px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.12), transparent 68%);
  z-index: -1;
  pointer-events: none;
}
.trust-showcase-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: center;
}
.trust-showcase-score {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  transform-style: preserve-3d; /* seul bloc avec un enfant en profondeur */
}
.trust-showcase-score-number {
  font-family: var(--font-hero);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transform: translateZ(30px);
}
.trust-showcase-score-number .score-suffix { font-size: 1.4rem; color: var(--text-faint); font-weight: 600; }
.trust-showcase-score .stars { justify-content: center; margin: var(--space-3) 0 var(--space-2); }
.trust-showcase-score .stars svg { width: 18px; height: 18px; }
.trust-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.82rem;
}
.trust-showcase-badge svg { width: 16px; height: 16px; }
.trust-showcase-score p { font-size: 0.8rem; margin: 0; }
.trust-showcase-link { display: inline-block; margin-top: var(--space-2); font-size: 0.8rem; font-weight: 700; color: var(--primary-2); text-decoration: underline; }

.trust-showcase-carousel { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.trust-carousel-nav {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--dur-fast) var(--ease-bounce);
}
.trust-carousel-nav:hover { background: var(--primary-gradient); border-color: transparent; color: #fff; transform: translateY(-2px); }
.trust-carousel-nav svg { width: 18px; height: 18px; }
.trust-carousel-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  padding: 6px 2px 10px;
}
.trust-carousel-track::-webkit-scrollbar { display: none; }
.trust-carousel-track .trust-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 280px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--dur-fast) var(--ease-snap), border-color var(--transition);
}
.trust-carousel-track .trust-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.14); }
@media (max-width: 900px) {
  .trust-showcase-layout { grid-template-columns: 1fr; }
  .trust-showcase-score { max-width: 360px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .trust-carousel-track .trust-card { width: 230px; }
  .trust-carousel-nav { display: none; }
}

/* ==================== FAQ ==================== */
.faq-section { position: relative; isolation: isolate; overflow: hidden; }
.faq-section::before {
  content: "";
  position: absolute;
  top: 10%; left: 50%;
  width: 820px; height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.12), transparent 68%);
  z-index: -1;
  pointer-events: none;
}
.faq-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-8); }
.faq-head h2 { margin: 0 0 var(--space-3); font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); line-height: 1.1; }
.faq-head p { color: var(--text-muted); margin: 0; }

.faq-list { max-width: 880px; margin: 0 auto; overflow: hidden; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.03); }
.faq-item-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-faint);
  transition: color var(--transition);
}
.faq-item[open] .faq-item-num { color: var(--primary-2); }
.faq-item-q { flex: 1; }
.faq-item-chevron {
  width: 30px; height: 30px;
  padding: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-faint);
  transition: transform var(--dur-fast) var(--ease-snap), background var(--transition), color var(--transition), border-color var(--transition);
}
.faq-item[open] .faq-item-chevron { transform: rotate(180deg); background: var(--primary-gradient); border-color: transparent; color: #fff; }
.faq-item-a { padding: 0 var(--space-6) var(--space-5) calc(var(--space-6) + 1.5rem + var(--space-4)); }
.faq-item-a p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.faq-item-a a { color: var(--primary-2); }
@media (max-width: 640px) {
  .faq-item summary { padding: var(--space-4); gap: var(--space-3); }
  .faq-item-a { padding: 0 var(--space-4) var(--space-4); }
}

.faq-cta {
  max-width: 880px;
  margin: var(--space-5) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}
.faq-cta strong { color: var(--text); font-size: 1.02rem; }
.faq-cta p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.faq-cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ==================== CTA final (grandit en arrivant a l'ecran) ==================== */
.final-cta-section { --p: 0.5; padding-bottom: var(--space-10); }
.final-cta {
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--space-5);
  --box-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 100%, rgba(0, 212, 255, 0.16), transparent 70%),
    var(--box-bg);
  transform: scale(calc(0.86 + clamp(0, calc(var(--p) * 2.2), 1) * 0.14));
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.final-cta-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -10%;
  height: 70%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(400px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
  mask-image: linear-gradient(to top, #000, transparent 85%);
  opacity: 0.55;
}
.final-cta .section-eyebrow { justify-content: center; }
.final-cta h2 {
  margin: 0 auto var(--space-4);
  max-width: 16em;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.final-cta p { max-width: 32rem; margin: 0 auto var(--space-6); color: var(--text-muted); font-size: 1.05rem; }
.final-cta .btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; }

/* ==================== Badge avis flottant (opaque : pas de flou pendant le scroll) ==================== */
.avis-badge-float {
  position: fixed;
  right: var(--space-5);
  bottom: 110px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 92px;
  padding: var(--space-3) var(--space-2);
  background: rgba(15, 19, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-snap), box-shadow var(--transition), border-color var(--transition);
}
.avis-badge-float:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.avis-badge-float-score { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1; }
.avis-badge-float-score small { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.avis-badge-float .stars { display: flex; gap: 1px; color: var(--warning); }
.avis-badge-float .stars svg { width: 11px; height: 11px; }
.avis-badge-float-count { font-size: 0.62rem; font-weight: 600; color: var(--text-faint); line-height: 1.3; }
@media (max-width: 640px) {
  .avis-badge-float { right: var(--space-3); bottom: 130px; width: 78px; padding: var(--space-2); }
  /* Telephone : la note est deja dans le hero ; le badge flottant masquait le contenu (etiquettes du PC 3D...) */
  .avis-badge-float { display: none; }
  .avis-badge-float-score { font-size: 1rem; }
}

/* ==================== Animations reduites ==================== */
@media (prefers-reduced-motion: reduce) {
  .pc3d-fan, .pc3d, .hero3d-chip, .marquee-track, .promo-bar-live, .hero3d-pill-dot, .pc3d-photo img { animation: none !important; }
  .hero3d-copy, .hero3d .pc3d-scene, .final-cta, .bigtype-row { transform: none !important; }
  .hero3d-copy, .hero3d .hero3d-chip { opacity: 1 !important; }
}

/* =====================================================================
   PC 3D TEMPS REEL (WebGL, assets/js/pc3d-webgl.js)
   Le canvas remplace le PC en CSS des qu'il a dessine sa premiere image
   (classe .webgl-ready posee sur l'hote). Sans WebGL : le PC CSS reste.
   ===================================================================== */
.pc3d-webgl {
  position: absolute;
  inset: -40px -60px;
  width: calc(100% + 120px);
  height: calc(100% + 80px);
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  /* bords fondus : aucune lueur coupee net par le cadre du canvas */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 84%, transparent);
  mask-composite: intersect;
}
.anatomy-stage .pc3d-webgl { inset: 0; width: 100%; height: 100%; }
.webgl-ready .pc3d-webgl { opacity: 1; }
.webgl-ready > .pc3d-scene { display: none; }
/* Au scroll, le PC du hero plonge legerement (transform du canvas : gratuit) */
.hero3d .pc3d-webgl { transform: translate3d(0, calc(var(--p) * 110px), 0) scale(calc(1 - var(--p) * 0.12)); }
/* Etiquettes de l'anatomie accrochees aux pieces 3D (--ax/--ay projetes en JS) */
.webgl-ready .anatomy-tag {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  transform: translate3d(calc(var(--ax, -999px) - 14px), calc(var(--ay, -999px) - 20px + (1 - var(--tv)) * 16px), 0);
}
/* Etiquette proche du bord droit (pose par pc3d-webgl.js) : elle s'ouvre vers la gauche */
.webgl-ready .anatomy-tag.is-flip {
  padding-left: 14px;
  padding-right: 26px;
  transform: translate3d(calc(var(--ax, -999px) + 14px - 100%), calc(var(--ay, -999px) - 20px + (1 - var(--tv)) * 16px), 0);
}
.webgl-ready .anatomy-tag.is-flip i { left: auto; right: 11px; }
@media (max-width: 960px) {
  .webgl-ready .anatomy-tag.is-flip { padding-left: 10px; padding-right: 22px; }
  .webgl-ready .anatomy-tag.is-flip i { right: 9px; }
}
@media (max-width: 640px) {
  .pc3d-webgl { inset: -20px -16px; width: calc(100% + 32px); height: calc(100% + 40px); }
}

/* Ecrans tactiles : dans le hero, rendu HD fixe du PC (assets/img/home/pc3d-hero*.webp,
   genere depuis la meme scene 3D) a la place du moteur temps reel. Net sur les ecrans
   haute densite, aucun calcul : le moteur 3D n'est charge que pour l'anatomie. */
.pc3d-photo { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero3d-stage > .pc3d-webgl,
  .hero3d-stage > .pc3d-scene { display: none !important; }
  .hero3d-stage .pc3d-photo {
    position: absolute;
    inset: -40px -60px;
    display: block;
    width: calc(100% + 120px);
    height: calc(100% + 80px);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 84%, transparent);
    mask-composite: intersect;
    transform: translate3d(0, calc(var(--p) * 110px), 0) scale(calc(1 - var(--p) * 0.12));
  }
  .hero3d-stage .pc3d-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pc-photo-flotte 7s ease-in-out infinite;
  }
}
@media (hover: none) and (max-width: 640px), (pointer: coarse) and (max-width: 640px) {
  .hero3d-stage .pc3d-photo { inset: -20px -16px; width: calc(100% + 32px); height: calc(100% + 40px); }
}
@keyframes pc-photo-flotte {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0) rotate(-0.6deg); }
}