/**
 * Kunclic — Hero Section
 *
 * Usage dans Elementor :
 *   Section  → CSS Class : "hero"
 *   Colonne  → CSS Class : "hero__col" (colonne texte) / "hero__col--media" (visuel)
 *   Heading  → CSS Class : "hero__title"
 *   Text     → CSS Class : "hero__sub"
 *   Buttons  → CSS Class : "hero__cta-group"
 */

/* ============================================================
   SECTION HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;        /* 100vh fallback pour les anciens browsers */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg);
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* Grain de texture subtil en overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Halo / glow vert en haut à droite */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(
    circle at center,
    rgba(196, 241, 53, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CONTENU — z-index au-dessus des effets
   ============================================================ */
.hero .elementor-container,
.hero .e-con-inner,
.hero__col {
  position: relative;
  z-index: 1;
}

/* ============================================================
   TITRE HÉRO
   ============================================================ */
.hero__title,
.hero .elementor-heading-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

/* Mot(s) mis en accent — appliquer la classe .accent sur un <span> */
.hero__title .accent,
.hero .elementor-heading-title .accent {
  color: var(--color-accent);
  display: inline-block;
  position: relative;
}

/* Underline animé optionnel sous le mot accent */
.hero__title .accent::after,
.hero .elementor-heading-title .accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.06em;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out) 0.4s;
}

.hero.is-visible .hero__title .accent::after,
.hero .elementor-heading-title .accent::after {
  transform: scaleX(1);
}

/* ============================================================
   SOUS-TITRE / DESCRIPTION
   ============================================================ */
.hero__sub,
.hero .hero__sub p,
.hero .hero__sub .elementor-widget-text-editor p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

/* ============================================================
   BADGE / TAG AU-DESSUS DU TITRE
   Appliquer .hero__eyebrow sur un widget Heading ou Text
   ============================================================ */
.hero__eyebrow,
.hero .hero__eyebrow .elementor-heading-title,
.hero .hero__eyebrow p {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero__eyebrow::before,
.hero .hero__eyebrow p::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ============================================================
   GROUPE DE CTA
   Appliquer .hero__cta-group sur la colonne ou un container
   qui contient les boutons.
   ============================================================ */
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* Lien "En savoir plus" discret à côté du bouton principal */
.hero__cta-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--duration-fast) var(--ease-out);
}

.hero__cta-link::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.hero__cta-link:hover {
  color: var(--color-text);
}

.hero__cta-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   MÉTRIQUES / SOCIAL PROOF (optionnel)
   Appliquer .hero__stats sur un container Elementor
   ============================================================ */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ============================================================
   VISUEL CÔTÉ DROIT (image / illustration / vidéo)
   ============================================================ */
.hero__col--media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cadre lumineux autour du visuel */
.hero__media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow:
    0 0 0 1px rgba(196, 241, 53, 0.08),
    var(--shadow-card);
}

.hero__media-frame img,
.hero__col--media .elementor-widget-image img {
  border-radius: var(--radius-xl);
  display: block;
  width: 100%;
}

/* Reflet coloré sous le visuel */
.hero__media-frame::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 80px;
  background: rgba(196, 241, 53, 0.12);
  filter: blur(40px);
  border-radius: 50%;
}

/* ============================================================
   INDICATEUR DE SCROLL
   Appliquer .hero__scroll sur un widget HTML/text en bas
   ============================================================ */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  animation: heroScrollBounce 2s var(--ease-out) infinite;
}

.hero__scroll span {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ANIMATIONS D'ENTRÉE
   Éléments avec data-reveal seront animés par main.js
   ============================================================ */
.hero [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

.hero [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity  0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .hero__col--media {
    margin-top: var(--space-12);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--space-16) + 80px); /* clearance header */
    padding-bottom: var(--space-16);
    text-align: center;
  }

  .hero__sub,
  .hero .hero__sub p {
    max-width: 100%;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__eyebrow,
  .hero .hero__eyebrow p {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
    gap: var(--space-6);
  }

  .hero::after {
    top: -5%;
    right: -30%;
    width: 100vw;
    height: 100vw;
  }

  .hero__scroll {
    display: none;
  }
}
