:root {
  --text-color: #f0f8ff; /* Texte clair */
  --bg-color: #1a1a1a; /* Fond sombre */
  --accent: #007bff; 
  /* Tailles de police stylées */
  --font-size-base: 1.3em; 
  --font-size-lead: 1.7em;
  --font-size-h3: 3.2em;
  --font-size-h4: 2.4em;
  
  /* Variables pour l'animation 3D/Parallaxe */
  --translateY: 0;
  --rotateX: 0deg;
  --scale: 1;
}

/* 1. Reset et Scroll Snapping */
* { box-sizing: border-box; }
html {
    scroll-snap-type: y mandatory; /* Verrouille le défilement sur les scènes */
}
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Cinzel', serif; 
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- STYLES DU SPLASH SCREEN INTRO --- */
#intro-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color); 
    z-index: 100; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s; 
}

#truman-video-intro {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.7; 
}

#intro-overlay {
    position: absolute;
    z-index: 101;
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}
#intro-overlay h2 {
    font-size: 4em;
    margin-bottom: 20px;
}

#discover-button {
    padding: 15px 30px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background 0.3s ease;
}
#discover-button:hover {
    background: #0056b3;
}
/* -------------------------------------- */


/* 2. En-tête */
.site-header {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(8px);
  z-index: 99;
  border-bottom: 1px solid #333;
  color: var(--text-color);
  transition: opacity 0.5s; 
}
.site-header nav a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 15px;
  font-size: var(--font-size-base);
  font-weight: bold;
}

/* 3. SCENES (Pleine Hauteur et 3D) */
.scene {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; 
  scroll-snap-align: start; 
  perspective: 1000px; 
}

/* Hero Section */
.hero {
    background-image: url('img/truman.jpg');
    background-size: cover;
    background-position: center;
    --opacity-factor: 1; 
}
.hero.truman-intro .wrap {
    background: rgba(0, 0, 0, 0.5); 
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-width: 80%;
}
.hero .main-title {
  font-size: 8vmax;
  color: white;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

/* Conteneur pour les visuels de fond animés (BG) */
.background-visuel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    transform: translateZ(0) translateY(var(--translateY)) rotateX(var(--rotateX)) scale(var(--scale));
    transition: transform 0.1s linear; 
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; 
}

/* Styles pour les autres backgrounds */
#visuel-3 .bg-img { opacity: 0.5; }
#visuel-4 .bg-img { opacity: 0.9; }

/* Style spécifique pour l'image de l'affiche (Scène 2 - 3D) */
.poster-3d {
    width: 400px; 
    height: 550px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0) translateY(var(--translateY)) rotateX(var(--rotateX)) scale(var(--scale));
}

/* Contenu du texte (Overlay) */
.wrap {
    max-width: 900px;
    margin: 0 auto; 
}
.content-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.1s linear; 
}
.content-overlay h3 {
    color: var(--accent);
    overflow: visible;
    white-space: normal;
    width: auto;
    border-right: none;
}
.content-overlay p, .content-overlay h3, .content-overlay ul {
    opacity: 1 !important;
    transform: none !important;
}

/* Style du bouton (pour la navigation) */
.scroll-down-button {
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.scroll-down-button:hover {
    background: #0056b3;
}

/* Responsive (simplifié) */
@media (max-width: 768px) {
    .content-overlay {
        max-width: 90%;
        padding: 20px;
    }
    .poster-3d {
        width: 80%;
        height: auto;
    }
}