/* ==========================================================================
   HEADER COMPLET - Menu mobile top-down
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(15, 24, 41, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

.site-header .container {
    max-width: 100%;
}

.container-header {
    max-width: 100%;
    padding: 0 100px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 76px;
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.site-logo {
    flex-shrink: 0;
    z-index: 10000;
}

.logo-link {
    display: block;
}

.logo-img {
    height: auto;
    width: 200px;
    display: block;
}

/* 1440px */
@media (max-width: 2200px) {
    .container-header {
        max-width: 100%;
        padding: 0 30px;
    }

    .logo-img {
        height: auto;
        width: 120px;
        display: block;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        min-height: 60px;
    }
}

/* ==========================================================================
   NAVIGATION DESKTOP
   ========================================================================== */
.desktop-nav {
    display: block;
    flex: 1;
    display: flex;
    justify-content: right;
}

.desktop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.desktop-menu li {
    position: relative;
}

.desktop-menu a {
    color: var(--dark);
    font-family: var(--font-buttons);
    font-weight: 600;
    font-size: var(--header-menu-size);
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.75rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    transition: none;
}

.desktop-menu a::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/10/arrow-blue.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: relative;
    top:-3px;
}

.desktop-menu a:hover {
    color: var(--primary);
    text-decoration: none;
}

.desktop-menu a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.desktop-menu .current-menu-item a,
.desktop-menu .current_page_item a {
    color: var(--primary);
}

.desktop-menu .current-menu-item a::after,
.desktop-menu .current_page_item a::after {
    opacity: 1;
    transform: translateY(0);
}

/* Sous-menus desktop */
.desktop-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(15, 24, 41, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    list-style: none;
    margin: 0;
}

.desktop-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu .sub-menu a {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    color: var(--dark);
}

.desktop-menu .sub-menu a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.desktop-menu .sub-menu a::after {
    display: none;
}

/* ==========================================================================
   BURGER MENU
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10000;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--dark);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--dark);
}

/* ==========================================================================
   MOBILE MENU OVERLAY - OUVERTURE TOP-DOWN
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.5s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   NAVIGATION MOBILE - Style selon capture
   ========================================================================== */
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.mobile-menu > li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu > li:last-child {
    border-bottom: none;
}

.mobile-menu > li > a {
    color: var(--white);
    font-family: var(--font-buttons);
    font-weight: 600;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
}

/* Flèche pour les liens du menu mobile */
.mobile-menu > li > a::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.086' height='20.751' viewBox='0 0 20.086 20.751'%3E%3Cg transform='translate(15603.711 17184.551)'%3E%3Cpath d='M0,0,6.306,6.306,0,12.611' transform='translate(-15599.251 -17177.842) rotate(-45)' fill='none' stroke='%23FFFFFF' stroke-miterlimit='10' stroke-width='3'/%3E%3Cline x1='12.168' y2='12.857' transform='translate(-15602.621 -17177.688)' fill='none' stroke='%23FFFFFF' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(0deg);
    transition: all 0.4s ease;
}

.mobile-menu > li > a:hover,
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a {
    color: var(--coral);
}

.mobile-menu > li > a:hover::after,
.mobile-menu .current-menu-item > a::after,
.mobile-menu .current_page_item > a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.086' height='20.751' viewBox='0 0 20.086 20.751'%3E%3Cg transform='translate(15603.711 17184.551)'%3E%3Cpath d='M0,0,6.306,6.306,0,12.611' transform='translate(-15599.251 -17177.842) rotate(-45)' fill='none' stroke='%23FF7979' stroke-miterlimit='10' stroke-width='3'/%3E%3Cline x1='12.168' y2='12.857' transform='translate(-15602.621 -17177.688)' fill='none' stroke='%23FF7979' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(45deg);
}

/* Sous-menus mobile - cachés pour cette version */
.mobile-menu .sub-menu {
    display: none;
}

/* ==========================================================================
   FOOTER DU MENU MOBILE - Réseaux et adresse
   ========================================================================== */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap:0;
    margin-bottom: 2rem;
}

.mobile-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition-fast);
}

.mobile-menu-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition-fast);
}

.mobile-menu-social a:hover img {
    opacity: 0.7;
    transform: translateY(-2px);
}

.mobile-menu-address {
    color: var(--white);
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
}

.mobile-menu-address p {
    margin: 0;
    padding: 0;
}

/* Bouton close - retiré car menu se ferme avec le burger */
.mobile-menu-close,
.mobile-menu-logo {
    display: none;
}

/* ==========================================================================
   HEADER SPACER
   ========================================================================== */


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: auto;
        width: 120px;
    }

    .header-content {
        padding: 0.75rem 0;
        min-height: 60px;
    }


    .mobile-menu > li > a {
        font-size: 35px;
        padding: 1.2rem 0;
    }

    .mobile-menu > li > a::after {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: auto;
        width: 130px;
    }

    .header-content {
        padding: 0;
        min-height: 55px;
    }

    .mobile-menu > li > a {
        font-size: 30px;
        padding: 1rem 0;
    }

    .mobile-menu > li > a::after {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-container {
        padding: 100px 1.5rem 2rem;
    }

    .mobile-menu-address {
        font-size: 14px;
    }

    .container-header {
        padding: 0 25px;
    }
}

/* ==========================================================================
   ANIMATIONS ET EFFETS
   ========================================================================== */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(15, 24, 41, 0.1);
}

/* Animation d'entrée des éléments du menu mobile */
.mobile-menu-overlay.active .mobile-menu li {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.mobile-menu-overlay.active .mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu li:nth-child(3) { animation-delay: 0.3s; }

.mobile-menu-overlay.active .mobile-menu-footer {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ANIMATION HIDE/SHOW HEADER AU SCROLL
   À AJOUTER dans header.css après la classe .site-header
   ========================================================================== */

/* Transition fluide pour le header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(15, 24, 41, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.4s ease, all 0.3s ease;
    transform: translateY(0);
}

/* Header caché vers le haut */
.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Assure que le header reste visible quand le menu mobile est ouvert */
.mobile-menu-toggle.active ~ .site-header,
.site-header:has(.mobile-menu-toggle.active) {
    transform: translateY(0) !important;
}