/* --- Reset & Base --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: #000; 
    overflow-x: hidden; /* Empêche le défilement horizontal */
    scroll-behavior: smooth; /* Défilement fluide (rideau) */
    font-family: 'Montserrat', sans-serif; 
}

/* --- Loader --- */
#loader { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: #000; 
    z-index: 9999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.8s ease-out; 
}

.spinner { 
    width: 50px; 
    height: 50px; 
    border: 3px solid rgba(255,255,255,0.2); 
    border-radius: 50%; 
    border-top-color: #fff; 
    animation: spin 1s ease-in-out infinite; 
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* --- En-tête global (Titre uniquement) --- */
.main-header {
    position: absolute;
    top: 40px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none; 
    /* Transition pour l'animation de réduction */
    transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-title {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
    transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-title h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 4.5rem; 
    font-weight: 400; 
    letter-spacing: 2px; 
    line-height: 1.1; 
    margin-bottom: 8px; 
    transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-title h2 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1rem; 
    font-weight: 300; 
    letter-spacing: 12px; 
    text-transform: uppercase; 
    transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* L'état "Minimisé" de l'en-tête (déclenché par le Javascript) */
.main-header.minimized {
    top: 30px;
    left: 40px; 
    transform: translateX(0); 
    width: auto;
}

.main-header.minimized .site-title { text-align: left; }
.main-header.minimized .site-title h1 { font-size: 2rem; margin-bottom: 2px; }
.main-header.minimized .site-title h2 { font-size: 0.7rem; letter-spacing: 6px; }

/* --- Slider --- */
.slider-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: #000; 
    z-index: 1; /* Reste en dessous du pied de page */
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    z-index: 1; 
}

.slide.active { opacity: 1; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.protect-img { pointer-events: none; }

/* --- Navigation & Dots --- */
.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    color: rgba(255,255,255,0.2); 
    border: none; 
    cursor: pointer; 
    padding: 20px; 
    font-size: 30px; 
    transition: 0.3s; 
    z-index: 15; 
}

.nav-btn:hover { color: #fff; transform: translateY(-50%) scale(1.1); }
.prev { left: 30px; } 
.next { right: 30px; }

/* Étage 2 : Les points du slider */
.dots-container { 
    position: absolute; 
    bottom: 70px; 
    width: 100%; 
    text-align: center; 
    z-index: 15; 
}

.dot { 
    display: inline-block; 
    width: 8px; 
    height: 8px; 
    margin: 0 10px; 
    background-color: rgba(255,255,255,0.3); 
    border-radius: 50%; 
    cursor: pointer; 
    transition: 0.3s; 
}

.dot.active { background-color: #fff; transform: scale(1.5); }

/* --- Menu des Albums --- */
/* Étage 3 : Le menu, juste au dessus des points */
.album-menu {
    position: absolute;
    bottom: 110px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    pointer-events: auto; 
}

.album-menu a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    padding-bottom: 5px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
}

.album-menu a:hover, .album-menu a.actif { color: #fff; border-bottom: 1px solid #fff; }

/* --- Indicateur de Scroll --- */
/* Étage 1 : L'indicateur, tout en bas */
.scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    animation: bounce 2s 2; /* 2 rebonds uniquement */
}

.scroll-indicator:hover { color: #fff; }

.scroll-indicator span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.chevron {
    width: 15px;
    height: 15px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* --- Pied de page (Contact et Mentions Légales) --- */
.footer-section {
    position: relative;
    margin-top: 100vh; /* Pousse ce bloc en dessous de l'écran initial */
    z-index: 30; /* Passe au-dessus du slider */
    background-color: #0a0a0a; 
    color: #fff;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.8);
}

.contact-block { width: 100%; max-width: 500px; }
.contact-block h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 30px; text-align: center; }
.contact-block input, .contact-block textarea { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 15px; 
    background: #1a1a1a; 
    border: 1px solid #333; 
    color: #fff; 
    font-family: 'Montserrat', sans-serif; 
}

.contact-block button { 
    width: 100%; 
    padding: 15px; 
    background: #fff; 
    color: #000; 
    border: none; 
    cursor: pointer; 
    font-family: 'Montserrat', sans-serif; 
    text-transform: uppercase; 
    font-weight: bold; 
    letter-spacing: 1px; 
    transition: 0.3s; 
}

.contact-block button:hover { background: #ccc; }

.legal-block { 
    width: 100%; 
    max-width: 800px; 
    border-top: 1px solid #333; 
    padding-top: 40px; 
    text-align: center; 
}

.legal-block h3 { 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    margin-bottom: 20px; 
    color: #888; 
}

.legal-block p { 
    font-size: 0.85rem; 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 15px; 
}

/* --- Responsive (Mobiles & Tablettes) --- */
@media (max-width: 768px) {
    .site-title h1 { font-size: 2.5rem; }
    .site-title h2 { font-size: 0.8rem; letter-spacing: 6px; }
    
    .nav-btn { display: none; } /* On cache les flèches du slider sur mobile */

    /* Adaptation du titre minimisé sur les petits écrans */
    .main-header.minimized {
        top: 20px;
        left: 20px;
    }
    .main-header.minimized .site-title h1 { font-size: 1.5rem; }
    .main-header.minimized .site-title h2 { font-size: 0.5rem; letter-spacing: 4px; }

    /* On resserre légèrement l'empilement du bas pour les petits écrans */
    .dots-container { bottom: 65px; }
    .album-menu { bottom: 95px; gap: 12px; }
}