/* ============================================
   LaVoixOff.fr — Design System
   Simon Herlin, Comédien Voix-Off
   ============================================ */

/* ---- Fonts : chargées via <link> dans <head> pour éviter le render-blocking ---- */

/* ---- Variables ---- */
:root {
  /* Couleurs */
  --ink: #0d1526;
  --ink-2: #121d32;
  --ink-3: #182540;
  --ink-4: #1f2f50;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --mute: #6a7fa8;
  --mute-2: #9ab0cc;
  --paper: #eef2ff;
  --white: #ffffff;

  /* Accent cobalt - clarté, digital, premium */
  --accent: #5478f5;
  --accent-soft: #8aa4ff;
  --accent-glow: rgba(84, 120, 245, 0.2);
  --accent-deep: #3158d4;

  /* Typo */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espacements */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --radius: 6px;
  --radius-lg: 14px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 0.25s var(--ease);
  --med: 0.45s var(--ease);
  --slow: 0.8s var(--ease);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; }

/* Grain subtil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---- Typographie ---- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
h1 {
  font-size: clamp(1.6rem, 9vw, 8.5rem);
  font-weight: 500;
}
h2 {
  font-size: clamp(1.2rem, 5.5vw, 4.75rem);
  font-weight: 500;
}
h3 {
  font-size: clamp(1rem, 2.8vw, 2.2rem);
  font-weight: 500;
}
h4 {
  font-size: clamp(0.9rem, 1.9vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { max-width: none; }
em, .italic { font-style: italic; font-family: var(--display); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3em 0.72em 0.3em 0.65em;
  border-radius: 3px;
}
.eyebrow::before {
  display: none;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 0.82rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 14' fill='white'%3E%3Crect x='0' y='4' width='3' height='6' rx='1'%3E%3Canimate attributeName='height' values='6;12;6' dur='0.9s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='4;1;4' dur='0.9s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='4.5' y='1' width='3' height='12' rx='1'%3E%3Canimate attributeName='height' values='12;5;12' dur='0.7s' begin='0.1s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='1;4.5;1' dur='0.7s' begin='0.1s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='9' y='0' width='3' height='14' rx='1'%3E%3Canimate attributeName='height' values='14;6;14' dur='1.1s' begin='0.25s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='0;4;0' dur='1.1s' begin='0.25s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='13.5' y='3' width='3' height='8' rx='1'%3E%3Canimate attributeName='height' values='8;13;8' dur='0.8s' begin='0.4s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='3;0.5;3' dur='0.8s' begin='0.4s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
  opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 14' fill='white'%3E%3Crect x='0' y='4' width='3' height='6' rx='1'/%3E%3Crect x='4.5' y='1' width='3' height='12' rx='1'/%3E%3Crect x='9' y='0' width='3' height='14' rx='1'/%3E%3Crect x='13.5' y='3' width='3' height='8' rx='1'/%3E%3C/svg%3E");
  }
}

/* ---- Containers ---- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: var(--section-y) 0;
  position: relative;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: all var(--fast);
  backdrop-filter: blur(0);
}
.header.scrolled {
  background: rgba(13, 21, 38, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}
.logo em {
  color: var(--accent);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mute-2);
  position: relative;
  transition: color var(--fast);
}
.nav a:hover { color: var(--white); }
.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--fast);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  padding: 0.7rem 1.3rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.header-cta:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 101;
}
.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--fast);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -15%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 4rem; }
}

.hero-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s var(--ease) 0.05s both;
}
.hero-brand span { color: var(--accent); margin: 0 0.4em; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(84, 120, 245, 0.08);
  border: 1px solid rgba(84, 120, 245, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--mute-2);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s var(--ease) both;
}
.hero-tag .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.hero-tag-sep {
  color: var(--mute);
  opacity: 0.5;
}
.hero-tag-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--fast);
}
.hero-tag-link:hover { opacity: 0.75; }

.hero h1 {
  margin-bottom: 2rem;
  animation: fadeInUp 1s var(--ease) both;
  animation-delay: 0.1s;
}
.hero h1 .line { display: block; overflow: visible; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero h1 .accent-underline {
  position: relative;
  display: inline-block;
}
.hero h1 .accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.06em;
  background: var(--accent);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineIn 1s var(--ease) 1.4s forwards;
}
@keyframes lineIn { to { transform: scaleX(1); } }

/* Émotions flottantes autour de "Des intentions." */
.hero-feelings-line {
  position: relative;
  isolation: isolate;
}
.hero-feelings {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: -1;
}
.hf {
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  opacity: 0;
  color: var(--accent);
  will-change: transform, opacity;
}
.hf svg { width: 100%; height: 100%; }

/* Couleurs */
.hf-white { color: rgba(255,255,255,0.85); }
.hf-blue  { color: var(--accent); }

/* Trajectoires — 4 variantes */
@keyframes hfDrift-left {
  0%   { transform: translateY(0)      translateX(0)      scale(0.6) rotate(-10deg); opacity: 0; }
  12%  { opacity: 0.55; }
  100% { transform: translateY(-4rem)  translateX(-1.5rem) scale(1.1) rotate(-20deg); opacity: 0; }
}
@keyframes hfDrift-right {
  0%   { transform: translateY(0)      translateX(0)      scale(0.6) rotate(8deg); opacity: 0; }
  12%  { opacity: 0.55; }
  100% { transform: translateY(-4.5rem) translateX(1.8rem) scale(1)   rotate(18deg); opacity: 0; }
}
@keyframes hfDrift-up {
  0%   { transform: translateY(0)      translateX(0)      scale(0.5) rotate(-4deg); opacity: 0; }
  12%  { opacity: 0.6; }
  100% { transform: translateY(-5rem)  translateX(0.3rem) scale(1.2) rotate(4deg);  opacity: 0; }
}
@keyframes hfDrift-curve {
  0%   { transform: translateY(0)      translateX(0)       scale(0.65) rotate(12deg); opacity: 0; }
  12%  { opacity: 0.5; }
  50%  { transform: translateY(-2rem)  translateX(1.2rem)  scale(1);  }
  100% { transform: translateY(-4rem)  translateX(-0.8rem) scale(0.9) rotate(-8deg); opacity: 0; }
}

/* Positions + animations individuelles */
.hf-1 { left: -2rem;   animation: hfDrift-right 3.8s ease-out 0.0s infinite; }
.hf-2 { left:  8%;     animation: hfDrift-up    4.2s ease-out 0.7s infinite; color: rgba(255,255,255,0.85); }
.hf-3 { left: 22%;     animation: hfDrift-left  3.5s ease-out 1.4s infinite; }
.hf-4 { left: 38%;     animation: hfDrift-curve 4.6s ease-out 2.1s infinite; color: rgba(255,255,255,0.85); }
.hf-5 { left: 52%;     animation: hfDrift-up    3.9s ease-out 0.4s infinite; }
.hf-6 { left: 66%;     animation: hfDrift-right 4.1s ease-out 1.8s infinite; color: rgba(255,255,255,0.85); }
.hf-7 { left: 80%;     animation: hfDrift-curve 3.6s ease-out 0.9s infinite; }
.hf-8 { left: 96%;     animation: hfDrift-left  4.4s ease-out 2.5s infinite; color: rgba(255,255,255,0.85); }

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

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--mute-2);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fadeInUp 1s var(--ease) 0.4s both;
}
.hero-lead strong { color: var(--white); font-weight: 500; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeInUp 1s var(--ease) 0.6s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  animation: fadeInUp 1s var(--ease) 0.8s both;
}
.hero-meta-item .number {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.hero-meta-item .label {
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-clients {
  padding-top: 1.75rem;
  animation: fadeInUp 1s var(--ease) 1s both;
}
.hero-clients-label {
  display: block;
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-clients-names {
  text-align: justify;
  text-align-last: left;
  line-height: 1.6;
}
.hero-clients-names span {
  display: inline;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 400;
  color: var(--mute-2);
}
.hero-clients-names span:not(:last-child)::after {
  content: ",";
  margin-right: 0.35rem;
  font-style: normal;
}
.hero-clients-names .cn-ellipsis {
  opacity: 0.45;
  font-style: italic;
}

/* Player hero */
.hero-player {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  animation: fadeInUp 1s var(--ease) 0.5s both;
  position: relative;
  overflow: hidden;
}
.hero-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--med);
}
.hero-player:hover::before { opacity: 0.3; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Visuel ondes sonores (colonne droite hero) ---- */
.hero-visual {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1.2s var(--ease) 0.6s both;
}
@media (min-width: 900px) { .hero-visual { display: flex; } }

.soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 220px;
  width: 100%;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
}
.soundwave:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.soundwave.is-playing > span { animation-duration: calc(var(--wave-dur, 1.2s) * 0.5); }
/* Barres au-dessus des ripples */
.soundwave > span { position: relative; z-index: 1; }

/* Overlay play/pause centré sur les ondes */
.soundwave-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fast);
}
.soundwave:hover .soundwave-overlay,
.soundwave.is-playing .soundwave-overlay { opacity: 1; }

.soundwave-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: transform var(--fast);
}
.soundwave:hover .soundwave-play-circle { transform: scale(1.1); }
.soundwave-play-circle svg { width: 20px; height: 20px; }

/* Toujours visible sous les ondes */
.soundwave-cta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--fast);
  animation: ctaBounce 2.2s ease-in-out infinite;
}
.soundwave.is-playing ~ .soundwave-cta { color: var(--accent-soft); }

.soundwave-arrow {
  width: 14px;
  height: 20px;
  color: var(--accent);
  animation: arrowBounce 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.6; }
  50%       { transform: translateY(-5px); opacity: 1;   }
}
@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

/* Ondulations circulaires (passent derrière les barres) */
.soundwave-ripples {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: -1;
}
.soundwave-ripples span {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--accent);
  opacity: 0;
}
.soundwave.is-playing .soundwave-ripples span:nth-child(1) {
  animation: rippleOut 2.6s ease-out 0.0s infinite;
  border-width: 1.5px;
  --r-start: 40px; --r-end: 260px;
}
.soundwave.is-playing .soundwave-ripples span:nth-child(2) {
  animation: rippleOut 3.3s ease-out 0.7s infinite;
  border-width: 1px;
  --r-start: 55px; --r-end: 310px;
}
.soundwave.is-playing .soundwave-ripples span:nth-child(3) {
  animation: rippleOut 2.1s ease-out 1.5s infinite;
  border-width: 2px;
  --r-start: 30px; --r-end: 200px;
}
.soundwave.is-playing .soundwave-ripples span:nth-child(4) {
  animation: rippleOut 3.8s ease-out 0.3s infinite;
  border-width: 1px;
  --r-start: 60px; --r-end: 290px;
}
.soundwave.is-playing .soundwave-ripples span:nth-child(5) {
  animation: rippleOut 2.9s ease-out 2.1s infinite;
  border-width: 1.5px;
  --r-start: 45px; --r-end: 240px;
}

@keyframes rippleOut {
  0%   { width: var(--r-start, 40px); height: var(--r-start, 40px); opacity: 0.55; }
  100% { width: var(--r-end, 280px);  height: var(--r-end, 280px);  opacity: 0;    }
}

/* Medley dans le hero-tag */
.hero-tag-medley {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  padding: 0;
}

.soundwave span {
  display: block;
  width: 4px;
  border-radius: 100px;
  background: var(--accent);
  opacity: 0.7;
  animation: wave var(--wave-dur, 1.2s) ease-in-out var(--wave-delay, 0s) infinite alternate;
  flex-shrink: 0;
}

/* Hauteurs et timings variés pour donner un effet organique */
.soundwave span:nth-child(1)  { --wave-dur: 1.1s; --wave-delay: 0.00s; height: 30px;  }
.soundwave span:nth-child(2)  { --wave-dur: 0.9s; --wave-delay: 0.08s; height: 55px;  }
.soundwave span:nth-child(3)  { --wave-dur: 1.3s; --wave-delay: 0.16s; height: 80px;  }
.soundwave span:nth-child(4)  { --wave-dur: 0.8s; --wave-delay: 0.24s; height: 110px; }
.soundwave span:nth-child(5)  { --wave-dur: 1.2s; --wave-delay: 0.06s; height: 150px; }
.soundwave span:nth-child(6)  { --wave-dur: 0.95s; --wave-delay: 0.14s; height: 190px; }
.soundwave span:nth-child(7)  { --wave-dur: 1.4s; --wave-delay: 0.22s; height: 210px; }
.soundwave span:nth-child(8)  { --wave-dur: 0.85s; --wave-delay: 0.30s; height: 200px; }
.soundwave span:nth-child(9)  { --wave-dur: 1.15s; --wave-delay: 0.10s; height: 180px; }
.soundwave span:nth-child(10) { --wave-dur: 1.0s;  --wave-delay: 0.18s; height: 160px; }
.soundwave span:nth-child(11) { --wave-dur: 1.25s; --wave-delay: 0.26s; height: 210px; }
.soundwave span:nth-child(12) { --wave-dur: 0.9s;  --wave-delay: 0.04s; height: 200px; }
.soundwave span:nth-child(13) { --wave-dur: 1.35s; --wave-delay: 0.12s; height: 185px; }
.soundwave span:nth-child(14) { --wave-dur: 0.88s; --wave-delay: 0.20s; height: 170px; }
.soundwave span:nth-child(15) { --wave-dur: 1.18s; --wave-delay: 0.28s; height: 195px; }
.soundwave span:nth-child(16) { --wave-dur: 0.92s; --wave-delay: 0.07s; height: 210px; }
.soundwave span:nth-child(17) { --wave-dur: 1.28s; --wave-delay: 0.15s; height: 200px; }
.soundwave span:nth-child(18) { --wave-dur: 0.82s; --wave-delay: 0.23s; height: 175px; }
.soundwave span:nth-child(19) { --wave-dur: 1.08s; --wave-delay: 0.31s; height: 160px; }
.soundwave span:nth-child(20) { --wave-dur: 1.22s; --wave-delay: 0.09s; height: 190px; }
.soundwave span:nth-child(21) { --wave-dur: 0.98s; --wave-delay: 0.17s; height: 175px; }
.soundwave span:nth-child(22) { --wave-dur: 1.38s; --wave-delay: 0.25s; height: 155px; }
.soundwave span:nth-child(23) { --wave-dur: 0.86s; --wave-delay: 0.03s; height: 135px; }
.soundwave span:nth-child(24) { --wave-dur: 1.12s; --wave-delay: 0.11s; height: 110px; }
.soundwave span:nth-child(25) { --wave-dur: 1.0s;  --wave-delay: 0.19s; height: 85px;  }
.soundwave span:nth-child(26) { --wave-dur: 0.88s; --wave-delay: 0.27s; height: 70px;  }
.soundwave span:nth-child(27) { --wave-dur: 1.2s;  --wave-delay: 0.05s; height: 95px;  }
.soundwave span:nth-child(28) { --wave-dur: 0.94s; --wave-delay: 0.13s; height: 65px;  }
.soundwave span:nth-child(29) { --wave-dur: 1.32s; --wave-delay: 0.21s; height: 45px;  }
.soundwave span:nth-child(30) { --wave-dur: 1.05s; --wave-delay: 0.29s; height: 28px;  }

@keyframes wave {
  from { transform: scaleY(0.15); opacity: 0.35; }
  to   { transform: scaleY(1);    opacity: 0.85; }
}


/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 185, 75, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn svg { width: 18px; height: 18px; }

/* ============================================
   MARQUEE CLIENTS
   ============================================ */

/* ============================================
   SECTION DÉMOS
   ============================================ */
.demos {
  padding: var(--section-y) 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-head-text { max-width: 700px; }
.section-head h2 { margin-top: 1rem; margin-bottom: 1.2rem; }
.section-head p { color: var(--mute-2); font-size: 1.05rem; }
.h2-studio {
  white-space: nowrap;
  font-size: clamp(0.95rem, 3.8vw, 3.2rem);
  margin-bottom: 1.75rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--mute-2);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-btn:hover {
  color: var(--white);
  border-color: var(--mute);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.filter-btn .count {
  font-size: 0.7rem;
  opacity: 0.6;
}

.show-all-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem auto 0;
}

/* --- Grille démos : liste playlist --- */
.demo-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--fast);
  cursor: pointer;
}
.demo-card:last-child { border-bottom: none; }
.demo-card:hover { background: var(--ink-3); }
.demo-card.playing { background: var(--ink-3); }
.demo-card.playing::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.demo-card.hidden { display: none; }

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--fast);
  flex-shrink: 0;
}
.play-btn:hover { filter: brightness(1.15); }
.play-btn svg { width: 13px; height: 13px; }

.demo-info {
  flex: 1;
  min-width: 0;
}
.demo-info h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-tones {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.demo-tone {
  font-size: 0.65rem;
  color: var(--mute);
  white-space: nowrap;
}
.demo-tone:not(:last-child)::after { content: ' ·'; }

.demo-broadcast {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  flex-shrink: 0;
  display: none;
}
.demo-broadcast.is-broadcast {
  color: #5cbf74;
  background: rgba(92, 191, 116, 0.12);
}
.demo-broadcast.is-demo {
  color: var(--mute);
  background: rgba(255, 255, 255, 0.06);
}
@media (min-width: 520px) { .demo-broadcast { display: inline-flex; } }

.demo-category {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  background: var(--accent-glow);
  border-radius: 100px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 640px) { .demo-category { display: inline-flex; } }

.demo-duration {
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: right;
}

.demo-progress {
  position: static;
  order: 999;
  flex-shrink: 0;
  width: calc(100% + 2rem);
  margin: 0.3rem -1rem -0.75rem -1rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  border-radius: 0;
}
.demo-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.demo-download {
  color: var(--mute);
  transition: color var(--fast);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-download:hover { color: var(--white); }
.demo-download:hover { color: var(--accent); }
.demo-download svg { width: 16px; height: 16px; }

/* ============================================
   MANIFESTO VIDEO (featured, haut de page)
   ============================================ */
.manifesto {
  padding: var(--section-y) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  position: relative;
}

/* Générique défilant derrière la vidéo */
.manifesto-credits {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: flex;
  justify-content: center;
  /* Fondu haut/bas pour un effet cinéma */
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.manifesto-credits-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  padding: 4rem 0;
  animation: credits-up 22s linear infinite;
}
.manifesto-credits-track span {
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0.12;
  white-space: nowrap;
  line-height: 1;
}
@keyframes credits-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.manifesto-grid {
  position: relative;
  z-index: 1;
}
@media (max-width: 899px) {
  .manifesto-credits { display: none; }
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.manifesto-head {
  text-align: left;
}
.manifesto-head h2 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(1.1rem, 2.5vw, 2.6rem);
}
.manifesto-lead {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.72;
  margin-bottom: 1.25rem;
}
.manifesto-lead strong { color: var(--text); font-weight: 600; }
.manifesto-sub {
  color: var(--mute-2);
  font-size: 0.95rem;
  line-height: 1.65;
}
.manifesto-sub strong { color: var(--mute-2); font-weight: 600; }
.manifesto-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all var(--med);
}
.manifesto-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.manifesto-card .project-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow);
}
.manifesto-card:hover .project-thumb { transform: scale(1.03); }
.manifesto-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 21, 38, 0.35);
  transition: background var(--fast);
}
.manifesto-card:hover .manifesto-play { background: rgba(13, 21, 38, 0.2); }
.manifesto-play svg {
  width: 72px;
  height: 72px;
  color: var(--white);
  background: rgba(84, 120, 245, 0.85);
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(84, 120, 245, 0.5);
  transition: transform var(--fast);
}
.manifesto-card:hover .manifesto-play svg { transform: scale(1.1); }
.manifesto-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(13,21,38,0.9) 0%, transparent 100%);
  text-align: left;
}
.manifesto-overlay .project-client {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.manifesto-overlay .project-title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--white);
}

/* En-tête de section #projets */
.projects-header {
  margin-bottom: 3.5rem;
}
.projects-header h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Notice pleine largeur */
.projects-notice {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.7;
}
.projects-notice p { margin: 0; }

.projects-group {
  margin-bottom: 4rem;
}
.projects-group:last-child { margin-bottom: 0; }
.projects-group-head {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.projects-group-head h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.projects-group-head p {
  color: var(--mute-2);
  font-size: 0.95rem;
}
.projects-group-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.projects-group-link:hover { text-decoration: underline; }

/* ============================================
   PROJETS PHARES (VIDEOS)
   ============================================ */
.projects {
  background: var(--ink-2);
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.project-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: all var(--med);
  display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow);
}
.project-card:hover .project-thumb { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 12, 0.95) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}
.project-client {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.project-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.project-type {
  font-size: 0.85rem;
  color: var(--mute-2);
}
.project-play {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--fast);
}
.project-card:hover .project-play {
  background: var(--accent);
  color: var(--ink);
  transform: scale(1.1);
}

/* ============================================
   À PROPOS
   ============================================ */
.about {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  font-size: 1.08rem;
  color: var(--mute-2);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.about-text p:first-of-type {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 2rem;
  font-weight: 400;
}
.about-text p:first-of-type em { color: var(--accent); }

.about-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
}
.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-signature {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.about-signature-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.2rem;
}
.about-signature-role {
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* Crédits théâtre & TV dans #apropos */
.about-credits {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.about-credits-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.about-credits-head h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  margin: 0;
}
.credits-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.credits-cv-link:hover { text-decoration: underline; }
.credits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.credits-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.credits-list li strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  grid-column: 1;
  grid-row: 1;
}
.credits-desc {
  font-size: 0.85rem;
  color: var(--mute);
  grid-column: 1;
  grid-row: 2;
  margin-top: 0.15rem;
}
.credits-year {
  font-size: 0.8rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  text-align: right;
}
.credits-tv {
  font-size: 0.85rem;
  color: var(--mute);
  line-height: 1.7;
}
.credits-tv-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: 0.5rem;
}

/* ============================================
   STUDIO
   ============================================ */
.section-head.studio-head-block {
  display: block;
}
.studio-desc-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.studio-sonar {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sonar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: sonarBounce 2.8s ease-out infinite;
}
.sonar-r1 { animation-delay: 0s; }
.sonar-r2 { animation-delay: 0.93s; }
.sonar-r3 { animation-delay: 1.86s; }
@keyframes sonarBounce {
  0%   { transform: scale(0.15); opacity: 0.9; }
  62%  { transform: scale(1);    opacity: 0.35; }
  76%  { transform: scale(0.88); opacity: 0.28; }
  90%  { transform: scale(1.02); opacity: 0.08; }
  100% { transform: scale(1.02); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sonar-ring { animation: none; opacity: 0.18; }
}
.studio-desc {
  font-size: 1.1rem;
  color: var(--mute-2);
  line-height: 1.75;
}
.studio {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid var(--line);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.studio-feature {
  padding: 2rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--med);
}
.studio-feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.studio-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 185, 75, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.studio-feature-icon svg { width: 24px; height: 24px; }
.studio-feature h4 {
  margin-bottom: 0.75rem;
  color: var(--white);
}
.studio-feature p {
  color: var(--mute-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */
.testimonials {
  padding: var(--section-y) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial {
  padding: 2rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
}
.testimonial-quote {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 2;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.testimonial-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.82rem;
  color: var(--mute);
}

/* ============================================
   DEVIS
   ============================================ */
.quote {
  padding: var(--section-y) 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
.quote-info .eyebrow { margin-bottom: 1.25rem; }
.quote-info h2 { margin-bottom: 2rem; }

.quote-steps {
  margin-top: 3rem;
}
.quote-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.quote-step[hidden] { display: none; }
.quote-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 185, 75, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  flex-shrink: 0;
}
.quote-step h4 { margin-bottom: 0.35rem; font-size: 1rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.quote-step p { color: var(--mute-2); font-size: 0.92rem; font-family: var(--body); }

.quote-form {
  padding: 2.5rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mute-2);
  text-transform: uppercase;
}
.form-field label .required { color: var(--accent); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--fast);
  font-family: var(--body);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink-3);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Onglets formulaire */
.form-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: var(--ink-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  transition: all var(--fast);
}
.form-tab.active {
  background: var(--accent);
  color: var(--ink);
}
.form-tab:not(.active):hover { color: var(--white); }

/* Grilles */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.diffusion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}
@media (max-width: 640px) {
  .diffusion-grid { grid-template-columns: repeat(2, 1fr); }
}

/* File drop compact */
.file-drop--compact {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  height: 100%;
  min-height: 48px;
}
.file-drop--compact .file-drop-text { font-size: 0.82rem; }
.usage-option {
  position: relative;
}
.usage-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.usage-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mute-2);
  transition: all var(--fast);
}
.usage-option input:checked + label {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(245, 185, 75, 0.08);
}
.usage-option label::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--mute);
  flex-shrink: 0;
  transition: all var(--fast);
}
.usage-option input:checked + label::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.file-drop {
  padding: 2rem 1.5rem;
  background: var(--ink-2);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--fast);
}
.file-drop:hover, .file-drop.drag {
  border-color: var(--accent);
  background: rgba(245, 185, 75, 0.04);
}
.file-drop svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.file-drop-text {
  font-size: 0.9rem;
  color: var(--mute-2);
}
.file-drop-text strong { color: var(--white); }
.file-drop-hint {
  font-size: 0.75rem;
  color: var(--mute);
  margin-top: 0.35rem;
}
.file-drop input { display: none; }
.file-name {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  display: none;
}
.file-name.show { display: block; }

.form-submit {
  width: 100%;
  padding: 1.1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--mute);
  justify-content: center;
}
.form-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* ============================================
   CONTACT QUICK
   ============================================ */
.contact {
  padding: var(--section-y) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact h2 {
  max-width: 900px;
  margin: 1.5rem auto 2rem;
  white-space: nowrap;
  font-size: clamp(0.9rem, 3.8vw, 3.5rem);
}
.contact-text {
  color: var(--mute-2);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-method {
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--med);
}
.contact-method:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--ink-3);
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(84, 120, 245, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-icon svg { width: 20px; height: 20px; }
.contact-method > div { min-width: 0; }
.contact-method-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.25rem;
}
.contact-method-value {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  color: var(--mute-2);
  font-size: 0.92rem;
  max-width: 380px;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  color: var(--mute-2);
  font-size: 0.9rem;
  transition: color var(--fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-tree {
  padding: 1.5rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--mute-2);
}
.footer-tree-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 139, 34, 0.15);
  color: #5cb85c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-tree-icon svg { width: 20px; height: 20px; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--mute);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  transition: all var(--fast);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

/* ============================================
   STICKY PLAYER
   ============================================ */
.sticky-player {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 90;
  background: var(--ink-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 185, 75, 0.1);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.5s var(--ease);
  max-width: 600px;
  margin: 0 auto;
}
.sticky-player.show { transform: translateY(0); }

.sticky-player-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--fast);
}
.sticky-player-btn:hover { transform: scale(1.08); }
.sticky-player-btn svg { width: 14px; height: 14px; }

.sticky-player-info {
  flex: 1;
  min-width: 0;
}
.sticky-player-title {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-player-time {
  font-size: 0.75rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.sticky-player-progress {
  flex: 1.5;
  height: 3px;
  background: var(--ink-4);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  min-width: 80px;
}
.sticky-player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 100px;
}
.sticky-player-close {
  color: var(--mute);
  transition: color var(--fast);
  flex-shrink: 0;
  padding: 0.5rem;
}
.sticky-player-close:hover { color: var(--white); }

/* ============================================
   MODALE VIDÉO
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 26, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}

.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--mute-2);
  transition: color var(--fast);
  padding: 0.25rem;
}

.video-modal-close:hover { color: var(--white); }

.video-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-modal-player video,
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 80;
  transition: all var(--fast);
  animation: pulseWa 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
}
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* Cache le bouton WA quand le sticky player est visible, pour ne pas se chevaucher sur mobile */
body.playing .whatsapp-float { transform: translateY(-70px); }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translate(-50%, -4rem);
  padding: 1rem 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-methods { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 4rem; }
  .usage-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .studio-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 6rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .quote-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
  .sticky-player { left: auto; right: 2rem; bottom: 2rem; width: 440px; }
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav.open a { font-size: 1.4rem; color: var(--white); }
  .header-cta { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .hero-meta-item .number { font-size: 2rem; }
}

@media (max-width: 520px) {
  .hero { padding-top: 100px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .demo-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 2.5rem; }
  .filter-bar { gap: 0.4rem; }
  .filter-btn { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
  .quote-form { padding: 1.75rem 1.5rem; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Accessibilité & motion */
/* ==================== 1 PROJET = 1 ARBRE ==================== */
.tree-pledge {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tree-pledge-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(58, 140, 80, 0.07);
  border: 1px solid rgba(58, 140, 80, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}

.tree-pledge-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(58, 140, 80, 0.12);
  border: 1px solid rgba(58, 140, 80, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5cbf74;
}

.tree-pledge-icon svg {
  width: 26px;
  height: 26px;
}

.tree-pledge-text {
  flex: 1;
}

.tree-pledge-text h3 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.tree-pledge-text p {
  color: var(--mute-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.tree-pledge-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(58, 140, 80, 0.4);
  border-radius: var(--radius);
  color: #5cbf74;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--fast), border-color var(--fast);
  white-space: nowrap;
}

.tree-pledge-link:hover {
  background: rgba(58, 140, 80, 0.12);
  border-color: rgba(58, 140, 80, 0.6);
}

@media (max-width: 640px) {
  .tree-pledge-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .manifesto-credits-track { animation: none; }
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
