/* =========================================
   1. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #050505; color: #fff; font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* =========================================
   2. INTRO
   ========================================= */
.intro-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
#loader-curtain { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 10vh; z-index: 2; }
.loader-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.2); overflow: hidden; }
.loader-progress { width: 0%; height: 100%; background: #fff; }
.intro-text-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 1; }
.giant-text { font-family: 'Anton', sans-serif; font-size: 18vw; line-height: 0.85; text-transform: uppercase; text-align: center; color: #fff; mix-blend-mode: overlay; }

/* =========================================
   3. HERO
   ========================================= */
.hero { height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background-image: radial-gradient(rgba(0,0,0,0.3) 1px, transparent 1px); background-size: 4px 4px; background-color: rgba(0,0,0,0.3); }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.scroll-sequence { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 10; pointer-events: none; }
.hero-phrase { position: absolute; font-family: 'Anton', sans-serif; font-size: 4vw; text-transform: uppercase; text-align: center; color: #fff; width: 80%; opacity: 0; transform: translateY(50px); filter: blur(10px); }
@media (max-width: 900px) { .hero-phrase { font-size: 2rem; } }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 20; opacity: 0; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }

/* =========================================
   4. GALERIE HORIZONTALE
   ========================================= */
.horizontal-scroll-section { 
    width: 100%; height: 100vh; 
    overflow: hidden; position: relative; 
    background-color: #050505;
}

/* --- V3.6 : FOND NÉBULEUSE "DEEP FOREST" --- */
.nebula-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); 
    opacity: 0.4; /* V3.6 : Opacité globale réduite pour plus de subtilité */
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-name: floatOrb;
}

.orb-1 { 
    width: 55vw; height: 55vw; 
    background: #1a0b2e; /* Violet */
    top: -15%; left: -15%; 
    animation-duration: 14s;
}
.orb-2 { 
    width: 45vw; height: 45vw; 
    background: #001f3f; /* Bleu Nuit */
    bottom: -10%; right: -10%; 
    animation-duration: 18s;
    animation-delay: -5s; 
}
.orb-3 { 
    width: 50vw; height: 50vw; 
    background: #083630; /* V3.6 : Vert très sombre et profond */
    top: 40%; left: 30%; 
    animation-duration: 11s;
    animation-delay: -2s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(40px, -30px) scale(1.1) rotate(5deg); } 
    50% { transform: translate(10px, 40px) scale(0.95) rotate(-3deg); }
    75% { transform: translate(-30px, 10px) scale(1.05) rotate(2deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Texte Arrière plan */
.bg-text-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; pointer-events: none; z-index: 1; }
.bg-giant-text { 
    font-family: 'Anton', sans-serif; font-size: 25vw; white-space: nowrap; 
    color: rgba(255,255,255,0.05); 
    mix-blend-mode: exclusion;
    transform: translateX(0); will-change: transform; 
}
@media (max-width: 900px) { .bg-giant-text { font-size: 40vh; opacity: 0.3; } }

/* Conteneur Scroll */
.pin-wrap { 
    height: 100%; display: flex; 
    align-items: center; 
    width: fit-content; padding: 0 10vw; 
    position: relative; z-index: 2; 
}

/* Items Asymétriques (V3.6 : Hauteur 73.5vh - soit +5%) */
.h-item { 
    height: 73.5vh; /* LARGE IMAGES */
    width: auto; 
    position: relative; margin-right: 15vw; flex-shrink: 0; 
    display: flex; flex-direction: column; 
    perspective: 1000px;
}

.align-top { justify-content: flex-start; margin-top: -5vh; }
.align-bottom { justify-content: flex-end; margin-bottom: -5vh; }
.align-center { justify-content: center; }

.img-wrap { height: 100%; width: auto; overflow: hidden; will-change: transform; border-radius: 2px; }
.h-item img { height: 100%; width: auto; display: block; box-shadow: 0 20px 80px rgba(0,0,0,0.6); transition: transform 0.5s ease; }
.h-item img:hover { transform: scale(1.05); }

.caption { 
    margin-top: 15px; font-family: 'Inter', sans-serif; font-size: 0.8rem; 
    color: #fff; letter-spacing: 2px; text-transform: uppercase; 
    display: flex; flex-direction: column; gap: 5px;
}
.tech-specs { font-size: 0.6rem; color: #666; letter-spacing: 1px; }

.text-item { width: 40vw; height: auto; display: flex; align-items: center; }
.text-item h2 { font-family: 'Anton', sans-serif; font-size: 5vw; line-height: 1.1; color: #fff; text-shadow: 0 0 20px rgba(0,0,0,0.8); }

/* =========================================
   VIDEO DECK (IMMERSION)
   ========================================= */
.video-deck-section { width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 100px; background-color: #050505; overflow: hidden; }
.deck-header { text-align: center; margin-bottom: 40px; z-index: 10; }
.deck-header h2 { font-family: 'Anton', sans-serif; font-size: 3rem; color: #fff; letter-spacing: 2px; }
.deck-header p { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #888; text-transform: uppercase; margin-top: 5px; }
.deck-container { width: 80%; max-width: 1000px; height: 60vh; position: relative; }
.deck-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; overflow: hidden; border-radius: 4px; box-shadow: 0 10px 50px rgba(0,0,0,0.5); transform-origin: center bottom; }
.deck-card video { width: 100%; height: 100%; object-fit: cover; }
.card-label { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.7); color: #fff; padding: 5px 15px; font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.2rem; border-radius: 2px; }
@media (max-width: 768px) { .deck-container { width: 95%; height: 50vh; } }

/* =========================================
   5. POÉSIE
   ========================================= */
.poetry-section { min-height: 80vh; display: flex; justify-content: center; align-items: center; background-color: #050505; padding: 100px 20px; }
.poetry-container { text-align: center; }
.poetry-line { font-family: 'Anton', sans-serif; font-size: 4vw; text-transform: uppercase; color: #333; margin: 10px 0; transition: color 0.1s; }
.poetry-author { display: block; margin-top: 40px; font-family: 'Inter', sans-serif; color: #666; letter-spacing: 3px; font-size: 0.9rem; }
@media (max-width: 900px) { .poetry-line { font-size: 2rem; } }

/* =========================================
   6. BENTO GRID
   ========================================= */
.bento-section { padding: 50px 5%; background-color: #050505; }
.section-header { margin-bottom: 60px; display: flex; align-items: center; gap: 20px; }
.section-header h2 { font-family: 'Anton', sans-serif; font-size: 3rem; color: #fff; }
.section-header .line { flex-grow: 1; height: 1px; background: #333; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; grid-auto-rows: 300px; }
.bento-item { position: relative; overflow: hidden; border-radius: 4px; background: #111; }
.bento-item img, .bento-item video { width: 100%; height: 140%; position: absolute; top: -20%; left: 0; object-fit: cover; will-change: transform; }
.large { grid-column: span 2; grid-row: span 2; }
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }
.full-width { grid-column: span 3; }
.text-box { padding: 30px; display: flex; flex-direction: column; justify-content: center; background: #fff; color: #000; position: relative; overflow: hidden; }
.text-box h3 { font-family: 'Anton', sans-serif; font-size: 2rem; margin-bottom: 10px; text-transform: uppercase; }
.text-box p { line-height: 1.5; font-size: 1.1rem; }
@media (max-width: 900px) { .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; } .large, .wide, .tall, .full-width { grid-column: auto; grid-row: auto; } }

/* =========================================
   7. GÉNÉRATEUR
   ========================================= */
.generator-section { padding: 100px 5%; background-color: #050505; }
.generator-container { display: flex; gap: 50px; flex-wrap: wrap; align-items: flex-start; }
.preview-area { flex: 1; min-width: 300px; display: flex; flex-direction: column; align-items: center; }
#postcard-canvas { width: 100%; height: auto; max-width: 600px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); background: #000; }
.preview-note { margin-top: 15px; color: #555; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.controls-area { flex: 1; min-width: 300px; padding: 20px; }
.control-group { margin-bottom: 40px; }
.control-label { display: block; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.thumbs-scroll { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: #444 #111; }
.thumb { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; opacity: 0.4; transition: all 0.3s ease; cursor: pointer; border-radius: 2px; filter: grayscale(100%); }
.thumb.active, .thumb:hover { opacity: 1; transform: scale(1.1); filter: grayscale(0%); box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.clean-inputs { display: flex; flex-direction: column; gap: 20px; }
.clean-inputs input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 15px 0; color: #fff; font-family: 'Inter', sans-serif; font-size: 1.1rem; letter-spacing: 1px; transition: border-color 0.3s, color 0.3s; }
.clean-inputs input::placeholder { color: #333; }
.clean-inputs input:focus { outline: none; border-bottom-color: #fff; }
.minimal-btn { width: 100%; padding: 20px; background: #fff; color: #000; border: none; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease; margin-top: 20px; }
.minimal-btn:hover { background: #000; color: #fff; box-shadow: 0 0 0 1px #fff; }
@media (max-width: 768px) { .generator-container { flex-direction: column; } .preview-area, .controls-area { width: 100%; } }

/* =========================================
   8. FOOTER LOOP
   ========================================= */
.footer-loop-section { background: #fff; color: #000; overflow: hidden; padding: 50px 0; position: relative; }
.loop-track { white-space: nowrap; font-family: 'Anton', sans-serif; font-size: 8vw; line-height: 1; text-transform: uppercase; display: flex; animation: loopText 20s linear infinite; }
.loop-track span { padding-right: 50px; }
@keyframes loopText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.footer-credits { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; margin-top: 20px; border-top: 1px solid #ddd; font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.footer-credits a { color: #000; text-decoration: none; font-weight: bold; }