/*
  ============================================================
  9MM — COUCHE "POLISH" (élévation visuelle)
  ------------------------------------------------------------
  Chargée EN DERNIER sur chaque page : n'ajoute que de la
  finition visuelle (texture, accents, profondeur, hover,
  logo) par-dessus la structure validée. Aucune modif de mise
  en page : on enrichit, on ne casse rien.

  Objectif : sortir du "template plat" → premium, plus riche,
  sans perdre la sobriété (fond #000). Motif récurrent =
  fil d'accent dégradé rouge→cyan + grain léger + halos.
  ============================================================
*/

/* =========================================================
   0) MOTIF DE MARQUE — variables utilitaires
   ========================================================= */
:root {
  --accent-grad: linear-gradient(90deg, var(--body), var(--mind));
  --card-sheen: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 58%);
  --border-bright: rgba(255, 255, 255, 0.10);
}

/* =========================================================
   1) GRAIN GLOBAL (film grain très subtil) — donne de la
   "matière" au noir plat. Au-dessus du contenu, sous l'intro.
   ========================================================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }


/* =========================================================
   2) HEADER — finition + logo image
   ========================================================= */
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
/* fil d'accent dégradé sous le header au scroll = signature de marque */
.site-header.is-scrolled::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent-grad);
  opacity: 0.5;
}

/* Logo image (remplace le texte) */
.site-logo-img {
  display: block;
  height: 22px;
  width: auto;
}
.site-footer-brand .site-logo-img { height: 40px; }
/* on neutralise l'ancien rendu texte si présent */
.site-logo { gap: 0; }


/* =========================================================
   3) HERO — plus de profondeur (halos en couches + grille +
   logo lockup). C'était le plus "nu".
   ========================================================= */
.home-hero {
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bg);
}
/* grille fine en perspective derrière le hero */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  /* fondu sur les bords pour que la grille ne soit visible qu'au centre-haut */
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 75%);
}
/* halos hero plus présents et colorés */
.home-hero-glow { filter: blur(90px); opacity: 0.7; }
.home-hero-glow--body { width: 70vw; height: 70vw; max-width: 720px; max-height: 720px; }
.home-hero-glow--mind { width: 70vw; height: 70vw; max-width: 720px; max-height: 720px; }

/* Logo lockup en haut du hero (remplace l'ancien kicker pill) */
.home-hero-logo {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

/* Titre hero : plus grand, tracking plus serré (display premium) */
.home-hero-title {
  font-size: clamp(2.4rem, 8.5vw, 4.8rem);
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.10);
}


/* =========================================================
   4) EYEBROW D'ACCENT au-dessus des titres de section
   (fil dégradé rouge→cyan) = rythme + repère visuel
   ========================================================= */
.home-section-head { position: relative; }
.home-section-head::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 0 auto 22px;
  border-radius: 3px;
  background: var(--accent-grad);
}

/* Pages produit : accent à gauche du titre de section */
.pp-section-title { position: relative; padding-top: 20px; }
.pp-section-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
}


/* =========================================================
   5) SECTIONS — profondeur (dégradés au lieu du noir plat)
   ========================================================= */
.home-beyond {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(54, 217, 187, 0.05), transparent 60%),
    var(--bg);
}
.home-proof { background: linear-gradient(180deg, #050507, var(--bg)); }
.home-faq { background: linear-gradient(180deg, var(--bg), #050507); }
/* « Beyond Energy » en gras prend le dégradé de marque */
.home-beyond-text strong {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-beyond-text strong { color: var(--white); }
}


/* =========================================================
   6) CARTES — surface dégradée, bord plus net, hover travaillé
   ========================================================= */
.home-proof-item,
.home-vs-card,
.home-want-row,
.home-faq-item,
.pp-benefit,
.pp-compo-row {
  background: var(--card-sheen), var(--card);
  border-color: var(--border-bright);
}

/* fil d'accent qui se révèle en haut au survol (preuve + bénéfices) */
.home-proof-item,
.pp-benefit { position: relative; overflow: hidden; }
.home-proof-item::before,
.pp-benefit::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pp--body .pp-benefit::before,
.pp--mind .pp-benefit::before { background: var(--accent); }
.home-proof-item:hover::before,
.pp-benefit:hover::before { transform: scaleX(1); }

.home-proof-item:hover,
.pp-benefit:hover {
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.95);
}

/* Icônes pictos : pastille dégradée + lueur d'accent */
.home-proof-icon {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  border-color: var(--border-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pp-benefit-icon {
  background: linear-gradient(160deg, var(--accent-soft), transparent);
  box-shadow: 0 0 22px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Cartes BODY/MIND : liseré d'accent en haut + halo accru au survol */
.home-vs-card { position: relative; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.home-vs-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.home-vs-card--body::before { background: var(--body); }
.home-vs-card--mind::before { background: var(--mind); }
.home-vs-card--body:hover { transform: translateY(-4px); border-color: var(--body); box-shadow: 0 30px 70px -34px var(--glow-body); }
.home-vs-card--mind:hover { transform: translateY(-4px); border-color: var(--mind); box-shadow: 0 30px 70px -34px var(--glow-mind); }

/* FAQ : la question prend une teinte d'accent à l'ouverture */
.home-faq-item[open] { border-color: var(--border-bright); }
.home-faq-item[open] .home-faq-q { color: #fff; }


/* =========================================================
   7) BOUTONS — finition (lueur, dégradé léger)
   ========================================================= */
.home-btn--primary {
  background: linear-gradient(180deg, #ffffff, #e9e9ef);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -14px rgba(255, 255, 255, 0.5);
}
.home-btn--primary:hover { box-shadow: 0 16px 38px -10px rgba(255, 255, 255, 0.45); }

.pp-cta { box-shadow: 0 10px 30px -12px var(--accent-glow); }

/* Bouton "ghost" (contour) + rangée de CTA du hero */
.home-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.home-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.38); }
.home-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); box-shadow: none; }


/* =========================================================
   8) CTA FINAL + NEWSLETTER — un peu de relief
   ========================================================= */
.home-final { background: radial-gradient(80% 90% at 50% 0%, #0e0e18, #07070b 70%); }
.home-final-glow { opacity: 0.9; }
.home-news {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)), var(--card);
  border-color: var(--border-bright);
}


/* =========================================================
   9) FOOTER — fil d'accent + lockup
   ========================================================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #07070b, var(--surface));
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-grad);
  opacity: 0.4;
}


/* =========================================================
   10) PRODUIT — chips + hero un peu plus riches
   ========================================================= */
.pp-hero-glow { opacity: 0.6; }
.pp-chips li {
  background: linear-gradient(165deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pp-compo-row { transition: border-color 0.2s ease, transform 0.2s ease; }
.pp-compo-row:hover { transform: translateX(3px); border-left-color: var(--accent); border-color: var(--border-bright); border-left-width: 3px; }


/* =========================================================
   11) ACCESSIBILITÉ
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .home-proof-item::before, .pp-benefit::before,
  .home-vs-card, .pp-compo-row { transition: none; }
  .home-vs-card--body:hover, .home-vs-card--mind:hover, .pp-compo-row:hover { transform: none; }
}
