/* ==========================================================================
   HEADER & NAVIGATION - CORRIGÉ
   ========================================================================== */

   .header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--neutral-light);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .main-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
  }
  
  /* Correction : On définit le point de repère pour le sous-menu */
  .menu-item {
    position: relative;
  }
  
  .menu-link {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 600;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
    white-space: nowrap;
  }
  
  .menu-link:hover {
    color: var(--primary-blue);
  }
  
  /* Sous-menus (Desktop) */
  .submenu {
    list-style: none;
    padding: 10px 0; /* Un peu de padding pour l'esthétique */
    display: none;
    position: absolute;
    top: 100%;       /* Se place pile sous le parent */
    left: 0;         /* S'aligne sur le bord gauche du parent */
    background-color: var(--neutral-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 240px;
    z-index: 999;
  }
  
  /* Optionnel : alignement à droite pour le dernier item si besoin */
  /* .menu-item:last-child .submenu { left: auto; right: 0; } */
  
  .has-dropdown:hover .submenu {
    display: block;
  }
  
  .submenu-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--neutral-dark);
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .submenu-link:hover {
    background-color: #f5f5f5;
    color: var(--primary-blue);
  }
  
  /* Boutons d'action du Header */
  .container-bouton {
    display: flex;
    gap: 15px;
  }
  
  .don-btn, .don-btn_2 {
    text-decoration: none;
    padding: 7px 15px;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 4px;
    white-space: nowrap;
  }
  
  .don-btn {
    background: #F3F8FF;
    border: 1px solid #3289FF;
    color: #3289FF;
  }
  
  .don-btn_2 {
    background: #006CFE;
    color: #F3F8FF;
  }
  
  /* Menu Mobile (Hamburger) */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #002666;
    transition: 0.3s;
  }
  
  @media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-wrapper {
      display: none;
      flex-direction: column;
      width: 100%;
      position: absolute;
      top: 100%; left: 0;
      background: var(--neutral-light);
      padding: 20px;
      border-bottom: 1px solid var(--border-light);
    }
    .nav-wrapper.open { display: flex; }
    .main-menu { flex-direction: column; gap: 10px; width: 100%; }
    .menu-item { width: 100%; }
    .submenu { position: static; display: none; box-shadow: none; border: none; padding-left: 20px; }
    .menu-item.open > .submenu { display: block; }
    .container-bouton { flex-direction: column; width: 100%; margin-top: 15px; }
    .don-btn, .don-btn_2 { text-align: center; }
  }