:root {
    --color-black: #0f0f10;
    --color-white: #e8e8f0;
    --color-red: #e84e4f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* --- VIDEO --- */
.video-container { position: fixed; inset: 0; z-index: 1; }
#bg-video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); transition: filter 0.5s; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, var(--color-black) 100%); z-index: 2; }
.logo-center-fixed { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; z-index: 3; }
.main-logo-ser { width: 480px; filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.367)); }

/* --- NAVBAR --- */
.navbar-top {
    position: fixed; top: 0; left: 0; right: 0; height: 96px;
    display: flex; align-items: center; z-index: 100;
    background: transparent !important;
}
.nav-inner { width: 100%; display: flex; justify-content: space-between; padding: 0 64px; }
.nav-left { display: flex; align-items: center; gap: 64px; }
.brand { text-decoration: none; color: white; font-size: 1.1rem; text-transform: uppercase; font-weight: 700; }
.tag { opacity: 0.5; font-size: 0.7rem; border: 1px solid white; padding: 1px 5px; border-radius: 4px; margin-left: 5px; font-weight: 400; }
.nav-links a { text-decoration: none; color: white; font-size: 14px; font-weight: 500; margin-right: 40px; opacity: 0.8; transition: 0.3s; }
.nav-links a:hover { opacity: 0.5; }
.btn-launcher-zenkai { background: rgba(232, 78, 79, 0.45); border: 4px solid rgba(167, 56, 57, 0.6); color: white; padding: 8px 24px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-launcher-zenkai:hover { background: rgba(232, 78, 79, 0.7); }

/* --- SCROLL SNAP --- */
.snap-container { height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; position: relative; z-index: 50; }
.snap-container::-webkit-scrollbar { display: none; }
.snap-section { height: 100vh; width: 100%; scroll-snap-align: start; }

/* --- FOOTER --- */
.footer-trigger { display: flex; align-items: flex-end; }
.footer-box {
    width: 100%;
    background: var(--color-black);
    padding: 130px 64px 80px 64px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; }

.f-left strong { font-size: 1.5rem; letter-spacing: -1px; }
.copyright { font-size: 11px; color: #555; margin-top: 10px; }

/* --- NOUVEAU : GRILLE TECH SUR LA VIDÉO --- */
.tech-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2; /* Juste au-dessus de la vidéo, sous le dégradé noir */
    opacity: 0.25; /* Très subtil, ajuste pour plus/moins de visibilité */
    pointer-events: none; /* Laisse passer le clic/scroll */
    
    /* Création de la grille en CSS pur */
    background-image: 
        /* Lignes horizontales */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px, /* Espace entre les lignes */
            rgba(255, 255, 255, 0.015) 98px, /* Couleur et finesse de la ligne */
            rgba(255, 255, 255, 0.015) 100px
        ),
        /* Lignes verticales */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.015) 98px,
            rgba(255, 255, 255, 0.015) 100px
        );

        background-size: 100% 100%; /* Assure que la grille couvre tout */
}

/* Animation optionnelle pour donner de la vie à la grille */
@keyframes gridScan {
    from { background-position: 0 0; }
    to { background-position: 0 100px; } /* Fait descendre doucement la grille */
}

/* EFFET D'ILLUMINATION (Glow) */
.f-mid .glow-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-right: 30px;
    transition: all 0.3s ease;
}
.f-mid .glow-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.f-right { text-align: right; }
.social-label { display: block; font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; margin-bottom: 15px; }
.social-icons { display: flex; gap: 20px; justify-content: flex-end; }

.social-link {
    color: var(--color-white);
    opacity: 0.4;
    transition: all 0.3s ease;
}
.social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

/* --- MODALE DE TÉLÉCHARGEMENT --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    touch-action: none;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #121213;
    padding: 38px;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-logo { width: 110px; margin-bottom: 24px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }

.modal-box h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; }
.modal-box p { font-size: 0.95rem; color: #888; line-height: 1.6; margin-bottom: 32px; }

.btn-close-modal {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-modal:hover { background: rgba(255, 255, 255, 0.1); }