/* ========================================
   STYLE ARTISTIQUE / ÉDITORIAL - Noah Chelle
   ======================================== */

/* Import Google Fonts : Syne (Artistique) + Space Grotesk (Tech/Clean) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Syne:wght@400;500;700;800&display=swap');

:root {
    /* TYPOGRAPHIE */
    --font-display: 'Syne', sans-serif;       /* Pour les gros titres */
    --font-body: 'Space Grotesk', sans-serif; /* Pour le texte lisible */

    /* PALETTE DE COULEURS (Monochrome + Accent Acide) */
    --bg-color: #080808;       /* Noir profond, mat */
    --text-main: #EAEAEA;      /* Blanc cassé */
    --text-muted: #b0b0b0;     /* Gris clair */
    
    /* Accent : Un vert acide ou violet électrique très mode */
    --accent: #CCFF00;         /* Lime Acid (très tendance Behance) */
    --border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   BASE & GRAIN
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* Effet de Grain (Noise) sur tout le site */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ========================================
   CURSEUR PERSONNALISÉ
   ======================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-main);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

/* ========================================
   NAVIGATION CORRIGÉE (Large & Fluide)
   ======================================== */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.85); /* Un peu plus opaque */
    backdrop-filter: blur(16px);
    padding: 1rem 3rem; /* Plus d'espace sur les côtés */
    border-radius: 100px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    
    /* --- CORRECTIONS --- */
    width: max-content;      /* S'adapte à la largeur du contenu */
    max-width: 98vw;         /* Ne dépasse pas l'écran */
    white-space: nowrap;     /* Interdit le retour à la ligne */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem; /* Espace confortable entre les liens */
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Indicateur sous le lien actif (Optionnel mais joli) */
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Le bouton CV */
.cv-btn {
    border: 1px solid var(--text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap; /* Sécurité supplémentaire */
    display: inline-block;
}

.cv-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

/* Responsive : On passe en bas sur mobile avec scroll horizontal si nécessaire */
@media (max-width: 1024px) {
    nav {
        top: auto;
        bottom: 2rem;
        padding: 1rem 1.5rem;
        width: 90%;
        max-width: 90%;
        justify-content: flex-start; /* Permet le scroll */
        overflow-x: auto; /* Scroll horizontal si ça dépasse */
        
        /* Cache la barre de scroll */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    nav::-webkit-scrollbar {
        display: none;
    }
    
    nav ul {
        gap: 1.5rem;
        margin: 0 auto; /* Centre le contenu si possible */
    }
}

.cv-btn {
    border: 1px solid var(--text-main);
    padding: 0.5rem 1.5rem;      /* Un peu plus large sur les côtés */
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s;
    
    /* --- CORRECTIONS --- */
    white-space: nowrap;    /* Force le texte sur une seule ligne */
    flex-shrink: 0;         /* Empêche le bouton de rétrécir */
    display: inline-block;  /* Assure que le padding est respecté */
    min-width: fit-content; /* S'adapte toujours à la largeur du texte */
}

.cv-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    cursor: pointer;
}

/* ========================================
   TITRES & TYPO
   ======================================== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.section-title {
    font-size: 4rem; /* Très gros titres */
    text-align: center;
    margin: 6rem 0 4rem;
    -webkit-text-stroke: 1px var(--text-main);
    color: transparent; /* Titre "Outline" très mode */
    transition: all 0.5s ease;
}

.section-title:hover {
    color: var(--accent);
    -webkit-text-stroke: 0px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* OPTION 2 : RIDEAU ASCENDANT */
.page-transition-curtain {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Commence vide */
    background: #000;
    z-index: 99999;
    transition: height 0.6s cubic-bezier(0.87, 0, 0.13, 1); /* Très fluide */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-transition-curtain.active {
    height: 100%; /* Remplit l'écran vers le haut */
}

.transition-text {
    font-family: var(--font-display);
    font-size: 5vw;
    color: var(--accent);
    white-space: nowrap;
    transform: translateY(100px); /* Vient du bas */
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.page-transition-curtain.active .transition-text {
    transform: translateY(0);
    opacity: 1;
}
/* Curseur visible dans la lightbox */
.project-lightbox,
.project-lightbox *,
.project-lightbox-content,
.project-lightbox img,
.project-lightbox-close {
    cursor: default !important;
}