/* ============================================================
   EASY QUALITY — Nouvelle présentation du menu (navigation)
   ------------------------------------------------------------
   CE FICHIER NE CHANGE AUCUN TEXTE NI AUCUN LIEN DU MENU.
   Il ne fait qu'améliorer la présentation :
   - bandeau blanc fixe, ombre douce, soulignement animé
   - « Nos Services » en carte flottante avec icônes
   - bouton Contact redessiné (le <font color="white"> est retiré :
     la couleur blanche est désormais gérée ici, en CSS)
   - menu hamburger sur mobile / tablette (corrige le menu
     invisible entre 769 px et 992 px dans l'ancienne version)

   INSTALLATION (au choix) :
   - le fichier est déjà référencé dans header-nouveau.php par :
     <link rel="stylesheet" href="menu-styles.css">  (APRÈS style.css)
   - ou collez l'intégralité de ce fichier à la TOUTE FIN de style.css
   ============================================================ */

/* ---------- Bandeau (fond blanc pur) ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 110px; /* inchangé : vos pages réservent déjà 110 px */
    background-color: #ffffff !important; /* fond blanc garanti */
    background-image: none !important;
    box-shadow: 0 1px 0 rgba(27, 94, 32, 0.08),
                0 10px 30px rgba(27, 94, 32, 0.07);
}

/* neutralise tout ancien pseudo-élément du bandeau */
header::before,
header::after { content: none !important; }

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 84px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.03); }

/* ---------- Liens principaux ---------- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
}

.nav-links > a,
.dropbtn {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #1f2d24;
    padding: 10px 12px;
    transition: color 0.25s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropbtn:hover,
.dropdown.open .dropbtn {
    color: var(--accent-color, #13a581);
}

/* soulignement animé (liens du premier niveau uniquement) */
.nav-links > a:not(.cta-button)::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--accent-color, #13a581);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.nav-links > a:not(.cta-button):hover::after,
.nav-links > a.active:not(.cta-button)::after {
    transform: scaleX(1);
}

/* ---------- Menu déroulant « Nos Services » ---------- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 7px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* chevron (même technique que votre feuille actuelle) */
.dropbtn::after {
    content: '\f107';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-top: 1px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after,
.dropdown.open .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 10px);
    min-width: 380px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(27, 94, 32, 0.10);   /* remplace l'ancien liseré supérieur */
    border-top: 1px solid rgba(27, 94, 32, 0.10);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(27, 94, 32, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

/* petite flèche au-dessus de la carte */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-left: 1px solid rgba(27, 94, 32, 0.10);
    border-top: 1px solid rgba(27, 94, 32, 0.10);
    border-radius: 3px 0 0 0;
    transform: translateX(-50%) rotate(45deg);
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border-left: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #23372b;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* icônes en médaillon */
.dropdown-content a i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background-color: var(--secondary-color, #E8F5E9);
    color: var(--primary-color, #1B5E20);
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color, #E8F5E9);
    color: var(--primary-color, #1B5E20);
    border-left: none;
    padding-left: 14px;
}

.dropdown-content a:hover i {
    background-color: var(--primary-color, #1B5E20);
    color: var(--white, #ffffff);
}

.dropdown-content a.active {
    background-color: var(--secondary-color, #E8F5E9);
    color: var(--primary-color, #1B5E20);
}

/* ---------- Bouton Contact ---------- */
.nav-links .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 10px;
    padding: 12px 26px;
    border-radius: 999px;
    color: var(--white, #ffffff);          /* remplace le <font color="white"> */
    background-image: linear-gradient(135deg, var(--accent-color, #13a581), var(--primary-color, #1B5E20));
    background-color: var(--primary-color, #1B5E20);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(19, 165, 129, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nav-links .cta-button i {
    font-size: 0.9em;
}

.nav-links .cta-button:hover {
    color: var(--white, #ffffff);
    background-color: var(--primary-color, #1B5E20);
    background-image: linear-gradient(135deg, var(--accent-color, #13a581), var(--primary-color, #1B5E20));
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(19, 165, 129, 0.45);
}

.nav-links .cta-button.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55),
                0 8px 20px rgba(19, 165, 129, 0.35);
}

/* VARIANTE BOUTON « CONTOUR » (style plus discret) :
   décommentez le bloc ci-dessous si vous préférez.
.nav-links .cta-button {
    background-image: none;
    background-color: var(--white, #ffffff);
    color: var(--primary-color, #1B5E20);
    border: 2px solid var(--primary-color, #1B5E20);
    box-shadow: none;
}
.nav-links .cta-button:hover {
    background-color: var(--primary-color, #1B5E20);
    color: var(--white, #ffffff);
    transform: none;
}
*/

/* ---------- Bouton hamburger (masqué sur ordinateur) ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}

/* ---------- Petits écrans d'ordinateur ---------- */
@media (max-width: 1180px) and (min-width: 993px) {
    .nav-links > a,
    .dropbtn { padding: 10px 8px; font-size: 0.82rem; }
    .nav-links .cta-button { margin-left: 4px; padding: 11px 18px; }
    .logo img { height: 66px; }
}

/* ---------- Mobile / tablette (<= 992 px) ---------- */
@media (max-width: 992px) {
    header {
        height: 84px;
        position: fixed;
    }
    nav { padding: 0 16px; }
    .logo img { height: 58px; }

    /* burger visible */
    .nav-toggle { display: inline-flex; z-index: 1002; }
    .nav-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        border-radius: 2px;
        background-color: var(--primary-color, #1B5E20);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* panneau plein écran */
    .nav-links {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 16px 20px 40px;
        background-color: #ffffff;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }
    .nav-links.open { transform: none; }

    /* neutralise l'ancien « .nav-links { display:none } » (769-992 px)
       et l'ancien empilement <= 768 px */
    body.nav-open { overflow: hidden; }

    .nav-links > a,
    .dropbtn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    .dropbtn { justify-content: space-between; }

    .nav-links > a:not(.cta-button)::after { display: none; }

    .nav-links > a:hover,
    .nav-links > a.active {
        background-color: var(--secondary-color, #E8F5E9);
        color: var(--primary-color, #1B5E20);
    }

    /* sous-menu en accordéon, déplié au toucher */
    .dropdown { width: 100%; }

    /* (0,2,0) pour battre les règles desktop :hover / .open ci-dessus */
    .dropdown-content,
    .dropdown:hover .dropdown-content,
    .dropdown.open .dropdown-content {
        position: static;
        display: none;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        margin: 2px 0 6px 16px;
        padding: 2px 0 2px 12px;
        background-color: transparent;
        border: none;
        border-left: 2px solid var(--secondary-color, #E8F5E9);
        border-radius: 0;
        box-shadow: none;
    }
    .dropdown-content::before { display: none; }
    .dropdown.open .dropdown-content { display: block; }

    .dropdown-content a { padding: 11px 12px; }
    .dropdown-content a i { flex-basis: 30px; width: 30px; height: 30px; }

    .nav-links .cta-button {
        margin: 12px 0 0;
        justify-content: center;
    }
}

/* Astuce : pour garder un bandeau de 110 px aussi sur mobile,
   remplacez les deux valeurs 84 px de ce bloc par 110 px. */
