/* ============================================================ */
/* ELNE REEL — CINEMA EXPERIENCE ENGINE (IMMERSION TOTALE 3D)   */
/* Effet d'Aspiration, Caméra Dolly-In, Film 35mm & Parallax     */
/* ============================================================ */

/* --- Film Screen Container --- */
.cinema-film-wrapper {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background: #14171d;
  color: #ffffff;
}

/* 35mm Film Grain & Atmospheric Noise Overlay */
.cinema-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Lens Vignette Cinema */
.cinema-vignette-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 98;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(10, 12, 16, 0.75) 85%, rgba(6, 8, 11, 0.95) 100%);
}

/* Protection Anti-Clic Droit & Anti-Drag sur toutes les images */
img, picture, .studio-backdrop-img, .portrait-cinema-img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* ============================================================ */
/* 1. SONIC WARP INTRO PORTAL (ASPIRATION IMMERSIVE VORTEX)     */
/* ============================================================ */
.warp-intro-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: radial-gradient(circle at 50% 50%, #0d1017 0%, #06080b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.2s;
  overflow: hidden;
}

.warp-intro-curtain.sucked-in {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

/* Bypass immédiat sans FOUC si l'intro a déjà été vue dans la session */
html.oof-intro-seen #warp-curtain {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.oof-intro-seen body {
  overflow-y: auto !important;
}

html.oof-intro-seen .cinema-site-stage {
  transform: perspective(1200px) translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px) brightness(1) saturate(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#warp-tunnel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.warp-intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.warp-badge-sonic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(15, 18, 25, 0.75);
  color: var(--gold);
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.warp-er-logo {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 130px);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold) 55%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.35));
}

.warp-tagline {
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.btn-warp-enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 38px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
  color: #05070a;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.3s ease;
  overflow: visible;
}

.btn-warp-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(245, 158, 11, 0.6);
}

/* Onde de choc lumineuse circulaire au clic */
.btn-warp-enter::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.btn-warp-enter.clicked {
  animation: btnPulseAcoustic 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-warp-enter.clicked::after {
  animation: btnShockwaveRing 0.85s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes btnPulseAcoustic {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  }
  35% {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.95), 0 0 90px rgba(251, 191, 36, 0.7);
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
    box-shadow: 0 0 80px rgba(245, 158, 11, 0);
  }
}

@keyframes btnShockwaveRing {
  0% {
    transform: scale(1);
    opacity: 1;
    border-width: 3px;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
    border-width: 1px;
  }
}

/* ============================================================ */
/* EFFET THANOS DISINTEGRATION (DISSOLUTION EN POUSSIÈRE D'OR)  */
/* ============================================================ */
.warp-intro-curtain.curtain-activating .warp-er-logo,
.warp-intro-curtain.curtain-thanos-snap .warp-er-logo {
  animation: thanosLogoSnap 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes thanosLogoSnap {
  0% {
    transform: translate3d(0, 0, 0) skewX(0deg) scale(1);
    filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.35)) blur(0px);
    opacity: 1;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  15% {
    transform: translate3d(3px, -2px, 0) skewX(-1.5deg) scale(1.02);
    filter: drop-shadow(0 0 50px rgba(251, 191, 36, 0.8)) blur(1px);
    opacity: 1;
  }
  38% {
    transform: translate3d(18px, -15px, 0) skewX(-6deg) scale(1.04);
    filter: drop-shadow(0 0 75px rgba(245, 158, 11, 0.9)) blur(4px);
    opacity: 0.85;
    clip-path: polygon(0% 0%, 82% 0%, 94% 100%, 0% 100%);
  }
  68% {
    transform: translate3d(45px, -36px, 0) skewX(-14deg) scale(1.07);
    filter: drop-shadow(0 0 95px rgba(245, 158, 11, 0.6)) blur(11px);
    opacity: 0.35;
    clip-path: polygon(0% 0%, 38% 0%, 58% 100%, 0% 100%);
  }
  100% {
    transform: translate3d(85px, -65px, 0) skewX(-24deg) scale(1.12);
    filter: drop-shadow(0 0 120px rgba(245, 158, 11, 0)) blur(20px);
    opacity: 0;
    clip-path: polygon(0% 0%, 5% 0%, 15% 100%, 0% 100%);
  }
}

.warp-intro-curtain.curtain-activating .btn-warp-enter,
.warp-intro-curtain.curtain-thanos-snap .btn-warp-enter {
  animation: thanosBtnSnap 0.95s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes thanosBtnSnap {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
    filter: blur(0);
  }
  20% {
    transform: scale(1.05) translate3d(5px, -3px, 0);
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.9);
    opacity: 1;
  }
  60% {
    transform: scale(1.02) translate3d(28px, -18px, 0) skewX(-8deg);
    filter: blur(6px);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.92) translate3d(65px, -48px, 0) skewX(-18deg);
    filter: blur(18px);
    opacity: 0;
  }
}

.warp-intro-curtain.curtain-activating .warp-badge-sonic,
.warp-intro-curtain.curtain-thanos-snap .warp-badge-sonic {
  animation: thanosSubSnap 0.6s ease forwards;
}

.warp-intro-curtain.curtain-activating .warp-tagline,
.warp-intro-curtain.curtain-thanos-snap .warp-tagline {
  animation: thanosSubSnap 0.75s ease 0.06s forwards;
}

.warp-intro-curtain.curtain-activating .warp-hint-scroll,
.warp-intro-curtain.curtain-thanos-snap .warp-hint-scroll {
  animation: thanosSubSnap 0.45s ease forwards;
}

@keyframes thanosSubSnap {
  0% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
  50% { opacity: 0.5; transform: translate3d(18px, -14px, 0); filter: blur(5px); }
  100% { opacity: 0; transform: translate3d(42px, -32px, 0); filter: blur(14px); }
}

/* ============================================================ */
/* SITE DÉPART LOIN EN ARRIÈRE 3D & ASSEMBLAGE DE POUSSIÈRE     */
/* ============================================================ */
.has-warp-curtain .cinema-site-stage {
  transform: perspective(1200px) translate3d(0, 50px, -450px) scale(0.68);
  filter: blur(26px) brightness(0.22) saturate(0.5);
  opacity: 0.15;
  transform-origin: center 32%;
  will-change: transform, filter, opacity;
  pointer-events: none;
  transition: transform 1.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.75s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-site-stage.cinema-site-assembled,
body:not(.has-warp-curtain) .cinema-site-stage {
  transform: perspective(1200px) translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px) brightness(1) saturate(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Construction progressive des blocs depuis la poussière */
.has-warp-curtain .dust-construct {
  opacity: 0;
  transform: translateY(42px) scale(0.92);
  filter: blur(18px);
  will-change: transform, filter, opacity;
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-site-assembled .dust-construct,
body:not(.has-warp-curtain) .dust-construct {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.cinema-site-assembled .dust-construct.delay-step-1 { transition-delay: 0.32s; }
.cinema-site-assembled .dust-construct.delay-step-2 { transition-delay: 0.48s; }
.cinema-site-assembled .dust-construct.delay-step-3 { transition-delay: 0.64s; }
.cinema-site-assembled .dust-construct.delay-step-4 { transition-delay: 0.82s; }
.cinema-site-assembled .dust-construct.delay-step-5 { transition-delay: 1.00s; }
.cinema-site-assembled .dust-construct.delay-step-6 { transition-delay: 1.18s; }

.warp-hint-scroll {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================================ */
/* 2. SCÈNE I : LE STUDIO CINÉMA EN IMMERSION TOTALE (HERO)     */
/* ============================================================ */
.scene-studio-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.studio-backdrop-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.studio-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.6) contrast(1.15);
  animation: ken-burns-slow 24s ease-in-out infinite alternate;
}

@keyframes ken-burns-slow {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1%, 1%); }
  100% { transform: scale(1.08) translate(1%, -1%); }
}

/* Studio Ambient Gradients & Neon Glow Fixe */
.studio-backdrop-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(13, 16, 21, 0.2) 0%, rgba(13, 16, 21, 0.5) 70%, #0d1015 100%),
    linear-gradient(180deg, rgba(13, 16, 21, 0.25) 0%, rgba(13, 16, 21, 0.1) 40%, rgba(13, 16, 21, 0.55) 90%, #0d1015 100%);
}

.scene-studio-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.studio-pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  background: rgba(20, 23, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.studio-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.02;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.studio-hero-quote {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.4;
  max-width: 860px;
  margin: 0 auto 36px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.studio-hero-quote span {
  color: var(--gold);
}

/* Glass Monolith Bio Card with 3D Depth */
.studio-glass-monolith {
  background: rgba(23, 27, 34, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 42px;
  max-width: 920px;
  margin: 0 auto 40px;
  text-align: left;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.08);
}

.studio-glass-monolith p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.studio-glass-monolith p:last-child {
  margin-bottom: 0;
}

/* Studio Fast Stats Grid */
.studio-stats-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.studio-stat-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(23, 27, 34, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.studio-stat-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
}

.studio-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Action Buttons */
.studio-actions-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================ */
/* 3. SCÈNE II : LA VÉRITÉ NUE & LE PORTRAIT SOLAIRE             */
/* ============================================================ */
.scene-truth-portrait {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: rgba(13, 16, 21, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.scene-truth-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

/* Portrait Showcase Column */
.portrait-cinema-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 158, 11, 0.2);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

.portrait-cinema-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-cinema-frame:hover .portrait-cinema-img {
  transform: scale(1.03);
}

/* Light Streaks across portrait */
.portrait-cinema-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15) 0%,
    transparent 50%,
    rgba(6, 182, 212, 0.1) 100%
  );
  pointer-events: none;
}

/* Truth Story Column */
.truth-story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.truth-story-tag {
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.truth-story-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  color: #ffffff;
}

.truth-manifesto-box {
  background: rgba(23, 27, 34, 0.7);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 18px 18px 0;
  margin-bottom: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.truth-manifesto-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.truth-manifesto-box p:last-child {
  margin-bottom: 0;
}

/* Story Highlights Pills */
.truth-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.truth-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.truth-pill-item span.icon {
  color: var(--gold);
}

/* ============================================================ */
/* 4. SCÈNE III : LES 3 MONOLITHES DIMENSIONNELS (PORTAILS)     */
/* ============================================================ */
.scene-portals-dimension {
  position: relative;
  z-index: 2;
  padding: 120px 0 140px;
  background: rgba(10, 13, 18, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
}

.portals-cinema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.portal-monolith-card {
  position: relative;
  background: #1a1e27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.portal-monolith-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-monolith-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 35px var(--gold-glow);
}

.portal-monolith-card:hover::before {
  opacity: 1;
}

.portal-icon-giant {
  font-size: 42px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.3));
}

.portal-category-tag {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.portal-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
}

.portal-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 28px;
}

.portal-card-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}

.portal-card-action span.arrow {
  transition: transform 0.3s ease;
}

.portal-monolith-card:hover .portal-card-action span.arrow {
  transform: translateX(6px);
}

/* Responsive */
@media (max-width: 980px) {
  .scene-truth-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait-cinema-frame {
    max-width: 380px;
  }
  .portals-cinema-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .scene-studio-hero {
    padding-top: 100px;
  }
}

/* ============================================================ */
/* 5. MOTEUR 3D DEEP SPACE COUNTDOWN (LES CHIFFRES VENUS DE LOIN) */
/* ============================================================ */
.countdown-monumental-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 60px;
  perspective: 1600px;
  perspective-origin: center center;
  transform-style: preserve-3d;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Stargate Orbital Rings Background */
.portal-rings-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 580px;
  max-width: 90vw;
  max-height: 90vw;
  transform: translate(-50%, -50%) translateZ(-350px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ring-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.3));
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation: ringSpinClockwise 40s linear infinite;
  border-top-color: #f59e0b;
  border-bottom-color: #38bdf8;
}

.ring-2 {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-style: dotted;
  border-width: 2px;
  border-color: rgba(56, 189, 248, 0.45);
  animation: ringSpinCounter 28s linear infinite;
}

.ring-3 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border: 1px solid rgba(245, 158, 11, 0.65);
  animation: ringSpinClockwise 18s linear infinite;
}

.portal-core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
  filter: blur(45px);
  animation: portalPulseGlow 3.5s ease-in-out infinite alternate;
}

@keyframes ringSpinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ringSpinCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes portalPulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.95; }
}

/* 3D Perspective Grid Container */
.countdown-grid-wrap-3d {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 30px auto 25px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Deep Space Fly-In Animation ("les chiffres qui viennent de loin") */
.deep-space-entry {
  opacity: 0;
  animation: flyFromDeepSpace 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}

@keyframes flyFromDeepSpace {
  0% {
    opacity: 0;
    transform: translateZ(-3000px) translateY(180px) rotateX(65deg) scale(0.03);
    filter: blur(45px) brightness(4);
  }
  62% {
    opacity: 1;
    transform: translateZ(95px) translateY(-20px) rotateX(-12deg) scale(1.12);
    filter: blur(0px) brightness(1.3);
  }
  82% {
    transform: translateZ(-25px) translateY(8px) rotateX(4deg) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
}

.delay-days    { animation-delay: 0.1s; }
.delay-sep1    { animation-delay: 0.3s; }
.delay-hours   { animation-delay: 0.45s; }
.delay-sep2    { animation-delay: 0.65s; }
.delay-minutes { animation-delay: 0.8s; }
.delay-sep3    { animation-delay: 1.0s; }
.delay-seconds { animation-delay: 1.15s; }

/* 3D Time Monolith Card */
.cd-time-card-3d {
  position: relative;
  min-width: 165px;
  padding: 34px 22px 26px;
  background: linear-gradient(155deg, rgba(30, 36, 48, 0.94) 0%, rgba(13, 16, 23, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 22px;
  text-align: center;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(245, 158, 11, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cd-time-card-3d:hover {
  transform: translateZ(40px) scale(1.05);
  border-color: var(--gold);
  box-shadow: 
    0 45px 95px rgba(0, 0, 0, 0.95),
    0 0 75px rgba(245, 158, 11, 0.55),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Glass Scanline & Shimmer */
.card-glass-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 21px 21px 0 0;
  pointer-events: none;
}

/* High-tech Corner Brackets */
.card-corner-tech {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  opacity: 0.85;
}

.card-corner-tech.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.card-corner-tech.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.card-corner-tech.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.card-corner-tech.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Giant 3D Numeral */
.digit-value-wrapper {
  position: relative;
  display: block;
  perspective: 600px;
}

.cd-digit-3d {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBBF24 45%, #D97706 75%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.55));
  letter-spacing: 0px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Tick Micro-Shockwave Animation (Confinée à l'intérieur de la carte pour ne jamais déplacer le menu) */
.cd-digit-3d.digit-tick {
  animation: digitTickShock 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes digitTickShock {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6));
  }
  35% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.95));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.55));
  }
}

.cd-unit-3d {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-top: 14px;
}

.card-led-bar {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--gold);
}

/* Glowing 3D Separator */
.cd-sep-3d {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow);
  align-self: center;
  padding-bottom: 24px;
  opacity: 0.9;
  animation: sepNeonBlink 2s ease-in-out infinite alternate;
}

@keyframes sepNeonBlink {
  0% { opacity: 0.45; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)); }
  100% { opacity: 1; filter: drop-shadow(0 0 35px rgba(245, 158, 11, 1)); }
}

/* Replay Flight Trigger */
.countdown-replay-wrap {
  margin-top: 16px;
}

.btn-replay-flight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-replay-flight:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: var(--gold);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
}

/* Cyber Vault Keypad Upgrade */
.cyber-vault-card {
  max-width: 460px;
  margin: 0 auto 50px;
  background: linear-gradient(155deg, rgba(25, 30, 42, 0.92) 0%, rgba(11, 14, 20, 0.96) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 22px;
  padding: 36px 32px;
  text-align: center;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.2);
}

.pin-slots-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.pin-slot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
  transition: all 0.25s ease;
}

.pin-slot-dot.filled {
  background: var(--gold);
  border-color: #fef08a;
  box-shadow: 0 0 16px var(--gold);
  transform: scale(1.15);
}

/* Responsive Countdown 3D (Stabilité totale sur smartphone sans overflow) */
@media (max-width: 860px) {
  .countdown-grid-wrap-3d {
    gap: 12px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cd-sep-3d {
    display: none;
  }
  .cd-time-card-3d {
    min-width: 130px;
    padding: 20px 12px 16px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .cd-digit-3d {
    font-size: 44px;
  }
  .portal-rings-bg {
    width: 320px;
    height: 320px;
    max-width: 85vw;
    max-height: 85vw;
  }
}

@media (max-width: 600px) {
  .countdown-grid-wrap-3d {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 330px;
    margin: 15px auto;
  }
  .cd-time-card-3d {
    min-width: 0;
    width: 100%;
    padding: 16px 8px 12px;
  }
  .cd-digit-3d {
    font-size: 38px;
  }
  .cd-unit-3d {
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 8px;
  }
}

/* ============================================================ */
/* 8. WORLD MAP CANVAS (LIVRES & AUTRICE)                      */
/* ============================================================ */
.world-map-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

/* ============================================================ */
/* 9. MUSIC AUDIO VISUALIZER CANVAS (MUSIQUE & CLIP)           */
/* ============================================================ */
.music-audio-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* ============================================================ */
/* 10. SAND RESERVOIR CANVAS (OUT OF FRAME • 01/09 -> 13/11)   */
/* ============================================================ */
.sand-reservoir-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.sand-reservoir-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  animation: badge-pulse-subtle 2.5s infinite alternate;
}

@keyframes badge-pulse-subtle {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
  100% { transform: scale(1.03); box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
}

/* S'assurer que le vortex/spirale 3D tourne continuellement en arrière-plan */
.portal-rings-bg {
  animation: rotate-stargate 36s linear infinite;
}

@keyframes rotate-stargate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================ */
/* 11. CADRES DES 8 MORCEAUX OUT OF FRAME (STUDIO POLISHED FRAMES)*/
/* ============================================================ */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.track-card,
.track-card-preview {
  background: rgba(18, 22, 30, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 18px !important;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background 0.35s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.track-card:hover,
.track-card-preview:hover {
  background: rgba(24, 30, 42, 0.94) !important;
  border-color: var(--gold) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.35) !important;
}

.card-top,
.track-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}

.card-num-badge,
.track-num-badge {
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: var(--gold) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  letter-spacing: 1px !important;
}

.card-tags {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.tag-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  font-family: monospace !important;
}

.card-title,
.track-card-title {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.card-quote,
.track-card-quote {
  font-size: 13px !important;
  font-style: italic !important;
  color: #fef08a !important;
  margin-bottom: 14px !important;
  padding-left: 10px !important;
  border-left: 2px solid var(--gold) !important;
  line-height: 1.5 !important;
}

.card-explanation,
.track-card-exp {
  font-size: 13.5px !important;
  color: #cbd5e1 !important;
  line-height: 1.65 !important;
  margin-bottom: 22px !important;
}

.card-actions {
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-card-sing {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: var(--gold) !important;
  font-family: var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.btn-card-sing:hover {
  background: var(--gold) !important;
  color: #000000 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px) !important;
}
