/* ============================================================
   FUGUE PRODUCTION — Global Stylesheet
   Couleurs : Jaune #F4BE26 / Violet #1D1128
   Polices  : Caviar Dreams (headings) + Medusa (logo accent)
   ============================================================ */

@font-face {
  font-family: 'CaviarDreams';
  src: url('../assets/fonts/CaviarDreams.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CaviarDreams';
  src: url('../assets/fonts/CaviarDreams_Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'CaviarDreams';
  src: url('../assets/fonts/CaviarDreams_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CaviarDreams';
  src: url('../assets/fonts/CaviarDreams_BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Medusa';
  src: url('../assets/fonts/Medusa.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* === VARIABLES === */
:root {
  --yellow:  #F4BE26;
  --violet:  #1D1128;
  --violet-mid: #2a1a3e;
  --white:   #FAF8F2;
  --grey:    #b0aab8;
  --font-main: 'CaviarDreams', 'Trebuchet MS', sans-serif;
  --font-accent: 'Medusa', serif;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
  --transition: 0.6s var(--ease-smooth);
}

/* === ACCESSIBILITÉ & SEO === */
/* Contenu visible uniquement pour les moteurs et lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

/* Autoriser la sélection sur les contenus textuels et les champs */
p, .projet-desc, .about-body, input, textarea {
  user-select: text;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  cursor: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}


body::-webkit-scrollbar { display: none; }

a, button, input, select, textarea {
  cursor: default !important;
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  appearance: none;
}

#play-trigger { cursor: none !important; }

img, video {
  display: block;
  max-width: 100%;
}

/* === MEDUSA G — couche 2 === */
#medusa-g {
  position: fixed;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-accent);
  font-size: 95vw;
  line-height: 1;
  color: var(--violet-mid);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* === BG LETTER MEDUSA (pages secondaires) === */
#bg-letter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-accent);
  font-size: 180vh;
  line-height: 1;
  color: var(--violet);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  text-align: center;
  width: 100vw;
}

/* === CUSTOM CURSOR === */
#cursor {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Curseur custom masqué sur pages secondaires */
body.page-secondaire #cursor,
body.page-secondaire #cursor-ring,
body.page-secondaire #cursor-label,
body.page-secondaire #cursor-sound { display: none !important; }

#cursor-ring {
  position: fixed;
  width: 0;
  height: 0;
  border: none;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-smooth), height 0.4s var(--ease-smooth), border 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

#cursor-label {
  position: fixed;
  font-family: var(--font-main);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Sur le showreel : curseur onde sonore */
body.cursor-showreel { cursor: none; }
body.cursor-showreel #cursor-ring {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(250,248,242,0.2);
  opacity: 1;
}

/* Icone onde sonore */
#cursor-sound {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.cursor-showreel #cursor-sound { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }

.sound-wave {
  display: flex;
  align-items: center;
  gap: 3px;
}
.sound-bar {
  width: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: bottom;
  animation: soundbar 0.7s ease-in-out infinite alternate;
}
.sound-bar:nth-child(1) { height: 6px;  animation-delay: 0s; }
.sound-bar:nth-child(2) { height: 14px; animation-delay: 0.12s; }
.sound-bar:nth-child(3) { height: 18px; animation-delay: 0.24s; }
.sound-bar:nth-child(4) { height: 12px; animation-delay: 0.18s; }
.sound-bar:nth-child(5) { height: 6px;  animation-delay: 0.06s; }


@keyframes soundbar {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

.sound-state-label {
  font-family: var(--font-main);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,248,242,0.6);
}

/* === NAV ACCENT LETTER === */
/* Remplace les inline style="font-family:var(--font-accent)..." dans les liens de nav */
.nav-accent {
  font-family: var(--font-accent);
  font-weight: 400;
  margin-right: 0.18em;
}

/* Variante pour "Contact" dont la lettre C est plus serrée */
.nav-accent-tight {
  font-family: var(--font-accent);
  font-weight: 400;
  margin-right: 0.04em;
}

/* === LIEN ACTIF DE LA NAVIGATION (via data-page sur <body>) === */
[data-page="travaux"]  [data-nav="travaux"]  a,
[data-page="projet"]   [data-nav="travaux"]  a  { color: var(--yellow); opacity: 1; }
[data-page="processus"] [data-nav="processus"] a  { color: var(--yellow); opacity: 1; }
[data-page="a-propos"] [data-nav="a-propos"] a  { color: var(--yellow); opacity: 1; }
[data-page="contact"]  [data-nav="contact"]  a  { color: var(--yellow); opacity: 1; }

/* === NAVIGATION === */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  padding: 0.6rem 5vw 6.5vh;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.8s ease;
  pointer-events: none;
}

/* Bande de blur horizontale */
#nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

#nav.no-blur::before,
#nav.no-blur::after {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}

#nav.nav-reveal {
  opacity: 1;
}

#nav.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3vw;
  list-style: none;
  padding-top: 1.2rem;
  justify-content: flex-start;
  pointer-events: auto;
}

.nav-right {
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.9;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: none;
}

.nav-links a:hover { opacity: 1; color: var(--yellow); }

.nav-logo {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: auto;
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo-img {
  height: 6rem;
  width: auto;
  display: block;
}

/* === LOADER / INTRO SEQUENCE === */
#loader {
  position: fixed;
  inset: 0;
  background: #1D1128;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#loader-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#loader.anim-done #loader-video {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#loader.anim-done {
  pointer-events: none;
  transition: opacity 0.4s ease 1s;
  opacity: 0;
}

/* === HERO === */
#hero {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#hero-video-container {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: none;
}

#hero-video-container.visible { opacity: 1; }

#hero-video-container iframe,
#hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Play button area */
#play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}

/* Mobile : bouton son fixe centré, non déplaçable */
@media (max-width: 900px) {
  #play-trigger {
    cursor: pointer;
    pointer-events: auto;
  }
  /* Cursor ring — position gérée par JS, caché par défaut */
  #cursor-ring {
    position: fixed !important;
    width: 72px !important;
    height: 72px !important;
    border: 1px solid rgba(250,248,242,0.2) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease !important;
  }
  body.cursor-showreel #cursor-ring {
    opacity: 1 !important;
  }
  /* Sound button — position gérée par JS, caché par défaut */
  #cursor-sound {
    position: fixed !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease !important;
  }
  body.cursor-showreel #cursor-sound {
    opacity: 1 !important;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* === HERO TAGLINE (sous la vidéo) === */
.hero-tagline-below {
  text-align: center;
  padding: 4rem 2rem 0;
  background: transparent;
  position: relative;
  z-index: 5;
}

.tagline-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tagline-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 4.9vw, 4.375rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  text-shadow:
    0 0 1px rgba(255,255,255,0.9),
    0 0 8px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.2);
}

.tagline-phonetic {
  font-family: var(--font-main);
  font-size: clamp(0.9rem, 1.6vw, 1.4rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow:
    0 0 1px rgba(255,255,255,0.9),
    0 0 8px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.2);
}

.tagline-defs {
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow:
    0 0 1px rgba(255,255,255,0.9),
    0 0 8px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.2);
}

.tagline-num {
  font-weight: 700;
  font-size: clamp(0.7rem, 1.05vw, 0.9375rem);
}

/* Apparition au scroll — chaque ligne individuellement */
.tagline-word {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-smooth);
}

.tagline-word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION BASE === */
.section {
  padding: 8rem 6vw;
  position: relative;
}

/* === PROJECT GRID (Homepage) === */
#projects-preview {
  position: relative;
  z-index: 10;
  background: transparent;
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: visible;
}

/* === COVERFLOW CAROUSEL === */
.coverflow-scene {
  position: relative;
  overflow: visible;
  padding: 1rem 4rem 1rem;
}

.coverflow-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 37.5vw;
  max-height: 600px;
  perspective: 1200px;
  perspective-origin: center center;
}

.project-thumb {
  position: absolute;
  width: 29.8vw;
  max-width: 480px;
  aspect-ratio: 1221 / 1526;
  overflow: hidden;
  background: var(--violet-mid);
  border-radius: 14px;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
  cursor: pointer;
  will-change: transform, opacity;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(255,255,255,0.05);
}

.project-thumb img,
.project-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb img { z-index: 1; }

.project-thumb video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-thumb.playing video { opacity: 1; }

/* La vidéo est rendue visible uniquement via .playing (contrôlé par JS au premier frame) */

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,17,40,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.6rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-thumb:hover .project-thumb-overlay { opacity: 1; }

.project-thumb-line {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-smooth);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8), 0 2px 20px rgba(0,0,0,0.6);
}

.project-thumb-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.project-thumb-cat {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250,248,242,0.45);
}

.project-thumb:hover .project-thumb-line {
  transform: translateY(0);
}

/* === CAROUSEL ARROWS === */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none;
  border: 1px solid rgba(244,190,38,0.4);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--yellow);
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.7;
}
.carousel-btn:hover { border-color: var(--yellow); opacity: 1; }
.carousel-btn.prev { left: calc(2.5vw - 1.3rem); right: auto; }
.carousel-btn.next { right: calc(2.5vw - 1.3rem); left: auto; }
.carousel-btn svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; }
.carousel-btn:disabled { opacity: 0.15; cursor: default; }

/* Dots */
.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4vw;
}
.coverflow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.coverflow-dot.active {
  background: var(--white);
  transform: scale(1.4);
}

/* === TIMELINE SERVICES (Homepage teaser) === */
/* ── DaVinci Timeline ───────────────────────────── */
#timeline-teaser {
  position: relative;
  z-index: 2;
  background: transparent;
  overflow: hidden;
  padding-top: 0;
}

#timeline-teaser .section-heading {
  margin-bottom: 3rem;
}

/* Outer container: labels + scroll side by side */
.dv-outer {
  display: flex;
  background: #060608;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    0 0 14px 2px rgba(255,255,255,0.08),
    0 0 40px 6px rgba(255,255,255,0.04);
  cursor: none;
  position: relative;
  z-index: 1;
}

/* Diagonal ray wrapper */
.dv-glow-wrap {
  position: relative;
}

/* Top-right caption */
.dv-timeline-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-bottom: 10px;
  opacity: 0.50;
}

.dv-caption-main {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.dv-caption-sub {
  font-family: var(--font-main);
  font-size: 0.72rem;
  color: var(--white);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Fixed left labels */
.dv-labels {
  flex-shrink: 0;
  width: 64px;
  background: #111115;
  border-right: 1px solid rgba(255,255,255,0.07);
  z-index: 2;
  cursor: default;
}

.dv-lbl-ruler {
  height: 48px;
  background: #090909;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dv-lbl-row {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dv-lbl-row.dv-lbl-phase {
  height: 56px;
  background: #0d0d10;
}

/* DaVinci-style track pill labels */
.dv-track-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  font-family: var(--font-main);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.dv-pill-v {
  background: #7a1a1a;
  color: #ff8f8f;
  border: 1px solid rgba(220,60,60,0.4);
}

.dv-pill-phase {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  width: 40px;
}

/* Track toggle button — film icon (V tracks) */
.dv-track-toggle {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  font-family: var(--font-main);
  letter-spacing: 0.02em;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  padding: 0;
}

.dv-track-toggle:hover {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

.dv-track-toggle.muted {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.05);
}

/* M button — audio only, same grey as others */
.dv-toggle-audio {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-main);
}

.dv-toggle-audio:hover {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

.dv-toggle-audio.muted {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.05);
}

/* Scrollable area — no scroll, auto-fit via zoom */
.dv-scroll {
  flex: 1;
  overflow: hidden;
  cursor: none;
}

/* Inner track zone — scaled to fit container via JS zoom */
.dv-inner {
  width: 1470px;
  position: relative;
  transform-origin: top left;
}

/* Ruler */
.dv-ruler {
  height: 48px;
  background: #090909;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.dv-week {
  position: absolute;
  top: 8px;
  font-size: 0.70rem;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.35);
}

.dv-tick {
  position: absolute;
  bottom: 5px;
  font-size: 0.57rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-main);
  padding-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

/* Playhead vertical line in ruler */
.dv-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e54545;
  z-index: 5;
  pointer-events: none;
}

/* Triangle head at top of playhead */
.dv-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #e54545;
}

/* Small circle at very top */
.dv-playhead::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #e54545;
  border-radius: 50%;
}

/* Full-height playhead across all tracks */
.dv-playhead-full {
  position: absolute;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: rgba(229,69,69,0.35);
  z-index: 5;
  pointer-events: none;
}

/* Track rows */
.dv-track {
  position: relative;
  height: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: #060608;
}

.dv-track:hover { background: rgba(255,255,255,0.02); }

.dv-track.dv-track-phase {
  height: 56px;
  background: #040406;
}

/* Blocks */
.dv-block {
  position: absolute;
  top: 5px;
  height: calc(100% - 10px);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.68rem;
  font-family: var(--font-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  transition: filter 0.15s;
}

.dv-block:hover { filter: brightness(1.15); }

/* Phase blocks */
.dv-phase {
  top: 6px;
  height: calc(100% - 12px);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  gap: 8px;
}

/* Phase colors */
.dv-preprod   { background: rgba(244,190,38,1); color: #1a1000; }
.dv-prod      { background: rgba(90,170,235,1); color: #020e1a; }
.dv-post      { background: rgba(165,120,220,1); color: #0e0418; }

.dv-phase-num {
  font-size: 0.62rem;
  opacity: 0.6;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* Sub-step blocks */
.dv-sub-preprod {
  background: rgba(244,190,38,0.18);
  color: rgba(255,210,80,1);
  border: 1px solid rgba(244,190,38,0.55);
  font-size: 0.65rem;
}

.dv-sub-prod {
  background: rgba(90,170,235,0.18);
  color: rgba(130,200,255,1);
  border: 1px solid rgba(90,170,235,0.55);
  font-size: 0.65rem;
}

.dv-sub-post {
  background: rgba(165,120,220,0.18);
  color: rgba(210,170,255,1);
  border: 1px solid rgba(165,120,220,0.55);
  font-size: 0.65rem;
}

/* Milestone markers */
.dv-milestone {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-main);
  letter-spacing: 0.05em;
}

.dv-m-post { color: rgba(180,127,227,0.9); border-color: rgba(180,127,227,0.35); }

/* Audio separator line */
.dv-audio-sep {
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0;
}

.dv-lbl-audio-sep {
  height: 2px;
  background: rgba(255,255,255,0.08);
}

/* Audio track row */
.dv-track.dv-track-audio {
  height: 44px;
  background: #080f0a;
}

.dv-track.dv-track-audio:hover { background: #0a130c; }

/* Audio block */
.dv-sub-audio {
  background: rgba(50,160,80,0.2);
  color: rgba(90,200,120,0.9);
  border: 1px solid rgba(50,160,80,0.3);
  font-size: 0.62rem;
  gap: 6px;
}

.dv-audio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 14px;
  background: rgba(50,160,80,0.4);
  border: 1px solid rgba(50,160,80,0.5);
  border-radius: 2px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(90,200,120,1);
  flex-shrink: 0;
}

/* Audio playing pulse animation */
@keyframes dv-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(50,160,80,0.3); }
  50%       { box-shadow: inset 0 0 0 1px rgba(50,160,80,0.8), 0 0 12px 2px rgba(50,160,80,0.25); }
}

.dv-audio-playing {
  animation: dv-pulse 1.8s ease-in-out infinite;
}

/* A1 pill */
.dv-pill-a {
  background: #0e3d1a;
  color: #5ac878;
  border: 1px solid rgba(50,160,80,0.4);
}

.dv-lbl-row-audio {
  background: #111115;
}

/* Navigation */

/* === CTA START PROJECT === */
#cta-start {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6vw 3.5rem;
  background: transparent;
}

.cta-label {
  display: inline-block;
  border: 1px solid rgba(244,190,38,0.5);
  border-radius: 980px;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
  position: relative;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(244,190,38,0);
  transition: border-color 0.4s ease, background 0.4s ease,
              backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.cta-label:hover {
  border-color: rgba(244,190,38,0.85);
  background: rgba(244,190,38,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--yellow);
  opacity: 1;
}

/* === PAGE: TRAVAUX === */
/* === PAGE: À PROPOS === */
/* === PAGE: CONTACT === */
/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244,190,38,0.25);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--yellow);
}

.field textarea {
  resize: none;
  min-height: 140px;
  line-height: 1.7;
}

/* Neutralise le fond jaune de l'autofill navigateur */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  box-shadow: 0 0 0 1000px #000 inset;
  -webkit-text-fill-color: #FAF8F2;
  caret-color: #FAF8F2;
  transition: background-color 9999s ease-in-out 0s;
}

.field select option {
  background: var(--violet-mid);
  color: var(--white);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: default;
  transition: background 0.4s ease, color 0.4s ease;
  margin-top: 1rem;
  width: fit-content;
}

.form-submit:hover {
  background: var(--yellow);
  color: var(--violet);
}

.form-submit svg {
  transition: transform 0.3s ease;
}

.form-submit:hover svg { transform: translateX(6px); }

/* === PAGE: PROJECT DETAIL === */
/* === FOOTER === */
#footer {
  position: relative;
  z-index: 2;
  padding: 1.4rem 6vw;
  /* === HUGO ICI FOOTER OPACITY : CHANGER ICI LA VALEUR DE L'OPACITE DU VOILE === */
  background: rgba(0, 0, 0, 0.50);
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-copy {
  justify-self: end;
  text-align: right;
  grid-column: 4;
  font-size: 0.62rem;
  color: var(--white);
  letter-spacing: 0.08em;
}

.footer-brand {
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}

.footer-logo {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-self: center;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--yellow); }

.footer-legal {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-self: start;
}

.footer-legal a {
  font-size: 0.65rem;
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--yellow); }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === GRAIN OVERLAY === */
/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--violet); }
::-webkit-scrollbar-thumb { background: rgba(244,190,38,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* === SECTION HEADINGS (Nos Projets / Notre Processus) === */
.section-heading {
  text-align: left;
  padding-left: 4vw;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-heading.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-pill-btn {
  display: inline-block;
  border: 1px solid rgba(244,190,38,0.5);
  border-radius: 980px;
  padding: 0.66rem 1.68rem;
  font-family: var(--font-main);
  font-size: clamp(0.96rem, 1.32vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(244,190,38,0);
  transition: border-color 0.4s ease, background 0.4s ease,
              backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.section-pill-btn:hover {
  border-color: rgba(244,190,38,0.85);
  background: rgba(244,190,38,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--yellow);
  opacity: 1;
}

/* ── PROCESS STEPS (page processus) ─────────────────── */
#process-steps {
  padding: 6rem 0 8rem;
}

.ps-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to bottom, var(--yellow), rgba(244,190,38,0.4));
  transition: height 0.1s linear;
}

/* Phase labels */
.ps-phase-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 2.5rem 0 1rem;
  width: 46%;
}

.ps-phase-label .ps-phase-num {
  opacity: 0.6;
  margin-right: 0.4em;
}

/* Step rows */
.ps-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.4rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ps-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.ps-step-left {
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
}

.ps-step-right {
  justify-content: flex-start;
  padding-left: calc(50% + 2rem);
}

/* Dot on the line */
.ps-dot {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: rgba(244,190,38,0.3);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: background 0.3s;
}

.ps-dot-final {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(244,190,38,0.6);
}

.ps-step.visible .ps-dot {
  background: var(--yellow);
}

.ps-step-left .ps-content { text-align: right; }
.ps-step-right .ps-content { text-align: left; }

.ps-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(180,127,227,0.9);
  border: 1px solid rgba(180,127,227,0.35);
  border-radius: 3px;
  padding: 0.1em 0.5em;
  margin-left: 0.3em;
  vertical-align: middle;
}

/* === PAGES PROJET (détail film) === */
body.page-projet {
  height: auto;
  overflow: auto;
  background: #000;
}

.projet-page {
  padding: 12rem 3rem 5rem;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Ligne du haut : infos gauche + description droite */
.projet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 2rem;
}

.projet-left { flex-shrink: 0; }

.projet-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.projet-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1;
  text-shadow:
    0 0 8px rgba(244,190,38,0.25),
    0 0 20px rgba(244,190,38,0.08);
}

.projet-client {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244,190,38,0.5);
  line-height: 1;
}

.projet-meta {
  display: flex;
  gap: 4vw;
}

.projet-meta-item {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,190,38,0.35);
}

.projet-meta-item strong {
  color: rgba(244,190,38,0.75);
  font-weight: 700;
}

.projet-desc-wrap {
  max-width: 680px;
  width: 100%;
}

.projet-desc-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,190,38,0.90);
  margin-bottom: 0.6rem;
}

.projet-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.02em;
}

/* Player pleine largeur */
.projet-player {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.projet-player iframe {
  display: block;
  border: 0;
}


/* === MEDIA QUERIES (regroupées) === */

@media (max-width: 900px) {
  /* Nav — réduction intermédiaire */
  #nav { padding: 0.6rem 1.5rem 4vh; }
  .nav-logo-img { height: 4.5rem; }
  .nav-links { padding-top: 0.9rem; }

  /* Grand F Medusa — réduit sur mobile */
  #bg-letter { font-size: 120vw; }

  /* Carousel — flèches cachées, taille adaptée */
  .carousel-btn { display: none; }
  .coverflow-scene { padding: 1rem 0; touch-action: pan-y; }
  .coverflow-track { height: 75.5vw; max-height: 400px; }
  .project-thumb { width: 60vw; max-width: 320px; }
  .coverflow-dots { margin-top: 4vw; }

  /* Timeline — scroll horizontal natif sur mobile */
  .dv-outer {
    zoom: 1 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    cursor: default;
  }
  .dv-scroll {
    overflow: visible;
    cursor: default;
  }
  .dv-inner { width: 1470px; }

  /* Sections */
  .section { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 768px) {
  .projet-top  { flex-direction: column; gap: 2rem; }
  .projet-page { padding: 8rem 1.5rem 4rem; }

  /* Nav compact — logo centré */
  #nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem;
    gap: 0;
  }
  .nav-left  { justify-content: flex-start; order: 1; gap: 1.2rem; padding-top: 0; }
  .nav-logo  { order: 2; padding: 0; text-align: center; margin: 0; }
  .nav-right { justify-content: flex-end;  order: 3; gap: 1.2rem; padding-top: 0; }
  .nav-logo-img { height: 3.2rem; }
  .nav-links a  { font-size: 0.72rem; letter-spacing: 0.12em; }

  /* Grand F — vraiment réduit */
  #bg-letter { font-size: 90vw; }

  /* Timeline caption — réduit sur mobile */
  .dv-caption-main { font-size: 0.665rem; } /* −30% de 0.95rem */
  .dv-caption-sub  { display: none; }

  /* Loader vidéo intro — contain sur mobile pour ne pas cropper */
  #loader-video { object-fit: contain; background: #1D1128; }

  /* Body text */
  body { line-height: 1.5; }
  p, .about-body { line-height: 1.65; }

  /* Carousel mobile — swipe touch */
  .coverflow-track { height: 90vw; max-height: 350px; perspective: 800px; }
  .project-thumb   { width: 72vw; max-width: 280px; }

  /* Hero tagline */
  .hero-tagline-below { padding: 2rem 1.5rem 0; }

  /* Footer mobile — 4 lignes centrées */
  #footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 1rem 1rem;
    gap: 0.7rem;
  }
  /* Ligne 1 : LinkedIn, Instagram */
  .footer-links { order: 1; flex-direction: row; justify-content: center; gap: 1.5rem; margin: 0; }
  .footer-links::after { display: none; }
  .footer-links li,
  .footer-legal li { line-height: 1; display: flex; align-items: center; }
  /* Ligne 2 : Mentions légales, Politique de confidentialité */
  .footer-legal { order: 2; flex-direction: row; justify-content: center; flex: none; gap: 1rem; margin: 0; }
  /* Ligne 3 : copyright */
  .footer-copy  { order: 3; text-align: center; font-size: 0.5rem; }
  /* Ligne 4 : logo — plus espacé des autres lignes */
  .footer-brand { order: 4; margin-top: 0.6rem; }
  .footer-logo  { height: 2rem; }
  .footer-links a { font-size: 0.55rem; letter-spacing: 0.14em; }
  .footer-legal a { font-size: 0.5rem; letter-spacing: 0.1em; }

  /* Projet desc + player — police réduite sur mobile */
  .projet-desc  { font-size: 0.75rem; line-height: 1.65; }
  .projet-top   { flex-direction: column; gap: 1.2rem; }
  .projet-page  { padding: 6rem 1.2rem 3rem; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }

  /* Nav ultra compact */
  .nav-links a { font-size: 0.65rem; letter-spacing: 0.08em; }
  .nav-links   { gap: 0.9rem; }
  .nav-logo-img { height: 2.8rem; }

  /* Sections */
  .section { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 430px) {
  /* Nav : tous les éléments équirépartis sur une ligne */
  #nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0;
  }
  #nav .nav-links {
    display: contents; /* les <ul> disparaissent du layout, les <li> deviennent enfants directs du flex */
  }
  #nav .nav-links li {
    display: flex;
    align-items: center;
  }
  /* Rétablir l'ordre : Films · Processus · FUGUE · Définition · Contact */
  #nav [data-nav="travaux"]   { order: 1; }
  #nav [data-nav="processus"] { order: 2; }
  #nav .nav-logo              { order: 3; }
  #nav [data-nav="a-propos"]  { order: 4; }
  #nav [data-nav="contact"]   { order: 5; }
  .nav-logo-img { height: 2.4rem; }
  .nav-links a  { font-size: 0.58rem; letter-spacing: 0.06em; }
}

/* === FORM LOADER === */
@keyframes formSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
