/* ACCESSIBILITÉ */
:focus-visible{
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Skip link - visible au focus clavier */
.skip-link {
    position: absolute;
    top: -100px; /* On le pousse plus haut pour le cacher totalement */
    left: 0;
    background: var(--color-primary, #000);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000; /* On s'assure qu'il passe au-dessus du menu fixe au focus */
    font-weight: bold;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Masquer visuellement mais garder pour lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%); /* moderne */
    white-space: nowrap;
    border-width: 0;
}

/* =========================
   HEADER
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--header-height); 
  height: auto;
  
  padding: var(--space-sm) 0;
  /* ... reste de tes propriétés inchangées ... */

  /* État initial : Transparent sans bordure ni ombre */
  background: transparent;
  color: var(--color-white);
  border-bottom: 3px solid transparent; 
  box-shadow: none;

  padding: var(--space-md) 0;
  display: flex;
  align-items: center;

  /* Transition très fluide pour l'effet d'apparition */
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-bottom 0.4s ease;
}

.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}
/* NOUVELLE CLASSE : Ajoutée par le JS lors du scroll */
.header-scrolled {
  /* On utilise ta variable de couleur sombre ou du noir pur */
  background: var(--color-dark, #000000); 
  border-bottom: 3px solid var(--color-primary);
  /* Une ombre légèrement plus prononcée pour bien détacher le menu du reste du site */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
}

/* Au survol d'un lien normal : le texte devient rose */
.header.header-scrolled .nav-link:hover {
  color: var(--color-primary);
}

/* Pour le lien ACTIF (qui a le fond rose) : on FORCE le texte en blanc ! */
.header.header-scrolled .nav-link.active {
  color: var(--color-white); 
}

/* On gère aussi l'inversion quand le menu est devenu NOIR (au scroll) */
.header-scrolled .nav-link:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}


/* =========================
   MAIN
========================= */


.main {
  flex: 1; /* Remplace min-height: 60vh */
  width: 100%;
}

/* =========================
   NAVIGATION
========================= */
.nav-list {
  display: flex;
  gap: clamp(12px, 2vw, var(--space-lg));
  /* Aligne les boutons au centre plutôt que de les étirer */
  align-items: center; 
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  /* On utilise inline-flex pour mieux contrôler le contenu intérieur */
  display: inline-flex; 
  align-items: center;
  justify-content: center;

  /* On limite la hauteur du cadre rose et des liens */
  height: fit-content;
  min-height: 40px; /* Hauteur minimale confortable pour le clic */
  
  padding: 8px clamp(10px, 2vw, var(--space-md));
  line-height: 1.2; /* Réduit l'espace entre les deux lignes de texte */
  text-align: center;
  
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(13px, 2vw, 16px); /* Légère réduction sur mobile */
}	

.nav-list li {
  margin: 0;
  padding: 0;
}

/* Effet d'inversion lors de la navigation au clavier */
.nav-link:focus-visible {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  /* On annule la bordure rose globale car le fond blanc suffit à repérer le focus */
  outline: none; 
}



/* hover */
.nav-link:hover {
  color: var(--color-primary);
}

/* underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: var(--color-primary);

  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* active */
.nav-link.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.nav-link.active::after {
  display: none;
}

@media (min-width: 851px) {
  .nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between; /* Pousse la liste à gauche et le bouton à droite */
  }

  .nav-list {
    flex-direction: row;
  }

  .nav-cta-link {
    margin-left: auto; /* Pousse le bouton complètement à droite */
    background: #ff226b;
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
  }
}
@media (max-width: 850px) {
  /* On cache le bouton billetterie du header uniquement sur mobile */
  .nav-cta-link {
    display: none !important;
  }


  .header .container,
  .nav-list {
    flex-wrap: nowrap !important; 
  }

  .nav-list {
    flex-wrap: wrap; 
    justify-content: center; /* Garde tout bien centré */
    gap: 5px; /* Petit espace entre les boutons */
    padding: 0 10px; /* Petit padding sur les côtés pour éviter que ça touche les bords */
  }

  /* 3. On réduit la taille de la police et le padding des liens pour les mobiles */
   .nav-link {
    white-space: normal; /* Autorise le texte à revenir à la ligne */
    line-height: 1.1; /* Réduit l'espace entre les deux lignes de texte */
    font-size: 13px; /* Taille lisible mais compacte */
    padding: 6px 8px; /* Un peu plus d'air autour du texte */
    text-align: center; /* Centre le texte si ça passe sur 2 lignes */
    display: flex;
    align-items: center; /* Aligne verticalement */
  }

}

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) var(--space-md);
  background: var(--color-dark);
  color: var(--color-white);
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* --- ADAPTATION MOBILE DU FOOTER --- */
@media (max-width: 850px) {
  .footer .container {
    display: flex !important;
    flex-direction: column-reverse !important; /* La newsletter passe au-dessus du contact */
    gap: 20px !important;
  }
  
  .footer .footer-content {
    width: 100% !important;
  }
}

/* Reste du style de ton footer (inchangé) */
.footer-content { animation: fadeInUp 0.8s ease-out backwards; }
.footer-content:nth-child(1) { animation-delay: 0.2s; }
.footer-content:nth-child(2) { animation-delay: 0.3s; }
.footer-content h3 { margin-bottom: var(--space-sm); font-size: var(--font-size-md); color: var(--color-primary); }
.footer-content p { margin-bottom: var(--space-sm); line-height: 1.8; }
.footer-content a { position: relative; color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
.footer-content a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--color-primary); transition: width var(--transition-base); }
.footer-content a:hover::after { width: 100%; }
@media (max-width: 850px) {
  .main {
    /* Juste assez pour que le contenu ne soit pas coupé par le bouton fixe */
    padding-bottom: 70px; 
  }
}