/* === HEADER GENERAL === */
header {
  position: relative;
  width: 100%;
  color: gray;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* === BACKGROUND IMAGE & OVERLAY === */
.header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  height: 16rem;
}

@media (min-width: 768px) {
  .header-bg {
    height: 20rem;
  }
}

.header-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 10;
}

/* === MAIN CONTENT === */
.header-content {
  position: relative;
  z-index: 20;
  height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .header-content {
    height: 20rem;
  }
}

.header-logo {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .header-logo {
    width: 8rem;
    height: 8rem;
  }
}

/* === NAVIGATION === */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-weight: 500;
  }

  .nav-desktop a {
    color: white;
    text-decoration: none;
  }

  .nav-desktop a:hover {
    text-decoration: underline;
  }
}

/* === DROPDOWNS / ACCORDIONS === */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 10rem;
  background-color: white;
  color: black;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
}

.dropdown-toggle input:checked ~ .dropdown-menu {
  max-height: 20rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
}
iframe,
embed {
  max-width: 100%;
  height: 80vh;
}



  details summary svg {
    transition: transform 0.3s ease;
    transform: rotate(0deg); /* flèche vers le bas */
  }

  details[open] summary svg {
    transform: rotate(180deg); /* flèche vers le haut quand ouvert */
  }
  
  @keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

