/* Google Fonts — Branding Kit officiel */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&family=Caveat:wght@400;600;700&display=swap');

/* ============================================
   TERANGA RADIO — Feuille de style principale
   Branding Kit officiel :
   Teranga Green #38B000 | Baobab Gold #FFD700
   Dakar Orange-Red #FF4500 | African Sky Blue #00BFFF
   ============================================ */

/* ---- Variables ---- */
:root {
  --vert:       #38B000;   /* Teranga Green */
  --or:         #FFD700;   /* Baobab Gold */
  --rouge:      #FF4500;   /* Dakar Orange-Red */
  --bleu:       #00BFFF;   /* African Sky Blue */
  --vert-fonce: #268000;   /* Teranga Green foncé */
  --rouge-fonce:#cc3700;   /* Orange-Red foncé */
  --or-fonce:   #c9a800;   /* Gold foncé */
  --noir:       #1a1a1a;
  --gris:       #f4f4f4;
  --blanc:      #ffffff;
  --ombre:      0 4px 20px rgba(0,0,0,0.15);
  --rayon:      14px;
  --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  background: var(--blanc);
  color: var(--noir);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Titres bulles / ludiques — Branding Kit */
h1 {
  font-family: 'Fredoka One', 'Segoe UI', Arial, sans-serif;
  font-weight: 400; /* Fredoka One a son propre gras intégré */
}

h2, h3 {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--vert);
  box-shadow: var(--ombre);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
}

/* Logo header — image PNG */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img-header {
  height: 54px;
  width: auto;
  max-width: 180px;  /* limite la largeur du logo paysage */
  max-height: 54px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  flex-shrink: 0;
}

/* Fallback emoji (conservé au cas où) */
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--or);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--or);
  letter-spacing: 0.5px;
  font-family: 'Fredoka One', sans-serif;
}

.logo-text span:last-child {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav links */
nav ul {
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--blanc);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.2);
  color: var(--or);
}

/* Bouton menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blanc);
  border-radius: 3px;
  transition: var(--transition);
}

/* ============================================
   HERO / BANNIÈRE
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert) 50%, #2d9400 100%);
  color: var(--blanc);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(253,239,66,0.12) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(227,27,35,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Drapeaux décoratifs */
.hero-flags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Sous-titres des page-hero — police Caveat (Branding Kit "Soubab Gold") */
.page-hero p {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--or);
  opacity: 1 !important;
}

/* Logo dans les heroes */
.hero-logo {
  width: min(300px, 80%);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.4));
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.page-hero-logo {
  width: min(220px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
}

/* Logo footer */
.logo-img-footer {
  height: 68px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ============================================
   MOTIF AFRICAIN — Séparateur de sections
   Bordure officielle du Branding Kit Teranga Radio
   ============================================ */
.african-divider {
  height: 90px;
  background-image: url('../images/bordure.png');
  background-repeat: repeat-x;
  background-size: auto 90px;
  background-position: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400; /* Fredoka One a son gras intégré */
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: var(--or);
}

.hero p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--or);
  opacity: 1;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* ============================================
   LECTEUR RADIO
   ============================================ */
.player-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(253,239,66,0.4);
  border-radius: var(--rayon);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.player-disc {
  width: 60px;
  height: 60px;
  background: var(--or);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(253,239,66,0.3);
}

.player-disc.spinning {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.player-meta {
  text-align: left;
}

.player-meta .station-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--or);
}

.player-meta .now-playing {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* Barre de statut */
.player-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: var(--transition);
}

.status-dot.live {
  background: var(--rouge);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.status-text { font-size: 0.85rem; opacity: 0.85; }

/* Boutons player */
.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.btn-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--or);
  color: var(--noir);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(253,239,66,0.4);
  flex-shrink: 0;
}

.btn-play:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(253,239,66,0.6);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blanc);
  font-size: 1.1rem;
}

.volume-control input[type="range"] {
  width: 90px;
  accent-color: var(--or);
  cursor: pointer;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
section { padding: 4rem 1.5rem; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--or);
  color: var(--noir);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--vert-fonce);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #666;
  font-size: 1.15rem;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   SECTION ÉMISSIONS
   ============================================ */
.emissions-section { background: var(--gris); }

.emissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.emission-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: var(--transition);
  cursor: pointer;
}

.emission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.emission-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.emission-body {
  padding: 1.25rem;
}

.emission-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--vert-fonce);
}

.emission-body p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.emission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.btn-ecouter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--vert);
  color: var(--blanc);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-ecouter:hover {
  background: var(--vert-fonce);
  transform: scale(1.05);
}

/* ============================================
   SECTION À PROPOS
   ============================================ */
.apropos-section {
  background: var(--blanc);
}

.apropos-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.apropos-visual {
  position: relative;
}

.apropos-big-icon {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-fonce) 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--ombre);
  margin: 0 auto;
}

.apropos-badge {
  position: absolute;
  bottom: -10px;
  right: 10px;
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--ombre);
}

.apropos-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vert-fonce);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.apropos-text p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
}

.stat-box .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--vert);
  display: block;
}

.stat-box .label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   GALERIE
   ============================================ */
.galerie-section { background: var(--vert-fonce); }

.galerie-section .section-header h2 { color: var(--or); }
.galerie-section .section-header p  { color: rgba(255,255,255,0.75); }

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.galerie-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(253,239,66,0.2);
  position: relative;
}

.galerie-item:hover {
  transform: scale(1.04);
  border-color: var(--or);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.galerie-placeholder {
  color: rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

.galerie-placeholder span:first-child { font-size: 3rem; opacity: 0.4; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--gris); }

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2.5rem;
  box-shadow: var(--ombre);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--vert-fonce);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--blanc);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(0,133,63,0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--rouge);
  color: var(--blanc);
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: var(--rouge-fonce);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227,27,35,0.35);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--noir);
  color: var(--blanc);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text span:first-child { font-size: 1.4rem; font-family: 'Fredoka One', sans-serif; }

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--or);
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--or); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-flags { font-size: 1.2rem; }

/* ============================================
   BANDEAU TRICOLORE SÉNÉGAL
   ============================================ */
.senegal-bar {
  height: 5px;
  background: linear-gradient(to right, var(--vert) 33.3%, var(--or) 33.3% 66.6%, var(--rouge) 66.6%);
}

/* ============================================
   BOUTONS UTILITAIRES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--or);
  color: var(--noir);
  box-shadow: 0 4px 15px rgba(253,239,66,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(253,239,66,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--blanc);
  background: rgba(255,255,255,0.1);
}

/* ============================================
   ANIMATIONS ENTRÉE
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--vert-fonce);
    padding: 1rem;
    display: none;
    box-shadow: var(--ombre);
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  nav ul li a { padding: 0.75rem 1rem; }

  .apropos-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .apropos-big-icon { max-width: 200px; font-size: 5rem; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-row { gap: 1rem; flex-wrap: wrap; }

  .player-card { padding: 1.5rem; }

  .volume-control input[type="range"] { width: 70px; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .emissions-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ✨ ANIMATIONS & INTERACTIONS 2025
   ============================================================ */

/* --- Barre de progression scroll --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--or), var(--rouge), var(--bleu), var(--or));
  background-size: 300% 100%;
  animation: progress-gradient 3s linear infinite;
  z-index: 9999;
  pointer-events: none;
}
@keyframes progress-gradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- Header glassmorphism au scroll --- */
header {
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  background: rgba(38, 128, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* --- Ripple effect --- */
.ripple-fx {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

/* --- Sound wave visualiseur --- */
.wave-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin: 0.6rem 0;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.wave-container.playing { opacity: 1; }

.wave-bar {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--or), #fff8a0);
  transform-origin: bottom;
  animation: wave-idle 1.6s ease-in-out infinite;
}
.wave-bar:nth-child(1) { height: 10px; }
.wave-bar:nth-child(2) { height: 18px; }
.wave-bar:nth-child(3) { height: 24px; }
.wave-bar:nth-child(4) { height: 20px; }
.wave-bar:nth-child(5) { height: 14px; }
.wave-bar:nth-child(6) { height: 22px; }
.wave-bar:nth-child(7) { height: 10px; }

@keyframes wave-idle {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}
.wave-container.playing .wave-bar {
  animation: wave-live 0.5s ease-in-out infinite alternate;
}
@keyframes wave-live {
  from { transform: scaleY(0.25); }
  to   { transform: scaleY(1); }
}

/* --- Particules hero canvas --- */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* S'assurer que le contenu hero est au-dessus des particules et orbes */
.hero > *:not(.hero-particles):not(.hero-orb) { position: relative; z-index: 1; }

/* --- Révélation mot par mot --- */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) skewY(3deg);
  animation: word-in 0.55s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}

/* --- Stagger animations cascade --- */
.fade-in {
  transition-delay: var(--stagger, 0s);
}

/* --- 3D card tilt --- */
.emission-card,
.emission-card-full,
.valeur-card,
.info-card {
  will-change: transform;
  transform-style: preserve-3d;
  cursor: default;
}

/* --- Amélioration player card glassmorphism --- */
.player-card {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* --- Stat boxes hover glow --- */
.stat-box {
  transition: transform 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-4px);
}
.stat-box .num {
  text-shadow: 0 0 20px rgba(56,176,0,0.4);
}

/* --- Section tag pulse subtil --- */
.section-tag {
  animation: tag-pulse 3s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(255,215,0,0); }
}

/* --- Footer logo glow --- */
.logo-img-footer {
  transition: filter 0.3s ease;
}
.logo-img-footer:hover {
  filter: drop-shadow(0 4px 16px rgba(255,215,0,0.5));
}

/* --- Galerie items shimmer au hover --- */
.galerie-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,215,0,0.15) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s;
}
.galerie-item:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease forwards;
}
@keyframes shimmer {
  from { background-position: 200% 200%; }
  to   { background-position: -200% -200%; }
}

/* --- Amélioration fade-in globale — ENTRÉE 3D --- */
.fade-in {
  opacity: 0;
  transform: perspective(800px) translateY(40px) rotateX(-8deg);
  transform-origin: center bottom;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23,1,0.32,1);
  transition-delay: var(--stagger, 0s);
}
.fade-in.visible {
  opacity: 1;
  transform: perspective(800px) translateY(0) rotateX(0);
}

/* --- Keyframes utilitaires --- */
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes zoomIn  { from { transform:scale(0.88); opacity:0; } to { transform:scale(1); opacity:1; } }

/* ============================================================
   🌐 EFFETS 3D AVANCÉS — Couche profondeur
   ============================================================ */

/* --- Texte hero h1 en relief 3D --- */
.hero h1 {
  text-shadow:
    1px 1px 0   rgba(0,0,0,0.22),
    2px 2px 0   rgba(0,0,0,0.18),
    3px 3px 0   rgba(0,0,0,0.14),
    4px 4px 0   rgba(0,0,0,0.10),
    5px 5px 12px rgba(0,0,0,0.30);
}

/* --- Logo header spin 3D au hover --- */
.logo-img-header {
  transition: transform 0.7s cubic-bezier(0.23,1,0.32,1), filter 0.3s ease !important;
}
.logo:hover .logo-img-header {
  transform: perspective(600px) rotateY(360deg) scale(1.05) !important;
}

/* --- Section-tag effet flip 3D --- */
.section-tag {
  transform-origin: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease !important;
}
.section-tag:hover {
  transform: perspective(300px) rotateX(-12deg) rotateY(6deg) translateY(-2px) scale(1.05) !important;
  box-shadow: 3px 6px 14px rgba(0,0,0,0.18) !important;
}

/* --- Orbes parallax dans le hero (position statique — déplacés entièrement par JS) --- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: translate;
  /* translate séparé de transform pour ne pas entrer en conflit */
}
.hero-orb-1 {
  width: 280px; height: 280px;
  top: 4%;  left: 6%;
  background: radial-gradient(circle, rgba(253,215,0,0.20) 0%, transparent 65%);
}
.hero-orb-2 {
  width: 200px; height: 200px;
  top: 52%; left: 70%;
  background: radial-gradient(circle, rgba(255,69,0,0.15) 0%, transparent 65%);
}
.hero-orb-3 {
  width: 130px; height: 130px;
  top: 18%; left: 80%;
  background: radial-gradient(circle, rgba(0,191,255,0.13) 0%, transparent 65%);
}
.hero-orb-4 {
  width: 95px;  height: 95px;
  top: 68%; left: 14%;
  background: radial-gradient(circle, rgba(56,176,0,0.20) 0%, transparent 65%);
}

/* --- Spéculaire dynamique sur cartes (via JS custom property) --- */
.emission-card,
.emission-card-full,
.valeur-card {
  overflow: hidden;
}
.emission-card::before,
.emission-card-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 120px at var(--mouse-x, -100%) var(--mouse-y, -100%),
    rgba(255,255,255,0.10) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: var(--rayon);
  transition: opacity 0.2s;
  opacity: 0;
}
.emission-card:hover::before,
.emission-card-full:hover::before {
  opacity: 1;
}

/* --- Hover glow 3D renforcé sur cartes --- */
.emission-card:hover,
.emission-card-full:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.18),
    0 0 0 1.5px rgba(56,176,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* --- Valeur cards 3D tilt renforcé --- */
.valeur-card:hover {
  transform: translateY(-8px) perspective(600px) rotateX(4deg) rotateY(-2deg) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(56,176,0,0.15);
}

/* --- Player card subtile lévitation 3D --- */
.player-card {
  transform-style: preserve-3d;
}

/* --- Timeline dots 3D bounce --- */
.tl-dot {
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s ease;
}
.timeline-item:hover .tl-dot {
  transform: perspective(300px) rotateY(180deg) scale(1.15);
  box-shadow: 0 8px 20px rgba(0,133,63,0.4);
}
