/* ==========================================================================
   HERO.CSS — Phaneon Portfolio
   Contient : section hero plein écran, blob décoratif animé,
              titre massif, description, boutons d'action,
              zone photo à droite, badge flottant, statistiques,
              bandeau marquee défilant
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SECTION HERO — CONTENEUR PRINCIPAL
   Grille 2 colonnes : texte à gauche, photo à droite.
   Plein écran minimum avec padding pour compenser la nav fixe.
   -------------------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  padding: 10rem 6vw 5rem; /* Haut élevé pour passer sous la nav fixe */
  position: relative;
  overflow: hidden; /* Empêche le blob de déborder */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   2. BLOB DÉCORATIF
   Cercle flou violet en haut à gauche, inspiré directement du site actuel.
   L'animation lui donne un effet de "respiration" lente.
   -------------------------------------------------------------------------- */
.hero-blob {
  position: absolute;
  width: 550px;
  height: 550px;
  background: var(--c-blob);
  border-radius: 50%;
  top: -100px;
  left: -150px;
  animation: blobPulse 6s ease-in-out infinite;
  z-index: 0; /* Derrière le contenu */
}

/* Animation de pulsation du blob */
@keyframes blobPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06) translate(10px, 15px);
  }
}

/* --------------------------------------------------------------------------
   3. COLONNE GAUCHE (texte)
   Placée au-dessus du blob grâce à z-index: 1
   -------------------------------------------------------------------------- */
.hero-left {
  position: relative;
  z-index: 1;
}

/* Petit label de catégorie au-dessus du titre (ex: "Agence de graphisme...") */
.hero-tag {
  display: inline-block;
  color: var(--c-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.7s both; /* Apparition au chargement */
}

/* --------------------------------------------------------------------------
   4. TITRE H1 — TYPOGRAPHIE MASSIVE
   Reproduit le style éditorial du site actuel avec une taille
   de police extrêmement grande pour "Solution graphique"
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem); /* "Votre" en taille normale */
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--c-text);
  animation: fadeUp 0.7s 0.1s both; /* Léger délai après le tag */
}

/* Classe .big pour les mots géants ("Solution", "graphique") */
h1 .big {
  font-size: clamp(4rem, 10vw, 9rem); /* Taille maximale très grande */
  display: block;
  letter-spacing: -5px;
  color: var(--c-text);
}

/* Mot en couleur violette (ex: "graphique") */
h1 .accent-word {
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   5. DESCRIPTION / SOUS-TITRE HERO
   -------------------------------------------------------------------------- */
.hero-desc {
  color: var(--c-accent); /* Texte violet comme sur le site original */
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 440px;
  margin: 2rem 0 2.5rem;
  animation: fadeUp 0.7s 0.2s both;
}

/* --------------------------------------------------------------------------
   6. BOUTONS D'ACTION HERO
   Les classes .btn-primary et .btn-outline sont définies dans base.css
   -------------------------------------------------------------------------- */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* Passe en colonne sur petits écrans */
  animation: fadeUp 0.7s 0.3s both;
}

/* --------------------------------------------------------------------------
   7. STATISTIQUES ("+60 projets", "5★", "3 ans")
   -------------------------------------------------------------------------- */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.7s 0.35s both;
}

/* Chiffre principal de chaque stat */
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -1px;
}
/* Symbole accentué (★, .) */
.stat-num span {
  color: var(--c-accent);
}

/* Libellé sous le chiffre */
.stat-label {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. ANIMATION FADE UP
   Partagée par les éléments du hero qui apparaissent au chargement.
   (À ne pas confondre avec .reveal qui est déclenché au scroll)
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   9. COLONNE DROITE — PHOTO
   -------------------------------------------------------------------------- */
.hero-right {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.15s both;
}

/* Cadre de la photo avec dégradé violet en placeholder */
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5; /* Format portrait */
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(91, 91, 214, 0.15);
}

/* Placeholder centré quand aucune vraie photo n'est insérée */
.hero-photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--c-accent);
  opacity: 0.45;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Remplacer l'image : ajouter une balise <img> dans .hero-photo
   et supprimer .hero-photo-ph */

/* --------------------------------------------------------------------------
   10. BADGE FLOTTANT SUR LA PHOTO ("Phaneon Studio")
   Carte blanche positionnée en bas à gauche de la photo
   -------------------------------------------------------------------------- */
.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem; /* Déborde légèrement à gauche */
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.badge-icon {
  font-size: 1.4rem;
}

.badge-text strong {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--c-text);
}
.badge-text span {
  font-size: 0.75rem;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   11. MARQUEE — BANDEAU DÉFILANT SOMBRE
   Bande noire sous le hero avec les expertises qui défilent en boucle.
   Le doublement du contenu HTML garantit l'animation infinie sans saut.
   -------------------------------------------------------------------------- */
.marquee-wrap {
  overflow: hidden;
  background: var(--c-dark);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Conteneur qui défile horizontalement */
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap; /* Empêche le retour à la ligne */
}

/* Éléments de texte */
.marquee-item {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* Séparateur étoile violette */
.marquee-dot {
  color: var(--c-accent);
  margin-right: 3rem;
}

/* Défilement de gauche vers la droite (-50% car le contenu est dupliqué) */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablette / petit desktop */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr; /* Une seule colonne */
    padding-top: 8rem;
  }
  /* La photo est masquée sur mobile pour simplifier la mise en page */
  .hero-right {
    display: none;
  }
}
