/* --- BASES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    overflow-x: hidden;
}

/* Empêche le scroll uniquement sur l'index pour le look "App" */
body.home {
    overflow: hidden;
}

/* --- NAVIGATION COMMUNE --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
}

.logo a {
    font-weight: bold;
    text-transform: lowercase; /* Nom de l'artiste en minuscules */
    letter-spacing: 2px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #000;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: lowercase; /* Sections en minuscules */
    letter-spacing: 1px;
    color: #666;
    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #000;
}

/* --- SLIDER (INDEX) --- */
.slider-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.slider {
    width: 80%;
    height: 70%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active { opacity: 1; }

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    padding: 20px;
    transition: color 0.3s;
    user-select: none;
    z-index: 10;
}

.prev:hover, .next:hover { color: #000; }
.prev { left: 5%; }
.next { right: 5%; }

/* --- PAGE TRAVAUX --- */
.works-container {
    display: flex;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.series-menu {
    width: 25%;
    padding-left: 40px;
    position: fixed; /* Menu fixe à gauche */
    height: 100vh;
}

.series-menu ul { list-style: none; }

.series-link {
    font-size: 0.95rem;
    margin-bottom: 18px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
    text-transform: none; /* Respecte votre saisie exacte (Maj/Min) */
    letter-spacing: 0.5px;
}

.series-link:hover {
    color: #000;
    padding-left: 5px;
}

.series-display {
    width: 75%;
    margin-left: 25%; /* Laisse la place au menu fixe */
    padding: 0 40px 40px 40px;
}

/* Grille d'images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-grid.visible { opacity: 1; }

.grid-item {
    cursor: pointer;
    text-align: left;
    margin-bottom: 20px;
}

/* Nouvel effet Roll Over : Zoom léger sans grisé */
/* Conteneur de l'image pour forcer un format uniforme */
.grid-item {
    cursor: pointer;
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Le cadre qui unifie toutes les images sans bordures blanches */
.grid-item .img-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force un format carré parfait, très élégant en grille */
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: flex-start;
}

.grid-item img {
    width: 100%;
    height: 100%;
    /* 'cover' remplit tout le cadre sans laisser de blanc */
    object-fit: cover;
    /* 'top' permet de ne pas rogner le haut de l'œuvre */
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover img {
    transform: scale(1.08); /* Effet de zoom plus immersif en plein cadre */
}

/* Détails sous les images (Respecte votre saisie) */
.item-details {
    font-size: 0.75rem;
    margin-top: 12px;
    text-transform: none;
    color: #333;
    line-height: 1.4;
}

.item-details span {
    font-weight: normal;
}

/* Image aléatoire de départ */
.random-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    width: 100%;
}

/* --- LIGHTBOX (PLEIN ÉCRAN) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

#caption {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #000;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
    font-weight: lighter;
    
    /* Même gris que les flèches */
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .main-header { padding: 20px; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }
    
    .menu-toggle span { width: 20px; height: 1px; background: #000; transition: 0.3s; }
    
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #fff; display: flex; align-items: center; justify-content: center;
        transition: 0.4s;
    }
    
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 40px; }
    .main-nav a { font-size: 1.2rem; }

    .works-container { flex-direction: column; margin-top: 80px; }
    .series-menu {
        width: 100%;
        position: relative;
        height: auto;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .series-display { width: 100%; margin-left: 0; padding: 20px; }
    .image-grid { grid-template-columns: 1fr; }
}
/* Indique la série active dans le menu de gauche */
.series-link.active-serie {
    color: #000 !important;
    font-weight: bold;
    padding-left: 10px;
}

/* Flèches pour la Lightbox (Plein écran) */
/* Flèches pour la Lightbox (Plein écran) */
.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    
    /* Couleur gris doux par défaut */
    color: rgba(0, 0, 0, 0.2);
    
    cursor: pointer;
    padding: 30px;
    z-index: 3000;
    user-select: none;
    
    /* Transition fluide pour l'effet de survol */
    transition: color 0.3s ease, transform 0.3s ease;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* Effet au survol : la flèche devient noire et grandit légèrement */
.lb-prev:hover, .lb-next:hover {
    color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Navigation de bas de page pour Mobile */
.mobile-next-section {
    display: none; /* Caché par défaut sur ordinateur */
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-next-section {
        display: block;
    }
    .mobile-next-section a {
        text-transform: lowercase;
        font-size: 0.9rem;
        color: #999;
        text-decoration: none;
    }
}
/* Style spécifique pour la page projets / textes */
.text-project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.text-column {
    font-size: 0.9rem;
    line-height: 1.6;
}

.text-column h3 {
    font-weight: normal;
    text-transform: lowercase;
    margin-bottom: 20px;
}

.notebook-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .text-project-layout {
        grid-template-columns: 1fr;
    }
}
/* Conteneur de défilement horizontal */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scrollbar-width: thin; /* Pour Firefox */
    scrollbar-color: #eee transparent;
}

/* Personnalisation de la barre de défilement pour Chrome/Safari */
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

/* Style des items dans le ruban */
.scroll-item {
    flex: 0 0 auto;
    height: 150px; /* Taille réduite pour un rendu discret */
    cursor: pointer;
}

.scroll-item img {
    height: 100%;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.scroll-item:hover img {
    opacity: 0.8;
}

.project-section-title {
    font-size: 0.9rem;
    margin: 40px 0 20px 0;
    color: #000;
}
/* --- RAFFINEMENT DE LA PAGE PROJETS --- */

.project-section-wrapper {
    margin-bottom: 80px; /* Plus d'espace entre les rubans */
}

.project-section-title {
    font-size: 0.75rem; /* Plus petit et discret */
    text-transform: lowercase; /* Garde votre style minimaliste */
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: #000;
    font-weight: normal; /* Pas de gras */
}

/* Ruban horizontal invisible (on cache la barre de scroll) */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    
    /* Cache la barre sur Firefox */
    scrollbar-width: none;
}

/* Cache la barre sur Chrome, Safari et Edge */
.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 auto;
    height: 140px; /* Taille réduite pour plus d'élégance */
    cursor: pointer;
    transition: transform 0.4s ease;
}

.scroll-item img {
    height: 100%;
    width: auto;
    display: block;
    /* On enlève les filtres, on reste sur la pureté de l'image */
    transition: opacity 0.3s ease;
}

.scroll-item:hover {
    transform: translateY(-5px); /* Léger soulèvement au survol */
}

.project-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 500px;
}
/* Cache les titres s'il en reste via le HTML statique */
.project-section-title {
    display: none;
}

/* Espacement entre les rubans pour qu'ils ne se chevauchent pas au défilement */
.project-section-wrapper {
    height: 30vh; /* Donne une zone de focus à chaque section */
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* Navigation fluide globale */
html {
    scroll-behavior: smooth;
}
/* Conteneur d'image dans le ruban pour permettre la superposition de texte */
.scroll-item {
    position: relative;
    flex: 0 0 auto;
    height: 150px;
    cursor: pointer;
    overflow: hidden;
    background-color: #000; /* Fond noir pour l'effet grisé */
}

.scroll-item img {
    height: 100%;
    width: auto;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Texte caché par défaut sous l'image */
.scroll-item .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
    width: 80%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 2;
    text-transform: lowercase;
}

/* État GRISÉ déclenché par le JS (quand on survole le menu à gauche) */
.scroll-item.is-focused img {
    opacity: 0.3; /* L'image devient sombre/grisée */
    transform: scale(1.05);
}

.scroll-item.is-focused .overlay-text {
    opacity: 1; /* Le texte blanc apparaît */
}

/* Style du menu au survol */
.series-link {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.series-link:hover, .series-link.active-serie {
    opacity: 1;
    padding-left: 5px;
}
/* --- GESTION DES SECTIONS BIO/CV/CONTACT --- */

/* On cache les sections par défaut */
.content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* On affiche uniquement la section active */
.content-section.active-content {
    display: block;
    opacity: 1;
}

/* On enlève les marges énormes puisque les sections ne se suivent plus */
.bio-text, .cv-section, .contact-section {
    margin-bottom: 0;
}
/* --- STYLE PAGE BIO - PLUS AÉRÉ --- */

.bio-text {
    max-width: 550px; /* Largeur optimale pour la lecture */
    margin: 40px 0;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.bio-text p {
    /* Choix d'une police plus élégante pour le texte long */
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.1rem; /* Taille légèrement augmentée */
    line-height: 1.9; /* Interlignage très aéré */
    color: #222;
    text-align: justify; /* Pour un aspect livre/édition */
    letter-spacing: 0.2px;
    margin-bottom: 25px;
}

/* Animation fluide pour l'apparition du texte */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style des titres du CV pour qu'ils restent modernes à côté */
.cv-block h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #000;
}
/* --- STYLE GLOBAL BIO, CV & CONTACT --- */

/* Conteneur principal pour plus de lisibilité */
.content-section {
    max-width: 700px; /* On restreint pour que les lignes ne soient pas trop longues */
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    padding-top: 20px;
}

/* Application de la police Serif à tout le texte de contenu */
.bio-text p,
.cv-block p,
.contact-info p {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #222;
}

/* Style spécifique pour la BIOGRAPHIE */
.bio-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: justify;
}

/* Style spécifique pour le CV */
.cv-block {
    margin-bottom: 40px;
}

.cv-block h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Titres sans-serif pour rester moderne */
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.cv-block p {
    font-size: 0.95rem; /* Un peu plus grand pour la lisibilité */
    margin-bottom: 10px;
    display: flex;
}

.cv-block p span {
    min-width: 90px; /* Colonne des années */
    color: #888;
    flex-shrink: 0;
}

/* Style spécifique pour le CONTACT */
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-info a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: 0.3s;
}

.contact-info a:hover {
    border-bottom: 1px solid #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Style pour le lien dans le menu */
.download-link {
    margin-top: 50px; /* On l'écarte un peu du reste */
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.download-link a {
    text-decoration: none;
    font-size: 0.75rem;
    color: #999;
    text-transform: lowercase;
    transition: 0.3s;
}

.download-link a:hover {
    color: #000;
}

/* Style pour le bouton dans la section contact */
.btn-download {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000 !important;
}

.btn-download:hover {
    background-color: #f9f9f9;
}
