/* --- style.css --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Manrope:wght@300;400;500&family=Herr+Von+Muellerhoff&display=swap');

:root {
    --bg-color: #121411;
    --text-main: #E6E4D9;
    --text-muted: #8F9E8A;
    --accent: #CFA682;
    --line: rgba(230, 228, 217, 0.1);
    --nav-bg: rgba(18, 20, 17, 0.95);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    --font-sig: 'Herr Von Muellerhoff', cursive;
}

body.light-mode {
    --bg-color: #F0EEE5;
    --text-main: #2C302B;
    --text-muted: #757A73;
    --accent: #A67C52;
    --line: rgba(44, 48, 43, 0.08);
    --nav-bg: rgba(240, 238, 229, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html, body { overflow-x: hidden; width: 100%; }
body {
    background-color: var(--bg-color); color: var(--text-main);
    font-family: var(--font-body);
    transition: background-color 0.8s ease, color 0.8s ease;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* --- TRANSITION LIQUIDE --- */
.transition-overlay {
    position: fixed; inset: 0; z-index: 99999; pointer-events: none;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.transition-overlay svg {
    width: 100%; height: 120%;
    fill: #1a261a;
    transform: translateY(100%);
}

/* --- PRELOADER --- */
.preloader {
    position: fixed; inset: 0; background: #121411; z-index: 100000;
    display: flex; justify-content: center; align-items: center;
}
.sig-svg text {
    font-family: var(--font-sig); font-size: 80px; fill: transparent;
    stroke: var(--accent); stroke-width: 1px; stroke-dasharray: 600; stroke-dashoffset: 600;
}

/* --- BACKGROUND --- */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-shape { position: absolute; fill: none; stroke: var(--text-muted); stroke-width: 0.6; opacity: 0.08; }
.bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px; opacity: 0.4;
}
.shape-sun { top: 10%; right: -5%; width: 400px; animation: spin 120s linear infinite; }
.shape-leaf { bottom: 10%; left: -2%; width: 250px; opacity: 0.06; animation: float 20s ease-in-out infinite; }
.shape-cloud { top: 20%; left: 10%; width: 300px; opacity: 0.05; animation: floatHorizontal 60s ease-in-out infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes floatHorizontal { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(30px); } }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 900; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"); }

/* --- UI --- */
.cursor-dot { width: 6px; height: 6px; background: var(--text-main); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: transform 0.1s; }
.cursor-circle { width: 40px; height: 40px; border: 1px solid var(--text-muted); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; opacity: 0.4; transform: translate(-50%, -50%); transition: 0.3s ease-out; }
body.hovered .cursor-circle { width: 60px; height: 60px; border-color: var(--accent); opacity: 1; }
.brand-logo { position: fixed; top: 2rem; left: 3rem; z-index: 100; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; mix-blend-mode: exclusion; color: #fff; }
.nav-wrapper { position: fixed; bottom: 2rem; width: 100%; display: flex; justify-content: center; z-index: 100; pointer-events: none; }
.navbar { pointer-events: auto; display: flex; align-items: center; gap: 0.5rem; background: rgb(18 20 17 / 69%); border: 1px solid var(--line); backdrop-filter: blur(15px); padding: 0.4rem 0.8rem; border-radius: 100px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.nav-link { font-size: 0.75rem; text-transform: uppercase; padding: 0.7rem 1.4rem; border-radius: 100px; transition: 0.4s; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; }
.nav-link.active, .nav-link:hover { background: var(--bg-color); color: var(--text-main); }
.icon-btn { background: none; border: none; padding: 0.6rem; color: var(--text-main); display: flex; cursor: none; font-family: var(--font-body); font-weight: 700; font-size: 0.75rem;}

/* --- LIGHTBOX --- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 100001; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 1.2rem; cursor: pointer; font-family: var(--font-body); border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 50px; text-transform: uppercase; }

/* --- LAYOUTS --- */
main { width: 90vw; margin: 0 auto; min-height: 100vh; padding: 15vh 0 20vh 0; }
h1.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1.18; margin-bottom: 3rem; font-style: italic; font-weight: 300; text-align: center; }
.hero-subtitle { text-align: center; max-width: 600px; margin: 0 auto 6rem auto; font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }
.reveal-text { overflow: hidden; display: block; }
.reveal-text span { display: block; transform: translateY(110%); will-change: transform; }

/* 1. ACCUEIL */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; row-gap: 8rem; max-width: 1400px; margin: 0 auto; }
.gallery-item { position: relative; display: block; width: 100%; perspective: 1000px; }
.gallery-item:nth-child(even) { margin-top: 8rem; }
.img-wrap { width: 100%; aspect-ratio: 1.25/1; overflow: hidden; border-radius: 6px; position: relative; }
.img-wrap img { position: absolute; top: -35%; left: -10%; width: 120%; height: 130%; object-fit: contain; filter: grayscale(100%); transition: filter 0.5s; will-change: transform; }
.gallery-item:hover img { filter: grayscale(0%); }
.item-info { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; opacity: 0.6; transition: 0.3s; }
.gallery-item:hover .item-info { opacity: 1; transform: translateY(-5px); }
.item-title { font-family: var(--font-display); font-size: 1.8rem; font-style: italic; }
.item-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid var(--line); padding: 0.3rem 0.8rem; border-radius: 50px; }

/* 2. PROJET (HORIZONTAL) */
.horiz-outer { width: 100%; height: 100vh; display: flex; flex-wrap: nowrap; overflow: hidden; }
.horiz-container { display: flex; flex-wrap: nowrap; height: 100vh; align-items: center; padding-left: 15vw; gap: 10vw; width: max-content; }
.horiz-panel { width: 50vw; height: auto; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 0.5s; }
.horiz-panel.active { opacity: 1; }
.horiz-img { width: 100%; height: 60vh; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); cursor: zoom-in; transition: transform 0.3s; }
.horiz-img:hover { transform: scale(1.02); }
.horiz-text { margin-top: 2rem; max-width: 500px; }
.horiz-text h3 { font-family: var(--font-display); font-size: 2.5rem; font-style: italic; color: var(--accent); margin-bottom: 0.5rem;}

/* 3. STUDIO */
.espaces-presentation { padding: 0rem 0rem 1rem 0rem; }
.studio-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 10rem; max-width: 1200px; margin: 0 auto; }
.bio-text { font-size: 1.25rem; line-height: 1.6; color: var(--text-muted); }
.timeline-wrapper { position: relative; max-width: 1000px; margin: 0 auto; padding: 2rem 0; }
.timeline-line { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: var(--line); transform: translateX(-50%); }
.timeline-progress { position: absolute; top: 0; left: 50%; width: 2px; height: 0%; background: #cfa68275; transform: translateX(-50%); z-index: 1; }
.t-block { display: flex; justify-content: center; align-items: center; margin-bottom: 6rem; position: relative; opacity: 0.2; transition: opacity 0.6s; }
.t-block.active { opacity: 1; }
.t-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); width: 12px; height: 12px; background: var(--bg-color); border: 2px solid var(--accent); border-radius: 50%; z-index: 2; transition: transform 0.4s; }
.t-block.active .t-dot { transform: translate(-50%, -50%) scale(1); background: var(--accent); }
.t-content { width: 40%; text-align: right; padding-right: 3rem; }
.t-block:nth-child(even) .t-content { order: 2; text-align: left; padding-right: 0; padding-left: 3rem; }
.t-block:nth-child(even) .t-spacer { order: 1; }
.t-spacer { width: 40%; }
.t-year { font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 0.5rem; }
.t-role { font-size: 1.2rem; font-weight: 500; color: var(--text-main); margin-bottom: 0.2rem; }
.t-desc { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* 4. CONTACT */
.quiz-step { margin-bottom: 3rem; }
.quiz-label { display: block; font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1.5rem; font-style: italic; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.quiz-btn { padding: 0.8rem 1.5rem; border: 1px solid var(--line); border-radius: 50px; background: transparent; color: var(--text-muted); font-family: inherit; transition: 0.3s; }
.quiz-btn:hover, .quiz-btn.selected { border-color: var(--accent); color: var(--bg-color); background: var(--accent); }
textarea { width: 100%; height: 150px; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; color: var(--text-main); font-family: inherit; font-size: 1rem; resize: none; margin-top: 1rem;}

html[lang="fr"] .en { display: none !important; }
html[lang="en"] .fr { display: none !important; }

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 768px) {
    /* Navbar compacte */
    .nav-wrapper { bottom: 1.5rem; width: 98vw; left: 1vw; }
    .navbar { padding: 1rem 2.2rem; gap: 0px; justify-content: space-evenly; margin: 1rem 2rem; width: 100%; box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
    .nav-link { padding: 0.6rem 0.6rem; font-size: 0.6rem; }
    .icon-btn { padding: 0.4rem; font-size: 0.6rem; }

    /* Centrage Global des Textes */
    h1.hero-title, .hero-subtitle, .studio-intro, .bio-text, .horiz-text, .t-content { 
        text-align: center !important; 
    }
    
    /* Grille et Projets */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(even) { margin-top: 0; }
    
    /* Timeline centrée mobile */
    .timeline-line, .timeline-progress { left: 50%; transform: translateX(-50%); }
    .t-block { flex-direction: column; align-items: center; margin-bottom: 5rem; }
    .t-content { width: 100%; text-align: center !important; padding: 0 !important; margin-top: 2rem; order: 2 !important; }
    .t-dot { left: 2%; top: 0%; transform: translate(-50%, 0) scale(1); position: relative; margin-bottom: 1rem; }
    .t-spacer { display: none; }
    
    /* Scroll Horizontal -> Vertical sur Mobile */
    .horiz-outer { height: auto; display: block; overflow: visible; }
    .horiz-container { flex-direction: column; width: 100%; padding: 0; height: auto; gap: 6rem; align-items: center; } /* Alignement centré */
    .horiz-panel { width: 100%; height: auto; margin-bottom: 0; opacity: 1; align-items: center; } /* Panneaux centrés */
    .horiz-img {width: 90%; height: 40vh; cursor: default; }
    
    .studio-intro { grid-template-columns: 1fr; }
    .brand-logo { top: 1.5rem; left: 1.5rem; }
    .nav-link span { display: inline; } 
}