/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Header principal */
header {
    background-color: var(--color-brand-dark);
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 65px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Menu classique (desktop) */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    color: var(--color-brand-cream);
    transform: translateY(-2px);
}

/* ============================================
   BURGER ICON (Mobile)
   ============================================ */

.burger-icon {
    display: none; /* Masqué par défaut (desktop) */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-icon span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation croix lorsque le menu est ouvert */
.burger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MENU MOBILE PLEIN ÉCRAN
   ============================================ */

.mobile-menu {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-brand-dark);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

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

.mobile-menu ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.mobile-menu ul li a:hover {
    color: var(--color-brand-cream);
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE : AFFICHAGE MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Masquer le menu classique desktop */
    nav ul {
        display: none;
    }

    /* Afficher l'icône burger */
    .burger-icon {
        display: flex;
    }

    /* Logo légèrement plus petit */
    .logo {
        height: 55px;
    }

    /* Réduire le padding du header */
    header {
        padding: 1rem 1.5rem;
    }
}

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

    .mobile-menu ul li a {
        font-size: 1.5rem;
    }
}
