/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --c-dark: #050505; /* Noir légèrement plus profond */
    --c-light: #F3F0E8;
    --c-stone: #1a1a1a;
    --c-accent: #C8B598; /* Subtle champagne */
    
    --f-serif: 'Cormorant Garamond', serif;
    --f-sans: 'Inter', sans-serif;
    
    --transition-slow: 1.4s cubic-bezier(0.19, 1, 0.22, 1); /* Légèrement plus lent/majestueux */
    --transition-nav: 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar Premium */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--c-dark);
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent);
}

/* Selection texte éditoriale */
::selection {
    background-color: var(--c-accent);
    color: var(--c-dark);
}

html {
    scroll-behavior: smooth;
    background-color: var(--c-dark);
}

body {
    background-color: var(--c-dark);
    color: var(--c-light);
    font-family: var(--f-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; /* Crucial pour les polices Serif de luxe */
}

img, video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.95); /* Rendu photographique type magazine */
}

/* =========================================
   TYPOGRAPHY
========================================= */
.serif { font-family: var(--f-serif); }
.sans { font-family: var(--f-sans); }
.italic { font-style: italic; }
.small-caps {
    font-size: 0.75rem;
    letter-spacing: 0.15em; /* Tracking augmenté */
    text-transform: uppercase;
    opacity: 0.8;
}

.huge-title {
    font-size: clamp(3rem, 12vw, 9rem);
    line-height: 0.85; /* Plus resserré verticalement */
    letter-spacing: -0.03em; /* Titres géants plus compacts type Bodoni */
    text-transform: uppercase;
    font-weight: 300;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--c-light);
    pointer-events: none; /* Laisse le clic passer à travers sauf sur les boutons */
}

.nav-brand, .nav-tracker, .nav-menu-btn {
    font-family: var(--f-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    pointer-events: auto; /* Réactive le clic */
}

.nav-menu-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    outline: none;
    transition: color 0.3s ease;
}

.nav-menu-btn:hover {
    color: var(--c-accent);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px); /* Touche premium fondue */
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform var(--transition-nav);
}

.fullscreen-menu.open {
    transform: translateY(0);
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-link {
    display: inline-block;
    color: var(--c-light);
    text-decoration: none;
    font-family: var(--f-serif);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin: 1.2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fullscreen-menu.open .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-link:hover {
    color: var(--c-accent);
    font-style: italic;
    letter-spacing: 0.02em; /* Micro-interaction de respiration */
}

/* =========================================
   LAYOUT & SECTIONS
========================================= */
.cadran {
    min-height: 100svh; /* svh évite les sauts d'interface sur iOS Safari */
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Image Hover Zoom Premium */
.img-wrapper, .dp-img, .cinematic-img, .raw-img-wrapper, .video-wrapper {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.img-wrapper img, .dp-img img, .cinematic-img img, .raw-img-wrapper img {
    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
}
@media (hover: hover) {
    .img-wrapper:hover img, .dp-img:hover img, .cinematic-img:hover img, .raw-img-wrapper:hover img {
        transform: scale(1.04);
    }
}

/* --- CADRAN 01 : COVER --- */
.cover-section {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-image-container {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.6) 100%); /* Gradient plus naturel */
}

/* CORRECTION DU CHEVAUCHEMENT */
.cover-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100svh;
    padding: 8rem 0 3rem 0; /* Protège l'espace de la navbar */
}

/* Wrapper pour centrer parfaitement le titre indépendamment du footer */
.cover-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0; /* Pousse le contenu au milieu */
}

.cover-content .subtitle {
    margin-top: 1.5rem;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    opacity: 0.9;
}

.cover-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    margin-top: auto; /* Garde le footer collé en bas sans absolute = ZÉRO chevauchement */
}

/* --- CADRAN 02 : BEAUTÉ DES CIEUX --- */
.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10vw 5vw;
    gap: 8vw;
    align-items: center;
}
.text-col {
    padding-left: 8vw;
}
.poetic-text {
    margin-top: 3.5rem;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.5;
    color: #c4c4c4;
}
.vertical-frame {
    aspect-ratio: 3/4;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); /* Ombre éditoriale subtile */
}

/* --- CADRAN 03 : BETWEEN LIGHT & SILENCE --- */
.editorial-complex {
    padding: 12vw 5vw;
}
.complex-grid {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    height: 70vh;
}
.big-img-wrapper {
    position: absolute;
    top: 5%; left: 5%;
    width: 55%;
    height: 90%;
}
.small-img-wrapper {
    position: absolute;
    bottom: 5%; right: 12%;
    width: 28%;
    aspect-ratio: 4/5;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.small-img-wrapper .caption {
    margin-top: 1.2rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--c-accent);
}
.title-wrapper {
    position: absolute;
    top: 5%; right: 2%;
    z-index: 3;
}
.vertical-text {
    writing-mode: vertical-rl;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    mix-blend-mode: difference;
}

/* --- CADRAN 04 : BEAUTIFUL IMPERFECTIONS --- */
.raw-section {
    display: flex;
    align-items: center;
    padding: 12vw 5vw;
    position: relative;
}
.grain-overlay {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}
.raw-content {
    display: flex;
    gap: 6rem;
    align-items: flex-end;
    margin-left: 12vw;
}
.raw-img-wrapper {
    width: 40vw;
    max-width: 550px;
    height: auto; /* Laisse l'image afficher sa taille complète */
}
.raw-img-wrapper img {
    object-position: center 45%; /* Recentre le sujet vers le bas */
}
.raw-text {
    max-width: 350px;
    margin-bottom: 2rem;
}
.raw-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* --- CADRAN 05 : THE GOLDEN HOUR --- */
.cinematic-section {
    padding: 10vw 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cinematic-wrapper {
    width: 100%;
    max-width: 1600px; /* Plus large pour l'effet ciné */
}
.cinematic-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--c-accent);
}
.cinematic-img {
    aspect-ratio: 21/9;
    width: 85%;
    margin: 0 auto 3rem auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.cinematic-img img {
    object-position: center 26%; /* Recentre l'image légèrement vers le haut */
}
.cinematic-wrapper h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.05em;
}

/* --- CADRAN 06 : HEAVEN IS A FRAME --- */
.double-page {
    padding: 15vw 5vw;
    position: relative;
    background-color: #030303; /* Léger changement de fond */
}
.bg-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    color: rgba(255, 255, 255, 0.015);
    z-index: 0;
    white-space: nowrap;
}
.dp-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
}
.dp-img {
    aspect-ratio: 3/4;
}
.img-1 { grid-column: 2 / 6; grid-row: 1 / 3; }
.dp-text {
    grid-column: 7 / 11; grid-row: 1;
    align-self: end;
    padding-bottom: 3rem;
}
.dp-text h3 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.dp-text p { font-size: 1.3rem; color: #999; }
.img-2 { grid-column: 7 / 10; grid-row: 2; }
.img-3 { grid-column: 11 / 13; grid-row: 1 / 3; margin-top: 8rem;}

/* --- CADRAN 07 : MOVING HEAVEN --- */
.video-section {
    padding: 12vw 5vw;
}
.video-container {
    max-width: 1400px;
    margin: 0 auto;
}
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}
.video-header h2 { font-size: 3.5rem; }
.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    width: 85%;
    margin: 0 auto;
}
.custom-controls {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.video-wrapper:hover .custom-controls { opacity: 1; }
.play-btn, .mute-btn {
    background: none; border: none;
    color: var(--c-light);
    font-size: 0.75rem; letter-spacing: 0.15em;
    cursor: pointer;
    font-family: var(--f-sans);
}
.progress-bar {
    flex-grow: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
    position: relative;
    cursor: pointer;
}
.progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: var(--c-accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* --- CADRAN 08 : FOR YOU, BEAUTIFUL HEAVEN --- */
.finale-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.finale-bg {
    position: absolute; inset: 0; z-index: 0;
}
.overlay-dark {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.95) 90%, #050505 100%);
    z-index: 1;
}
.finale-content {
    position: relative;
    z-index: 2;
    padding-bottom: 5vh;
}
.subtitle-return {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--c-accent);
}
.final-quote {
    margin-top: 4rem;
    font-size: 1.3rem;
    color: #888;
}
.finale-footer {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .huge-title { font-size: 5rem; }
    .complex-grid { height: auto; display: flex; flex-direction: column; gap: 4rem; }
    .big-img-wrapper, .small-img-wrapper { position: relative; width: 100%; right: 0; bottom: 0; }
    .title-wrapper { position: relative; right: 0; top: 0; margin-top: 2rem; text-align: center;}
    .vertical-text { writing-mode: horizontal-tb; font-size: 3rem; }
    .dp-grid { display: flex; flex-direction: column; gap: 3rem; }
    .dp-img { width: 100%; margin-top: 0 !important; }
}

@media (max-width: 768px) {
    .navbar { padding: 1.5rem; }
    .cover-footer { padding: 0 1.5rem; margin-top: 3rem; }
    .editorial-split { grid-template-columns: 1fr; padding-top: 25vw; gap: 3rem; }
    .text-col { padding-left: 0; margin-bottom: 2rem; }
    .poetic-text { font-size: 1.1rem; }
    .raw-content { flex-direction: column; align-items: flex-start; margin-left: 0; gap: 3rem; }
    .raw-text h2 { font-size: 1.8rem; }
    .raw-img-wrapper { width: 100%; max-width: 100%; }
    .cinematic-img { width: 100%; aspect-ratio: 16/9; }
    .video-wrapper { width: 100%; }
    .cinematic-header { flex-direction: column; gap: 0.8rem; text-align: center; }
    .video-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .custom-controls { opacity: 1; padding: 1rem; }
    .finale-content { padding: 0 1.5rem 5vh 1.5rem; }
}

@media (max-width: 390px) {
    .huge-title { font-size: 3.5rem; }
    .section-title { font-size: 2.8rem; }
    .cover-content { padding: 6rem 0 2rem 0; }
    .cinematic-img { aspect-ratio: 4/3; } /* Pour éviter que ce soit trop fin sur petit écran */
}