/* 1. RESET & BASE */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #4FE0D4;
    font-family: Helvetica, Arial, sans-serif;
}

/* Scroll autorisé pour la galerie, bloqué pour l'accueil */
body:not(.gallery-page) { overflow: hidden; }
.gallery-page { overflow-y: auto; }

/* 2. ÉLÉMENTS FIXES (CANVAS ET NAVIGATION) */
#water {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 5; /* Bien plus bas que les menus (100) */
    pointer-events: none; /* TRÈS IMPORTANT : laisse les clics traverser vers les menus */
}


nav a, .back-btn {
    text-decoration: none;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav a:hover, .back-btn:hover {
    opacity: 0.5;
    letter-spacing: 5px;
    color: #000;
}

/* Navigation Haut Droite (Fixe sur toutes les pages) */
/* Navigation Haut Gauche */
.nav-top-left {
    position: fixed;
    top: 60px; /* On descend de 40px à 60px pour qu'ils "respirent" */
    left: 60px;
    z-index: 100; /* On monte le z-index très haut pour être sûr que le clic fonctionne */
    display: flex;
    gap: 40px;
    pointer-events: auto; /* Force la réactivité au clic */
}

/* Navigation Haut Droite */
.nav-top-right {
    position: fixed;
    top: 60px; /* Même hauteur que la gauche */
    right: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 40px;
    pointer-events: auto;
}


.filter-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.filter-btn {
    background: none; border: none; padding: 0;
    color: rgba(0,0,0,0.4);
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    cursor: pointer; transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    color: #000;
    letter-spacing: 4px;
}

/* 4. GRILLE DE LA GALERIE (SANS CASE BLANCHE) */
.grid-container {
    margin-top: 100px;
    margin-left: 180px; /* Laisse place au menu side-nav */
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    z-index: 10;
    position: relative;
}

.grid-item {
    position: relative;
    cursor: pointer;
    background: #000;
    overflow: hidden;
}

.grid-item img {
    width: 100%; height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.grid-item:hover img {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Titre en overlay au survol */
.item-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.grid-item:hover .item-overlay { opacity: 1; }

.item-title {
    color: white;
    font-family: 'Impact', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
}

/* 5. FOOTER & LIGHTBOX */
.footer-bottom {
    position: fixed;
    bottom: 30px; left: 60px; right: 60px;
    z-index: 30; display: flex;
    justify-content: space-between; align-items: center;
    pointer-events: none;
}

.footer-left, .footer-right a {
    font-size: 10px; color: rgba(0, 0, 0, 0.4);
    letter-spacing: 1px; text-decoration: none;
}

.footer-right { pointer-events: auto; display: flex; gap: 20px; }

.lightbox {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000; justify-content: center; align-items: center;
}

.lightbox-content {
    display: flex; max-width: 90%; max-height: 80%;
    background: white;
}

.lightbox-content img { max-width: 70%; object-fit: contain; }
.lightbox-text { padding: 40px; color: black; max-width: 300px; }

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.social-icon { font-size: 14px; font-weight: bold; }

/* 4. YEUX ALIEN - VERSION 3D GLASS */
.alien-eyes {
    position: fixed; 
    bottom: -35px; /* Légèrement descendu pour l'effet de "pose" sur le bord */
    left: 50%;
    transform: translateX(-50%);
    display: flex; 
    gap: 15px; 
    z-index: 40; 
    pointer-events: none;
}

.eye {
    width: 100px; 
    height: 100px; 
    /* Dégradé radial pour créer le volume de la sphère */
    background: radial-gradient(circle at 35% 35%, #ffffff 20%, #f0f0f0 60%, #d9d9d9 100%);
    border-radius: 50%; 
    position: relative;
    /* Ombre interne (relief) et ombre portée (profondeur sur le fond) */
    box-shadow: 
        inset -5px -10px 20px rgba(0,0,0,0.05),
        0 15px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: blink 6s infinite;
}

.pupil {
    width: 45px; 
    height: 45px; 
    /* Pupille légèrement en dégradé pour la profondeur */
    background: radial-gradient(circle at 30% 30%, #333 0%, #1a1a1a 100%);
    border-radius: 50%; 
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Donne du relief à la pupille */
    will-change: transform;
}

/* Le point de lumière "Glossy" fixe qui donne l'aspect vitreux */
.eye::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25px;
    height: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: rotate(-30deg);
    filter: blur(1px);
    z-index: 2;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.05); } /* Clignement plus fin */
}


.eye {
    /* ... tes autres styles ... */
    animation: blink 6s infinite; /* Cligne toutes les 6 secondes */
    transform-origin: center;
}

.contact-section {
    background-color: #12cbc4; /* Ta couleur de fond */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Impact', sans-serif;
}

.contact-container {
    width: 90%;
    max-width: 500px;
    text-align: center;
    z-index: 10;
}

h1 {
    font-size: 5rem;
    color: #2c2b2b;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

p {
    color: #2c2b2b;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.input-group {
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #2c2b2b;
    color: #2c2b2b;
    font-family: 'Impact', sans-serif;
    font-size: 1.2rem;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

::placeholder { color: rgba(44, 43, 43, 0.6); }

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #2c2b2b;
    color: #12cbc4;
    border: none;
    font-family: 'Impact', sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #ffffff;
    color: #2c2b2b;
    transform: translateY(-3px);
}

/* Style des yeux à récupérer de ton index.html */
.alien-eyes {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}
.eye { width: 60px; height: 60px; background: white; border-radius: 50%; position: relative; overflow: hidden; }
.pupil { width: 30px; height: 30px; background: black; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.discord-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: #5865F2; /* Couleur Discord */
    color: white;
    text-decoration: none;
    padding: 30px 50px;
    border-radius: 20px;
    font-family: 'Impact', sans-serif;
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.4);
    margin: 40px auto 0;
    max-width: fit-content;
}

.discord-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 25px 50px rgba(88, 101, 242, 0.6);
    background: #4752c4;
}

.discord-icon {
    width: 50px;
    height: 50px;
}

.contact-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #4FE0D4; /* Ton bleu turquoise */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* 1. PROTECTION PC : Cache le texte partout par défaut */
.mobile-logo {
    display: none !important;
}

/* 2. CONFIGURATION MOBILE (UNE SEULE FOIS) */
@media (max-width: 768px) {
    
    /* On cache les éléments lourds sur mobile */
    canvas, #canvas-container, .alien-eyes, #water {
        display: none !important;
    }

    /* On affiche le logo UNIQUEMENT sur l'accueil mobile */
    body:not(.gallery-page):not(.contact-page) .mobile-logo {
        display: block !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Impact', sans-serif;
        font-size: 50px;
        color: #2c2b2b;
        letter-spacing: 3px;
        z-index: 1;
        text-align: center;
        width: 100%;
        pointer-events: none;
    }

    /* Menus du haut uniformes */
    .nav-top-left, .nav-top-right { 
        top: 25px !important; 
        gap: 15px !important; 
        z-index: 100 !important; 
    }
    
    .nav-top-left { left: 15px !important; }
    .nav-top-right { right: 15px !important; }
    
    nav a, .back-btn { 
        font-size: 11px !important; 
        letter-spacing: 1px !important;
        white-space: nowrap; 
    }

    /* Le footer fixé en bas */
    .footer-bottom {
        position: fixed !important;
        bottom: 15px !important;
        left: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center;
        z-index: 100;
    }

    .footer-left, .footer-right a { font-size: 8px !important; }

    /* Ajustement page Contact */
    .contact-page .contact-section {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #4FE0D4;
    }

    .contact-container h1 {
        font-size: 55px !important;
        margin-bottom: 10px;
    }

    /* Ajustement page Galerie */
    .gallery-page .grid-container {
        margin-left: 0 !important;
        margin-top: 80px !important;
        padding: 15px !important;
    }
}

canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

