.menu-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* fond sombre transparent */
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  z-index: 10; /* Pour que le logo reste cliquable sur mobile */
  align-items: center;
}

.logo-img {
  height: 48px;
  background-color: white;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.menu-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.menu-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu-links a:hover {
  color: #ffcbcb; /* rose clair au survol */
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px; /* Ajoute un espace entre les drapeaux */
  margin-left: 20px;
  font-size: 0.9rem;
  color: #eee;
}

.lang-flag {
  height: 16px; /* Définit une hauteur standard pour les drapeaux */
  display: block; /* Évite les espaces indésirables sous l'image */
  border-radius: 2px;
  transition: transform 0.2s ease;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding-top: 90px; /* Ajuste en fonction de la hauteur du menu */
  background-color: #f9f9f9;
  color: #333;
}

.lang-switch a:hover .lang-flag {
  transform: scale(1.15); /* Agrandit légèrement le drapeau au survol */
}

/* --- Menu Hamburger --- */
.menu-toggle {
  display: none; /* Masqué par défaut sur grand écran */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* --- Styles pour les écrans mobiles --- */
@media (max-width: 820px) {
  .menu-toggle {
    display: flex; /* Afficher le bouton hamburger */
  }

  .menu-links {
    display: none; /* Cacher les liens par défaut */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 90px; /* Pour ne pas être sous le header */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .menu-links.active {
    display: flex; /* Afficher le menu quand il est actif */
  }

  .menu-links a {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lang-switch {
    margin-left: 0;
    padding: 1.5rem 0;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Corrige le style des liens de langue dans le menu mobile */
  .lang-switch a {
    width: auto; /* Annule la largeur de 100% */
    padding: 0; /* Supprime le padding vertical */
    border-top: none; /* Supprime la bordure héritée */
  }
}

/* --- Video Page --- */
.video-container {
  max-width: 960px; /* Max width of the video */
  margin: 2rem auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
main {
  padding: 2rem;
  animation: fadeIn 1s ease-in;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
footer {
  text-align: center;
  padding: 1rem;
  background: #eaeaea;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.gallery {
  padding: 2rem;
  background-color: #f9f9f9;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid a img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery-grid a img:hover {
  transform: scale(1.02);
}
.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Formulaire de Contact --- */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  color: #2d3748;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #2563eb;
}

.github-link {
  text-align: center;
  margin-top: 2rem;
  color: #4a5568;
}

.github-link a {
  color: #3b82f6;
  text-decoration: underline;
}
