:root {
    --bg-color: #06050e;
    --text-color: #e2e8f3;
    --accent-pink: #48cae4; 
    --dim-text: #90e0ef;
    --border-color: rgba(72, 202, 228, 0.25);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain de film */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Header Fixe 100% Transparent (Plus de fond noir) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 55vw; /* Occupe uniquement la largeur du côté gauche (shader) pour ne pas empiéter sur le texte */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 4rem;
    z-index: 100;
    background: transparent;
    pointer-events: none;
}

header a, header .sub-logo {
    pointer-events: auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Italiana', serif;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.sub-logo {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-pink);
    margin-top: 0.3rem;
}

/* --- STRUCTURE SPLIT ÉCRAN --- */
.portfolio-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.shader-side {
    flex: 0 0 55vw;
    height: 100vh;
    position: relative;
}

#webgl-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Groupe de boutons flottants en bas à gauche */
.floating-actions {
    position: absolute;
    bottom: 2.5rem;
    left: 4rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Style des boutons d'action */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(6, 5, 14, 0.4);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.action-btn svg {
    flex-shrink: 0;
    fill: #fff;
    transition: fill 0.3s ease;
}

.action-btn:hover {
    background: rgba(72, 202, 228, 0.2);
    border-color: var(--accent-pink);
    color: #fff;
}

.action-btn:hover svg {
    fill: var(--accent-pink);
}

/* Côté Droit : Texte de présentation */
.content-side {
    flex: 0 0 45vw;
    height: 100vh;
    overflow-y: auto;
    padding: 6rem 4rem 6rem 4rem; /* Padding haut réduit car le header ne gêne plus à droite */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.bio-section {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--accent-pink);
    margin-bottom: 1.8rem;
    display: block;
    font-weight: 400;
}

.bio-text p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-color);
}

.highlight-item h4 {
    font-family: 'Italiana', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.highlight-item p {
    font-size: 0.8rem;
    color: var(--dim-text);
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLETTES (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    header {
        position: relative;
        width: 100%;
        padding: 2rem 1.5rem 1rem 1.5rem;
        background: transparent;
    }

    .portfolio-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .shader-side {
        width: 100vw;
        height: 50vh;
        flex: none;
    }

    .floating-actions {
        bottom: 1.5rem;
        left: 1.5rem;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .action-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.65rem;
        letter-spacing: 0.15em;
        gap: 0.6rem;
    }

    .content-side {
        width: 100vw;
        height: auto;
        flex: none;
        overflow-y: visible;
        padding: 3rem 1.5rem 4rem 1.5rem;
    }

    .bio-section {
        max-width: 100%;
    }

    .highlights {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}