* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== UTILITAIRES ===== */
.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;
}

/* Focus visible pour navigation clavier */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #f0efec;
  outline-offset: 3px;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #050505;
  color: #f0efec;
  overflow-x: hidden;
  cursor: none;
}

*:not(input):not(textarea) {
  cursor: none !important;
}

/* ===== CURSEUR CUSTOM — CROIX ===== */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.2s ease;
}

#custom-cursor.hidden {
  opacity: 0;
}

#custom-cursor::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #f0efec;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#custom-cursor::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: #f0efec;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Sur tout élément cliquable ou texte : croix → X */
#custom-cursor.hovering,
#custom-cursor.on-image {
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
}

#main-site {
  position: relative;
  z-index: 1;
}

/* ===== WAVE BACKGROUND CANVAS ===== */
#wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== VIDEO INTRO ===== */
#video-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease;
}

#video-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

#video-intro.hidden,
.intro-done #video-intro {
  display: none;
}

#intro-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Flou localisé derrière logo et contact — contours fondus */
.logo::before,
.nav-contact::before {
  content: '';
  position: absolute;
  inset: -20px -30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.2) 40%, transparent 70%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.logo {
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  color: #f0efec;
  letter-spacing: normal;
  position: relative;
  transition: color 0.25s ease;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s ease;
}

.logo:hover .logo-img {
  opacity: 0.5;
}

.logo-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #f0efec;
  transition: opacity 0.25s ease;
}

.logo:hover .logo-text {
  opacity: 0.5;
}

/* Logo hover : simple fade, pas de texte */

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-contact {
  position: relative;
  text-decoration: none;
  color: #f0efec;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  transition: opacity 0.3s, transform 0.3s ease;
}

.nav-contact:hover {
  opacity: 0.5;
  transform: scale(1.03);
}

/* ===== HERO ===== */
main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.thumb {
  width: 240px;
  height: 150px;
  border-radius: 2px;
  cursor: pointer;
}

.thumb--gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.thumb--gradient::before {
  content: 'RÉSEAUX';
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #6a6866;
  text-transform: uppercase;
}

.thumb--gradient .thumb-label {
  display: none;
}

/* Scatter entrance — initial scattered state */
.thumb.scatter {
  position: fixed;
  z-index: 60;
  transition: none;
}

.thumb.scatter-animate {
  position: fixed;
  z-index: 60;
  transition: left 1s cubic-bezier(0.16, 1, 0.3, 1),
              top 1s cubic-bezier(0.16, 1, 0.3, 1),
              width 1s cubic-bezier(0.16, 1, 0.3, 1),
              height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb {
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* ===== BACKGROUND VIDEO (remplace le fond noir au hover) ===== */
#bg-hover-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bg-hover-video.active {
  opacity: 1;
}

#bg-hover-video .bg-slot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

#bg-hover-video video,
#bg-hover-video img,
#bg-hover-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: blur(50px) brightness(0.15) saturate(1.3);
  pointer-events: none;
}

/* Iframe YouTube fullscreen cover */
#bg-hover-video iframe {
  width: 177.78vh;
  height: 56.25vw;
  min-width: 110%;
  min-height: 110%;
  border: 0;
}

/* Card avec video YT en fond */
.thumb--video {
  position: relative;
  overflow: hidden;
}

.thumb-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 152px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
  opacity: 0.85;
}

.bio-text {
  font-size: 15px;
  font-weight: 350;
  letter-spacing: 0.02em;
  word-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: justify;
  max-width: 736px;
  width: 100%;
  color: #f0efec;
}

.bio-text strong {
  font-weight: 700;
  color: #f0efec;
}

/* ===== REVEAL SECTIONS (hover preview) ===== */
.reveal-section {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reveal-el {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.active .reveal-el {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger : iframe 0 → titre 100 → tags 400 → vidéo 600 */
.reveal-section.active .reveal-el:nth-child(1) { transition-delay: 0.1s; }
.reveal-section.active .reveal-el:nth-child(2) { transition-delay: 0.4s; }

/* Vidéo : cachée pendant que YouTube charge, reveal après 600ms */
.reveal-el.reveal-video-wrap {
  filter: blur(14px);
}
.reveal-section.active .reveal-el.reveal-video-wrap {
  filter: blur(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

/* Sortie rapide — tout sans delay (seulement quand pas active) */
.reveal-section:not(.active) .reveal-el { transition-delay: 0s !important; }

/* Title */
.reveal-title {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #f0efec;
  margin: 0 0 10px 0;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5);
}

/* Tags — stacked vertically */
.reveal-tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.reveal-tags span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #a8a6a3;
  text-transform: uppercase;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 14px rgba(0,0,0,0.4);
}

/* Image */
.reveal-image {
  width: 300px;
  height: 190px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.reveal-video-wrap {
  width: clamp(200px, 20vw, 350px);
  height: clamp(113px, 11.25vw, 197px);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.reveal-video-wrap--vertical {
  width: clamp(120px, 10vw, 180px);
  height: clamp(213px, 17.8vw, 320px);
}

.reveal-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== TICKER CLIENTS ===== */
.clients-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 14px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 22s linear infinite;
  align-items: center;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ticker-logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  display: block;
  flex-shrink: 0;
}

/* Hauteurs ajustées pour lisibilité — logos avec texte détaillé plus grands */
.ticker-logo--wide { height: 32px; }            /* Universal — globe + texte UNIVERSAL */
.ticker-logo--lacoste { height: 13px; }         /* wordmark "LACOSTE" 500x80 (ratio 6.25) */
.ticker-logo--nike { height: 16px; }            /* swoosh + text */
.ticker-logo--warner { height: 26px; }          /* W icon + "WARNER MUSIC GROUP" (2 lignes) */
.ticker-logo--samsung { height: 14px; }         /* wordmark */
.ticker-logo--schott { height: 18px; }          /* carré-ish */
.ticker-logo--sony { height: 11px; max-width: 140px; }   /* wordmark très fin */
.ticker-logo--walkinparis { height: 14px; }     /* wordmark serif */
.ticker-logo--vanish { height: 28px; }          /* script + swoosh */

.ticker-text {
  font-size: 10px;
  font-weight: 400;
  color: #f0efec;
  opacity: 0.22;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track .sep {
  color: #f0efec;
  opacity: 0.1;
  font-size: 8px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== FOOTER ===== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 40px;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  color: #8a8886;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

.footer-links a {
  text-decoration: none;
  color: #8a8886;
  font-weight: 400;
  transition: opacity 0.3s, transform 0.3s ease;
  display: inline-block;
}

.footer-arrow {
  color: #8a8886;
}

.footer-links a:hover {
  opacity: 0.5;
  transform: scale(1.03);
}

/* ===== PAGE TRANSITION — IRIS FLOU ===== */

#page-veil-blur {
  position: fixed;
  width: 300vmax;
  height: 300vmax;
  border-radius: 50%;
  background: #050505;
  filter: blur(250px);
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
}

#page-veil {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 9998;
  clip-path: circle(0px at 50% 50%);
  pointer-events: none;
  will-change: clip-path;
}

@media (prefers-reduced-motion: reduce) {
  #page-veil, #page-veil-blur { display: none !important; }
  .ticker-track { animation: none !important; }
  .anim { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blob { animation: none !important; }
  #wave-bg, #trail-canvas, #bg-hover-video { display: none !important; }
  .reveal-el { transition: none !important; filter: none !important; }
  .thumb { transition: none !important; }
}

/* GPU faible : désactiver backdrop-filter et réduire les blur */
html[data-perf-level="0"] #wave-bg,
html[data-perf-level="0"] #trail-canvas,
html[data-perf-level="0"] #bg-hover-video { display: none !important; }

html[data-perf-level="0"] .reveal-el,
html[data-perf-level="1"] .reveal-el {
  filter: none !important;
}

html[data-perf-level="0"] #reel-backdrop,
html[data-perf-level="1"] #reel-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===== ENTRANCE ANIMATIONS ===== */
.anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== THUMB LABEL (visible mobile uniquement) ===== */
.thumb-label {
  display: none;
}

/* ===== POSTER THUMBNAIL (remplace iframes YT sur homepage) ===== */
.thumb-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-video-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  filter: blur(12px);
  animation: thumbVideoReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes thumbVideoReveal {
  to { opacity: 1; filter: blur(0); }
}

/* ===== RESPONSIVE — TABLETTE (769-1024px) ===== */
@media (max-width: 1024px) {
  nav {
    padding: 20px 24px;
  }

  .logo-img {
    height: 40px;
  }

  .hero {
    max-width: 100%;
    padding: 0 24px;
  }

  .thumb {
    width: 200px;
    height: 125px;
  }

  .bio-text {
    width: 100%;
    max-width: 620px;
    font-size: 13px;
  }

  .reveal-section { display: none; }

  footer {
    padding: 16px 24px;
  }

  .footer-links {
    gap: 16px;
  }
}

/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  /* Curseur custom : désactivé sur tactile */
  #custom-cursor { display: none !important; }
  body, * { cursor: auto !important; }

  nav {
    padding: 14px 16px;
  }

  .logo-img {
    height: 32px;
  }

  .logo::after {
    display: none;
  }

  .nav-contact {
    font-size: 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  #main-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  main {
    flex: 1;
    min-height: 0;
    padding: 55px 0 0;
    display: flex;
    flex-direction: column;
  }

  .hero {
    max-width: 100%;
    padding: 0 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .thumbnails {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 10px;
  }

  .thumb {
    width: 100%;
    max-width: 100%;
    height: 17vh;
    padding-bottom: 0;
  }

  .bio-text {
    width: 100%;
    font-size: 9px;
    line-height: 1.25;
    text-align: justify;
    text-align-last: justify;
    letter-spacing: 0.01em;
  }

  .bio-text .desktop-br {
    display: none;
  }

  .clients-ticker {
    margin-top: 8px;
  }

  .ticker-logo { height: 12px; }
  .ticker-logo--wide { height: 22px; }
  .ticker-logo--lacoste { height: 9px; }
  .ticker-logo--nike { height: 11px; }
  .ticker-logo--warner { height: 18px; }
  .ticker-logo--samsung { height: 10px; }
  .ticker-logo--schott { height: 13px; }
  .ticker-logo--sony { height: 8px; max-width: 100px; }
  .ticker-logo--walkinparis { height: 10px; }
  .ticker-logo--vanish { height: 18px; }

  .reveal-section { display: none; }

  .thumb-label {
    display: block;
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 14px;
    font-weight: 300;
    color: #f0efec;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  }

  footer {
    position: static;
    padding: 8px 16px;
    margin-top: 0;
  }

  .footer-links {
    gap: 4px 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 8px;
  }

  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .footer-arrow {
    display: inline-block;
    width: 9px;
    height: 9px;
  }
}
