/* ==================== 1. VARIABLES & FONTS ==================== */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #888888;
    --dark-gray: #1a1a1a;

    --font-display: 'Primeform', sans-serif;
    --font-second-display: 'Primeform_Light', sans-serif;
    /* 2. UI, Menus, Boutons (Tech/Code) - Google Font */
    --font-ui: 'Space Mono', monospace;
    /* 3. Texte courant, Paragraphes (Lisibilité) - Google Font */
    --font-body: 'Inter', sans-serif;
}

@font-face {
    font-family: 'Primeform';
    src: url('../fonts/PrimeformProDemo-SemiBold.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Primeform_Light';
    src: url('../fonts/PrimeformProDemo-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* ==================== 2. RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Scroll doux par défaut pour tout le site */
    scroll-behavior: smooth;
    /* Zone morte pour le header fixe (80px environ) */
    scroll-padding-top: 80px;
    /* Fond sombre pour éviter les flashs blancs pendant les transitions */
    background: #02040a;
}

body {
    min-height: 100vh;
    background: var(--black);
    background-color: transparent !important; /* Pour le canvas */
    font-family: var(--font-body);
    color: var(--white);
    overflow-x: hidden; /* Pas de scroll horizontal */
}

/* ==================== 3. HEADER & NAV (COMMUN) ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: background 0.3s ease;
}

/* Classe ajoutée par JS au scroll */
header.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-gray);
}

.logo {
    /* On garde ça pour le lien */
    display: flex; /* Centre l'image verticalement */
    align-items: center;
    text-decoration: none;
    transition: opacity 0.25s ease; /* Garde l'effet de survol */
}

/* NOUVEAU : On contrôle la taille de l'image */
.logo img {
    height: 40px; /* Ajuste cette valeur selon la taille voulue (ex: 30px à 60px) */
    width: auto; /* Garde les proportions */
    display: block; /* Évite les espaces fantômes sous l'image */
}

.logo:hover { 
    opacity: .5; 

}

nav {
    display: flex;
    gap: 3rem;
}

    nav a,
    .footer-links a,
    .coming-soon,
    .scroll-indicator span {
        font-family: var(--font-ui); /* C'est ici que ça change tout ! */
        letter-spacing: 0.15em;
        font-size: 0.875rem; /* On ajuste souvent la taille car elle est grosse */
    }

nav a {
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }
nav a:hover { opacity: 0.7; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==================== 4. FOOTER (COMMUN) ==================== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--dark-gray);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Fond noir pour fermer proprement */
    background: #000;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-family: Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--white); }

.copyright {
    font-family: Georgia, serif;
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.1em;
}

/* ==================== 5. PAGE TRANSITION ==================== */
#transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

/* Prevent scroll during transition */
body.transitioning {
    overflow: hidden !important;
}

body.transitioning .scroller {
    overflow: hidden !important;
}

/* ==================== 6. RESPONSIVE GLOBAL ==================== */
@media (max-width: 768px) {
    header { padding: 1rem 1.5rem; }
    .menu-toggle { display: flex; }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s ease;
    }

    nav.open { right: 0; }
    nav a { font-size: 1rem; letter-spacing: 0.3em; }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}