/* =========================================
   2. LAYOUT (HEADER, FOOTER, LOADER)
   ========================================= */

/* --- HEADER --- */
.site-header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000;
    padding: 15px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-logo-container { 
    width: 110px; 
    color: #fff; 
}

/* Force la couleur d'accentuation sur les éléments du logo */
.logo-dot, .cls-1 { 
    fill: var(--accent) !important; 
}

.nav-links { 
    display: flex; 
    gap: 25px; 
}

.nav-links a { 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover { 
    color: var(--accent); 
}

/* =========================================
   LOADER (ANIMATION & RIDEAU)
   ========================================= */

/* 1. Le Conteneur Principal (Le Rideau Noir) */
#site-loader {
    position: fixed;
    inset: 0; /* Prend tout l'écran (top/left/right/bottom: 0) */
    background: #050505;
    z-index: 999999; /* Au-dessus du Header (qui est à 1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animation du rideau qui remonte */
    transition: transform 1.2s cubic-bezier(0.75, 0, 0.25, 1);
    transform-origin: top;
    will-change: transform;
    
    /* Permet l'interaction (clic, scroll) impossible tant qu'il est là */
    pointer-events: auto;
}

/* ÉTAT FINAL : Classe ajoutée par JS pour lever le rideau */
#site-loader.curtain-up {
    transform: translateY(-100%); 
    pointer-events: none; /* On laisse passer les clics pendant la remontée */
}

/* 2. Le Conteneur du SVG */
.loader-content {
    width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Transition pour l'effacement du logo */
    transition: opacity 0.5s ease, transform 0.8s ease;
}

/* Effet Parallaxe : Si le rideau monte, le logo descend un peu */
#site-loader.curtain-up .loader-content {
    opacity: 0;
    transform: translateY(100px); 
}

/* 3. Le SVG lui-même */
#loader-svg-anim {
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Classe utilitaire pour cacher le SVG juste avant que le rideau monte */
#loader-svg-anim.is-hidden {
    opacity: 0;
}

/* 4. L'Animation de Dessin (Self-Drawing) */
/* 4. L'Animation de Dessin (Version Rapide - 1.8s Total) */
/* 4. L'Animation de Dessin (Version 2.5s - Plus lente et fluide) */
.svg-base, .svg-accent {
    fill-opacity: 0;
    stroke-width: 2px;
    stroke-linejoin: round;
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    
    /* On ralentit le dessin : 2s de tracé (au lieu de 1.4s) */
    animation: 
        drawLines 2s cubic-bezier(0.5, 0, 0.3, 1) forwards, 
        fillShape 0.8s ease forwards 1.8s; /* Le remplissage arrive doucement à la fin */
}

.svg-accent { 
    stroke: #E30613; 
    fill: #E30613; 
    /* Petit décalage pour le style */
    animation-delay: 0.2s, 2s; 
}

.svg-base { 
    stroke: #ffffff; 
    fill: #ffffff; 
}

/* --- KEYFRAMES --- */
@keyframes drawLines {
    to { stroke-dashoffset: 0; }
}

@keyframes fillShape {
    to { fill-opacity: 1; stroke-width: 0; }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: #000;
    position: relative;
    padding: 80px 0 30px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.relative-content {
    position: relative;
    z-index: 2;
}

/* Barre Principale */
.footer-main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
}

.footer-logo-link svg {
    width: 140px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover svg {
    opacity: 0.7;
}

/* Menu Footer */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent);
}

/* Bouton Instagram */
.insta-btn-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff; 
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    transition: 0.3s;
}

.insta-btn-mini:hover {
    background: var(--accent); 
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
}

/* Barre Légale (Bas) */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #555;
}

.legal-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover { 
    color: var(--accent); 
}

.sep { 
    margin: 0 10px; 
    color: #333; 
}

/* Texte Géant en Arrière-plan */
.footer-big-text {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-h); /* Assurez-vous que cette variable est définie ailleurs */
    font-weight: 900;
    font-size: 14vw; 
    color: #080808;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
    .footer-main-bar {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header { 
        flex-direction: column; 
        gap: 15px; 
        padding: 15px 10px; 
        text-align: center; 
    }
    .site-footer { 
        padding-bottom: 30px; 
    }
}

/* =========================================
   FIX LIGHTBOX
   ========================================= */
.pswp__img, .lg-item, .glightbox-container img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.pswp__prev, .lg-prev {
    display: none !important;
}