/* 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;
}

#nav-menu {
  display: flex;
  align-items: center;
}

/* 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;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: 0.3s ease;
}

.a-propos {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
  gap: 20px;
  align-items: start;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

/* Image à gauche */
.a-propos-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Colonnes texte */
.a-propos-col p {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
}

/* Responsive tablette */
@media (max-width: 1024px) {
  .a-propos {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .a-propos {
    grid-template-columns: 1fr;
  }

  .a-propos-photo,
  .a-propos-col {
    text-align: center;
  }

  .a-propos-photo img {
    max-width: 300px;
    margin: 0 auto;
  }
}
/* FOOTER */
.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) {
  #nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: 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;
    right: 20px;
    top: 60px;
    width: auto;
  }
   #nav-menu ul {
    display: flex;
    flex-direction: column; /* liens horizontaux */
    gap: 10px;
    width: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }

   #nav-menu ul li {
    width: auto;
    display: flex;
    align-items: flex-start;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
    cursor: pointer;
    z-index: 1200;
  }
}

/* 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);
}