/* ==========================================================================
    Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom-color: #e0e0e0;
}

.header-container {
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Navigation Gauche */
.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-left ul {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.nav-left ul li {
    margin: 0;
}

.nav-left ul li a {
    font-family: 'Agrandir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 100%;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-left ul li a:hover {
    opacity: 0.6;
}

.nav-left ul li.current-menu-item a,
.nav-left ul li.current_page_item a,
.nav-left ul li.current-menu-ancestor a,
.nav-left ul li.current_page_ancestor a {
    font-weight: 700;
}

/* Logo Central */
.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.site-title {
    font-family: 'Agrandir', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

/* Navigation Droite */
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

.nav-right ul {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.nav-right ul li {
    margin: 0;
}

.nav-right ul li a {
    font-family: 'Agrandir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 100%;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-right ul li a:hover {
    opacity: 0.6;
}

.nav-right ul li.current-menu-item a,
.nav-right ul li.current_page_item a,
.nav-right ul li.current-menu-ancestor a,
.nav-right ul li.current_page_ancestor a {
    font-weight: 700;
}

/* Instagram Icon */
.social-link {
    display: flex;
    align-items: center;
    color: #000;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.6;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Menu Mobile Burger
   ========================================================================== */

/* Bouton burger - caché par défaut sur desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.mobile-menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle .burger-icon {
    opacity: 1;
}

.mobile-menu-toggle .close-icon {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-icon {
    opacity: 0;
}

.mobile-menu-toggle.active .close-icon {
    opacity: 1;
}

/* Menu Mobile Overlay - Plein écran */
.mobile-menu-overlay {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: #000;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Mobile */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px 80px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-menu-list li {
    margin: 0;
}

.mobile-menu-list li a {
    font-family: 'Agrandir', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 100%;
    letter-spacing: 0;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-list li a:hover {
    opacity: 0.6;
}

.mobile-menu-list li.current-menu-item a {
    font-weight: 700;
}

/* Dropdown Artistes Mobile */
.mobile-menu-list li.menu-item-has-children {
    position: relative;
}

.mobile-menu-list li.menu-item-has-children > a {
    padding: 15px 40px 15px 55px;
    display: inline-block;
    position: relative;
}

.mobile-menu-list li.menu-item-has-children > a::after {
    content: '▲';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-menu-list li.menu-item-has-children.dropdown-closed > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Sous-menu Artistes */
.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}

.mobile-menu-list li.menu-item-has-children.dropdown-open .sub-menu {
    max-height: 400px;
    overflow-y: auto;
}

.mobile-menu-list .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.mobile-menu-list .sub-menu li a {
    color: #000;
    font-size: 14px;
    padding: 12px 20px;
    display: block;
    text-transform: uppercase;
}

.mobile-menu-list .sub-menu li a:hover {
    background-color: #f5f5f5;
}

/* Instagram Icon Mobile */
.mobile-menu-social {
    margin-top: 60px;
}

.instagram-link-mobile {
    display: flex;
    align-items: center;
    color: #fff;
    transition: opacity 0.3s ease;
}

.instagram-link-mobile:hover {
    opacity: 0.6;
}

.instagram-link-mobile svg {
    width: 32px;
    height: 32px;
}

/* Responsive - Afficher le menu burger sur mobile */
@media (max-width: 768px) {
    /* Empêcher le scroll horizontal */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Cacher les menus desktop */
    .nav-desktop {
        display: none !important;
    }

    /* Afficher le bouton burger */
    .mobile-menu-toggle {
        display: block;
    }

    /* Ajuster le header mobile */
    .site-header {
        position: fixed;
        z-index: 1002;
    }

    .header-container {
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100vw;
    }

    /* Ajuster le logo sur mobile */
    .site-branding {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .custom-logo {
        max-height: 40px;
    }
}
