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

body { 
    background-color: #000; 
    overflow: hidden; 
    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; 
}

.site-title {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.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; 
}

.site-title h2 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1rem; 
    font-weight: 300; 
    letter-spacing: 12px; 
    text-transform: uppercase; 
}

/* --- Menu des Albums (En bas au-dessus des points) --- */
.album-menu {
    position: absolute;
    bottom: 80px; /* Ancré en bas, à 80px du bord inférieur */
    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;
}

/* --- Bouton Contact --- */
.btn-contact { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    z-index: 20; 
    background: none; 
    border: 1px solid #fff; 
    color: #fff; 
    padding: 10px 20px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-family: 'Montserrat', sans-serif; 
}

.btn-contact:hover { 
    background: #fff; 
    color: #000; 
}

/* --- Modale Contact --- */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(0,0,0,0.8); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    transition: opacity 0.3s; 
}

.modal.show { 
    display: flex; 
    opacity: 1; 
}

.modal-content { 
    background-color: #111; 
    padding: 40px; 
    width: 90%; 
    max-width: 500px; 
    border: 1px solid #333; 
    position: relative; 
    color: #fff; 
}

.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 28px; 
    cursor: pointer; 
    transition: 0.3s; 
}

.close-modal:hover { color: gray; }

.modal-content h2 { 
    font-family: 'Playfair Display', serif; 
    margin-bottom: 20px; 
    font-size: 2rem; 
}

.modal-content input, .modal-content textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    background: #222; 
    border: 1px solid #444; 
    color: #fff; 
    font-family: 'Montserrat', sans-serif; 
}

.modal-content 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; 
}

.modal-content button:hover { background: #ccc; }

.success-msg { color: #4CAF50; margin-bottom: 15px; }
.error-msg { color: #f44336; margin-bottom: 15px; }

/* --- Slider --- */
.slider-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: #000; 
}

.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; }

.dots-container { 
    position: absolute; 
    bottom: 40px; 
    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); 
}

/* --- 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; }
    
    /* Étagements des éléments en bas sur mobile */
    .btn-contact {
        top: auto;
        bottom: 25px; /* Étage 1 : tout en bas */
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 80%;
        max-width: 300px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        border-radius: 4px;
    }

    .dots-container { 
        bottom: 80px; /* Étage 2 : au-dessus du contact */
    }

    .album-menu {
        bottom: 120px; /* Étage 3 : au-dessus des points */
        gap: 12px;
    }
}