/* Centre Equestre du Dardaillon - Styles consolidés et modernisés
   Améliorations d'accessibilité et optimisation des images

   Design épuré avec utilisation de Flexbox pour une meilleure mise en page responsive */

/* Variables CSS pour les couleurs et polices */
:root {
  /* Couleurs principales */
  --primary-color: #00003b;
  --secondary-color: #0047a8; /* Assombri pour meilleur contraste */
  --accent-color: #2b5da0;    /* Assombri pour meilleur contraste */
  --background-color: #f5f5f5;
  --text-color: #000000;      /* Noir pour un contraste maximal */
  --white: #ffffff;
  --alert-color: #d32f2f;     /* Rouge plus contrasté */
  --light-gray: #eeeeee;
  --focus-color: #ff8c00;     /* Couleur de focus visible */
  
  /* Couleurs du dégradé de fond - OPTION ACTUELLE */
  --gradient-top: #e0f2ff;    /* Bleu très clair */
  --gradient-middle: #b8d8f8; /* Bleu clair */
  --gradient-bottom: #7ab5f0; /* Bleu moyen */


  
  /* OPTION 3: Fond bleu profond - Plus élégant et professionnel */
  --option3-top: #00205a;     /* Bleu très foncé */
  --option3-middle: #00307a;  /* Bleu foncé */
  --option3-bottom: #00409a;  /* Bleu moyen-foncé */

  
  /* Couleurs des sections */
  --section-background: #ffffff; /* Fond blanc pour les sections */
  --section-border: #e0e0e0;     /* Bordure légère */
  --section-text: #000000;       /* Texte noir pour les sections */
  
  /* Espacement */
  --section-margin: 2rem;
  --section-padding: 2rem;
  --container-width: 100%;
  --max-container-width: 1400px;
  
  /* Ombres et bordures */
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --border-radius-button: 25px;
  --focus-outline: 3px solid var(--focus-color);
  
  /* Transitions */
  --transition-speed: 0.3s;
  
  /* Typographie */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --heading-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-bold: 600;
  --font-weight-extra-bold: 800;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Déclarations de polices */
@font-face { 
  font-family: "Arizonia-Regular"; 
  src: url('../fonts/Arizonia-Regular.ttf');
}
@font-face { 
  font-family: "Windsong"; 
  src: url('../fonts/Windsong.ttf');
}
@font-face { 
  font-family: "DancingScript-Regular"; 
  src: url('../fonts/DancingScript-Regular.otf');
}
@font-face {
  font-family: "FFF_Tusj"; 
  src: url('../fonts/FFF_Tusj.ttf');
}
@font-face {
  font-family: "FrenteH1-Regular"; 
  src: url('../fonts/FrenteH1-Regular.otf');
}
@font-face {
  font-family: "GrandHotel-Regular"; 
  src: url('../fonts/GrandHotel-Regular.otf');
}
@font-face {
  font-family: "journal"; 
  src: url('../fonts/journal.ttf');
}
@font-face {
  font-family: "Roboto-Light";
  src: url('../fonts/Roboto-Light.ttf');
}

/* Reset et styles de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Exceptions pour les éléments qui doivent rester en blanc */
h1, 
th {
  color: white !important;
}

/* Exception pour les liens de navigation au survol */
#onglets a:hover {
  background: rgba(255, 255, 255, 0.15); /* Fond légèrement transparent */
  color: #000000; /* Texte noir au survol */
  border-radius: var(--border-radius);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre au survol */
}

#onglets a.active {
  background-color: rgba(255, 255, 255, 0.3); /* Fond plus visible */
  color: #000000; /* Texte noir pour meilleur contraste */
  position: relative;
  font-weight: 700; /* Police grasse pour l'élément actif */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre légère */
  transform: translateY(-2px); /* Légère élévation */
}

#onglets a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000000; /* Ligne noire sous l'onglet actif */
}

/* Styles de base (mobile-first) */
body {
  /* OPTION 3 - Dégradé bleu profond - Définition directe sans variables */
  background: linear-gradient(to bottom, #001845, #002868, #003A8C);
  
  
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Layout principal avec Flexbox */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: var(--container-width);
  max-width: var(--max-container-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

header {
  position: relative;
  padding-top: 1rem;
  z-index: 10;
  width: 100%;
}

.header-logo {
  display: none; /* Masqué par défaut (mobile) */
  position: absolute;
  top: 20px;
  left: 0px;
  width: 120px;
  height: auto;
  z-index: 10;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Afficher le logo uniquement sur desktop */
@media screen and (min-width: 768px) and (max-width: 1050px) {
  .header-logo {
    display: block;
    width: 100px;
    top: 20px;
    left: 0px;
  }
}

@media screen and (min-width: 1051px) {
  .header-logo {
    display: block;
    width: 120px;
    top: 20px;
    left: 0px;
  }
}

/* Styles pour les sections principales */
section, .gallery {
  background-color: var(--section-background);
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
  position: relative;
  overflow: visible;
  text-align: center;
  color: var(--section-text);
  width: 90%;
  max-width: var(--max-container-width);
  box-sizing: border-box;
  border: none;
}

/* Effet de contour lumineux pour toutes les sections */
section, .gallery {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 15px rgba(100, 181, 246, 0.6),
    0 0 30px rgba(100, 181, 246, 0.4);
  animation: pulseGlow 4s infinite alternate;
}

/* Animation de pulsation pour le contour lumineux */
@keyframes pulseGlow {
  0% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 15px rgba(100, 181, 246, 0.6),
      0 0 30px rgba(100, 181, 246, 0.4);
  }
  100% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 20px rgba(100, 181, 246, 0.8),
      0 0 40px rgba(100, 181, 246, 0.6);
  }
}

/* Effet de survol pour les sections */
section:hover, .gallery:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(100, 181, 246, 0.7),
    0 0 40px rgba(100, 181, 246, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-event:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(138, 79, 255, 0.7),
    0 0 40px rgba(138, 79, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-group:hover, .stage-info:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 15px rgba(43, 93, 160, 0.6),
    0 0 30px rgba(43, 93, 160, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section:hover, .gallery:hover {
    transform: translateY(-5px);
    box-shadow: 
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 15px rgba(100, 181, 246, 0.6),
      0 0 30px rgba(100, 181, 246, 0.4);
  }
  
  .special-event:hover {
    transform: translateY(-5px);
    box-shadow: 
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 15px rgba(138, 79, 255, 0.6),
      0 0 30px rgba(138, 79, 255, 0.4);
  }
  
  .stage-group:hover, .stage-info:hover {
    transform: translateY(-5px);
    box-shadow: 
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 10px rgba(43, 93, 160, 0.5),
      0 0 20px rgba(43, 93, 160, 0.3);
  }
  
  section, .gallery {
    box-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 10px rgba(100, 181, 246, 0.5),
      0 0 20px rgba(100, 181, 246, 0.3);
  }
  
  .special-event {
    box-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 15px rgba(138, 79, 255, 0.6),
      0 0 30px rgba(138, 79, 255, 0.4);
  }
  
  .stage-group, .stage-info {
    box-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 8px rgba(43, 93, 160, 0.3),
      0 0 15px rgba(43, 93, 160, 0.1);
  }
}

/* Typographie */
h1 {
  font-family: DancingScript-Regular, "Times New Roman", serif;
  text-align: center;
  color: var(--white);
  font-style: oblique;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre de texte pour améliorer la lisibilité */
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  color: #000000;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

h3 {
  color: #000000;
  margin: 1rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -5px;
  left: 25%;
}

h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
  color: #000000 !important; /* Forcer la couleur noire */
  font-weight: 400;
}

strong {
  font-weight: 700;
  color: #000000; /* Noir pour un contraste maximal */
}

/* Navigation moderne avec Flexbox */
#navigation, .navigation {
  width: 100%;
  position: relative;
  margin-top: 1rem;
}

#onglets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  background: var(--section-background); /* Fond blanc comme les sections */
  padding: 0;
  margin: 0;
  width: 100%;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#onglets li {
  display: flex;
  margin: 0;
  padding: 0;
  position: relative; /* Pour le positionnement de l'indicateur actif */
}

#onglets a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000000; /* Texte noir */
  transition: all 0.3s ease;
  font-weight: bold;
}

.active {
  background-color: rgba(255, 255, 255, 0.2); /* Fond légèrement transparent */
  position: relative;
  font-weight: 700; /* Police grasse pour l'élément actif */
  border-radius: 8px 8px 8px 8px;
  overflow: hidden;
}

.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--white);
}

/* Boutons modernes */
.bouton a {
  display: block;
  width: 200px;
  margin: 1.5rem auto;
  padding: 0.8rem 1.5rem;
  text-align: center;
  background: #002868; /* Bleu moyen assorti au fond */
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-button);
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bouton a:hover {
  background: #003A8C; /* Bleu plus vif au survol */
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Tableaux modernes */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
}

td, th {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  color: white; /* Texte blanc dans les cellules */
}

th {
  background-color: #001845; /* Bleu foncé assorti au fond */
  color: white;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: rgba(0, 24, 69, 0.7); /* Fond plus foncé pour les lignes paires */
}

tr:nth-child(odd) {
  background-color: rgba(0, 40, 104, 0.7); /* Fond bleu pour les lignes impaires */
}

tr:hover {
  background-color: rgba(0, 58, 140, 0.8); /* Bleu plus vif au survol */
}

/* Éléments spécifiques */
#designe {
  background-color: var(--section-background); /* Fond blanc comme les autres sections */
  color: #000000; /* Texte noir */
  margin-left: 0;
  margin-right: 0;
  font-size: 0.9rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#designe p, #designe a {
  color: #000000; /* Texte noir */
}

#designe a:hover {
  color: #002868; /* Bleu moyen au survol */
}

#footer {
  background: var(--section-background);
  color: #000000 !important; /* Force le texte en noir */
  padding: 1.5rem;
  text-align: center;
  margin-top: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

#footer p {
  color: #000000 !important; /* Force le texte en noir */
}

#footer a {
  color: #000000 !important; /* Force les liens en noir */
  text-decoration: none;
  transition: all 0.3s ease;
}

#footer a:hover {
  color: #003A8C !important; /* Bleu au survol */
}

#covid {
  color: var(--alert-color) !important;
  font-weight: bold;
}

#contour_rouge {
  border: 2px solid var(--alert-color);
  position: relative;
}

/* Style cyan pour la section patrimoine */
#contour_cyan {
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
  position: relative;
  width: 90%;
  max-width: var(--max-container-width);
  box-sizing: border-box;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(0, 255, 255, 0.7),
    0 0 40px rgba(0, 255, 255, 0.5);
  animation: pulseGlowCyan 4s infinite alternate;
  text-align: center;
  color: var(--section-text);
}

#contour_cyan h2 {
  color: #00BFFF;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  border-bottom: 3px solid #00BFFF;
  padding-bottom: 10px;
  font-weight: bold;
  position: relative;
}

#contour_cyan h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background-color: #00BFFF;
}

#contour_cyan p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  text-align: center;
  font-size: 1.2rem;
  color: #000000;
}

#contour_cyan strong {
  color: #00BFFF;
  font-weight: bold;
}

#contour_cyan .publicite {
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

/* Animation pour la section cyan */
@keyframes pulseGlowCyan {
  0% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 20px rgba(0, 255, 255, 0.7),
      0 0 40px rgba(0, 255, 255, 0.5);
  }
  100% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 30px rgba(0, 255, 255, 0.9),
      0 0 60px rgba(0, 255, 255, 0.7);
  }
}

/* Effet de survol pour la section cyan */
#contour_cyan:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(0, 255, 255, 0.7),
    0 0 40px rgba(0, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive pour la section cyan */
@media (max-width: 768px) {
  #contour_cyan {
    width: 90%;
    margin: 0.8rem auto;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  #contour_cyan h2 {
    font-size: 2rem;
  }
  
  #contour_cyan p {
    font-size: 1.1rem;
  }
}

#prix_final {
  color: var(--alert-color);
  font-weight: bold;
}

mark {
  background-color: transparent;
  color: var(--alert-color);
  font-weight: bold;
}

/* Flexbox pour les conteneurs */
div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.fixNavigation { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

#text_underline {
  text-decoration: underline;
}

#warning {
  color: var(--alert-color);
}

#fermetureClub {
  font-size: 1.5rem;
}

#sectionInscription {
  border: 2px solid var(--alert-color);
}

#inscription {
  color: var(--alert-color);
  font-size: 1.8rem;
}

/* Style violet pour la section infos inscriptions */
#inscription-info {
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
  position: relative;
  width: 90%;
  max-width: var(--max-container-width);
  box-sizing: border-box;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(138, 79, 255, 0.7),
    0 0 40px rgba(138, 79, 255, 0.5);
  animation: pulseGlowSpecial 4s infinite alternate;
}

#inscription-info h2 {
  color: #8A4FFF;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  border-bottom: 3px solid #8A4FFF;
  padding-bottom: 10px;
  font-weight: bold;
  position: relative;
}

#inscription-info h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background-color: #8A4FFF;
}

#inscription-info p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  text-align: center;
  font-size: 1.2rem;
}

#inscription-info strong {
  color: #8A4FFF;
  font-weight: bold;
}

/* Images responsives */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Iframe responsives */
iframe {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Tablette */
@media screen and (min-width: 768px) and (max-width: 1050px) {
  body {
    background: linear-gradient(to bottom, #001845, #002868, #003A8C);
    background-attachment: fixed;
  }
  
  section, .gallery {
    margin-left: var(--section-margin) !important;
    margin-right: var(--section-margin) !important;
    margin-top: 15% !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  #onglets a {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .bouton a {
    width: 250px;
  }
}

/* Desktop */
@media screen and (min-width: 1051px) {
  body {
    background: linear-gradient(to bottom, #001845, #002868, #003A8C);
    background-attachment: fixed;
  }
  
  .container {
    width: 100% !important;
    max-width: var(--max-container-width) !important;
    margin: 0 auto !important;
  }
  
  section:not(.contact-info):not(.contact-form), .gallery {
    margin-left: var(--section-margin) !important;
    margin-right: var(--section-margin) !important;
    margin-top: 10% !important;
    padding: 2.5rem !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
  
  section.contact-info, section.contact-form {
    width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 5% !important;
    padding: 2.5rem !important;
    box-sizing: border-box !important;
  }
  
  h1 {
    font-size: 3.5rem;
    margin-top: 2rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  #onglets {
    justify-content: center;
  }
  
  #onglets a {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
  }
  
  .bouton a {
    width: 300px;
    font-size: 1.2rem;
  }
  
  .two-columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .two-columns > * {
    flex: 1;
  }
}

/* STRUCTURE EN TABLEAU POUR LA GALERIE - 3 LIGNES */
.gallery {
  width: 1200px;
  max-width: 100%;
  margin: 2rem auto !important;
  padding: 2rem;
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* LIGNE 1: Titre */
.gallery-header {
  text-align: center;
  margin-bottom: 10px;
}

.gallery-header h2 {
  color: #003366;
  font-size: 2.2rem;
  margin: 0;
}

/* LIGNE 2: Photo principale */
.gallery-main-image {
  width: 100%;
  margin: 0 auto;
}

.gallery-main-image .carousel-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 450px;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

/* Boutons de navigation */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* LIGNE 3: Miniatures */
.gallery-thumbnails {
  width: 100%;
  margin: 0 auto;
  padding-top: 15px;
}

.carousel-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.thumbnail {
  width: 120px;
  height: 80px;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail.active {
  border-color: #0056b3;
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail:hover {
  transform: scale(1.05);
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery {
    width: 95% !important;
    max-width: 100% !important;
    padding: 1.5rem;
    margin: 1rem auto !important;
  }
  
  .gallery-main-image .carousel-container {
    max-width: 100%;
  }
  
  .carousel-slides {
    height: 350px;
  }
  
  .thumbnail {
    width: 90px;
    height: 60px;
    margin-bottom: 5px;
  }
  
  .carousel-thumbnails {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery {
    width: 98% !important;
    max-width: 100% !important;
    padding: 1rem;
  }
  
  .carousel-slides {
    height: 250px;
  }
  
  .thumbnail {
    width: 70px;
    height: 50px;
  }
  
  .gallery-header h2 {
    font-size: 1.8rem;
  }
}

/* Suppression de l'indicateur de zoom */
.carousel-slide::after {
  display: none;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border: 3px solid white;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* Masquer les anciens indicateurs */
.carousel-indicators {
  display: none;
}

/* Styles pour les stages */
.stages-info {
  padding: var(--section-padding);
  background: var(--section-background);
  color: var(--section-text);
}

.stage-group {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 10px rgba(43, 93, 160, 0.4),
    0 0 20px rgba(43, 93, 160, 0.2);
  animation: pulseGlowSubsection 4s infinite alternate;
}

.stage-group::before {
  display: none;
}

/* Style pour le lien vers le formulaire de contact */
.contact-link {
  color: #FF7800;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #FF9A40;
  text-decoration: none;
}

.stage-schedule {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-color);
}

.stage-schedule h4 {
  margin-bottom: 0.5rem;
  color: #000000;
  font-weight: bold;
}

.stage-info {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 10px rgba(43, 93, 160, 0.4),
    0 0 20px rgba(43, 93, 160, 0.2);
  animation: pulseGlowSubsection 4s infinite alternate;
}

.stage-info::before {
  display: none;
}

/* Styles pour la page contact */
section.contact-info, section.contact-form {
  width: 95%;
  max-width: var(--max-container-width);
  margin: 5% auto;
  padding: 2.5rem;
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  box-sizing: border-box;
}

.contact-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  justify-content: space-between;
  box-sizing: border-box;
}

.contact-column {
  box-sizing: border-box;
}

.contact-column:first-child {
  flex: 0.4;
  min-width: 250px;
  padding-right: 1rem;
}

.contact-column:last-child {
  flex: 1.6;
  padding-left: 1rem;
}

/* Style pour l'iframe de la carte */
.contact-column:last-child iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* Media queries */
@media screen and (max-width: 768px) {
  section, .gallery {
    width: 90%;
    padding: 1rem;
    margin: 0.8rem auto;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  section.contact-info, section.contact-form {
    width: 90%;
    padding: 1rem;
    margin-top: 5%;
  }
  
  .contact-columns {
    flex-direction: column;
  }
  
  .contact-column {
    width: 100%;
  }
  
  .contact-column:first-child,
  .contact-column:last-child {
    flex: 1;
    padding: 0;
  }
  
  /* Styles pour les tableaux - approche radicale pour mobile */
  table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0;
    border-radius: 6px;
    font-size: 0.8rem;
    border-collapse: collapse;
    overflow: hidden;
  }
  
  /* Suppression de l'indication de défilement horizontal car nous allons restructurer les tableaux */
  #prestations::after,
  #pensions::after {
    display: none;
  }
  
  /* Styles pour les tableaux de prestations */
  #prestations table {
    width: 100%;
  }
  
  #prestations table, 
  #prestations thead, 
  #prestations tbody, 
  #prestations th, 
  #prestations td, 
  #prestations tr {
    display: block;
  }
  
  #prestations table tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 24, 69, 0.7);
    border-radius: 6px;
    overflow: hidden;
  }
  
  #prestations table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 24, 69, 0.3);
  }
  
  #prestations table td:before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 0.5rem;
  }
  
  #prestations table th:first-child {
    background-color: #001845;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* Masquer les en-têtes de colonnes qui ne sont plus nécessaires */
  #prestations table tr:first-child {
    display: none;
  }
  
  /* Styles pour les tableaux de pensions */
  #pensions table {
    width: 100%;
    font-size: 0.75rem;
  }
  
  #pensions table, 
  #pensions thead, 
  #pensions tbody, 
  #pensions th, 
  #pensions td, 
  #pensions tr {
    display: block;
  }
  
  #pensions table tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 24, 69, 0.7);
    border-radius: 6px;
    overflow: hidden;
  }
  
  #pensions table td {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem;
    border-bottom: 1px solid rgba(0, 24, 69, 0.3);
  }
  
  #pensions table td:before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 0.5rem;
  }
  
  #pensions table th:first-child {
    background-color: #001845;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
  }
  
  /* Masquer les en-têtes de colonnes qui ne sont plus nécessaires */
  #pensions table tr:first-child {
    display: none;
  }
  
  /* Ajustement pour les cellules avec des descriptions */
  #pensions table td#presta {
    display: block;
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 24, 69, 0.3);
  }
  
  /* Ajustement pour les cellules avec des prix */
  #pensions table td strong#prix_final {
    font-weight: bold;
    color: #FF7800;
  }
  
  /* Styles pour les tableaux de stages */
  .stage-schedule table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    display: table;
    overflow-x: visible;
  }
  
  .stage-schedule table th,
  .stage-schedule table td {
    padding: 0.4rem 0.2rem;
    width: 20%;
    min-width: auto;
    text-align: center;
    font-size: 0.75rem;
    word-break: break-word;
  }
  
  /* Réduire la taille du texte dans les cellules avec beaucoup de contenu */
  td#presta {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.4rem;
    display: block;
    text-align: left;
  }
  
  /* Styles pour les stages sur mobile */
  .stage-group {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .stage-schedule {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
  }
  
  .stage-info {
    margin-top: 1.5rem;
    padding: 0.8rem;
  }
  
  #fontsizestage {
    font-size: 0.9rem;
  }
  
  /* Styles pour l'en-tête sur mobile */
  header {
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .header-logo img {
    max-width: 120px;
    height: auto;
  }
  
  h1 {
    font-size: 1.6rem;
    text-align: center;
    margin: 0.5rem 0;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  
  #onglets {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0.5rem 0;
    width: 100%;
  }
  
  #onglets li {
    margin: 0.15rem;
  }
  
  #onglets a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    min-width: auto;
  }
  
  /* Réduire les marges des titres */
  h2 {
    font-size: 1.4rem;
    margin: 0.8rem 0;
  }
  
  h3 {
    font-size: 1.2rem;
    margin: 0.6rem 0;
  }
  
  h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }
  
  /* Réduire la taille du texte */
  p {
    font-size: 0.9rem;
    margin: 0.6rem 0;
  }
  
  /* Ajuster le bouton */
  .bouton a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin: 0.8rem auto;
  }
}

@media screen and (min-width: 769px) and (max-width: 1050px) {
  section:not(.gallery) {
    margin-left: 10% !important;
    margin-right: 10% !important;
    margin-top: 15% !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
}

@media screen and (min-width: 1051px) {
  section:not(.gallery) {
    margin-left: var(--section-margin);
    margin-right: var(--section-margin);
    margin-top: 10% !important;
    padding: 2.5rem;
    width: auto;
    box-sizing: border-box;
  }
  
  h1 {
    font-size: 3.5rem;
    margin-top: 2rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  #onglets {
    justify-content: center;
  }
  
  #onglets a {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
  }
  
  .bouton a {
    width: 300px;
    font-size: 1.2rem;
  }
  
  .two-columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .two-columns > * {
    flex: 1;
  }
}

/* Styles pour le calendrier des événements */
.calendar-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.events-calendar {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-nav {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-button);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar-nav:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.calendar-header div {
  padding: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  position: relative;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius);
  background-color: #f5f5f5;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar-day:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.calendar-day.empty {
  background-color: transparent;
  cursor: default;
}

.calendar-day.today {
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
}

.calendar-day.has-event {
  background-color: #e8f5e9;
  font-weight: bold;
}

.event-indicator {
  position: absolute;
  bottom: 2px;
  font-size: 0.8rem;
  color: var(--accent-color);
}

.event-details {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
}

.upcoming-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.event-card {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.event-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.event-description {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.event-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive pour le calendrier */
@media screen and (max-width: 768px) {
  .calendar-grid,
  .calendar-header {
    grid-template-columns: repeat(4, 1fr);
  }

  .calendar-day {
    padding: 5px;
  }

  .upcoming-events {
    grid-template-columns: 1fr;
  }
}

/* Styles pour la page de remerciement */
.thank-you {
  padding: 50px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-content {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you h1 {
  color: #00003b;
  margin-bottom: 20px;
}

.thank-you p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.back-home {
  margin-top: 30px;
}

.back-home .btn {
  display: inline-block;
  background-color: #FF7800;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-home .btn:hover {
  background-color: #e56e00;
}

/* Footer styles */
.footer {
    background-color: #fff;
    color: #333;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section {
    flex: 1;
    margin: 0 15px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-links li {
    margin-right: 15px;
    margin-bottom: 8px;
}

.footer-links a, .social-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .social-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Styles modernes pour le formulaire de contact */
.contact-form {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.contact-form h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.contact-form h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.contact-form p {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  font-size: 1.1rem;
}

.contact-form form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background-color: #fff;
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1rem;
}

.form-group.checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
}

.form-group button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#confirmationMessage {
  background-color: #e7f7e7 !important;
  border-left: 4px solid #4CAF50;
  padding: 20px !important;
  border-radius: 8px !important;
  margin-top: 30px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#confirmationMessage h3 {
  color: #2E7D32;
  margin-top: 0;
  font-size: 1.3rem;
}

#formError {
  background-color: #ffebee !important;
  border-left: 4px solid #f44336;
  padding: 20px !important;
  border-radius: 8px !important;
  margin-top: 30px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
  .contact-form form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Styles pour la galerie statique */
.photo-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 12px;
    text-align: center;
    color: #333;
    font-size: 16px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Media queries pour la galerie */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour le bouton de retour en haut */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #FF7800; /* Couleur orange */
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none; /* Caché par défaut */
  opacity: 0.8;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#back-to-top:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
  #back-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}

/* Galerie statique */

/* Styles spécifiques pour les tableaux de stages */
.stage-schedule table {
  margin: 0.5rem 0;
  font-size: 0.8rem;
}

.stage-schedule table th,
.stage-schedule table td {
  padding: 0.4rem;
  min-width: 50px;
  text-align: center;
}

/* Optimisation pour les très petits écrans */
@media screen and (max-width: 360px) {
  section, .gallery {
    width: 95%;
    padding: 0.8rem;
    margin: 0.6rem auto;
  }
  
  table {
    font-size: 0.75rem;
  }
  
  th, td {
    padding: 0.3rem;
    min-width: 60px;
  }
  
  #pensions table th,
  #pensions table td {
    padding: 0.3rem;
    min-width: 50px;
  }
  
  td#presta {
    font-size: 0.7rem;
    line-height: 1.1;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  #onglets a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* Styles pour la section événement spécial (chasse aux œufs de Pâques) */
.special-event h2.event-title {
  color: #8A4FFF;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  border-bottom: 3px solid #8A4FFF;
  padding-bottom: 10px;
  font-weight: bold;
  position: relative;
}

.special-event h2.event-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background-color: #8A4FFF;
}

.special-event h3 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.special-event p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  text-align: center;
  font-size: 1.2rem;
}

.event-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.event-cta .btn {
  display: inline-block;
  background-color: #8A4FFF;
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-button);
  text-decoration: none;
  font-weight: bold;
  transition: background-color var(--transition-speed);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(138, 79, 255, 0.3);
}

.event-cta .btn:hover {
  background-color: #7038E0;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(138, 79, 255, 0.4);
}

/* Responsive pour la section événement */
@media (max-width: 768px) {
  .special-event {
    width: 90%;
    margin: 0.8rem auto;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  .special-event h2.event-title {
    font-size: 2rem;
  }
  
  .special-event h3 {
    font-size: 1.5rem;
  }
  
  .special-event p {
    font-size: 1.1rem;
  }
}

/* Responsive pour la section infos inscriptions */
@media (max-width: 768px) {
  #inscription-info {
    width: 90%;
    margin: 0.8rem auto;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  #inscription-info h2 {
    font-size: 2rem;
  }
  
  #inscription-info p {
    font-size: 1.1rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section::before, .gallery::before, 
.special-event::before, 
.stage-group::before, 
.stage-info::before {
    filter: blur(3px);
  }
}

/* Animation pour les sous-sections */
@keyframes pulseGlowSubsection {
  0% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 10px rgba(43, 93, 160, 0.4),
      0 0 20px rgba(43, 93, 160, 0.2);
  }
  100% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 15px rgba(43, 93, 160, 0.6),
      0 0 30px rgba(43, 93, 160, 0.4);
  }
}

/* Effet spécial pour la section événement de Pâques */
.special-event {
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
  position: relative;
  width: 90%;
  max-width: var(--max-container-width);
  box-sizing: border-box;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(138, 79, 255, 0.7),
    0 0 40px rgba(138, 79, 255, 0.5);
  animation: pulseGlowSpecial 4s infinite alternate;
}

@keyframes pulseGlowSpecial {
  0% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 20px rgba(138, 79, 255, 0.7),
      0 0 40px rgba(138, 79, 255, 0.5);
  }
  100% {
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 30px rgba(138, 79, 255, 0.9),
      0 0 60px rgba(138, 79, 255, 0.7);
  }
}

/* Suppression des pseudo-éléments qui ne sont plus nécessaires */
section::before, .gallery::before, 
.special-event::before, 
.stage-group::before, 
.stage-info::before {
  display: none;
}

/* Nouvelle classe pour surligner le texte avec un fond blanc */
.highlight-bg-white {
  background-color: white;
  padding: 2px 4px; /* Ajustement du rembourrage pour un meilleur rendu visuel */
  border-radius: 3px; /* Coins arrondis pour un look plus doux */
  color: #000000 !important; /* Forcer la couleur du texte en noir */
  display: inline-block; /* S'assurer que le padding et le background s'appliquent bien */
}

/* Nouvelle classe pour la colonne Matin/Après-midi */
.time-column-style {
  background-color: #001845 !important; /* Couleur de fond des en-têtes de jours, !important pour surcharger les styles de ligne tr */
  color: white !important; /* Texte en blanc */
  /* padding et border-radius sont enlevés car la classe s'appliquera au <td> */
  /* display: inline-block est enlevé */
}

/* S'assurer que le texte dans les <strong> de la colonne Matin/Après-midi est blanc */
.time-column-style strong {
  color: white !important;
}

.highlight-bg-red {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.stages-info-text {
  color: red !important;
  font-weight: bold !important;
} 