:root {
    --color-blue: #003366;
    --color-green: #2E7D32;
    --color-turquoise: #26C6DA;
    --color-orange: #FB8C00;
    --color-light: #F5F5F5;
    --color-dark-text: #424242;
    --font-title: 'Aptos', sans-serif;
    --font-body: 'Aptos', sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-body);
    background-color: white;
    color: var(--color-dark-text);
    line-height: 1.6;
  }
  
  header {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-blue);
  }
  
  nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  nav ul li {
    position: relative;
  }
  
  nav ul li a {
    text-decoration: none;
    font-family: var(--font-title);
    color: var(--color-blue);
    font-weight: 500;
  }
  
  nav ul li a:hover {
    color: var(--color-turquoise);
  }
  
  /* Style pour les menus réservés aux membres */
  nav ul li.membres-only > a {
    background-color: var(--color-blue);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
  }
  
  nav ul li.membres-only > a:hover {
    background-color: var(--color-turquoise);
    color: white;
  }
  
  nav ul li.membres-only > a::before {
    content: '🔒';
    margin-right: 5px;
    font-size: 0.9em;
  }
  
  nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-light);
    padding: 0.5rem;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  nav ul li:hover > ul {
    display: block;
  }
  
  nav ul li ul li {
    margin: 0.3rem 0;
  }
  
  main {
    padding: 2rem;
  }
  
  .hero {
    background: linear-gradient(rgba(0, 77, 64, 0.6), rgba(0, 131, 143, 0.6)), url('images/banner.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
  }
  
  .hero-content h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .cta-buttons .btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-family: var(--font-title);
    font-size: 1rem;
  }
  
  .btn-primary {
    background-color: var(--color-turquoise);
    color: white;
  }
  
  .btn-outline {
    border: 2px solid var(--color-turquoise);
    color: var(--color-turquoise);
    background: transparent;
  }
  
  .btn-outline:hover {
    background: var(--color-turquoise);
    color: white;
  }
  
  .mission {
    background-color: white;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .mission .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 2rem;
    align-items: center;
  }
  
  .text-block {
    flex: 1 1 50%;
  }
  
  .text-block h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
  }
  
  .text-block p {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  .image-block {
    flex: 1 1 40%;
    text-align: center;
  }
  
  .image-block img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  footer {
    background-color: var(--color-blue);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
  }
  
  footer .mentions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  footer .mentions nav {
    margin-bottom: 1.5rem;
  }
  
  footer .mentions ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1rem;
  }
  
  footer .mentions ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
  }
  
  footer .mentions ul li a:hover {
    color: var(--color-turquoise);
    text-decoration: underline;
  }
  
  .actus {
    padding: 4rem 2rem;
    background-color: var(--color-light);
  }
  
  .actus-container h2,
  .evenements h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
  }
  
  .carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
  }
  
  .carousel-slide {
    min-width: 280px;
    flex: 0 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    font-family: var(--font-body);
    font-size: 1rem;
  }
  
  .evenements {
    margin-top: 3rem;
  }
  
  .event-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .event-list li {
    background-color: white;
    padding: 1rem;
    border-left: 4px solid var(--color-turquoise);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: var(--font-body);
  }
  
  .event-list li span {
    font-size: 0.9rem;
    color: #666;
  }
  

  /* Sections */
.section-bg-white { background-color: #ffffff; padding: 60px 20px; }
.section-bg-light { background-color: #f5f5f5; padding: 60px 20px; }
.section-title {
  font-size: 2rem;
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Présentation */
.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #424242;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
}
.btn.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #26C6DA;
  color: #26C6DA;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
}
.btn.btn-outline:hover {
  background-color: #26C6DA;
  color: #fff;
}

/* Carrousel */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
}
.carousel-slide {
  min-width: 320px;
  max-width: 350px;
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  scroll-snap-align: start;
}
.carousel-slide img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}
.carousel-slide h3 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 6px;
}
.carousel-slide p {
  font-size: 0.95rem;
  color: #555;
}

/* Événements */
.event-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.event-card {
  background: #e0f7fa;
  padding: 20px;
  border-radius: 6px;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.event-card h3 {
  color: #2E7D32;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.event-card p {
  font-size: 0.95rem;
  color: #333;
}


  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
      gap: 0.5rem;
    }
  
    nav ul li ul {
      position: static;
      box-shadow: none;
    }
    
    /* Ajustements pour le sélecteur de langue en mobile */
    .language-selector {
      position: absolute;
      top: 10px;
      right: 70px;
      gap: 10px;
    }
  }
  
/* Styles pour la bande de langue */
.language-band {
  background-color: var(--color-light);
  border-bottom: 1px solid #e0e0e0;
  padding: 5px 0;
  text-align: right;
  width: 100%;
  position: relative;
  z-index: 100;
}

/* Styles pour le sélecteur de langue avec drapeaux */
.language-selector {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.language-selector .lang-option {
  color: var(--color-dark-text);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.language-selector .lang-option .flag {
  font-size: 1.2rem;
  margin-right: 5px;
}

.language-selector .lang-option .lang-name {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.language-selector .lang-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-selector .lang-option.active {
  font-weight: bold;
  background-color: rgba(0, 51, 102, 0.1);
}

/* Styles pour la page d'accueil et le sélecteur de langue principal */
.language-selector-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.language-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.language-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.language-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-dark-text);
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 120px;
}

.language-option:hover {
  background-color: var(--color-light);
  transform: translateY(-5px);
}

.language-option .flag {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.language-option .lang-name {
  font-weight: 500;
}

.language-option .native-name {
  font-size: 0.9rem;
  color: #666;
}

.auto-redirect {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  body {
    padding-top: 40px; /* Espace pour la bande de langue fixe */
  }
  
  /* Bande de langue fixe en haut de l'écran */
  .language-band {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    z-index: 9999; /* Valeur très élevée pour rester au-dessus de tout */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Header séparé sous la bande de langue */
  header {
    margin-top: 10px;
    width: 100%;
    position: relative;
    z-index: 100;
    clear: both;
  }
  
  .language-selector {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
  }
  
  .lang-option {
    padding: 5px;
    min-width: 70px;
    justify-content: center;
  }
  
  /* Ajustement du menu de navigation */
  nav {
    margin-top: 15px;
    width: 100%;
    clear: both;
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding-top: 10px;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }
  
  nav ul li a {
    display: block;
    padding: 10px 0;
  }
  
  nav ul li ul {
    position: static;
    box-shadow: none;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    display: block;
  }
  
  /* S'assurer que le logo ne chevauche pas le menu */
  header .logo {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }
  
  /* Styles pour le menu mobile */
  #menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  
  #navigation {
    display: none;
    width: 100%;
    margin-top: 10px;
  }
  
  #navigation.mobile-open {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  
  nav ul li {
    width: 100%;
    margin-bottom: 10px;
  }
  
  nav ul li a {
    display: block;
    padding: 10px 0;
  }
  
  nav ul li ul {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: #f5f5f5;
    padding-left: 20px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }

  .mission .container {
    flex-direction: column;
  }
  
  .carousel-slide {
    min-width: 220px;
  }
  
  /* Styles spécifiques pour le footer en version mobile */
  footer .mentions ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  footer .mentions ul li a {
    font-size: 1.1rem;
    display: block;
    padding: 8px 0;
  }

  /* Styles pour le menu mobile */
  #menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
  }

  #menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-blue);
    transition: all 0.3s ease;
  }

  #menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #navigation {
    width: 100%;
  }

  #navigation.mobile-open {
    display: block;
  }



  .submenu-open {
    display: block !important;
  }
}