/* ==========================
   HERO.CSS — Radio Bleue
   ========================== */

/* Hero principal (index) */
.hero {
  background: var(--gradient-hero);
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

/* Cercle décoratif haut-droit */
.hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* Cercle décoratif bas-gauche */
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  bottom: -80px; left: 10%;
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(0,194,255,0.15);
  border: 1px solid rgba(0,194,255,0.30);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-lg);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero h1 {
  color: #fff;
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.20);
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Onde sonore animée en fond */
.hero-wave-bg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

.hero-wave-bg svg {
  width: 100%;
  height: auto;
}

/* Hero pages secondaires */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  /* Hauteur uniforme pour TOUS les heros de page (réf. page Programmes).
     Basée sur --header-height pour dégager le header fixe quel que soit l'env. */
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-2xl);
  min-height: calc(var(--header-height) + 200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* Si le hero est en tête d'un <main class="page-body"> (Actualités, Contact),
   .page-body réserve déjà l'espace du header fixe (padding-top: header).
   On annule ce décalage pour que le hero parte du MÊME endroit que sur les
   pages sans ce wrapper (Programmes, Équipe…). Sinon le contenu tombe trop bas. */
.page-body > .page-hero:first-child {
  margin-top: calc(-1 * var(--header-height));
}

/* ===== Hero d'ARTICLE : image plein cadre, collée au header, titre incrusté ===== */
.article-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--gradient-hero);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* Collée au header : annule le padding-top du wrapper .page-body (pas d'espace) */
  margin-top: calc(-1 * var(--header-height));
}
.article-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 14, 28, 0.92) 0%, rgba(8, 14, 28, 0.55) 45%, rgba(8, 14, 28, 0.20) 100%);
}
.article-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  color: #fff;
}
.article-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.article-hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, var(--font-size-hero));
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin: var(--space-md) 0;
  max-width: 900px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
}
.article-hero-meta a { color: #fff; }

/* ===== Fil d'ariane (cheminement) sous le titre des heros ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: rgba(255, 255, 255, 0.4); }
.breadcrumb-current {
  color: #fff;
  font-weight: var(--font-weight-semibold);
}

/* Espace entre le hero et le corps de l'article */
.article-hero + .article-content { padding-top: var(--space-2xl); }

@media (max-width: 768px) {
  .article-hero { min-height: 46vh; }
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,194,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: var(--font-size-md);
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero-sm {
  /* Aligné sur .page-hero (même hauteur que la page Programmes). */
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-2xl);
}

/* Boutons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-dark-bg);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0,194,255,0.35);
  text-decoration: none;
}

.btn-primary:hover {
  background: #33ccff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,194,255,0.50);
  color: var(--color-dark-bg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.30);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.50);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: calc(var(--space-md) - 2px) var(--space-xl);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: rgba(255,255,255,0.90);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.35);
  font-size: var(--font-size-sm);
}

.breadcrumb-current {
  color: rgba(255,255,255,0.90);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* ---- Hero home split layout ---- */
.hero--home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-rock);
  /* Remonte le hero sous le header translucide : supprime la bande claire
     (#F7FAFF) qui apparaissait entre le header et le hero. */
  margin-top: calc(-1 * var(--header-height));
  padding: var(--header-height) 0 0;
}

.hero--home .hero-content {
  align-self: start;
  padding: var(--space-xl) var(--space-2xl) var(--space-3xl) clamp(var(--space-lg), 6vw, 110px);
  position: relative;
  z-index: 2;
}

.hero--home .hero-title {
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.hero--home .hero-subtitle {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.hero--home .hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero--home .hero-visual {
  position: relative;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero--home .hero-visual img.hero-photo {
  height: 90%;
  max-height: 700px;
  width: auto;
  object-fit: cover;
  object-position: top;
  position: absolute;
  bottom: 0;
  right: 0;
}

.hero-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Hero tag — badge pill */
.hero-tag {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

/* Boutons hero */
.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-dark-bg);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0,194,255,0.35);
  text-decoration: none;
}
.btn--primary:hover {
  background: #33ccff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,194,255,0.50);
  color: var(--color-dark-bg);
}
.btn--primary.btn--lg { padding: var(--space-lg) var(--space-2xl); font-size: var(--font-size-md); }

.btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn--ghost.btn--lg { padding: var(--space-lg) var(--space-2xl); font-size: var(--font-size-md); }

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  padding: calc(var(--space-md) - 2px) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-accent);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}
.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-dark-bg);
}

/* On-air indicator dans le hero */
.hero-on-air {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  width: fit-content;
}
/* Badge "En direct" repositionné en tête du hero */
.hero-on-air--top {
  margin-top: 0;
  margin-bottom: var(--space-lg);
}
.on-air-show { color: #fff; font-weight: 600; }
.on-air-label { font-weight: 500; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Hero actualités ---- */
.hero--actualites {
  /* Même hauteur que les autres heros de page. */
  min-height: calc(var(--header-height) + 200px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
}
.hero--actualites .container {
  position: relative;
  z-index: 2;
}
.hero--actualites .hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.hero--actualites .hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}
.hero--actualites h1 { font-size: var(--font-size-3xl); color: #fff; }

.text-accent { color: var(--color-accent); }

/* ---- Section-nav sticky ---- */
.section-nav {
  position: sticky;
  top: var(--header-height);
  background: rgba(8,14,28,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 90;
  padding: 0;
}
.section-nav-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav-list::-webkit-scrollbar { display: none; }
.section-nav-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
}
.section-nav-link:hover,
.section-nav-link.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-wave-bg {
    width: 100%;
    top: auto;
    bottom: 0;
    transform: none;
    opacity: 0.06;
  }

  .page-hero h1 {
    font-size: var(--font-size-2xl);
  }

  .hero--home {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero--home .hero-content {
    padding: var(--space-2xl) var(--container-pad) var(--space-xl);
    text-align: center;
  }

  .hero--home .hero-actions {
    justify-content: center;
  }

  .hero--home .hero-on-air {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--home .hero-visual {
    min-height: 280px;
    width: 100%;
  }

  .hero--actualites {
    height: auto;
    padding: var(--space-2xl) 0;
  }

  .hero--actualites .hero-bg-img {
    width: 100%;
    height: 100%;
    opacity: 0.15;
  }
}
