/* --- 1. IMPORTATIONS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@200;400;600&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-blur: blur(20px);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- 2. RESET & BASE --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Montserrat', sans-serif; 
    margin: 0; padding: 0; 
    overflow-x: hidden;
}

/* --- 3. LE MENU "TUBE" FLOTTANT --- */
header { 
    position: fixed; 
    top: 50px; 
    width: 100%; 
    z-index: 10000;
    display: flex;
    justify-content: center;
    pointer-events: none; 
}

.menu-tube {
    pointer-events: auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.logo-mini {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 20px;
    white-space: nowrap;
}

.menu-tube nav {
    display: flex;
    gap: 20px;
}

.menu-tube nav a {
    text-decoration: none; 
    color: var(--text-color); 
    font-size: 0.65rem; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    font-weight: 400;
    opacity: 0.6;
    transition: var(--transition);
    white-space: nowrap;
}

.menu-tube nav a:hover { opacity: 1; }

/* --- 4. SÉLECTEUR DE LANGUE --- */
.lang-switch a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.lang-switch a:hover { background: #fff; color: #000; }

/* --- 5. HERO SECTION --- */
.hero-container {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 12vw, 7rem);
    letter-spacing: 15px;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
}

/* --- 6. SECTIONS & GRILLES --- */
.section-preview {
    padding: 100px 8%;
    background: #000;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.home-gallery-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.artwork {
    position: relative;
    overflow: hidden;
    background: #111;
}

.artwork img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.artwork:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.artwork-info {
    position: absolute;
    bottom: 0; width: 100%; padding: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: var(--transition);
}

.artwork:hover .artwork-info { opacity: 1; }

/* --- 7. FOOTER & NEWSLETTER --- */
footer {
    background: #050505;
    padding: 80px 8% 40px 8%;
    border-top: 1px solid #111;
}

.newsletter-box {
    max-width: 500px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.newsletter-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    padding: 12px;
    width: 100%;
    max-width: 300px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.social-icons a { color: #555; font-size: 1.1rem; transition: 0.3s; }
.social-icons a:hover { color: #fff; }

/* --- 8. OPTIMISATION MOBILE (MEDIA QUERIES) --- */

@media (max-width: 1024px) {
    .menu-tube { gap: 15px; padding: 10px 20px; }
    .logo-mini { padding-right: 15px; margin-right: 0; }
}

@media (max-width: 768px) {
    header { top: 20px; }
    
    .menu-tube {
        width: 90%;
        padding: 8px 15px;
        gap: 10px;
        justify-content: space-between;
    }

    .logo-mini { 
        border-right: none; 
        font-size: 0.8rem; 
        padding-right: 0;
    }

    /* Le menu défile horizontalement sur mobile pour rester accessible */
    .menu-tube nav {
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 15px;
        scrollbar-width: none; /* Cache la barre sur Firefox */
    }
    .menu-tube nav::-webkit-scrollbar { display: none; } /* Cache la barre sur Chrome */

    .hero-title { letter-spacing: 5px; }

    .home-gallery-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }

    .section-preview { padding: 60px 5%; }
    
    .section-preview[style*="display:flex"] {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .newsletter-input { width: 100%; max-width: none; }
    
    .artwork img { height: 450px; } /* Plus grand pour mieux voir les détails sur mobile */
}

@media (max-width: 480px) {
    .logo-mini { display: none; } /* On cache le logo texte sur très petit écran pour laisser place au menu */
    .menu-tube { justify-content: center; }
}