/* Débogage et compatibilité */
.navbar, header, .nav-right, .cv-button-wrapper {
    overflow: visible !important;
  }

  /* Structure de la navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 4rem;
    background-color: #000000;
    position: relative;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
  
  /* Alignement des blocs */
  .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-left,
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
  }
  
  /* Logo */
  .logo img {
    height: 100px;
  }
  
  /* Liens de navigation */
  a {
    color: #949494;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
  }
  
  a:hover {
    text-decoration: underline;
    color: #a8a8a8;
  }
  
  /* Bouton burger (caché en desktop) */
  .burger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2c3e50;
  }
  
  /* Formulaire CV */
  .cv-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .cv-form input[type="email"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  /* Bouton CV + pop-up */
  .cv-button-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .cv-button-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    z-index: 1;
  }
  
  #cv-button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: rgba(138, 21, 21, 0.7);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
  }
  
  #cv-button:hover {
    background-color: #cc0000;
  }
  
  .cv-button-wrapper:hover .cv-popup {
    display: block;
  }
  
  .cv-popup {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 1rem;
    width: 280px;
    font-size: 0.85rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    color: #000000;
  }
  
  .cv-popup a {
    color: #2980b9;
    text-decoration: underline;
  }
  
  /* ========= RESPONSIVE ========= */
  @media screen and (max-width: 1160px) {
    .navbar {
      flex-wrap: wrap;
      justify-content: center;
      padding: 1%;
    }
  
    .burger {
      display: block;
    }
  
    .nav-left,
    .nav-right {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      gap: 0.5rem;
      margin-top: 1rem;
  
      /* Animation smooth */
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, opacity 0.4s ease;
    }
  
    .nav-left.active,
    .nav-right.active {
      max-height: 500px; /* assez grand pour contenir les liens */
      opacity: 1;
    }
  
    .nav-center {
      position: relative;
      left: unset;
      transform: unset;
      order: -1;
      margin-bottom: 1rem;
      justify-content: space-between;
      width: 100%;
    }
  
    .cv-form {
      flex-direction: column;
      width: 100%;
      align-items: center;
    }
  
    .cv-form input[type="email"] {
      width: 90%;
      max-width: 300px;
    }
  
    #cv-button {
      width: 90%;
      max-width: 300px;
    }
  
    .cv-popup {
      width: 90%;
      max-width: 300px;
      right: auto;
      left: 50%;
      transform: translateX(-50%);
    }
  
    .cv-button-wrapper::after {
      width: 90%;
      left: 50%;
      transform: translateX(-50%);
    }
  }
  