/*
  ============================================================
  STYLES DE LA HOME 9MM
  ------------------------------------------------------------
  Mobile-first. Le :root (tokens couleurs/polices) est déclaré
  dans index.html : on ne le redéclare PAS, on utilise var(--…).
  Toutes les classes sont préfixées "home-".

  Rappel des tokens disponibles :
    --bg #080810  --surface #0c0c14  --card #12121c  --border #1e1e2a
    --white #fff  --muted #8888a0
    --body #ff1717 (rouge)  --mind #36d9bb (cyan)
    --glow-body rgba(255,23,23,.4)  --glow-mind rgba(54,217,187,.4)
    --font-display 'Russo One'  --font-body 'Chakra Petch'
  ============================================================
*/

/* ---- Base de la home -----------------------------------------------------
   Fond sombre + texte blanc + police de corps par défaut.
   On ne touche pas au <body> global (géré ailleurs) : on cible .home. */
.home {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* box-sizing local pour que paddings/bordures ne fassent pas déborder */
.home *,
.home *::before,
.home *::after {
  box-sizing: border-box;
}

/* ---- Conteneur centré --------------------------------------------------- */
.home-container {
  width: 100%;
  max-width: 1100px;        /* largeur max demandée */
  margin: 0 auto;           /* centrage horizontal */
  padding-left: 24px;       /* marge intérieure mobile */
  padding-right: 24px;
}

/* ---- Titres de section (Russo One) -------------------------------------- */
.home-section-title {
  font-family: var(--font-display);
  font-weight: 400;                 /* Russo One n'a qu'une graisse */
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;           /* letter-spacing léger */
  margin: 0;
  color: var(--white);
}

/* En-tête centré commun à plusieurs sections (titre + sous-titre) */
.home-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.home-section-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}


/* =========================================================
   SECTION 1 — HERO
   ========================================================= */
.home-hero {
  position: relative;
  min-height: 100vh;                /* plein écran */
  min-height: 100svh;               /* hauteur viewport « stable » sur mobile si supporté */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;                 /* on contient les lueurs */
  padding: 96px 0;
}

/* Contenu du hero centré et limité en largeur pour la lisibilité */
.home-hero-inner {
  position: relative;
  z-index: 2;                       /* au-dessus des lueurs */
  max-width: 760px;
}

/* Lueurs d'ambiance : deux halos radiaux flous (rouge + cyan), décoratifs */
.home-hero-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(80px);               /* flou = halo diffus */
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;             /* purement décoratif */
}

/* Halo rouge (BODY) en haut à gauche */
.home-hero-glow--body {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--glow-body) 0%, transparent 70%);
}

/* Halo cyan (MIND) en bas à droite */
.home-hero-glow--mind {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--glow-mind) 0%, transparent 70%);
}

/* Kicker au-dessus du H1 : petit, espacé, en majuscules */
.home-kicker {
  display: inline-block;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;           /* très espacé = effet « label premium » */
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* L'étoile du kicker prend un dégradé subtil rouge→cyan (les 2 gammes) */
.home-kicker-star {
  background: linear-gradient(90deg, var(--body), var(--mind));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Repli : si background-clip:text n'est pas supporté, l'étoile reste visible (cyan). */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-kicker-star { color: var(--mind); }
}

/* Titre du hero (Russo One), grand, en majuscules */
.home-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--white);
  /* léger glow blanc pour faire ressortir le titre du fond sombre */
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

/* Sous-titre du hero */
.home-hero-subtitle {
  margin: 0 auto 36px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Indice de scroll en bas du hero : flèche discrète qui rebondit */
.home-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.home-scroll-arrow {
  display: inline-block;
  color: var(--muted);
  font-size: 1.3rem;
  animation: home-bounce 1.8s ease-in-out infinite;
}

/* Petit rebond vertical de la flèche de scroll */
@keyframes home-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}


/* =========================================================
   SECTION 2 — BEYOND ENERGY
   ========================================================= */
.home-beyond {
  padding: 100px 0;
  background: var(--bg);
}

/* Texte centré, largeur de lecture confortable */
.home-beyond-inner {
  max-width: 760px;
  text-align: center;
}

.home-beyond .home-section-title {
  margin-bottom: 28px;
}

.home-beyond-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

/* « Beyond Energy » en blanc pour le faire ressortir */
.home-beyond-text strong {
  color: var(--white);
  font-weight: 700;
}


/* =========================================================
   SECTION 3 — BODY vs MIND (cartes)
   ========================================================= */
.home-formulas {
  padding: 100px 0;
  background: var(--surface);        /* légère variation de fond pour découper la section */
}

/* Grille des cartes : 1 colonne par défaut (mobile), 2 en desktop (voir media query) */
.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Carte de base */
.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 36px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Survol des cartes : léger soulèvement */
.home-card:hover {
  transform: translateY(-4px);
}

/* Accent ROUGE pour BODY : bordure + glow rouge (au repos et renforcé au survol) */
.home-card--body {
  border-color: rgba(255, 23, 23, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 23, 23, 0.05), 0 18px 50px -20px var(--glow-body);
}
.home-card--body:hover {
  border-color: var(--body);
  box-shadow: 0 0 0 1px rgba(255, 23, 23, 0.2), 0 24px 60px -18px var(--glow-body);
}

/* Accent CYAN pour MIND : bordure + glow cyan */
.home-card--mind {
  border-color: rgba(54, 217, 187, 0.35);
  box-shadow: 0 0 0 1px rgba(54, 217, 187, 0.05), 0 18px 50px -20px var(--glow-mind);
}
.home-card--mind:hover {
  border-color: var(--mind);
  box-shadow: 0 0 0 1px rgba(54, 217, 187, 0.2), 0 24px 60px -18px var(--glow-mind);
}

/* ---- Placeholder « canette » en CSS (pas d'image dispo) ----
   Bloc vertical arrondi qui évoque une canette, avec un dégradé d'accent. */
.home-can {
  position: relative;
  width: 64px;
  height: 128px;
  border-radius: 14px / 22px;        /* coins très arrondis = silhouette de canette */
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  /* reflet vertical pour donner un effet métal/volume */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 22%),
    linear-gradient(160deg, var(--card), #0a0a12);
}

/* Liserés haut/bas pour suggérer le couvercle et le fond de la canette */
.home-can::before,
.home-can::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.home-can::before { top: 8px; }
.home-can::after  { bottom: 8px; }

/* Étiquette verticale sur la canette (BODY / MIND) */
.home-can-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;         /* texte vertical le long de la canette */
  text-orientation: mixed;
  color: var(--white);
  opacity: 0.85;
}

/* Teinte d'accent du placeholder selon la gamme */
.home-can--body {
  border-color: rgba(255, 23, 23, 0.4);
  box-shadow: inset 0 0 24px rgba(255, 23, 23, 0.18);
}
.home-can--mind {
  border-color: rgba(54, 217, 187, 0.4);
  box-shadow: inset 0 0 24px rgba(54, 217, 187, 0.18);
}

/* Titre de carte (Russo One) */
.home-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  color: var(--white);
}

/* Accroche colorée selon la gamme */
.home-card-hook {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.home-card--body .home-card-hook { color: var(--body); }
.home-card--mind .home-card-hook { color: var(--mind); }

/* Texte descriptif de la carte */
.home-card-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Tag d'usage (petit, en majuscules, encadré discrètement) */
.home-card-tag {
  margin: 0 0 26px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Le bouton de carte est poussé en bas de la carte (alignement propre) */
.home-card .home-btn {
  margin-top: auto;
}


/* =========================================================
   SECTION 4 — BÉNÉFICES
   ========================================================= */
.home-benefits {
  padding: 100px 0;
  background: var(--bg);
}

/* Grille : 1 colonne en mobile, plusieurs colonnes en desktop (media query) */
.home-benefits-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Un bénéfice = carte légère avec puce + titre + ligne */
.home-benefit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.home-benefit:hover {
  border-color: #2a2a3a;
  transform: translateY(-2px);
}

/* Puce / emoji neutre du bénéfice */
.home-benefit-bullet {
  display: inline-block;
  font-size: 1.3rem;
  margin-bottom: 12px;
  /* Ce sont des emojis : on les laisse dans leurs couleurs natives.
     (Un dégradé + background-clip:text les rendait imprévisibles, voire invisibles.) */
}

/* Titre court en gras */
.home-benefit-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--white);
}

/* Ligne de description */
.home-benefit-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* =========================================================
   SECTION 5 — CTA FINAL (compact)
   ========================================================= */
.home-cta {
  position: relative;
  padding: 90px 0;
  text-align: center;
  background: var(--surface);
  overflow: hidden;
}

/* Lueur neutre derrière le CTA (mélange discret des 2 accents) */
.home-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 700px;
  height: 280px;
  background: radial-gradient(ellipse at center,
              rgba(255, 23, 23, 0.12) 0%,
              rgba(54, 217, 187, 0.10) 45%,
              transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.home-cta-inner {
  position: relative;
  z-index: 2;
}

.home-cta .home-section-title {
  margin-bottom: 28px;
}


/* =========================================================
   BOUTONS (partagés) — proto non fonctionnels mais hover/focus stylés
   ========================================================= */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Petit retour tactile au survol */
.home-btn:hover {
  transform: translateY(-2px);
}

/* Focus clavier visible (accessibilité) — anneau cyan net */
.home-btn:focus-visible {
  outline: 2px solid var(--mind);
  outline-offset: 3px;
}

/* ---- Bouton principal : fond plein blanc ---- */
.home-btn--primary {
  background: var(--white);
  color: var(--bg);
}
.home-btn--primary:hover {
  box-shadow: 0 12px 30px -8px rgba(255, 255, 255, 0.4);
}

/* ---- Bouton BODY : contour rouge, se remplit au survol ---- */
.home-btn--body {
  background: transparent;
  color: var(--body);
  border-color: var(--body);
}
.home-btn--body:hover {
  background: var(--body);
  color: var(--white);
  box-shadow: 0 12px 30px -8px var(--glow-body);
}
.home-btn--body:focus-visible {
  outline-color: var(--body);
}

/* ---- Bouton MIND : contour cyan, se remplit au survol ---- */
.home-btn--mind {
  background: transparent;
  color: var(--mind);
  border-color: var(--mind);
}
.home-btn--mind:hover {
  background: var(--mind);
  color: var(--bg);
  box-shadow: 0 12px 30px -8px var(--glow-mind);
}
.home-btn--mind:focus-visible {
  outline-color: var(--mind);
}


/* =========================================================
   RESPONSIVE — DESKTOP (≥ 769px)
   Mobile-first : par défaut tout est en 1 colonne ci-dessus.
   Ici on élargit pour les grands écrans.
   ========================================================= */
@media (min-width: 769px) {
  /* Plus de respiration intérieure sur grand écran */
  .home-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* Cartes BODY/MIND côte à côte */
  .home-cards {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  /* Bénéfices : grille multi-colonnes (3 par ligne, le 4e/5e passent dessous) */
  .home-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Sections un peu plus aérées en desktop */
  .home-beyond,
  .home-formulas,
  .home-benefits {
    padding: 120px 0;
  }
}


/* =========================================================
   ACCESSIBILITÉ — réduction des animations
   Si l'utilisateur préfère moins de mouvement, on coupe les anims.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .home-scroll-arrow {
    animation: none;
  }
  .home-card,
  .home-card:hover,
  .home-benefit,
  .home-benefit:hover,
  .home-btn,
  .home-btn:hover {
    transition: none;
    transform: none;
  }
}
