/* ==========================================================================
   VARIABLES ET RESET
   ========================================================================== */
:root {
    --gold: #c5a059;
    --dark-gold: #8f6b1e;
    --deep-black: #0a0a0a;
    --shadow: rgba(0, 0, 0, 0.8);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: 0 5px 20px var(--shadow);
}

.header-inner {
    max-width: 1400px; /* Élargi pour donner plus d'espace aux liens */
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Sécurité pour éviter que logo et nav ne se touchent */
}

/* --- Branding --- */
.site-brand {
    display: flex;
    align-items: center; 
    gap: 15px;
    flex-shrink: 0; /* Empêche le logo de s'écraser */
    text-decoration: none;
}

.brand-main {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem; /* Légèrement réduit pour gagner de la place */
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; 
    line-height: 1.2;
}

.brand-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-gold);
    opacity: 0.8;
}

.site-logo {
    height: 55px; /* Taille plus raisonnable pour laisser de la place au menu */
    width: auto;
    display: block;
}

/* ==========================================================================
   NAVIGATION DESKTOP (CORRECTION DÉBORDEMENT IMAGE)
   ========================================================================== */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1; 
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap; /* CRUCIAL : si pas assez de place, passe à la ligne au lieu de déborder */
    gap: clamp(0.5rem, 1.5vw, 2rem); /* Gère l'espace entre liens automatiquement */
}

.site-nav a {
    font-family: 'Cinzel', serif;
    text-decoration: none;
    color: var(--gold);
    font-size: clamp(0.75rem, 0.9vw, 0.9rem); /* Taille fluide */
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap; 
}

.site-nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.site-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.site-nav a:hover::after { width: 100%; }

/* --- Burger Button --- */
.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2000;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

.header-border-bottom {
    height: 4px;
    background: linear-gradient(90deg, #0a0a0a, var(--dark-gold), #0a0a0a);
    width: 100%;
    opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Point de rupture où le menu devient critique */
@media (max-width: 1250px) {
    .brand-main { font-size: 1.3rem; }
    .site-logo { height: 45px; }
    .nav-links { gap: 0.8rem; }
}

@media (max-width: 1050px) {
    /* On passe au burger plus tôt si les liens sont longs */
    .burger-menu { display: flex; }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px; 
        max-width: 85%; 
        height: 100vh;
        background: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
        border-left: 1px solid var(--dark-gold);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        z-index: 1500;
        overflow-y: auto;
    }

    .site-nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0 15%;
        gap: 0; /* Gap géré par le padding des liens sur mobile */
    }

    .site-nav a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(197, 160, 89, 0.1);
        font-size: 1rem;
        white-space: normal;
    }

    .site-nav a::after { display: none; }

    .burger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

@media (max-width: 480px) {
    .brand-sub { display: none; }
    .header-inner { padding: 1rem; }
    .site-nav { width: 100%; max-width: 100%; }
}