/* --- Variables --- */
:root {
    --gold: #c5a059;
    --dark-gold: #8f6b1e;
    --deep-black: #0a0a0a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Structure Principale --- */
.site-footer {
    background: linear-gradient(to bottom, #0f0f0f, #050505);
    margin-top: 6rem;
    position: relative;
    color: var(--gold);
    border-top: 1px solid rgba(143, 107, 30, 0.15);
}

.footer-ornament-top {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--dark-gold), transparent);
    width: 80%;
    margin: 0 auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligné en haut pour plus de clarté */
    flex-wrap: wrap;
    gap: 3rem;
}

/* --- Branding --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.footer-brand .site-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
    text-transform: uppercase;
}

.footer-brand .brand-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--dark-gold);
    letter-spacing: 2px;
    margin-top: 5px;
}

/* --- Séparateur Central (Étoile) --- */
.footer-center-divider {
    color: var(--gold);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Prend l'espace central sur desktop */
}

.ornament-icon {
    animation: glowPulse 3s infinite ease-in-out;
    text-shadow: 0 0 10px var(--dark-gold);
}

@keyframes glowPulse {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(1); }
}

/* --- Navigation & Sections --- */
.footer-sections {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.footer-links a,
.footer-legal a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--dark-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a i,
.footer-legal a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--gold);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

/* --- Copyright --- */
.footer-bottom {
    background: #000;
    padding: 1.5rem;
    border-top: 1px solid rgba(143, 107, 30, 0.1);
}

.footer-copy {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: rgba(143, 107, 30, 0.5);
    margin: 0;
    letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVE LOGIC
   ========================================================================== */

/* Tablettes : On réduit les espaces et on commence à centrer si besoin */
@media (max-width: 1024px) {
    .footer-inner {
        justify-content: space-around;
        gap: 3rem;
    }
    .footer-sections {
        gap: 2.5rem;
    }
}

/* Tablettes Portrait / Gros Mobiles */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .footer-brand {
        margin-bottom: 1.5rem;
    }

    .footer-center-divider {
        margin: 1rem 0;
        /* On garde l'icône mais on retire l'animation si trop distrayante sur mobile */
    }

    .footer-sections {
        flex-direction: row; /* On garde les deux colonnes côte à côte si possible */
        justify-content: center;
        width: 100%;
        gap: 3rem;
    }

    .footer-links a, .footer-legal a {
        justify-content: flex-start; /* Aligné à gauche dans leur propre colonne */
    }
}

/* Petits Mobiles */
@media (max-width: 500px) {
    .footer-sections {
        flex-direction: column; /* Ici on empile tout verticalement */
        align-items: center;
        gap: 2rem;
    }

    .footer-links a, .footer-legal a {
        justify-content: center;
        padding-left: 0;
    }

    .footer-links a:hover, .footer-legal a:hover {
        padding-left: 0; /* On retire le décalage sur mobile pour éviter les sauts de ligne */
        transform: translateY(-2px);
    }

    .footer-brand .site-brand {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .footer-brand .brand-sub {
        font-size: 0.6rem;
    }
}