/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, a, button {
    font-family: 'IBM Plex Sans', sans-serif;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  header {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+ */
  }

  .numtel {
    user-select: all;
  }
  
  /* === Header Top === */
  .header-top {
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
  }
  
  .logo img {
    width: 400px;
    height: auto;
  }
  
  .nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* === Responsive menu === */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background-color: #351404;
    margin: 4px 0;
  }
  
  /* === Contact Bar === */
  .contact-bar {
    background-color: #351404;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px;
  }
  
  .contact-bar .phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    color: white;
  }
  
  .contact-bar button a {
    color: inherit;
    text-decoration: none;
  }
  
  /* === Services Bar === */
  .services-bar {
    background-color: #fac619;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    font-weight: 600;
    font-size: 1.1em;
    flex-wrap: wrap;
    position: relative;
    z-index: 1000;
  }

  @media (min-width: 1036px) {
    .dropdown-content {
      position: absolute !important;
      transform: translateX(-50%) !important;
      top: 100%;
      left: 50%;
      display: none;
      background: #fac619;
      padding: 10px 0;
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      min-width: 180px;
      z-index: 1002;
    }

    .dropdown-service.active .dropdown-content {
      display: block;
    }
  }

  /* Empêche le dropdown d'affecter la hauteur de .services-bar */
  .services-bar {
    position: relative;
    align-items: center; /* remet l'alignement au milieu */
  }

  .dropdown-service {
    position: relative;
    display: flex;
    align-items: center;
  }

  /* Le menu est retiré du flux (ne pousse rien vers le bas) */
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fac619;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1002;
    display: none;
  }

  .dropdown-service.active .dropdown-content {
    display: block;
  }
  
  .services-bar a {
    color: black;
    text-decoration: none;
  }
  
  .services-bar a:hover {
    color: #351404;
  }
  
  .services-bar .divider {
    color: white;
  }
  
  /* === Dropdown Service === */
  .dropdown-service {
    position: relative;
  }
  
  .dropdown-button {
    font-size: 1.1em;
    font-weight: 600;
    padding: 14px 0;
    background: none;
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .dropdown-button:hover {
    transform: none !important;
    animation: none !important;
  }

  .dropdown-arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
  }
  
  .dropdown-service.active .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fac619;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1002;
  }
  
  .dropdown-service.active .dropdown-content {
    display: block;
    transform: translateX(-50%) translateY(0);
  }
  
  .dropdown-content a {
    display: block;
    padding: 8px 16px;
    color: #000;
    font-weight: 600;
  }
  
  .dropdown-content a:hover {
    background-color: #ffe97a;
  }
  
  /* === Responsive === */
  @media (max-width: 1035px) {
    .header-top {
      padding: 15px 20px;
    }
  
    .nav-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: white;
      flex-direction: column;
      padding: 20px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
  
    .nav-menu.active {
      display: flex;
    }
  
    .menu-toggle {
      display: flex;
    }
  
    .services-toggle {
      display: block;
      width: 100%;
      padding: 10px;
      background: #fac619;
      color: black;
      border: none;
      cursor: pointer;
    }
  
    .services-bar {
      display: none;
      flex-direction: column;
      gap: 0;
      background-color: #fac619;
      padding: 10px 20px;
    }    
  
    .services-bar.active {
      display: flex;
    }
    
    .services-bar a,
    .services-bar .dropdown-button {
      width: 100%;
      text-align: left;
      padding: 10px 0;
    }

    .dropdown-service {
      margin-bottom: 10px;
    }    

    .services-bar .divider {
      display: none;
    }
    
    .services-bar {
      will-change: max-height;
    }  
  
    .services-bar a {
      display: block;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      padding: 10px 0;
    }
  
    .services-bar a:last-child {
      border-bottom: none;
    }

    .dropdown-content {
      position: static !important;
      transform: none !important;
      box-shadow: none;
      background: transparent !important;
      padding: 0;
      display: none;
      flex-direction: column;
      width: 100%;
    }
  
    .dropdown-content a {
      padding-left: 20px;
      background-color: transparent;
    }

    .dropdown-service {
      width: 100%;
    }

    .dropdown-service.active .dropdown-content {
      display: flex;
    }

    .dropdown-content a {
      padding-left: 20px;
      background-color: transparent;
    }

    .dropdown-content a:hover {
      background-color: #ffe97a;
    }

    #servicesMenu {
      transition: height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
      overflow: hidden;
    }    
  }
  
  @media (min-width: 1036px) {
    .menu-toggle, .services-toggle {
      display: none;
    }
  }
  
    .animated {
        opacity: 1;
        transform: translateY(0);
    }  

    /* === Mobile Slide Menu === */
    .mobile-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 75%;
      max-width: 300px;
      height: 100%;
      background: #fff;
      box-shadow: -2px 0 6px rgba(0,0,0,0.3);
      padding: 20px;
      z-index: 2000;
      transition: right 0.3s ease-in-out;
      display: flex;
      flex-direction: column;
      justify-content: flex-start; /* ou 'center' si tu veux centrer verticalement */
      padding-top: 60px; /* espace sous le bouton de fermeture */
    }

    .mobile-menu nav {
      display: flex;
      flex-direction: column;
      gap: 10px; /* Ajoute un petit espace entre les liens */
    }

    .mobile-menu nav a {
      text-decoration: none;
      color: #351404;
      padding: 12px 10px;
      font-weight: bold;
      border-bottom: 1px solid #eee;
    }

    .mobile-menu .close-btn {
      align-self: flex-end;
      background: none;
      border: none;
      font-size: 2rem;
      color: #351404;
      cursor: pointer;
    }

    .mobile-menu.active {
      right: 0;
    }

    .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.4);
      z-index: 1500;
      display: none;
    }

    .menu-overlay.active {
      display: block;
    }

    @media (max-width: 1035px) {
      .services-bar .divider {
        display: none;
      }
    }    

    @media (max-width: 630px) {
      .contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 15px;
      }
    
      .contact-bar .phone {
        font-size: 1.3em;
        gap: 10px;
      }
    
      .contact-bar > div:last-child {
        margin-left: 0;
        padding-right: 0;
        align-self: stretch;
        justify-content: space-between;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
      }
    
      .contact-bar button {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 1rem;
      }
    
      .contact-bar span {
        font-size: 1rem;
      }

      .services-bar a,
      .services-bar .dropdown-button {
        font-size: 1rem;
      }
    }        

    @media (max-width: 470px) {
      .header-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
      }
    
      .logo {
        display: flex;
        justify-content: center;
        width: 100%;
      }
    
      .menu-toggle {
        display: flex !important;
        margin-top: 10px;
        justify-content: center;
      }
    }    

    .btn-contact {
      background: #fac619;
      color: #351404;
      text-decoration: none;
      font-weight: bold;
      border: none;
      display: inline-block;
      text-align: center;
      border-radius: 5px;
      padding: 14px 20px;
      min-height: 48px; /* recommandé par Google pour accessibilité tactile */
      min-width: 48px;
      font-size: 1rem;
      line-height: 1.2;
    }  

    @media (max-width: 630px) {
  .logo img {
    width: 220px !important;
    height: auto !important;
  }

  .contact-bar {
    padding: 8px 12px;
  }

  .contact-bar .phone {
    font-size: 1em;
    gap: 8px;
  }

  .contact-bar span,
  .contact-bar .numtel {
    font-size: 0.9em !important;
  }

  .btn-yellow {
    padding: 10px 16px !important;
    font-size: 0.9em !important;
  }

  .services-toggle {
    padding: 8px 12px !important;
    font-size: 1rem !important;
  }

  .services-bar {
    padding: 6px 12px !important;
    font-size: 0.95rem !important;
    gap: 12px;
  }

  .services-bar a,
  .dropdown-button {
    font-size: 0.95rem !important;
    padding: 6px 0 !important;
  }
}

@media (max-width: 630px) {
  .contact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px; /* réduit l'espacement vertical et horizontal */
  }

  .contact-bar .phone {
    font-size: 0.95em;
    gap: 6px;
  }

  .contact-bar > div:last-child {
    margin-left: 0;
    padding-right: 0;
    align-self: stretch;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .contact-bar span,
  .contact-bar .numtel {
    font-size: 0.85em;
  }

  .btn-yellow {
    padding: 8px 12px !important;
    font-size: 0.85em !important;
  }
}

@media (max-width: 630px) {

  .logo img {
    width: 180px !important; /* taille plus petite du logo */
  }

  .bar {
    width: 20px;
    height: 2px;
    margin: 3px 0;
  }
}

/* === Bouton “Contactez-nous” du header (outline + un peu plus grand) === */
.btn-header {
  background-color: #fac619;      /* fond transparent */
  color:            #351404;          /* texte sombre */
  border:           2px solid #351404;/* contour visible */
  border-radius:    20px;
  padding:          12px 22px;         /* agrandi */
  font-size:        1rem;             /* texte légèrement plus gros */
  font-weight:      bold;
  text-decoration:  none;
  display:          inline-block;
  line-height:      1.2;
  transition:       background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-header:hover {
        background-color: #e0b017;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}