/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #080808;
  --white:   #f2f2f2;
  --gray-1:  #141414;
  --gray-2:  #222;
  --gray-3:  #444;
  --gray-5:  #888;
  --font:    'Space Grotesk', sans-serif;
  --mono:    'Space Mono', monospace;
  --ease:    cubic-bezier(0.76, 0, 0.24, 1);
}

html { scroll-behavior: smooth; font-size: 16px; background: var(--black); }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── HERO CAROUSEL (scroll manuel) ────────────────────────── */
.hero-marquee {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 48px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
}
.hero-marquee::-webkit-scrollbar { display: none; }
.hero-marquee.is-dragging { cursor: grabbing; }
.hero-marquee.is-dragging * { pointer-events: none; user-select: none; }

/* Logo tile */

@media (max-width: 640px) {
  .hero-marquee { padding: 16px 20px; gap: 12px; }
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

/* ─── CUSTOM CURSOR ────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
  mix-blend-mode: difference;
}
.cursor.is-hovering {
  width: 48px; height: 48px;
  opacity: 0.85;
}

/* ─── HEADER ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-color: var(--gray-2);
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

/* Desktop nav */

/* Hamburger — masqué par défaut, visible seulement sous le breakpoint mobile */
.hamburger {
  background: none;
  border: none;
  cursor: none;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px; height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s, width 0.4s var(--ease);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MENU OVERLAY ─────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 0 48px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}
.menu-overlay.is-open {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}
.menu-overlay-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 120px 0 60px;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-size: clamp(60px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--gray-3);
  transition: color 0.3s, padding-left 0.4s var(--ease);
  overflow: hidden;
}
.menu-link em {
  font-style: normal;
  font-family: var(--mono);
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--gray-5);
  letter-spacing: 0.1em;
  transform: translateY(-4px);
  min-width: 28px;
}
.menu-link:hover { color: var(--white); padding-left: 20px; }
.menu-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 22px;
  color: var(--gray-5);
}
.menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 0.3s;
}
.menu-social:hover { color: var(--white); }
.menu-social svg { width: 28px; height: 28px; display: block; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding-top: 72px; /* espace pour le header fixe */
  padding-bottom: clamp(40px, 6vh, 80px);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-placeholder {
  width: 100%; height: 100%;
  background:
    linear-gradient(160deg, var(--gray-2) 0%, var(--black) 60%);
}
/* Quand tu auras ta vraie image/vidéo hero : */
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, transparent 50%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8px 48px 0;
  flex-shrink: 0;
}

/* Bloc carousel : sous le titre, poussé vers le bas du hero */
.hero-portfolio {
  position: relative;
  z-index: 2;
  margin-top: clamp(24px, 5vh, 56px);
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Le hero-marquee perd le flex:1, devient hauteur fixe */
.hero-portfolio .hero-marquee { flex: 0 0 auto; height: clamp(260px, 42vh, 440px); }

/* Plus besoin du scroll-indicator par-dessus le carousel */
.hero .scroll-indicator { display: none; }
.hero-title {
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}
.wordmark-img { display: block; width: clamp(280px, 55vw, 700px); height: auto; margin: 0 auto; }
/* Hero de la page Projets : logo centré, plus petit que sur les autres pages */
.hero-title .wordmark-img { margin: 0; width: clamp(220px, 24vw, 420px); }
.hero-sub {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.scroll-indicator {
  position: absolute;
  bottom: 40px; right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.scroll-line {
  width: 1px; height: 48px;
  background: var(--gray-3);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── SECTION LABEL ────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.label-line {
  flex: 1;
  height: 1px;
  background: var(--gray-2);
}

/* ─── BRAND INTRO (manifesto sous le hero) ──────────────────── */
.brand-intro {
  padding: 90px 48px;
  border-top: 1px solid var(--gray-2);
}
.brand-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.brand-intro-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}
.brand-intro-text p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--gray-5);
  margin-bottom: 18px;
  max-width: 580px;
}
.brand-intro-text strong { color: var(--white); font-weight: 600; }
.brand-intro-text .btn-outline { margin-top: 24px; }

/* ─── PORTFOLIO ─────────────────────────────────────────────── */
.portfolio {
  padding: 120px 48px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.photo-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: none;
}
.photo-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--gray-1);
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: grayscale(20%);
}
.photo-item:hover .photo-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.photo-location {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.photo-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.photo-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray-5);
}

/* ─── À PROPOS ──────────────────────────────────────────────── */
.about {
  padding: clamp(70px, 10vh, 100px) 48px;
  border-top: 1px solid var(--gray-2);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.btn-outline {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  border: 1px solid var(--gray-3);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services {
  padding: 24px 48px clamp(70px, 10vh, 100px);
}
.services-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 80px;
}
.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.services-list {
  list-style: none;
  border-top: 1px solid var(--gray-2);
}
.service-item {
  border-bottom: 1px solid var(--gray-2);
}
.service-item a {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  transition: padding-left 0.4s var(--ease);
}
.service-item:hover a { padding-left: 16px; }
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-5);
  letter-spacing: 0.1em;
  min-width: 28px;
}
.service-name {
  flex: 1;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.service-item:hover .service-name { color: var(--white); }
.service-arrow {
  font-size: 18px;
  color: var(--gray-3);
  transform: translateX(-8px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease), color 0.3s;
}
.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--white);
}

/* Service preview image */
.services-preview {
  position: sticky;
  top: 120px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-1);
}
.preview-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-2);
  transition: background-image 0.01s, opacity 0.35s var(--ease), transform 0.5s var(--ease);
  opacity: 0;
  transform: scale(1.04);
}
.preview-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── CLIENTS (page d'accueil — utilise aussi .svc-clients) ──── */
.clients {
  border-top: 1px solid var(--gray-2);
}
/* Plus compact que les pages services pour ne pas casser le flow */
.clients.svc-clients {
  padding: 90px 48px;
  border-bottom: none;
}

/* ─── CLIENTS CAROUSEL (landing + pages services) ──────────── */
.svc-clients {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
  position: relative;
}

.svc-clients-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.clients-marquee {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  padding: 4px 2px;
}
.clients-marquee::-webkit-scrollbar { display: none; }
.clients-marquee.is-dragging { cursor: grabbing; }
.clients-marquee.is-dragging * { pointer-events: none; user-select: none; }

/* Tooltip qui suit la souris */

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact {
  padding: clamp(80px, 12vh, 120px) 48px;
  border-top: 1px solid var(--gray-2);
  text-align: center;
}
.contact-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 24px;
}
.contact-title {
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contact-link {
  display: inline-block;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.contact-link:hover { border-color: var(--white); }
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}
.contact-socials a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
  transition: color 0.3s;
}
.contact-socials a:hover { color: var(--white); }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: 24px 48px;
  border-top: 1px solid var(--gray-2);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a { transition: color 0.3s; }
.footer-legal a:hover { color: var(--white); }

/* ─── PAGE ERREUR 404 — TÉLÉ RÉTRO ──────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

/* Gros "404" typographique, en fond derrière la télé */
.text_404 {
  display: flex;
  gap: clamp(4px, 2vw, 20px);
  line-height: 0.8;
  margin-bottom: clamp(-30px, -5vw, -10px);
  position: relative;
  z-index: 0;
}
.text_404 span {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 180px);
  letter-spacing: -0.04em;
  color: var(--gray-2);
  user-select: none;
}

/* Télé */
.retro-tv {
  position: relative;
  z-index: 1;
  width: clamp(200px, 26vw, 280px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5));
}
.antenna { position: relative; height: clamp(46px, 7vw, 78px); }
.antenna .rod {
  position: absolute; bottom: 0; left: 50%; width: 2px; height: 100%;
  background: var(--gray-5); transform-origin: bottom center;
}
.antenna .rod.left  { transform: rotate(-26deg) translateX(-1px); }
.antenna .rod.right { transform: rotate(26deg) translateX(1px); }
.antenna .rod::after {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 8px rgba(242, 242, 242, .6);
}
.antenna .base {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 10px; background: var(--gray-3); border-radius: 3px 3px 0 0;
}

.tv_body {
  position: relative;
  background: linear-gradient(155deg, var(--gray-1), var(--black) 70%);
  border: 1px solid var(--gray-2);
  border-radius: 22px;
  padding: clamp(14px, 2vw, 20px);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, .03), 0 1px 0 rgba(242, 242, 242, .05);
}
.tv_curve { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; opacity: .35; color: var(--gray-5); }
.tv_curve svg { width: 100%; height: 100%; fill: currentColor; }

.screen_wrap {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: #000; border: 6px solid var(--gray-2);
}
.screen {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 8%;
  background: repeating-linear-gradient(rgba(242, 242, 242, .05) 0 1px, transparent 1px 3px);
}
.screen::before {
  content: ''; position: absolute; inset: -20%;
  background-image:
    radial-gradient(rgba(242, 242, 242, .5) 1px, transparent 1.4px),
    radial-gradient(rgba(242, 242, 242, .35) 1px, transparent 1.4px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 20% 40%;
  opacity: .5; mix-blend-mode: screen;
  animation: b .2s steps(2) infinite;
}
@keyframes b {
  100% { background-position: 50% 0, 60% 50%; }
}
.notfound_text {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: .16em; text-transform: uppercase; color: var(--white);
  text-shadow: 2px 0 rgba(255, 80, 80, .5), -2px 0 rgba(80, 220, 255, .5);
  animation: tv-flicker 3.2s var(--ease) infinite;
}
@keyframes tv-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .3; }
  95% { opacity: .8; }
  96% { opacity: .2; }
  97% { opacity: 1; }
}

.tv_controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.speaker { display: flex; gap: 3px; margin-right: 6px; }
.speaker span { width: 3px; height: 16px; background: var(--gray-2); border-radius: 1px; }
.knob { width: 14px; height: 14px; border-radius: 50%; background: var(--gray-3); border: 1px solid var(--gray-5); }
.knob.small { width: 9px; height: 9px; }

.error-copy { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 480px; }
.error-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.error-text {
  color: var(--gray-5);
  font-size: 15px;
  max-width: 440px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .screen::before { animation: none; }
  .notfound_text { animation: none; }
}

/* ─── ANIMATIONS D'ENTRÉE ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   PAGE SERVICE
═══════════════════════════════════════════════════════════ */

/* Header back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.back-link:hover { color: var(--white); gap: 16px; }
.back-link::before { content: '←'; transition: transform 0.3s; }
.back-link:hover::before { transform: translateX(-4px); }
.svc-hero > .back-link { margin-bottom: 32px; }

/* ─── SERVICE HERO ────────────────────────────────────────── */
.svc-hero {
  padding: 200px 48px 100px;
  border-bottom: 1px solid var(--gray-2);
}
.svc-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-2);
}
.svc-hero-meta a {
  color: var(--white);
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.svc-hero-meta a:hover { border-color: var(--white); }
.svc-spec dd a {
  color: var(--white);
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.svc-spec dd a:hover { border-color: var(--white); }
.svc-hero-title {
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.svc-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}
.svc-hero-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--white);
  max-width: 600px;
}
.svc-spec {
  border-top: 1px solid var(--gray-2);
  padding-top: 16px;
}
.svc-spec dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 8px;
}
.svc-spec dd {
  font-size: 14px;
  line-height: 1.6;
}

/* ─── SERVICE APPROCHE ────────────────────────────────────── */
.svc-approach {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.svc-approach-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  position: sticky;
  top: 100px;
}
.svc-approach-text p {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.svc-approach-text p:last-child { margin-bottom: 0; }
.svc-approach-text strong { color: var(--white); font-weight: 600; }

/* ─── SERVICE INCLUS ──────────────────────────────────────── */
.svc-included {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
}
.svc-included-title,
.svc-reels-title,
.svc-gallery-title{
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 60px;
}
.svc-included-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.svc-included-list li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-2);
  font-size: 16px;
}
.svc-included-list li:nth-child(odd)  { border-right: 1px solid var(--gray-2); padding-right: 40px; }
.svc-included-list li:nth-child(even) { padding-left: 40px; }
.svc-included-list .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-5);
  letter-spacing: 0.1em;
  min-width: 28px;
  padding-top: 4px;
}

/* ─── SERVICE PROCESS ─────────────────────────────────────── */
.svc-process {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
}
.svc-process-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 60px;
}

.svc-step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--gray-2);
  align-items: baseline;
}
.svc-step:last-child { border-bottom: 1px solid var(--gray-2); }

/* ─── SERVICE GALLERY ─────────────────────────────────────── */
.svc-gallery {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
}

/* Mosaïque variée */

/* ─── PRICING / TARIF ─────────────────────────────────────── */
.svc-tarif {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
  text-align: center;
}
.svc-tarif p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 24px;
}
.svc-tarif h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.svc-tarif h2 em {
  font-style: normal;
  color: var(--gray-3);
}

/* ─── OTHER SERVICES ──────────────────────────────────────── */

.svc-others-nav {
  position: relative;
}
.svc-others-viewport {
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.svc-others-viewport::-webkit-scrollbar { display: none; }

.svc-others-prev { left: 12px; }
.svc-others-next { right: 12px; }

.svc-other-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-1);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.svc-other-card .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(40%) brightness(0.55);
  transition: filter 0.5s, transform 0.6s var(--ease);
}
.svc-other-card:hover .bg { filter: grayscale(0%) brightness(0.7); transform: scale(1.05); }
.svc-other-card .label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-other-card .label .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-5);
  letter-spacing: 0.2em;
}
.svc-other-card .label .name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   PAGE PROJET (réutilise .svc-* + additions)
═══════════════════════════════════════════════════════════ */
.proj-feature {
  padding: 0 48px 120px;
  border-bottom: 1px solid var(--gray-2);
}
.proj-feature img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gray-1);
  border-radius: 8px;
}

.proj-role {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.proj-role-label {
  position: sticky;
  top: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.proj-role-text h3, .proj-role-text h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.proj-role-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-5);
  margin-bottom: 20px;
  max-width: 640px;
}
.proj-role-text p strong { color: var(--white); font-weight: 500; }
.proj-role-list {
  list-style: none;
  margin-top: 40px;
  padding: 0;
}
.proj-role-list li {
  padding: 16px 0;
  border-top: 1px solid var(--gray-2);
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.proj-role-list li:last-child { border-bottom: 1px solid var(--gray-2); }
.proj-role-list .bullet {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-5);
  letter-spacing: 0.1em;
  min-width: 32px;
  padding-top: 4px;
}

/* Credits */
.proj-credits {
  padding: 120px 48px;
  border-bottom: 1px solid var(--gray-2);
}
.proj-credits h3, .proj-credits h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 40px;
}
.proj-credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.proj-credits-grid dl {
  padding: 20px 0;
  border-top: 1px solid var(--gray-2);
}
.proj-credits-grid dl:last-child { border-bottom: 1px solid var(--gray-2); }
.proj-credits-grid dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 8px;
}
.proj-credits-grid dd { font-size: 15px; }

/* Autres projets — bandeau défilant infini */

@media (max-width: 1024px) {
  .proj-feature { padding: 0 32px 80px; }
  .proj-role { padding: 80px 32px; grid-template-columns: 1fr; gap: 32px; }
  .proj-role-label { position: static; }
  .proj-credits { padding: 80px 32px; }
  .proj-credits-grid { grid-template-columns: 1fr; }
  
}
@media (max-width: 640px) {
  .proj-feature { padding: 0 20px 60px; }
  .proj-role, .proj-credits { padding: 60px 20px; }
  
  
  
}

/* Service page responsive */
@media (max-width: 1024px) {
  .svc-hero          { padding: 140px 32px 80px; }
  .svc-hero-grid     { grid-template-columns: 1fr 1fr; gap: 40px; }  /* les 2 fiches (Format / Livraison) restent sur la même ligne */
  .svc-hero-lead     { grid-column: 1 / -1; max-width: none; }
  .svc-approach      { padding: 80px 32px; grid-template-columns: 1fr; gap: 32px; }
  .svc-approach-label{ position: static; }
  .svc-included,
  .svc-process,
  .svc-gallery,
  .svc-tarif         { padding: 80px 32px; }
  
  
  .svc-other-card    { width: clamp(180px, 38vw, 240px); }
  .svc-included-list { grid-template-columns: 1fr; }
  .svc-included-list li:nth-child(odd),
  .svc-included-list li:nth-child(even) { padding: 24px 0; border-right: none; }
  .svc-step          { grid-template-columns: 60px 1fr; }
  
  
  
  
}
@media (max-width: 640px) {
  .svc-hero          { padding: 120px 20px 60px; }
  .svc-approach,
  .svc-included,
  .svc-process,
  .svc-gallery,
  .svc-tarif         { padding: 60px 20px; }
  
  
  .svc-other-card    { width: clamp(160px, 55vw, 200px); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header          { padding: 0 32px; }
  
  .hero-content,
  .scroll-indicator{ padding-left: 32px; padding-right: 32px; }
  .portfolio,
  .about,
  .services,
  .clients,
  .brand-intro,
  .contact         { padding-left: 32px; padding-right: 32px; }
  .portfolio-grid  { grid-template-columns: repeat(3, 1fr); }
  .services-layout,
.brand-intro-grid{ grid-template-columns: 1fr; gap: 32px; }
  .services-preview{ display: none; }
  .svc-clients     { padding: 80px 32px; }
  .brand-intro     { padding: 70px 32px; }
}

@media (max-width: 640px) {
  .header          { padding: 0 20px; }
  .hero-content    { padding: 0 20px 60px; }
  .scroll-indicator{ display: none; }
  .portfolio,
  .about,
  .services,
  .clients,
  .brand-intro,
  .contact         { padding-left: 20px; padding-right: 20px; }
  .svc-clients     { padding: 60px 20px; }
  .brand-intro     { padding: 50px 20px; }
  .portfolio-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-inner     { grid-template-columns: 1fr; gap: 48px; }
  .footer          { padding: 20px; flex-direction: column; gap: 8px; }
  .menu-overlay    { padding: 0 20px; }
  
}

/* ═══════════════════════════════════════════════════════════
   PAGE CLIENT
═══════════════════════════════════════════════════════════ */




@media (max-width: 640px) {
  
}

/* ─── VIDEO LIGHTBOX (lecture au clic, partout) ─────────────── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8,8,8,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.video-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.video-lightbox-stage {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: var(--gray-1);
  position: relative;
}
.video-lightbox-stage video,
.video-lightbox-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-lightbox-close {
  position: absolute;
  top: 28px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: none;
  z-index: 1;
  transition: opacity 0.3s;
}
.video-lightbox-close:hover { opacity: 0.6; }

@media (max-width: 640px) {
  .video-lightbox { padding: 20px; }
  .video-lightbox-close { top: 16px; right: 16px; font-size: 28px; }
}

/* Bouton "play" rond réutilisé sur les cards / vignettes vidéo */
.play-affordance {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(8,8,8,0.55);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.play-affordance::after {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 3px;
  transition: border-color 0.3s;
}
[data-video-type]:hover .play-affordance {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.08);
}
[data-video-type]:hover .play-affordance::after {
  border-color: transparent transparent transparent var(--black);
}

/* ─── FILMS (section dédiée landing) ─────────────────────────── */
.films {
  padding: 120px 48px;
  border-top: 1px solid var(--gray-2);
}
.films-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.film-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-1);
  cursor: none;
  display: block;
}
.film-card .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(25%) brightness(0.6);
  transition: filter 0.5s, transform 0.6s var(--ease);
}
.film-card:hover .bg {
  filter: grayscale(0%) brightness(0.72);
  transform: scale(1.04);
}
.film-card .film-info {
  position: absolute;
  left: 20px; bottom: 16px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.film-card .film-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.film-card .film-client {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
}

@media (max-width: 1024px) {
  .films       { padding: 80px 32px; }
}
@media (max-width: 640px) {
  .films       { padding: 60px 20px; }
  .films-grid  { grid-template-columns: 1fr; }
  .play-affordance { width: 52px; height: 52px; }
}

.reels { padding-top: 0; border-top: 0; }
/* ─── REELS : carrousel « stories » ──────────────────────────── */
.reels-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0 -48px;
  padding: 0 48px 4px;
  cursor: grab;
}
.reels-grid::-webkit-scrollbar { display: none; }
.reels-grid.is-dragging { cursor: grabbing; user-select: none; }
.reels-grid.is-dragging .reel-card { pointer-events: none; }
.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-1);
  cursor: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.reel-card:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.reel-card:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.reel-card[hidden] { display: none; }
.reel-card .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  transition: filter 0.3s;
}
.reel-card:hover .bg { filter: brightness(1); }
.reel-card .play-affordance { width: 44px; height: 44px; }
.reel-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
  pointer-events: none;
}
.reel-author {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; gap: 8px; padding: 12px;
  pointer-events: none;
}
.reel-avatar {
  position: relative; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1);
}
.reel-avatar img, .reel-avatar-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.reel-avatar img { object-fit: cover; }
.reel-avatar-fallback { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.reel-author-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reel-author-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-title {
  font-size: 11px; line-height: 1.3; color: rgba(255,255,255,0.72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Règle graduée (filtre par compte) */
.reels-ruler {
  --rw: 160px;
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  margin-bottom: 36px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}
.reels-ruler::-webkit-scrollbar { display: none; }
.reels-ruler.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reels-ruler-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  padding: 0 calc(50% - var(--rw) / 2);
}
.ruler-item {
  position: relative;
  flex: 0 0 var(--rw);
  width: var(--rw);
  height: 60px;
  display: flex; align-items: flex-start; justify-content: center;
  scroll-snap-align: center;
  background: none; border: 0; padding: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: var(--gray-5);
  cursor: none;
  transition: color 0.25s;
}
.ruler-item:hover { color: var(--white); }
.ruler-item:focus-visible { outline: 1px solid var(--white); outline-offset: -4px; }
/* graduations : petits traits tous les 16px, grand trait au centre de l'item */
.ruler-item::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(to right, rgba(255,255,255,0.2) 0 1px, transparent 1px 16px);
}
.ruler-item::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 24px; margin-left: -0.5px;
  background: rgba(255,255,255,0.45);
  transition: height 0.25s var(--ease), background 0.25s, width 0.25s;
}
.ruler-item.is-active { color: var(--white); }
.ruler-item.is-active::after { height: 36px; width: 2px; margin-left: -1px; background: var(--white); }
.video-lightbox-stage.is-reel {
  aspect-ratio: auto;
  width: min(420px, 100%);
  height: min(100%, 820px);
}
.video-lightbox-stage.is-reel iframe { background: #fff; }
@media (max-width: 1024px) { .reels-grid { margin: 0 -32px; padding: 0 32px 4px; } }
@media (max-width: 640px)  {
  .reels-ruler { --rw: 128px; }
  .ruler-item { font-size: 10px; letter-spacing: 0.06em; }
  .reels-grid { margin: 0 -20px; padding: 0 20px 4px; gap: 10px; }
  .reel-card { width: 150px; border-radius: 10px; }
  .reel-author { padding: 9px; gap: 6px; }
  .reel-avatar { width: 22px; height: 22px; }
  .reel-author-name { font-size: 11px; }
  .reel-title { font-size: 10px; }
}

/* ─── Navigation dans le lecteur (swipe / flèches) ───────────── */
.video-lightbox { touch-action: none; }
.vlb-count { display: none; }
.video-lightbox.has-nav .vlb-count {
  display: block; position: absolute; top: 34px; left: 40px; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--gray-5);
}
.vlb-swipe { position: absolute; left: 0; right: 0; z-index: 2; touch-action: none; }
.vlb-swipe-top { top: 0; height: 56px; }
.vlb-swipe-bottom { bottom: 0; height: 48px; }
@media (max-width: 640px) {
  .video-lightbox.has-nav .vlb-count { top: 14px; left: 20px; }
  .video-lightbox.has-nav .video-lightbox-stage.is-reel { margin-top: 28px; height: calc(100% - 28px); }
}

/* ─── VIDEO FEATURE (page projet) ────────────────────────────── */
.proj-feature-video {
  position: relative;
  display: block;
  cursor: none;
}
.proj-feature-video img {
  filter: brightness(0.7);
  transition: filter 0.5s;
}
.proj-feature-video:hover img { filter: brightness(0.5); }

/* ─── ACCESSIBILITY ─────────────────────────────────────────── */

/* Keyboard focus — visible outline for any link/button/interactive */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}
.menu-link:focus-visible,
.service-item a:focus-visible,
.photo-item:focus-visible{
  outline-offset: 6px;
}

/* Touch / coarse-pointer devices — restore native cursor, disable custom one */
@media (hover: none), (pointer: coarse) {
  body,
  .hamburger,
  .photo-item,
  .service-item,
  .film-card,
  .proj-feature-video,
  .video-lightbox-close { cursor: auto; }
  a, button { cursor: pointer; }
  .cursor { display: none; }
  /* Remove hover-only effects that can stick on tap */
  .photo-item:hover .photo-overlay { opacity: 1; }
}

/* Honor reduced motion — disable the heavy animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-line { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════
   V4 — DÉGRADÉS & INTERACTIONS
   Lumières de scène (indigo + tungstène) sur base monochrome.
═══════════════════════════════════════════════════════════ */
:root {
  --glow-cool: 96, 118, 255;   /* indigo — face froide du projecteur */
  --glow-warm: 255, 138, 61;   /* tungstène — face chaude */
}

/* ─── GRAIN DE FILM (toutes les pages) ─────────────────────── */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 3%); }
  50%  { transform: translate(3%, -4%); }
  75%  { transform: translate(-3%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ─── BARRE DE PROGRESSION DE SCROLL ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 300;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg,
    rgba(var(--glow-cool), 0.9) 0%,
    var(--white) 50%,
    rgba(var(--glow-warm), 0.9) 100%);
  pointer-events: none;
}

/* ─── FONDU ENTRE LES PAGES ────────────────────────────────── */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.page-fade.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ─── HERO — AURORA LUMIÈRE DE SCÈNE ───────────────────────── */
.hero-media { overflow: hidden; }
.hero-placeholder { position: relative; }
.hero-placeholder::before,
.hero-placeholder::after {
  content: '';
  position: absolute;
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  pointer-events: none;
}
.hero-placeholder::before {
  top: -18%; left: -8%;
  background: radial-gradient(circle, rgba(var(--glow-cool), 0.16) 0%, transparent 65%);
  animation: auroraDrift1 21s ease-in-out infinite alternate;
}
.hero-placeholder::after {
  bottom: -22%; right: -10%;
  background: radial-gradient(circle, rgba(var(--glow-warm), 0.13) 0%, transparent 65%);
  animation: auroraDrift2 27s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(14vw, 10vh) scale(1.25); }
}
@keyframes auroraDrift2 {
  0%   { transform: translate(0, 0) scale(1.2); }
  100% { transform: translate(-12vw, -12vh) scale(0.95); }
}

/* ─── TITRES EN DÉGRADÉ ────────────────────────────────────── */
/* Hero + Contact : dégradé vertical + reflet qui balaye */
.hero-title,
.contact-title,
.svc-hero-title{
  background:
    linear-gradient(110deg, transparent 0%, transparent 42%, rgba(255,255,255,0.5) 50%, transparent 58%, transparent 100%) no-repeat,
    linear-gradient(180deg, #ffffff 0%, #ececec 50%, #8a8a8a 125%);
  background-size: 250% 100%, 100% 100%;
  background-position: 135% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleSheen 7.5s var(--ease) infinite;
}
@keyframes titleSheen {
  0%, 58%   { background-position: 135% 0, 0 0; }
  82%, 100% { background-position: -35% 0, 0 0; }
}

/* Titres de section : dégradé porté par chaque mot (compatible reveal) */
.split-words .wi {
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 60%, #9a9a9a 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── REVEAL PAR MOTS ──────────────────────────────────────── */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-bottom: -0.12em;     /* compense l'overflow sur les descendantes */
  padding-bottom: 0.12em;
}
.split-words .wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s var(--ease);
}
.split-words.is-visible .wi { transform: translateY(0); }

/* Hero : reveal du bloc entier au chargement */
.hero-content {
  will-change: transform;
}
.hero-title {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition: clip-path 1s var(--ease) 0.15s, transform 1s var(--ease) 0.15s;
}
.hero-sub {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s;
}
body.is-loaded .hero-title { clip-path: inset(0 0 -10% 0); transform: none; }
body.is-loaded .hero-sub   { opacity: 1; transform: none; }

/* ─── SPOTLIGHT QUI SUIT LA SOURIS ─────────────────────────── */
.spotlight { position: relative; }
.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.055), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.spotlight:hover::after { opacity: 1; }

/* ─── TILT 3D SUR LES PHOTOS ───────────────────────────────── */
.portfolio-grid { perspective: 1100px; }
.photo-item {
  will-change: transform;
  transition: transform 0.4s var(--ease);
}
.photo-item.is-tilting { transition: transform 0.08s linear; }

/* ─── BOUTONS MAGNÉTIQUES ──────────────────────────────────── */
[data-magnetic] {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bouton outline : remplissage en dégradé au survol */
.btn-outline {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg,
    rgba(var(--glow-cool), 0.22) 0%,
    var(--white) 35%, var(--white) 65%,
    rgba(var(--glow-warm), 0.22) 100%);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn-outline:hover { background: transparent; }
.btn-outline:hover::before { transform: translateY(0); }

/* ─── NAV — SOULIGNÉ EN DÉGRADÉ ────────────────────────────── */
.nav-desktop a::after {
  background: linear-gradient(90deg,
    rgba(var(--glow-cool), 0.85), var(--white), rgba(var(--glow-warm), 0.85));
  height: 1.5px;
}
.menu-link:hover em { color: rgba(var(--glow-warm), 0.95); }

/* ─── SECTION CHIFFRES ─────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--gray-2);
  padding: 0 48px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--gray-2);
  transition: background 0.4s var(--ease);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat:hover { background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent); }
.stat-num {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 55%, #8f8f8f 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.4s var(--ease);
}
.stat:hover .stat-num { transform: translateY(-4px); }
.stat-num em { font-style: normal; }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-5);
}

/* ─── CARTES — LUEUR DUOTONE AU SURVOL ─────────────────────── */
.client-tile:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    -8px 12px 36px rgba(var(--glow-cool), 0.13),
    8px -6px 36px rgba(var(--glow-warm), 0.11);
}
.marquee-tile:hover,
.marquee-logo:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 20px 44px rgba(0,0,0,0.55),
    -10px 14px 38px rgba(var(--glow-cool), 0.14),
    10px -8px 38px rgba(var(--glow-warm), 0.12);
}

/* Teinte lumière de scène sur la preview des services */
.services-preview { position: sticky; }
.services-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg,
    rgba(var(--glow-cool), 0.12) 0%, transparent 38%,
    transparent 62%, rgba(var(--glow-warm), 0.10) 100%);
}

/* ─── CONTACT — HALO PULSANT ───────────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
}
.contact-inner { position: relative; z-index: 1; }
.contact::before {
  content: '';
  position: absolute;
  left: 50%; top: 52%;
  width: min(880px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 36% 42%, rgba(var(--glow-cool), 0.13) 0%, transparent 55%),
    radial-gradient(circle at 64% 58%, rgba(var(--glow-warm), 0.11) 0%, transparent 55%);
  filter: blur(58px);
  pointer-events: none;
  animation: contactPulse 9s ease-in-out infinite alternate;
}
@keyframes contactPulse {
  0%   { transform: translate(-50%, -50%) scale(0.92) rotate(0deg);  opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.12) rotate(10deg); opacity: 1; }
}
.contact-link:hover {
  background: linear-gradient(90deg,
    rgba(var(--glow-cool), 1), var(--white) 45%, rgba(var(--glow-warm), 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-color: var(--white);
}

/* ─── PAGES SERVICE / CLIENT — HALO DE HERO ────────────────── */
.svc-hero {
  position: relative;
  overflow: hidden;
}
.svc-hero > * { position: relative; z-index: 1; }
/* Fond "Electric Gaze" (ASCII/dither animé) : sous le halo et le contenu */
.ascii-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.svc-hero > .ascii-bg, .contact-page > .ascii-bg { position: absolute; z-index: 0; }
/* Variante pleine page : reste fixe derrière toutes les sections au scroll */
.ascii-bg.is-page-bg { position: fixed; z-index: 0; }
.svc-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -12%;
  width: 56vw; height: 56vw;
  min-width: 460px; min-height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, rgba(var(--glow-cool), 0.12) 0%, transparent 58%),
    radial-gradient(circle at 70% 65%, rgba(var(--glow-warm), 0.10) 0%, transparent 58%);
  filter: blur(80px);
  pointer-events: none;
  animation: auroraDrift2 24s ease-in-out infinite alternate;
}

/* ─── RESPONSIVE V4 ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats { padding: 0 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 36px 24px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
}
@media (max-width: 640px) {
  .stats { padding: 0 20px; }
  .stat { padding: 28px 16px; }
}

/* ─── GARDE-FOUS V4 ────────────────────────────────────────── */
@media (hover: none), (pointer: coarse) {
  .spotlight::after { display: none; }
  .grain { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .hero-placeholder::before,
  .hero-placeholder::after,
  .svc-hero::before,
  .contact::before,
  .hero-title { animation: none; }
  .hero-title { clip-path: none; transform: none; }
  .hero-sub { opacity: 1; transform: none; }
  .split-words .wi { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   V5 — FILTRES PORTFOLIO + LIGHTBOX + FINITIONS
═══════════════════════════════════════════════════════════ */

/* Réactivité tactile : supprime le délai de 300 ms */
a, button, .photo-item, .pf-chip { touch-action: manipulation; }

/* ─── CURSEUR "VOIR" ───────────────────────────────────────── */
.cursor .cursor-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-view { width: 58px; height: 58px; opacity: 0.95; }
.cursor.is-view .cursor-label { opacity: 1; }

/* ─── FILTRES PORTFOLIO ────────────────────────────────────── */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--gray-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-5);
  cursor: none;
  transition: color 0.25s, border-color 0.25s, background 0.3s var(--ease);
}
.pf-chip em {
  font-style: normal;
  font-size: 9px;
  opacity: 0.55;
  transform: translateY(-1px);
}
.pf-chip:hover { color: var(--white); border-color: var(--gray-3); }
.pf-chip.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.pf-chip.is-active em { opacity: 0.6; }

/* Transition de filtrage */
.photo-item {
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.photo-item.pf-fading { opacity: 0; transform: scale(0.96); }
.photo-item.is-hidden { display: none; }

/* ─── SHIMMER DE CHARGEMENT ────────────────────────────────── */
.photo-img { position: relative; overflow: hidden; }
.photo-img:not(.is-loaded)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.045) 50%,
    transparent 80%);
  transform: translateX(-100%);
  animation: shimmerSweep 1.6s ease-in-out infinite;
}
@keyframes shimmerSweep {
  to { transform: translateX(100%); }
}
.photo-img.is-loaded::after { display: none; }
.photo-img {
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.4s;
}
.photo-img:not(.is-loaded) { opacity: 0.55; } /* shimmer visible sur fond gray-1 */
.photo-img.is-loaded { opacity: 1; }

/* ─── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(14px);
}
.lb-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(82vw, 1000px);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lb-stage { transform: scale(1); }
.lb-img {
  max-width: 100%;
  max-height: calc(84vh - 50px);
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    -14px 20px 60px rgba(var(--glow-cool), 0.10),
    14px -10px 60px rgba(var(--glow-warm), 0.08);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.lb-img.is-switching {
  opacity: 0;
  transform: translateX(var(--lb-dir, 24px));
}
.lb-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.lb-count { color: var(--white); }
.lb-close,
.lb-arrow {
  position: absolute;
  z-index: 2;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--gray-2);
  border-radius: 50%;
  color: var(--white);
  cursor: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.lb-close svg { width: 18px; height: 18px; }
.lb-arrow svg { width: 20px; height: 20px; }
.lb-close:hover,
.lb-arrow:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 768px) {
  .lb-stage { max-width: 92vw; }
  .lb-close { top: 14px; right: 14px; width: 46px; height: 46px; }
  .lb-prev  { left: 10px;  width: 46px; height: 46px; }
  .lb-next  { right: 10px; width: 46px; height: 46px; }
  .lb-img { max-height: calc(78vh - 50px); }
}

/* Garde-fous V5 */
@media (prefers-reduced-motion: reduce) {
  .photo-img:not(.is-loaded)::after { animation: none; }
  .lb-img.is-switching { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   V6 — PAGE @ (portfolio photo caché)
═══════════════════════════════════════════════════════════ */
.at-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 48px 30px;
  text-align: center;
}
.at-hero > * { position: relative; z-index: 1; }
.at-hero::before {
  content: '';
  position: absolute;
  left: 50%; top: 30%;
  width: min(820px, 90vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 38% 42%, rgba(var(--glow-cool), 0.13) 0%, transparent 56%),
    radial-gradient(circle at 62% 58%, rgba(var(--glow-warm), 0.11) 0%, transparent 56%);
  filter: blur(70px);
  pointer-events: none;
  animation: contactPulse 11s ease-in-out infinite alternate;
}
.at-eyebrow,
.at-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-5);
}
.at-title {
  font-size: clamp(130px, 30vw, 320px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 8px 0 4px;
  clip-path: inset(0 0 100% 0);
  transform: translateY(28px);
  transition: clip-path 1s var(--ease) 0.15s, transform 1s var(--ease) 0.15s;
}
body.is-loaded .at-title { clip-path: inset(0 0 -10% 0); transform: none; }
.at-eyebrow,
.at-sub {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s;
}
body.is-loaded .at-eyebrow,
body.is-loaded .at-sub { opacity: 1; transform: none; }

/* ─── Toolbar sticky : filtres + toggle de vue ─────────────── */
.page-at .at-portfolio,
.page-projets .at-portfolio { padding-top: 0; }
.at-toolbar {
  position: sticky;
  top: 64px; /* colle sous la barre de navigation (65 px) : plus de bande de photos entre les deux */
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 0;
  margin-bottom: 32px;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-2);
}
.page-at .portfolio-filters,
.page-projets .portfolio-filters { justify-content: center; margin-bottom: 0; }

.at-view-toggle {
  display: flex;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--gray-2);
}
.vt-btn {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gray-2);
  border-radius: 999px;
  color: var(--gray-5);
  cursor: none;
  transition: color 0.25s, border-color 0.25s, background 0.3s var(--ease);
}
.vt-btn svg { width: 17px; height: 17px; }
.vt-btn:hover { color: var(--white); border-color: var(--gray-3); }
.vt-btn.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ─── Numéro éditorial sur chaque tuile ────────────────────── */
.page-at .photo-item::before,
.page-projets .photo-item::before {
  content: attr(data-num);
  position: absolute;
  top: 12px; left: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.page-at .photo-item:hover::before,
.page-projets .photo-item:hover::before { opacity: 1; transform: none; }

/* ─── Viseur photo au survol (coins de cadre) ──────────────── */
.page-at .photo-item::after,
.page-projets .photo-item::after {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
  --ck: rgba(242, 242, 242, 0.95);
  background:
    linear-gradient(var(--ck), var(--ck)) top    left  / 16px 1.5px,
    linear-gradient(var(--ck), var(--ck)) top    left  / 1.5px 16px,
    linear-gradient(var(--ck), var(--ck)) top    right / 16px 1.5px,
    linear-gradient(var(--ck), var(--ck)) top    right / 1.5px 16px,
    linear-gradient(var(--ck), var(--ck)) bottom left  / 16px 1.5px,
    linear-gradient(var(--ck), var(--ck)) bottom left  / 1.5px 16px,
    linear-gradient(var(--ck), var(--ck)) bottom right / 16px 1.5px,
    linear-gradient(var(--ck), var(--ck)) bottom right / 1.5px 16px;
  background-repeat: no-repeat;
}
.page-at .photo-item:hover::after,
.page-projets .photo-item:hover::after { opacity: 1; transform: scale(1); }

/* ─── MUSIQUE D'AMBIANCE (page @) ──────────────────────────── */
.music-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9100; /* au-dessus de la lightbox, sous grain/curseur */
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid var(--gray-2);
  border-radius: 50%;
  color: var(--gray-5);
  backdrop-filter: blur(10px);
  cursor: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
}
.music-btn:hover {
  color: var(--white);
  border-color: var(--gray-3);
}
.music-btn.is-playing {
  color: var(--white);
  border-color: var(--white);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    -6px 8px 26px rgba(var(--glow-cool), 0.14),
    6px -4px 26px rgba(var(--glow-warm), 0.12);
}

/* Égaliseur 3 barres */
.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
}
.music-eq span {
  width: 2.5px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  transform: scaleY(0.25);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
}
.music-eq span:nth-child(2) { transform: scaleY(0.45); }
.music-eq span:nth-child(3) { transform: scaleY(0.3); }
.music-btn.is-playing .music-eq span {
  animation: eqBar 1.1s ease-in-out infinite;
}
.music-btn.is-playing .music-eq span:nth-child(2) { animation-delay: -0.35s; }
.music-btn.is-playing .music-eq span:nth-child(3) { animation-delay: -0.7s; }
@keyframes eqBar {
  0%, 100% { transform: scaleY(0.25); }
  35%      { transform: scaleY(1); }
  65%      { transform: scaleY(0.5); }
}

@media (max-width: 640px) {
  .music-btn { left: 14px; bottom: 14px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-btn.is-playing .music-eq span { animation: none; transform: scaleY(0.8); }
}

/* ─── Panneau lecteur : s'ouvre au survol du bouton musique ─── */
.music-widget { position: fixed; left: 24px; bottom: 24px; z-index: 9100; }
.music-widget .music-btn { position: static; }
.music-panel {
  position: absolute; left: 0; bottom: calc(100% + 14px); width: 240px;
  background: rgba(17, 17, 17, 0.88); border: 1px solid var(--gray-2); border-radius: 20px;
  padding: 14px; backdrop-filter: blur(14px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); cursor: default;
}
.music-widget.is-open .music-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.music-panel-cover { width: 100%; height: 120px; border-radius: 14px; overflow: hidden; background: var(--gray-2); margin-bottom: 10px; }
.music-panel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.music-panel-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--white); text-align: center; margin-bottom: 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.music-panel-scrub { position: relative; height: 3px; background: var(--gray-2); border-radius: 3px; cursor: pointer; margin-bottom: 6px; }
.music-panel-scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--white); border-radius: 3px; }
.music-panel-time { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--gray-5); margin-bottom: 12px; }
.music-panel-controls { display: flex; align-items: center; justify-content: center; gap: 4px; }
.music-panel-controls button {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--gray-5); background: transparent; border: 0; cursor: none;
  transition: color 0.25s, background 0.25s;
}
.music-panel-controls button:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.music-panel-controls button.is-active { color: var(--white); }
.music-panel-controls button svg { width: 16px; height: 16px; display: block; }
.music-panel-controls .mp-play { width: 38px; height: 38px; }
.music-panel-controls .mp-play svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .music-panel { display: none; } }

/* ─── MODE SOLO — une photo par écran, scroll-snap ─────────── */
html.at-solo { scroll-snap-type: y proximity; }

.page-at .portfolio-grid.view-solo,
.page-projets .portfolio-grid.view-solo {
  display: block;
  columns: auto;
  column-gap: 0;
}
.page-at .view-solo .photo-item,
.page-projets .view-solo .photo-item {
  aspect-ratio: var(--img-ratio, 9 / 16) !important;
  height: 100svh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  scroll-snap-align: start;
  background: var(--black);
  padding: 92px 4vw 96px;
}
.page-at .view-solo .photo-img,
.page-projets .view-solo .photo-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
  border-radius: 4px;
}
.page-at .view-solo .photo-item:hover .photo-img,
.page-projets .view-solo .photo-item:hover .photo-img { transform: none; }

/* Méta toujours visible en bas en mode solo */
.page-at .view-solo .photo-overlay,
.page-projets .view-solo .photo-overlay {
  opacity: 1;
  background: none;
  align-items: flex-end;
  padding: 0 4vw 40px;
}
.page-at .view-solo .photo-item::before,
.page-projets .view-solo .photo-item::before {
  opacity: 1;
  transform: none;
  top: auto; left: auto;
  bottom: 40px; right: 4vw;
  font-size: 13px;
}
.page-at .view-solo .photo-item::after,
.page-projets .view-solo .photo-item::after { display: none; }

/* Mur photo — masonry en colonnes, formats variés */
.page-at .portfolio-grid,
.page-projets .portfolio-grid {
  display: block;
  columns: 4 260px;
  column-gap: 4px;
}
.page-at .photo-item,
.page-projets .photo-item {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 4px;
  aspect-ratio: 3 / 4;
}
.page-at .photo-item:nth-child(5n + 2), .page-projets .photo-item:nth-child(5n + 2) { aspect-ratio: 4 / 5; }
.page-at .photo-item:nth-child(7n + 3), .page-projets .photo-item:nth-child(7n + 3) { aspect-ratio: 1 / 1; }
.page-at .photo-item:nth-child(6n + 4), .page-projets .photo-item:nth-child(6n + 4) { aspect-ratio: 3 / 5; }
.page-at .photo-item:nth-child(8n + 5), .page-projets .photo-item:nth-child(8n + 5) { aspect-ratio: 5 / 6; }

@media (max-width: 1024px) {
  .at-hero { padding: 140px 32px 20px; }
  .page-at .at-portfolio,
  .page-projets .at-portfolio { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 640px) {
  .at-hero { padding: 120px 20px 12px; }
  .page-at .at-portfolio,
  .page-projets .at-portfolio { padding-left: 12px; padding-right: 12px; }
  .page-at .portfolio-grid,
  .page-projets .portfolio-grid { columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .at-hero::before { animation: none; }
  .at-title { clip-path: none; transform: none; transition: none; }
  .at-eyebrow, .at-sub { opacity: 1; transform: none; }
}

/* --- HERO : CARD STACK / EVENTAIL 3D (recree en vanilla) --- */
.hero-fan {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  outline: none;
}
.fan-stage {
  position: relative;
  width: 100%;
  height: 360px;
  perspective: 1200px;
  touch-action: pan-y;
}
.fan-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 260px; height: 300px;
  margin: -150px 0 0 -130px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-1);
  border: 1px solid rgba(242,242,242,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 26px 54px rgba(0,0,0,0.55),
              0 8px 20px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform 0.62s cubic-bezier(0.34,1.22,0.64,1),
              opacity 0.45s var(--ease);
  color: var(--white);
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}
.fan-media { position: absolute; inset: 0; }
.fan-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(45%) brightness(0.82);
  transition: filter 0.55s var(--ease), transform 0.8s var(--ease);
}
.fan-card.is-active .fan-media img { filter: grayscale(0%) brightness(1); }
.fan-veil {
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.4);
  opacity: 1;
  transition: opacity 0.55s var(--ease);
}
.fan-card.is-active .fan-veil { opacity: 0; }
.fan-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.78) 0%, transparent 55%);
  pointer-events: none;
}
.fan-meta {
  position: absolute; left: 16px; right: 16px; bottom: 15px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 3px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.fan-meta .c { color: rgba(242,242,242,0.68); }
.fan-play {
  position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(242,242,242,0.75);
  background: rgba(8,8,8,0.32);
  opacity: 0; transform: scale(0.82);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.fan-play::after {
  content: '';
  position: absolute; left: 53%; top: 50%;
  transform: translate(-50%,-50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--white);
}
.fan-card.is-active .fan-play { opacity: 1; transform: scale(1); }
.fan-dots { display: flex; align-items: center; gap: 9px; }
.fan-dot {
  width: 8px; height: 8px; padding: 0; border: 0;
  border-radius: 50%;
  background: rgba(242,242,242,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.fan-dot:hover { background: rgba(242,242,242,0.55); }
.fan-dot.is-on { background: var(--white); transform: scale(1.2); }
@media (max-width: 640px) {
  .fan-stage { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card { transition: opacity 0.2s linear; }
  .fan-media img, .fan-veil, .fan-play { transition: none; }
}

/* ─── APERÇU PROJET (lightbox photo/vidéo + infos, carte fan du hero) ── */
.plb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.plb.is-open { opacity: 1; visibility: visible; }
.plb-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 8, .92); backdrop-filter: blur(6px); }
.plb-panel {
  position: relative; z-index: 1; width: min(92vw, 720px); max-height: 88vh; overflow: auto;
  background: var(--black); border: 1px solid var(--gray-2); border-radius: 16px;
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; scrollbar-width: none;
}
.plb.is-open .plb-panel { transform: translateY(0) scale(1); }
.plb-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(8, 8, 8, .7); border: 1px solid var(--gray-2); color: var(--white); font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.plb-close:hover { background: var(--white); color: var(--black); }
.plb-media { position: relative; width: 100%; aspect-ratio: 16 / 10; flex-shrink: 0; }
.plb-media-inner { position: absolute; inset: 0; background: #000; overflow: hidden; border-radius: 16px 16px 0 0; }
.plb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plb-media iframe, .plb-media video { width: 100%; height: 100%; display: block; border: 0; }

/* Flèches prev/next : hors du panneau, dans le fond — morphing au survol */
.plb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; padding: 0; overflow: hidden;
  border-radius: 50%;
  background: rgba(20, 20, 20, .6); border: 1px solid var(--gray-2); color: var(--white);
  cursor: pointer;
  transition: width .3s var(--ease), border-radius .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.plb-arrow:hover { background: var(--white); color: var(--black); }
.plb-prev { left: 24px; }
.plb-next { right: 24px; }
.plb-prev:hover { width: 76px; border-radius: 50px 14px 14px 50px; }
.plb-next:hover { width: 76px; border-radius: 14px 50px 50px 14px; }

.plb-arrow-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.plb-prev .plb-arrow-icon { left: 10px; }
.plb-next .plb-arrow-icon { right: 10px; }

.plb-arrow-line {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 2px; width: 0; background: currentColor;
  transition: width .3s var(--ease);
}
.plb-prev .plb-arrow-line { left: 34px; }
.plb-next .plb-arrow-line { right: 34px; }
.plb-prev:hover .plb-arrow-line { width: 32px; }
.plb-next:hover .plb-arrow-line { width: 32px; }

@media (max-width: 640px) {
  .plb-prev { left: 8px; }
  .plb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .plb-arrow { transition: none; }
  .plb-arrow-line { transition: none; }
}
.plb-info { padding: 22px clamp(20px, 4vw, 32px) clamp(24px, 4vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.plb-name { font-weight: 600; font-size: clamp(18px, 2vw, 22px); }
.plb-client { color: var(--gray-5); font-size: 13px; font-family: var(--mono); letter-spacing: .04em; }
.plb-info .btn-outline { align-self: flex-start; margin-top: 14px; }
@media (max-width: 640px) { .plb-panel { width: 100%; max-height: 92vh; } }
.plb-panel.is-reel { width: min(92vw, 380px); }
.plb-panel.is-reel .plb-media { aspect-ratio: auto; height: min(64vh, 580px); }
@media (prefers-reduced-motion: reduce) {
  .plb, .plb-panel { transition: none; }
}

/* --- MES DOSSIERS : grille de 8 petits dossiers (recree en vanilla) --- */
.folders { padding: clamp(90px,12vh,160px) clamp(20px,5vw,60px); position: relative; overflow: hidden; }
.folders-title { font-size: clamp(48px,8vw,104px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.9; text-transform: uppercase; margin-top: 18px; }
.folders-sub { margin-top: 18px; max-width: 560px; color: var(--gray-5); font-size: 15px; }
.folder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px,2.6vw,34px); width: 100%; max-width: 900px; margin: clamp(34px,6vh,64px) auto 0; }
.mini-folder { position: relative; display: block; height: 158px; perspective: 700px; text-decoration: none; outline: none; transition: transform .45s cubic-bezier(.34,1.24,.64,1); }
.mini-folder.is-hidden { display: none; }
.mini-folder:hover, .mini-folder:focus-visible { transform: translateY(-6px); }
.mf-stack { position: absolute; left: 0; right: 0; bottom: 26px; height: 98px; z-index: 2; }
.mf-photo { position: absolute; left: 50%; bottom: 0; width: 72px; height: 94px; margin-left: -36px; border-radius: 7px; background-size: cover; background-position: center; background-color: var(--gray-1); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 22px rgba(0,0,0,.55); transform-origin: bottom center; transform: translateX(calc(var(--i) * 7px)) rotate(calc(var(--i) * 5deg)); transition: transform .45s cubic-bezier(.34,1.24,.64,1); }
.mini-folder:hover .mf-photo, .mini-folder:focus-visible .mf-photo { transform: translateX(calc(var(--i) * 26px)) translateY(-18px) rotate(calc(var(--i) * 11deg)); }
.mf-pocket { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 5; background: linear-gradient(to bottom,#2a2a2a,#111); border-radius: 12px; border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 2px 8px rgba(255,255,255,.08), 0 -10px 22px rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 13px; transform-origin: bottom center; transition: transform .45s cubic-bezier(.34,1.24,.64,1); }
.mini-folder:hover .mf-pocket, .mini-folder:focus-visible .mf-pocket { transform: translateY(4px) rotateX(-16deg); }
.mf-tab { position: absolute; top: -7px; left: 14px; width: 48px; height: 9px; background: #2a2a2a; border-radius: 5px 5px 0 0; border: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
.mf-shine { position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: linear-gradient(to right,transparent,rgba(255,255,255,.35),transparent); }
.mf-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,242,242,.85); }
@media (max-width: 720px) { .folder-grid { grid-template-columns: repeat(2, 1fr); max-width: 420px; } }
@media (max-width: 400px) { .mini-folder { height: 168px; } .mf-photo { width: 64px; height: 84px; margin-left: -32px; } }
@media (prefers-reduced-motion: reduce) { .mini-folder, .mf-photo, .mf-pocket { transition: none; } }

/* --- HEADER "reference accueil" applique au site (fixe + fond au scroll) --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px clamp(20px,5vw,48px); transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8,8,8,.92); backdrop-filter: blur(12px); border-color: var(--gray-2); }
.nav .brand { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--white); display: flex; align-items: center; }
.nav-logo { display: block; height: 24px; width: auto; }
.nav .nav-links { display: flex; gap: clamp(14px,2.4vw,26px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav .nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-5); transition: color .3s var(--ease); }
.nav .nav-links a:hover { color: var(--white); }
@media (max-width: 680px) {
  .nav .nav-links { display: none; }
  .nav .hamburger { display: flex; }
}

/* --- PAGE CONTACT dediee (style epure, inspire hisaeproductions.fr/contact) --- */
.contact-page { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; padding: 140px clamp(20px,5vw,60px) 90px; }
.contact-page > * { position: relative; z-index: 1; }
.contact-minimal { justify-content: center; text-align: center; padding: 140px clamp(20px,5vw,60px); }
.cm-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cm-logo { width: min(320px, 70vw); height: auto; margin-bottom: 22px; }
.cm-loc { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 22px); color: var(--gray-5); }
.cm-email { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 22px); color: var(--white); margin-top: 6px; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), color .3s; }
.cm-email:hover { border-color: var(--gray-3); }

/* ─── PAGE ARCHIVES — CARTES À TRAÎNER ─────────────────────── */
.arch-hero { position: relative; padding: 170px 48px 30px; text-align: center; }
.arch-hero .back-link { position: absolute; left: 48px; top: 120px; }
.arch-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-5); margin-bottom: 18px;
}
.arch-title {
  font-size: clamp(64px, 12vw, 160px); font-weight: 700;
  letter-spacing: -.04em; line-height: .9; text-transform: uppercase;
}
.arch-sub { margin-top: 18px; color: var(--gray-5); font-size: 15px; }
.arch-field {
  position: relative;
  min-height: max(620px, calc(100dvh - 120px));
  overflow: hidden;
  perspective: 3000px;
  border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  margin-top: 40px;
}
.arch-quote {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 44px); letter-spacing: -.02em;
  color: var(--gray-2); user-select: none; pointer-events: none;
  max-width: 520px; line-height: 1.15;
}
.arch-card {
  position: absolute;
  width: clamp(190px, 23vw, 300px);
  padding: 12px 12px 0;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.arch-card.is-drag { cursor: grabbing; box-shadow: 0 45px 90px rgba(0, 0, 0, .6); }
.arch-card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  pointer-events: none; border-radius: 4px;
  filter: saturate(.9);
}
.arch-card figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 2px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray-5);
}
.arch-glare {
  position: absolute; inset: 0; border-radius: inherit;
  background: #fff; opacity: 0; pointer-events: none;
}
@media (max-width: 640px) {
  .arch-hero { padding: 140px 20px 20px; }
  .arch-hero .back-link { position: static; margin-bottom: 24px; }
  .arch-card { width: clamp(150px, 44vw, 220px); }
  .arch-quote { font-size: 20px; max-width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .arch-glare { display: none; }
}

/* Fiches Format / Livraison : une colonne sur très petit écran (après le bloc 1024px pour l'emporter) */
@media (max-width: 480px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── SERVICES PROPOSÉS : carrousel infini (classe .is-marquee) ── */
.svc-marquee {
  overflow: hidden;
  margin: 0 -48px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.svc-included-list.is-marquee {
  display: flex;
  width: max-content;
  animation: svc-marquee var(--dur, 40s) linear infinite;
}
.svc-marquee:hover .svc-included-list.is-marquee { animation-play-state: paused; }
@keyframes svc-marquee { to { transform: translateX(-50%); } }
.svc-included-list.is-marquee li,
.svc-included-list.is-marquee li:nth-child(odd),
.svc-included-list.is-marquee li:nth-child(even) {
  flex: 0 0 auto;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0 12px 0;
  border: 0;
  white-space: nowrap;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.svc-included-list.is-marquee li::after {
  content: '/';
  margin: 0 clamp(28px, 4vw, 56px);
  color: var(--gray-3);
  font-weight: 300;
}
.svc-included-list.is-marquee .num { padding-top: 0; }
@media (max-width: 1024px) { .svc-marquee { margin: 0 -32px; } }
@media (max-width: 640px)  { .svc-marquee { margin: 0 -20px; } }
@media (prefers-reduced-motion: reduce) {
  .svc-marquee { overflow-x: auto; }
  .svc-included-list.is-marquee { animation: none; }
}

/* ─── REELS sur la page Musique ──────────────────────────────── */
.svc-reels { padding: 36px 48px 44px; border-bottom: 1px solid var(--gray-2); }
.svc-reels-title { margin-bottom: 16px; }
@media (max-width: 1024px) { .svc-reels { padding: 32px 32px 40px; } }
@media (max-width: 640px)  { .svc-reels { padding: 28px 20px 36px; } .svc-reels-title { margin-bottom: 14px; } }

/* ─── Galerie photo des pages de services (maçonnerie, ratios d'origine) ─── */
.svc-photos { columns: 3; column-gap: 8px; }
.svc-photo {
  display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0;
  break-inside: avoid; overflow: hidden; background: var(--gray-1);
  cursor: none;
}
.svc-photo img {
  display: block; width: 100%; height: auto;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: grayscale(15%);
}
.svc-photo:hover img, .svc-photo:focus-visible img { transform: scale(1.03); filter: grayscale(0); }
.svc-photo:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (max-width: 1024px) { .svc-photos { columns: 2; } }

/* ─── Espacements resserrés des pages de services ─────────────────
   (placé en fin de fichier pour l'emporter sur les valeurs d'origine) */
.svc-hero { padding: 140px 48px 40px; }
.svc-hero-title { margin-bottom: 32px; }
.svc-hero-grid { margin-top: 32px; }
.svc-gallery { padding: 36px 48px 56px; }
.svc-gallery .section-label { margin-bottom: 16px; }
.svc-gallery ~ .contact { padding-top: 56px; padding-bottom: 64px; }
@media (max-width: 1024px) {
  .svc-hero { padding: 120px 32px 36px; }
  .svc-gallery { padding: 32px 32px 48px; }
}
@media (max-width: 640px) {
  .svc-hero { padding: 104px 20px 32px; }
  .svc-gallery { padding: 28px 20px 40px; }
  .svc-gallery ~ .contact { padding-top: 44px; padding-bottom: 52px; }
}
.svc-gallery-title { margin-bottom: 16px; }
@media (max-width: 640px) { .svc-gallery-title { margin-bottom: 14px; } }

/* Fond WebGL Plasma (page contact) : fixe, derrière tout le contenu */
.plasma-bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }

/* Page contact : la barre de navigation est transparente pour laisser voir le fond Plasma */
.page-contact .nav.scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }

/* ─── Pages projet / client : espacements resserrés (comme les pages de services) ─── */
.proj-feature { padding: 0 48px 48px; }
.proj-role { padding: 56px 48px; gap: 48px; }
.proj-credits { padding: 56px 48px; }
@media (max-width: 1024px) {
  .proj-feature { padding: 0 32px 40px; }
  .proj-role { padding: 48px 32px; gap: 28px; }
  .proj-credits { padding: 48px 32px; }
}
@media (max-width: 640px) {
  .proj-feature { padding: 0 20px 32px; }
  .proj-role, .proj-credits { padding: 40px 20px; }
}

/* ─── Toolbar sticky pleine largeur : filtres à gauche, bouton de vue seul à droite ─── */
.at-toolbar {
  margin-left: -48px; margin-right: -48px;
  padding: 14px 48px;
  justify-content: space-between;
}
.page-at .portfolio-filters,
.page-projets .portfolio-filters { justify-content: flex-start; }
.at-view-toggle { padding-left: 0; border-left: 0; margin-left: auto; display: flex; }
.vt-btn .ico-wall { display: none; }
.vt-btn.is-solo .ico-solo { display: none; }
.vt-btn.is-solo .ico-wall { display: block; }
.vt-btn.is-solo { background: var(--white); border-color: var(--white); color: var(--black); }
@media (max-width: 1024px) { .at-toolbar { margin-left: -32px; margin-right: -32px; padding: 12px 32px; } }
@media (max-width: 640px)  { .at-toolbar { margin-left: -12px; margin-right: -12px; padding: 10px 12px; } }

/* Mobile : barre sur une seule ligne (filtres qui défilent + bouton de vue à droite) */
@media (max-width: 640px) {
  .at-toolbar { flex-wrap: nowrap; gap: 10px; }
  .page-at .portfolio-filters, .page-projets .portfolio-filters {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .portfolio-filters .pf-chip { flex: 0 0 auto; }
  .at-view-toggle { flex: 0 0 auto; }
}

/* Titre de page long (ex. ÉVÉNEMENT) : taille minimale réduite pour tenir sur mobile */
.svc-hero-title--long { font-size: clamp(56px, 12vw, 180px); }

/* ─── Direction artistique : même arrondi (12 px) sur toutes les cartes média ─── */
:root { --radius-card: 12px; }
.film-card, .cli-project-card, .svc-other-card, .svc-photo, .client-tile,
.proj-feature-video, .proj-feature img, .fan-card, .video-lightbox-stage { border-radius: var(--radius-card); }
.video-lightbox-stage { overflow: hidden; }
.proj-feature-video { overflow: hidden; }

/* ─── Flèches ‹ › du lecteur plein écran (même style que l'aperçu du hero) ─── */
.vlb-arrow { display: none; }
.video-lightbox.has-nav .vlb-arrow { display: block; }
@media (hover: none), (max-width: 640px) { .video-lightbox.has-nav .vlb-arrow { display: none; } }

/* ─── Page projet : moins d'espace entre « Le projet » et « Crédits » ─── */
.proj-role { padding-bottom: 28px; }
.proj-credits { padding-top: 28px; }
.proj-role-text .proj-links { margin-bottom: 0; }

/* ─── Mêmes espacements resserrés sur les pages projet et « À propos » ─── */
.proj-credits ~ .contact, .services ~ .contact { padding-top: 56px; padding-bottom: 64px; }
.brand-intro { padding-top: 56px; padding-bottom: 56px; }
.services { padding-bottom: 56px; }
@media (max-width: 640px) {
  .proj-credits ~ .contact, .services ~ .contact { padding-top: 44px; padding-bottom: 52px; }
  .brand-intro { padding-top: 44px; padding-bottom: 44px; }
  .services { padding-bottom: 44px; }
}

/* ─── Etheral Shadow — fond animé du hero (recréé en vanilla, sans React) ─── */
.etheral{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.etheral-svg{position:absolute;width:0;height:0}
.etheral-inner{position:absolute;inset:-60px;filter:url(#etheral-filter) blur(4px)}
.etheral-smoke{
  width:100%;height:100%;
  background-color:rgba(132,142,175,1);
  -webkit-mask:url("../assets/etheral-mask.png") center / cover no-repeat;
  mask:url("../assets/etheral-mask.png") center / cover no-repeat;
  opacity:.55;
}
.etheral-noise{
  position:absolute;inset:0;
  background:url("../assets/etheral-noise.png") repeat;
  background-size:240px;opacity:.25;mix-blend-mode:soft-light;
}
/* dégradé bas : préserve le contraste du titre blanc */
.etheral::after{content:"";position:absolute;left:0;right:0;bottom:0;height:48%;
  background:linear-gradient(to top,var(--black),transparent);z-index:2}
@media (prefers-reduced-motion:reduce){.etheral-inner{filter:blur(8px)}}

/* Fond plein écran fixe (À propos + pages projet) : plus sombre pour garder le texte lisible */
.etheral--page { position: fixed; z-index: 0; }
.etheral--page .etheral-smoke { opacity: .38; }
.etheral--page::after { display: none; }

/* À propos + pages projet : barre transparente en haut de page (fond Etheral visible), noire dès qu'on descend */
.page-etheral .nav:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }

/* ─── À propos : l'aperçu des domaines suit la hauteur de la liste ─── */
.services-layout { align-items: stretch; }
.services-preview { position: relative; top: auto; aspect-ratio: auto; min-height: 260px; border-radius: var(--radius-card, 12px); }
.preview-img { position: absolute; inset: 0; opacity: 1; transform: none; background: var(--gray-1); }
.preview-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.preview-slide.is-on { opacity: 1; }
.service-item.is-active .service-name { color: var(--white); }

/* Crédits : liens vers les profils (Instagram, TikTok, YouTube…) */
.proj-credits dd a { color: inherit; border-bottom: 1px solid var(--gray-3); transition: color .25s, border-color .25s; }
.proj-credits dd a:hover { color: var(--white); border-color: var(--white); }

/* Page @ : le fond Etheral remplace le halo du hero (qui laissait un bord visible) */
.page-at.page-etheral .at-hero::before { display: none; }

/* ─── Page @ : version minimale (fleur + règle de catégories + galerie) ─── */
.page-at .nav { justify-content: center; }
.page-at .nav-links, .page-at .hamburger, .page-at .menu-overlay { display: none !important; }
.page-at .at-portfolio { padding-top: 88px; }
.page-at .portfolio-filters { display: none; }
.page-at .at-toolbar { top: 64px; justify-content: center; position: sticky; padding: 6px 0 0; }
.page-at .at-ruler { flex: 1 1 auto; max-width: 720px; margin: 0 auto; }
.page-at .at-toolbar .at-view-toggle { position: absolute; right: 0; top: 10px; padding-left: 0; border-left: 0; }

/* ─── Menu : effet au survol (lignes haut/bas + remplissage), d'après « menu-hover-effects » ─── */
.nav .nav-links a { position: relative; isolation: isolate; display: inline-block; padding: 9px 14px; }
.nav .nav-links a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-top: 1px solid var(--white); border-bottom: 1px solid var(--white);
  transform: scaleY(2); opacity: 0; transform-origin: center; transition: transform .3s var(--ease), opacity .3s var(--ease); pointer-events: none; }
.nav .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; top: 1px; bottom: 0; z-index: -1; background: var(--white);
  transform: scaleY(0); opacity: 0; transform-origin: top; transition: transform .3s var(--ease), opacity .3s var(--ease); pointer-events: none; }
.nav .nav-links a:hover, .nav .nav-links a:focus-visible { color: var(--black); }
.nav .nav-links a.active { color: var(--white); }
.nav .nav-links a.active:hover { color: var(--black); }
.nav .nav-links a:hover::before, .nav .nav-links a:focus-visible::before { transform: scaleY(1); opacity: 1; }
.nav .nav-links a:hover::after, .nav .nav-links a:focus-visible::after { transform: scaleY(1); opacity: 1; }
.nav .nav-links { gap: clamp(0px, .6vw, 6px); }

/* Page @ : la règle de catégories est transparente (le fond animé reste visible derrière) */
.page-at .at-toolbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.page-at .at-ruler .ruler-item { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75); }
.photo-item[data-video-type] .play-affordance { width: 56px; height: 56px; z-index: 3; }

/* Éventail du hero sur téléphone : moins de vide autour des cartes */
@media (max-width: 640px) {
  .hero-portfolio { margin-top: 12px; padding: 4px 0 10px; }
  .hero { padding-bottom: 20px; }
  .hero-fan { gap: 10px; }
}

/* Téléphone : pied de page centré et aéré (liens légaux, puis copyright) */
@media (max-width: 640px) {
  .footer { flex-direction: column-reverse; align-items: center; text-align: center; gap: 14px; padding: 30px 20px max(26px, env(safe-area-inset-bottom)); }
  .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .footer > span { font-size: 10px; letter-spacing: 0.14em; opacity: 0.7; }
}

/* Téléphone : boutons de page projet de même largeur, zones tactiles plus confortables */
@media (max-width: 640px) {
  .proj-links { display: flex; flex-direction: column; gap: 12px; }
  .proj-links .btn-outline { display: block; width: 100%; text-align: center; margin-top: 0; }
  .back-link { display: inline-block; padding: 12px 12px 12px 0; }
  .contact-socials { gap: 8px 10px; }
  .contact-socials a { display: inline-block; padding: 12px 10px; }
}


/* ─── Piles de photos (une série = une tuile, ses photos défilent lentement en fondu) ─── */
.photo-stack { background: #0e0e0e; }
.photo-stack .stack-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-color: #141414;
  opacity: 0; transition: opacity 1.6s ease;
}
.photo-stack .stack-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font: 10px/1 var(--mono); letter-spacing: 0.14em; color: rgba(242, 242, 242, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); pointer-events: none;
}
.photo-stack .stack-count:empty { display: none; }
.photo-stack .stack-count i { display: block; position: relative; width: 36px; height: 1px; background: rgba(242, 242, 242, 0.3); }
.photo-stack .stack-count i::after { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--white); transition: width 1.2s ease; }
@media (prefers-reduced-motion: reduce) { .photo-stack .stack-layer { transition: none; } }


/* Films sur téléphone : bandeau horizontal (cartes plus étroites, on devine la suivante) */
.films-grid.is-slider {
  display: flex; gap: 12px; grid-template-columns: none;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px 4px;
  -webkit-overflow-scrolling: touch;
}
.films-grid.is-slider::-webkit-scrollbar { display: none; }
.films-grid.is-slider .film-card { flex: 0 0 78vw; max-width: 340px; }
.films-grid.is-slider .film-card .film-title { font-size: 18px; }

/* Page @ : dès qu'on descend, la barre des catégories se fond avec la barre du haut (même fond noir flouté) */
.page-at .at-toolbar { transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s; }
.page-at .nav.scrolled { border-bottom-color: transparent; }
.page-at .nav.scrolled ~ .at-portfolio .at-toolbar {
  background: rgba(8, 8, 8, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--gray-2);
}


/* Page @ : le bouton plein écran / mosaïque est dans la barre du haut, à droite (visible aussi sur téléphone) */
.page-at .nav .at-view-toggle {
  position: absolute; right: clamp(16px, 5vw, 48px); top: 10px;
  display: flex; margin: 0; padding: 0; border: 0; z-index: 2;
}

/* Texte réservé aux lecteurs d'écran et aux moteurs de recherche */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }



/* ─── Reels : lecteur Instagram recadré sur la vidéo ───────────────
   On ne montre que la zone vidéo de l'embed : l'en-tête (« Voir le profil »)
   et le pied (« Voir plus sur Instagram », cœur, commentaire) sont rognés.
   Les crédits sont rappelés dans la légende sous le lecteur. */
.video-lightbox-stage.is-reel,
.video-lightbox.has-nav .video-lightbox-stage.is-reel {
  width: min(420px, 100%, 62vh);
  height: auto;
  margin-top: 0;
  aspect-ratio: 100 / 125;
  background: #000;
}
.video-lightbox-stage.is-reel iframe {
  inset: auto;
  top: -56px;
  left: 0;
  width: 100%;
  height: calc(100% + 56px + 300px);
  background: #000;
}
.vlb-swipe-top { height: 40px; }
.vlb-swipe-bottom { height: 40px; }
.vlb-caption {
  position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; padding: 0 56px;
  text-align: center; pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--gray-5);
}
.vlb-caption:empty { display: none; }


/* ─── Téléphone / tablette : alléger pour éviter écran noir et blocages ─────
   Le grain est un calque 3× plus grand que l'écran avec fusion « overlay »
   animée : trop lourd pour la mémoire graphique d'un téléphone. */
@media (hover: none), (max-width: 900px) {
  .grain { display: none; }
}

.vlb-caption a { pointer-events: auto; color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }


/* ─── Reels : flèches et texte des cartes ─────────────────────── */
.reels-wrap { position: relative; }
.reels-arrow {
  position: absolute; top: 50%; z-index: 4; width: 52px; height: 52px; margin-top: -26px; padding: 0 0 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.32); background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--white); font-size: 28px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .25s var(--ease), background .2s, border-color .2s;
}
.reels-prev { left: 14px; }
.reels-next { right: 14px; }
.reels-wrap:hover .reels-arrow, .reels-arrow:focus-visible { opacity: 1; }
.reels-arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.8); }
@media (hover: none), (max-width: 700px) { .reels-arrow { display: none; } }

.reel-overlay {
  height: 72%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.78) 34%, rgba(0,0,0,0.3) 68%, transparent 100%);
}
.reel-author { align-items: flex-end; gap: 10px; padding: 14px 14px 16px; }
.reel-avatar { width: 30px; height: 30px; border-color: rgba(255,255,255,0.4); }
.reel-author-text { gap: 4px; }
.reel-author-name { font-size: 12px; letter-spacing: 0.02em; text-shadow: 0 1px 10px rgba(0,0,0,0.8); }
.reel-title {
  font-size: 11px; line-height: 1.4; color: rgba(255,255,255,0.86);
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}


/* ─── Optimisation mémoire : le grain de film ────────────────────────────
   Avant : calque de 3×3 = 9 fois la taille de l'écran (jusqu'à ~190 Mo de mémoire
   graphique sur un écran Retina). Maintenant : écran + 120 px de marge, même rendu. */
.grain { inset: -120px; animation-name: grainShiftLite; }
@keyframes grainShiftLite {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-72px, 54px); }
  50%  { transform: translate(60px, -78px); }
  75%  { transform: translate(-54px, -60px); }
  100% { transform: translate(0, 0); }
}


/* ─── Galerie : placement en colonnes calculé (ordre fixe, formats naturels) ──────────
   Chaque tuile épouse le format de sa photo (plus de recadrage imposé par la position). */
.page-at .portfolio-grid.is-masonry,
.page-projets .portfolio-grid.is-masonry { display: block; columns: auto; position: relative; }
.page-at .portfolio-grid.is-masonry > .photo-item,
.page-projets .portfolio-grid.is-masonry > .photo-item {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 100%);
  margin: 0; aspect-ratio: var(--r, 3 / 4) !important;
}
.page-at .portfolio-grid.is-masonry > .photo-item.is-hidden,
.page-projets .portfolio-grid.is-masonry > .photo-item.is-hidden { display: none; }


/* Titres de 3e niveau ajoutés pour le référencement : même apparence qu'avant */
.services-list h3.service-name { margin: 0; }
.proj-role-list li > h3 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }
