/* Header Styles */
/* header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: transparent;
    position: sticky;
    height: 250px;
    overflow: hidden;
    text-align: center;
    top:0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    z-index: 1000;
} */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: transparent;
  position: sticky;
  top: 0;
  height: auto;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/testbkgd3.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

header > * {
    position: sticky;
    z-index: 1;
}

/* header img {
    height: 180px;
    margin-right: 2rem;
    opacity: 1;
    z-index: 1;
} */
header img {
  height: 180px;
  max-width: auto;
  flex-shrink: auto;
  margin-right: 1rem;
}
/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Navigation */
/* nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    background-color: transparent;
    border: 2px solid #5cc487;
    border-radius: 0;
    padding: 0.5rem 2rem;
    max-width: 900px;
    width: 100%;
    height: 4rem;
    align-items: center;
    transition: all 0.3s ease;
} */
nav {
  display: flex;
  flex: 1 1 auto; /* prends plus de place que le logo, mais peut se réduire */
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  background-color: transparent;
  border: 2px solid #5cc487;
  padding: 0.5rem 1rem;
  border-radius: 0;
  align-items: center;
  max-width: 900px;
  width: 100%;
  height: auto;
  position: relative; /* plus de absolute */
  transform: none;
  top: auto;
  left: auto;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(147, 202, 163, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}
@media (max-width: 768px) {
    nav {
      position: absolute;
      top: 100%;
      left: 0;
      transform: translateX(-100%);
      flex-direction: column;
      background-color: #ffffff;
      width: 100%;
      padding: 1rem;
      border: none;
      height: auto;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
    }
  
    nav.show {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }
  
    .hamburger {
      display: flex;
      margin-left: auto;
      margin-right: 0;
    }
  
    header {
      height: auto; /* pour éviter un grand vide inutile sur mobile */
      padding: 1rem;
      flex-wrap: wrap;
    }
  
    header img {
      height: 120px;
      margin-bottom: 0.5rem;
      margin-right: 0;
    }
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }
  }
  