/* --- CONFIGURATION GÉNÉRALE --- */
:root {
    --bg-color: #000000; /* Noir pur pour fusionner avec le logo */
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --gray: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* --- LOADER --- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-text {
    font-size: 1.5rem;
    letter-spacing: 5px;
    animation: pulse 2s infinite;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo-header img {
    height: 35px;
    width: auto;
}

.menu-link {
    position: relative;
    display: inline-block;
    height: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-link-inner {
    display: block;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-link span {
    display: block;
    height: 20px;
    line-height: 20px;
}

.menu-link:hover .menu-link-inner {
    transform: translateY(-20px);
}

/* --- HERO SECTION (LOGO + TITRE) --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    background-color: var(--bg-color);
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-logo {
    width: 450px; /* Taille imposante pour ton logo */
    height: auto;
    margin-bottom: -15px; /* Rapproche le logo du titre */
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 12px;
    font-weight: 300;
}

.hero p {
    color: var(--gray);
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-top: 10px;
}

/* --- FLÈCHE (SCROLL INDICATOR) DESCENDUE --- */
.scroll-indicator {
    position: absolute;
    bottom: 15px; /* Descendue au maximum pour être proche du bord */
    width: 1px;
    height: 45px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollLine 2s infinite;
}

/* --- FILTRES --- */
.filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem 0;
}

.filter-btn {
    background: none; border: none;
    color: var(--gray);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-btn.active { color: var(--text-color); }

.filter-select {
    background-color: transparent;
    color: var(--gray);
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* --- GRID & CARTES --- */
.gallery-section { padding: 0 5% 4rem 5%; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.card img, .card video {
    width: 100%; height: 100%; object-fit: cover;
}

.hidden { display: none; }

/* --- LIGHTBOX (VISIONNEUSE) CENTRÉE --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    max-height: 85vh;
    max-width: 85vw;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff; font-size: 3rem;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 4rem;
    cursor: pointer; padding: 20px;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* --- ANIMATIONS --- */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* --- RESPONSIVE --- */
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-logo { width: 280px; }
    .hero h1 { font-size: 1.8rem; letter-spacing: 5px; }
    
    /* Réduction des marges sur mobile pour donner plus de place aux images */
    .gallery-section { padding: 0 2% 4rem 2%; } 

    /* Passage en mode Galerie (2 colonnes) */
    .grid { 
        grid-template-columns: repeat(2, 1fr); /* Crée 2 colonnes de taille égale */
        gap: 8px; /* Réduit l'espace entre les photos pour un effet galerie serrée */
    }

    /* Optionnel : réduire un peu la taille du texte sous les cartes pour que ça rentre bien */
    .card-info {
        font-size: 0.75rem;
        padding-top: 5px;
    }
}