/* Réinitialisation de base (optionnel mais recommandé) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style de la navbar */
.navbar {
  position: fixed; /* Reste en haut même au scroll */
  top: 0;
  left: 0;
  width: 100%;
  background-color: white; /* Fond blanc */
  color: black; /* Texte noir */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ombre légère pour la lisibilité */
  z-index: 1000; /* Au-dessus du reste du contenu */
}

/* Logo */
.logo-img {
  height: 40px;
}

/* Menu de navigation */
#nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

#nav-menu ul li a {
  text-decoration: none;
  color: black; /* Texte noir */
  font-weight: 500;
  transition: color 0.3s ease;
}

#nav-menu ul li a:hover {
  color: gray; /* Optionnel : effet au survol */
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: 0.3s ease;
}

.contact-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-section h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: none;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0077cc;
}

.contact-form button {
  padding: 15px;
  background-color: #0077cc;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #005fa3;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-section {
    margin: 40px 20px;
    padding: 30px 20px;
  }
}

.map-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f5f5f5;
}

.map-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.map-section p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.footer {
  background-color: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
}

/* TEXTE CENTRÉ */
.footer p {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  animation: fadeIn 1.2s ease-in-out;
}

/* ICÔNES SOCIALES CENTRÉES */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* LOGOS DE MÊME TAILLE + ANIMATION */
.social-icons a img {
  width: 40px;
  height: 40px; /* force la même hauteur */
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ANIMATION AU SURVOL */
.social-icons a img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* ANIMATION DE FONDU */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    z-index: 1200;
  }
  #nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1100;
  }
  #nav-menu.show {
    display: flex;
    flex-direction: column;
  }
  #nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
/* Menu déroulant vertical et bien rangé */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 20px;
  border-radius: 8px;
  overflow: hidden;
  flex-direction: column; /* vertical */
  padding: 0;
  z-index: 2000;
  opacity: 0;
  max-height: 0;
  transition: max-heigt 0.4s ease, opacity 0.4s ease;
}

.dropdown-menu.show {
  max-height: 200px; /* assez pour 2 éléments */
  opacity: 1;
}

/*.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}*/

.dropdown-menu li {
  border-bottom: 1px solid #eee;
  padding: 0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  color: black;
  text-decoration: none;
  display: block;
  padding: 12px 20px;
  font-size: 1rem;
  transition: background 0.2s;
  text-align: left;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
}

/* Responsive: menu déroulant bien rangé sur mobile */
@media (max-width: 768px) {
  .dropdown-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    flex-direction: column;
    width: 100%;
  }

  .dropdown-menu li a {
    padding: 12px 10px;
    font-size: 1rem;
    text-align: left;
  }

  .dropdown-menu.show {
    max-height: 500px; /* Ajuste selon le contenu */
  }
}


.arrow {
  display: inline-block;
  margin-left: 8px;
  width: 0;
  height: 0;
  vertical-align: middle;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
  transition: transform 0.3s;
}

.arrow.open {
  transform: rotate(180deg);
}

/* Flèche vers le haut quand le menu est ouvert (mobile) */
.dropdown-menu.show ~ .arrow,
.dropdown:hover .arrow,
.dropdown:focus-within .arrow {
  transform: rotate(180deg);
}