/* assets/css/responsive.css */

/* Tablette et Mobile (< 992px) */
@media (max-width: 992px) {
    
    /* On cache la nav classique */
    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: -100%; /* Caché hors écran à droite */
        width: 100%; /* Ou 80% selon préférence */
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        right: 0; /* On fait glisser le menu */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    /* On affiche le burger */
    .burger-menu {
        display: flex;
    }

    /* Animation Burger en Croix quand actif */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}