:root {
    --bg-color: #070707;
    --text-color: #FAFAFA;
    --accent-purple: #4000FF; 
    --accent-light: #7A4EFF;
    
    /* Typographies */
    --font-headline: orpheuspro, serif; 
    --font-text: spectral, sans-serif; 
    --font-weight-thin: 200; 
}

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

html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-text);
    color: var(--text-color);
    min-height: 100vh;
    background: linear-gradient(180deg, #070707 0%, #070707 50%, #4000FF 85%, #7A4EFF 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollbar custom minimaliste moderne */
.custom-scrollbar {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 150px;
    z-index: 999;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.custom-scrollbar-thumb {
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    border-radius: 4px;
    transition: background 0.2s ease;
    pointer-events: auto;
    cursor: grab;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.custom-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* --- UI FIXE (Header & Nav) --- */
.top-header {
    position: fixed; 
    top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}
.logo { pointer-events: auto; }
.logo img {
    width: 55px;
    height: auto;
    display: block;
}

/* Navigation Flottante */
.floating-nav {
    position: fixed; 
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px; 
    border-radius: 3px; 
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-nav ul {
    list-style: none;
    display: flex;
    gap: 4px; 
    margin: 0;
    padding: 0;
    align-items: center;
}

.floating-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6); 
    font-family: var(--font-text);
    font-size: 16px;
    font-weight: 400;
    padding: 12px 20px; 
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block; 
    line-height: 1; 
}

/* État Actif & Hover */
.floating-nav a.active {
    background: var(--accent-purple);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(64, 0, 255, 0.4);
    font-weight: 500;
}
.floating-nav a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05); 
    color: #FFFFFF; 
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6); 
}


/* --- CONTENU WORKS --- */
.works-section {
    padding-top: 100px;
    padding-bottom: 150px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.works-container {
    width: 100%;
    max-width: 1600px;
    padding: 0 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* En-tête */
.section-header { 
    padding-top: 0;
    padding-bottom: 34px;
    text-align: left;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 5.5rem; 
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
    line-height: 0.9;
    margin-bottom: 0;
    margin-top: 0;
}


.title-line {
    display: none;
}
.title-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--text-color);
    transform: scaleX(1);
    transform-origin: left;
    /* Petite animation d'entrée pure CSS */
    animation: lineFill 1s ease-out forwards;
}

@keyframes lineFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* GRILLE PROJETS */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 55px 34px; 
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .top-header { top: 21px; }
    .logo img { width: 55px; }

    /* Nav */
    .floating-nav { bottom: 21px; padding: 8px; left: 50%; transform: translateX(-50%); width: auto; }
    .floating-nav ul { justify-content: center; gap: 4px; }
    .floating-nav a { font-size: 19px; padding: 14px 26px; }

    .phone-contact-btn { 
        width: 44px; 
        height: 44px; 
        font-size: 18px;
        top: 21px;
        right: 21px;
    }

    /* Scrollbar masquée sur mobile */
    .custom-scrollbar { display: none; }

    /* Section */
    .works-section { padding-top: 70px; padding-bottom: 100px; }
    .works-container { padding: 0 21px; }

    /* Titre */
    .section-header { padding-bottom: 21px; }
    .section-title { font-size: 3.5rem; }

    /* Grille */
    .works-grid { 
        grid-template-columns: 1fr; 
        gap: 34px;
    }

    /* Cartes */
    .work-item { gap: 10px; }
    .work-visual { border-radius: 8px; }
    .work-info { padding: 10px 0; }
    .w-title { font-size: 1.4rem; }
    .w-type { font-size: 0.75rem; letter-spacing: 0.5px; }
}

@media (max-width: 480px) {
    .top-header { top: 15px; }
    .logo img { width: 50px; }

    .works-section { padding-top: 55px; padding-bottom: 89px; }
    .works-container { padding: 0 16px; }

    .section-title { font-size: 2.8rem; }

    .works-grid { gap: 28px; }
    .w-title { font-size: 1.2rem; }
    .w-type { font-size: 0.7rem; }

    .floating-nav a { font-size: 19px; padding: 14px 26px; }
}

/* CARTE INDIVIDUELLE */
.work-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    perspective: 1200px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.work-visual {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9; 
    background-color: #2a2a2a; 
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.work-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.work-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Effet de survol sur la carte */
.work-item:hover .work-visual {
    transform: scale(0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.work-info {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.w-title {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.w-type {
    font-family: var(--font-text);
    font-weight: var(--font-weight-thin);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}