/* ═══════════════════════════════════════════════════
   ELAN — Hero
   ═══════════════════════════════════════════════════ */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(100px, 14vw, 160px) var(--container-pad) clamp(60px, 8vw, 100px);
  overflow: hidden;
}

/* ──────────────────────────────── BACKGROUND */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

/* ──────────────────────────────── CONTENU */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
}

[data-theme="light"] .eyebrow-text {
  color: var(--blue-dark);
  opacity: 1;
}

[data-theme="light"] .eyebrow-line {
  background: var(--blue-dark);
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.35s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.65s; }

.title-line.accent {
  color: var(--yellow);
  -webkit-text-stroke: 0;
}

[data-theme="light"] .title-line.accent {
  color: var(--blue-dark);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.75s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.9s forwards;
}

/* ──────────────────────────────── STATS */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) 1.05s forwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 40px;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { padding-right: 0; }

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat-item:nth-child(3) .stat-number {
  color: var(--blue-light);
}

[data-theme="light"] .stat-number {
  color: var(--blue-dark);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ──────────────────────────────── SCROLL INDICATOR */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: var(--container-pad);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--yellow));
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ──────────────────────────────── RESPONSIVE */
@media (max-width: 600px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 28px;
  }

  .stat-item { padding: 0; }
  .stat-divider { display: none; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .hero-scroll { display: none; }
}

/* 3e ligne titre — classe explicite */
.title-line.blue-line {
  color: var(--blue-light);
}

[data-theme="light"] .title-line.blue-line {
  color: var(--blue-mid);
}

/* Stat centrale encadrée en bleu clair */
.hero-stats .stat-item:nth-child(3) {
  position: relative;
}

.hero-stats .stat-item:nth-child(3) .stat-number {
  color: var(--blue-light);
  text-shadow: 0 0 40px rgba(67, 180, 233, 0.4);
}

/* Scroll label en bleu clair */
.scroll-label {
  color: var(--blue-light);
}

/* ──────────────────────────────── LOGO HERO */
.hero-logo-wrap {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.hero-logo {
  width: clamp(100px, 14vw, 160px);
  height: clamp(100px, 14vw, 160px);
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(250, 180, 40, 0.25));
}
