/* ===== BURGER MENU & DROPDOWN MENU ===== */

/* Bouton Burger */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
    grid-column: 1;
    justify-self: start;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--gdf-color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation burger quand menu ouvert */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Menu Dropdown - Bandeau largeur complète */
.fullscreen-menu {
    position: fixed;
    /*top: 90px; /* Hauteur de la nav */
    
    left: 0;
    width: 100vw;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.fullscreen-menu.active {
    max-height: 430px;
    padding: 25px 0;
    padding-top: 120px !important;
}
nav.scrolled ~ .fullscreen-menu.active {
padding-top: 95px !important;
}
.fullscreen-menu-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Colonnes du menu */
.menu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.menu-column h3 {
    font-family: var(--gdf-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gdf-color-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-column li {
    margin-bottom: 0.8rem;
}

.menu-column a {
    color: var(--gdf-color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.menu-column a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gdf-color-secondary);
    transition: width 0.3s ease;
}

.menu-column a:hover {
    color: var(--gdf-color-secondary);
    transform: translateX(3px);
}

.menu-column a:hover::after {
    width: 100%;
}

/* Navigation avec scroll */
nav.scrolled ~ .fullscreen-menu {
    /*top: 65px; /* Hauteur de la nav scrollée */
}

/* Responsive Tablet */
@media (max-width: 968px) {
    .fullscreen-menu {
        top: 100px;
    }
    
    nav.scrolled ~ .fullscreen-menu {
        top: 65px;
    }
    
    .fullscreen-menu.active {
        max-height: 500px;
        padding: 2.5rem 0;
    }
    
    .menu-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    
    .menu-column h3 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .menu-column a {
        font-size: 0.9rem;
    }
}
/* gestion depart / resultats*/
#menu-item-659,
#menu-item-660 {
    display: inline-block;
    white-space: nowrap;
}
#menu-item-659::after {
    content: " / ";
    margin: 0 5px;
}
/* Responsive Mobile */
@media (max-width: 640px) {
    /* Burger centré verticalement dans la nav */
    .burger-menu {
        align-self: center;
        margin-left: 0;
    }
    
    .fullscreen-menu {
        top: 80px;
        max-height: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav.scrolled ~ .fullscreen-menu {
        top: 60px;
    }
    
    .fullscreen-menu.active {
        max-height: calc(100vh - 80px) !important;
        padding: 1rem 0 2rem 0;
    }
    
    nav.scrolled ~ .fullscreen-menu.active {
        max-height: calc(100vh - 60px) !important;
    }
    
    .menu-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fullscreen-menu-content {
        padding: 0 1.5rem;
    }
    
    .menu-column h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .menu-column li {
        margin-bottom: 0.7rem;
    }
    
    .menu-column a {
        font-size: 0.95rem;
    }
}
