/* ==========================================
   HEADER & NAVIGATION (header.css)
   ========================================== */

/* --- Variables Header --- */
:root {
    --header-bg: #ffffff;
    --base-border-color: #02060f;
    --base-text-color: #1f2937;
    --logo-height: 52px;
    
    --btn-bg: #0c0e0c;
    --btn-text: #ffffff;
    --btn-hover-bg: #f1cb4f;
    --btn-hover-text: #050202;
    
    --banner-overlay-bg: rgba(0, 0, 0, 0.4);
    --banner-title-color: #ffffff;
}

/* --- Structure Header & Nav --- */
header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--base-border-color);
    padding: 1rem 2rem;
}

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

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.logo-img {
    height: var(--logo-height);
    width: auto;
    min-width: 220px;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

/* --- Liens & Boutons Navigation --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.btn, .btn-nav {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn:hover, .btn-nav:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    transform: translateY(-1px);
}

/* --- Bouton Burger (masqué sur desktop) --- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--base-text-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation Croix du Burger */
.burger-btn.open .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-btn.open .burger-bar:nth-child(2) {
    opacity: 0;
}
.burger-btn.open .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Bannière Hero --- */
.banner-container {
    position: relative;
    width: 100%;
    margin: 0 0 2.5rem 0;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: var(--banner-overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-title {
    color: var(--banner-title-color);
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* ==========================================
   RESPONSIVE (Tablettes & Mobiles)
   ========================================== */
@media (max-width: 868px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 38px;
        min-width: auto;
    }

    /* Affichage Burger */
    .burger-btn {
        display: flex;
    }

    /* Menu déroulant Mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        border: 1px solid var(--base-border-color);
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .banner-img {
        height: 150px;
    }

    .banner-title {
        font-size: 1.6rem;
    }
}