/* ============================================
   HEADER & NAVIGATION - STYLES
   ============================================ */

/* TOP BAR */
.top-bar {
    background: var(--navy);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--gold);
}

/* HEADER */
header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

.btn-login {
    background: var(--gold);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-login:hover {
    background: #b89650;
    color: white;
}

/* BURGER MENU */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.burger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* Overlay pour le menu mobile */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ============================================
   RESPONSIVE HEADER - MOBILE
   ============================================ */

@media (max-width: 968px) {
    /* Top bar mobile */
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-bar-content > div:first-child span {
        display: block;
        margin: 0.25rem 0;
    }

    .top-bar a {
        margin-left: 0;
    }

    /* Navigation mobile avec burger */
    .burger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        gap: 1.5rem;
        align-items: flex-start;
        overflow-y: auto;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-login {
        width: 100%;
        text-align: center;
        display: block;
        padding: 12px 20px;
    }
}
