/* ============================================================
   LE MONTEUR — Post-production haut de gamme (v3.0 - Refactorisé)
   Fonts : Syne (display) + Inter (body) | Palette : sombre & cobalt
   ============================================================ */

:root {
  --bg: #0A0B0E;
  --bg-elevated: #14161D;
  --bg-card: #15171F;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #ECEDF1;
  --muted: #99A2B0;
  --faint: #575F6C;
  --blue: #2F5FE0;
  --blue-light: #7396F5;
  --blue-deep: #0F2557;
  --blue-glow: rgba(47,95,224,0.35);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 120px;

  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 62px;
}

/* ---------- RÉSÈT & BASES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em, .accent { color: var(--blue-light); font-style: normal; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
}

/* ---------- LABELS & TITRES UTILITAIRES ---------- */
.eyebrow, .hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap; /* Évite l'étirement horizontal sur mobile */
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--blue);
}

.plan-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color .25s ease;
}

.section-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 1rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 620px;
}
section { position: relative; padding: var(--space-xl) 0; }
.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.divider { border: none; border-top: 1px solid var(--line); }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .25s ease;
  white-space: normal !important; /* Autorise le retour à la ligne si bouton très étroit */
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(47,95,224,0.08); }

/* ---------- NAVIGATION & LOGO ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(10,11,14,0.9), rgba(10,11,14,0));
  backdrop-filter: blur(6px);
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,14,0.92);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.logo span { color: var(--blue-light); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.current { color: var(--text); }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--blue);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--blue-light); }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: 210;
}
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--text); transition: transform .3s ease, opacity .3s ease, top .3s ease; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(8,9,12,0.98);
  z-index: 190;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
  padding: 0 8vw; opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); }
.mobile-menu a.nav-cta { background: none !important; color: var(--blue-light) !important; padding: 0; }

/* ---------- HERO (ACCUEIL) ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) brightness(0.68);
  transition: opacity .6s ease;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.16); } }

.hero-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(47,95,224,0.28), transparent 55%), radial-gradient(ellipse at 80% 80%, rgba(47,95,224,0.16), transparent 50%), #0A0B0E;
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,14,0.5) 0%, rgba(10,11,14,0.3) 40%, rgba(10,11,14,0.94) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 200px; padding-bottom: 56px; }

.hero-eyebrow { color: var(--muted); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); flex-shrink: 0; }

.hero h1, .portfolio-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  word-wrap: break-word;     /* Anti-bug débordement mobile */
  overflow-wrap: break-word; /* Anti-bug débordement mobile */
}
.hero h1 em { color: var(--blue-light); }
.hero p.lede { margin-top: 26px; max-width: 46ch; font-size: 1.1rem; color: var(--muted); font-weight: 400; overflow: hidden; }

.hero-actions {
  margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; transform: translateY(14px);
  animation: fadeUp .9s var(--ease-cinema) 1.35s forwards;
}

/* ---------- TEXT REVEAL CINÉMATIQUE ---------- */
.split-line {
  display: inline-block !important; /* Force les mots à rester côte-à-côte sans forcer le block */
  vertical-align: bottom;
  overflow: hidden;
}
.split-word {
  display: inline-block; transform: translateY(110%); opacity: 0; will-change: transform, opacity;
}
.split-word.in { animation: wordUp 1s var(--ease-cinema) forwards; }
@keyframes wordUp {
  0% { transform: translateY(110%); opacity: 0; filter: blur(6px); }
  60% { filter: blur(0); }
  100% { transform: translateY(0); opacity: 1; }
}
.fade-in-block { opacity: 0; transform: translateY(14px); }
.fade-in-block.in { animation: fadeUp .9s var(--ease-cinema) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- TIMECODE HUD ---------- */
.timecode-hud {
  position: absolute; bottom: 22px; right: 5vw; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 0.76rem;
  color: rgba(255,255,255,0.55); letter-spacing: 0.05em; opacity: 0; transform: translateY(14px);
  animation: fadeUp .9s var(--ease-cinema) 1.6s forwards;
}
.timecode-hud .rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- HERO STATS ---------- */
.hero-stats {
  position: relative; z-index: 2; border-top: 1px solid var(--line); opacity: 0; transform: translateY(14px);
  animation: fadeUp .9s var(--ease-cinema) 1.8s forwards;
}
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 0; }
.hero-stats .stat { padding: 0 var(--space-sm); border-left: 1px solid var(--line); }
.hero-stats .stat:first-child { border-left: none; padding-left: 0; }
.hero-stats .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--blue-light); letter-spacing: -0.01em; }
.hero-stats .label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ---------- STRIP MANIFESTO ---------- */
.manifesto { padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.manifesto p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.4; max-width: 16ch; letter-spacing: -0.01em; }
.manifesto em { color: var(--blue-light); }

/* ---------- OFFRES / SERVICES ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan { background: var(--bg); padding: var(--space-md); transition: background .25s ease; }
.plan:hover { background: var(--bg-elevated); }
.plan:hover .plan-tag { color: var(--blue-light); }
.plan .plan-tag { margin-bottom: 18px; display: block; }
.plan h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.plan p { color: var(--muted); font-size: 0.96rem; max-width: 42ch; }

/* ---------- COUVERTURE GRILLE / TEASER VIDEOS ---------- */
.works-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.work-card {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--bg-card); border: 1px solid var(--line); cursor: pointer;
  transition: transform .4s var(--ease-cinema), box-shadow .4s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.4); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(0.85) brightness(0.72); }
.work-card:hover img { transform: scale(1.05); filter: saturate(1) brightness(0.85); }

.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,7,10,0.22); transition: background .2s ease; }
.work-card:hover .play-btn { background: rgba(6,7,10,0.08); }
.play-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.94); display: flex; align-items: center; justify-content: center; transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover .play-circle { transform: scale(1.1); box-shadow: 0 6px 24px rgba(47,95,224,0.4); }

.work-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,9,12,0.94) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; pointer-events: none; }
.work-overlay .tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 6px; }
.work-overlay h4 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; line-height: 1.25; }
.work-overlay .role { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.section-cta { margin-top: var(--space-md); display: flex; justify-content: flex-end; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--muted); transition: color .2s ease, gap .2s ease; }
.link-arrow:hover { color: var(--blue-light); gap: 12px; }

/* ---------- SECTION IA ---------- */
.ai-section { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-lg); align-items: start; }
.ai-grid h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-top: 8px; letter-spacing: -0.01em; }
.ai-grid > div > p { color: var(--muted); margin-top: 18px; max-width: 52ch; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.ai-list li { padding-left: 26px; position: relative; font-size: 0.96rem; font-weight: 500; }
.ai-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 1px; background: var(--blue-light); }
.ai-list span { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-top: 4px; }

/* ---------- LOGOS CLIENTS ---------- */
.trust { padding: var(--space-lg) 0; }
.trust .eyebrow { justify-content: center; margin-bottom: var(--space-md); }
.trust .eyebrow::before { display: none; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px; }
.client-text {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: rgba(255,255,255,0.22); letter-spacing: -0.01em;
  transition: color .25s ease, transform .25s ease; cursor: default; white-space: nowrap;
}
.client-text:hover { color: var(--blue-light); transform: translateY(-2px); }

/* ---------- PAGE À PROPOS ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-xl); align-items: center; }
.about-portrait { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); aspect-ratio: 4/5; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(0.85) brightness(0.9); }
.about-copy p { color: var(--muted); margin-top: 16px; max-width: 56ch; }
.skills-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-md); }
.skill-pill { font-size: 0.78rem; font-weight: 500; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); transition: border-color 0.25s ease, color 0.25s ease; }
.skill-pill:hover { border-color: var(--blue-light); color: var(--text); }

/* ---------- CONTACT & FOOTER ---------- */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 16ch; margin: 8px auto 0; letter-spacing: -0.02em; line-height: 1.05; }
.contact-email { display: inline-block; margin-top: 30px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: border-color .2s ease, color .2s ease; }
.contact-email:hover { border-color: var(--blue); color: var(--blue-light); }
.contact-grid { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(4, 1fr); text-align: left; gap: var(--space-md); border-top: 1px solid var(--line); padding-top: var(--space-md); }
.contact-grid .label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.contact-grid .value { font-size: 0.96rem; }
.contact-grid a.value:hover { color: var(--blue-light); }

footer { border-top: 1px solid var(--line); padding: 28px 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--faint); }
footer a:hover { color: var(--muted); }

/* ---------- PAGE PORTFOLIO (SPÉCIFIQUE) ---------- */
.portfolio-hero { padding: 176px 0 var(--space-md); border-bottom: 1px solid var(--line); }
.portfolio-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 16ch; letter-spacing: -0.02em; line-height: 1.05; }
.portfolio-hero h1 em { color: var(--blue-light); }
.portfolio-hero p { color: var(--muted); max-width: 52ch; margin-top: 20px; font-size: 1.05rem; }

.filters-bar { position: sticky; top: var(--nav-h); z-index: 90; background: rgba(10,11,14,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 5vw; }
.filter-btn { font-family: var(--font-body); font-size: 0.84rem; font-weight: 500; padding: 9px 20px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--muted); background: none; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.filter-btn:hover { color: var(--text); border-color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.cat-group { margin-bottom: var(--space-lg); }
.cat-group:last-child { margin-bottom: 0; }
.cat-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.pf-card { border-radius: 12px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); transition: transform .35s var(--ease-cinema), box-shadow .35s ease; cursor: pointer; display: block; }
.pf-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.pf-thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0A1420; }
.pf-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; filter: saturate(0.85) brightness(0.75); }
.pf-card:hover .pf-thumb { transform: scale(1.05); filter: saturate(1) brightness(0.9); }
.pf-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6,7,10,0.28); transition: background .2s ease; }
.pf-card:hover .pf-play-btn { background: rgba(6,7,10,0.1); }
.pf-play-circle { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.94); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.pf-card:hover .pf-play-circle { transform: scale(1.12); }
.pf-badge { position: absolute; top: 0.7rem; right: 0.7rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.24rem 0.6rem; border-radius: 100px; text-transform: uppercase; }
.badge-yt { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.9); }
.badge-vimeo { background: #1AB7EA; color: #fff; }
.badge-ig { background: linear-gradient(135deg,#833AB4,#E1306C,#FD1D1D); color: #fff; }
.badge-mp4 { background: var(--blue); color: #fff; }
.pf-thumb-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: rgba(255,255,255,0.55); font-size: 0.8rem; font-weight: 500; }
.pf-thumb-placeholder.vimeo-bg { background: linear-gradient(135deg,#0d1f35,#173559); }
.pf-thumb-placeholder.ig-bg { background: linear-gradient(135deg,#405DE6,#833AB4,#E1306C,#FD1D1D); }
.pf-info { padding: 1.1rem 1.2rem 1.35rem; }
.pf-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 0.4rem; }
.pf-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.01em; }
.pf-client { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- FENÊTRE MODALE VIDÉO ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(4,5,8,0.94);
  display: none; align-items: center; justify-content: center; padding: 2rem; backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal-inner { position: relative; width: 100%; max-width: 960px; }
.modal-close {
  position: absolute; top: -2.75rem; right: 0; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 1.5rem; line-height: 1; opacity: 0.6; transition: opacity .2s ease; font-family: var(--font-body);
}
.modal-close:hover { opacity: 1; }
.video-iframe-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ---------- EFFETS DE SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-cinema), transform .8s var(--ease-cinema); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ============================================================
   CONSOLIDATION RESPONSIVE & RESPONSIVE DESIGN (TRIÉ)
   ============================================================ */

/* Option : Réduction des mouvements système */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-media video { animation: none; }
}

/* Écrans Moyens (< 900px) */
@media (max-width: 900px) {
  .works-teaser, .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablettes / Menu Burger (< 860px) */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .ai-grid { grid-template-columns: 1fr; }
  
  /* CORRECTION : Aligne le portrait verticalement au-dessus du texte sur mobile */
  .about { 
    grid-template-columns: 1fr; 
    gap: var(--space-lg); 
  }
  .about-portrait { 
    max-width: 420px; /* Évite que la photo ne devienne géante */
    margin: 0 auto;   /* Centre la photo proprement */
    width: 100%; 
  }
}

/* Petites Tablettes / Mobiles larges (< 760px) */
@media (max-width: 760px) {
  .hero { min-height: 80vh; min-height: 80svh; }
  .hero-content { padding-top: 110px; padding-bottom: 32px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 20px; padding: 20px 5vw; }
  .hero-stats .stat:nth-child(3) { border-left: none; }
  .plans { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Smartphones standard (< 640px) */
@media (max-width: 640px) {
  :root { --space-xl: 76px; --space-lg: 48px; }
  
  /* Filtres horizontaux natifs (défilement tactile) */
  .filters {
    flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px 5vw; gap: 8px;
  }
  .filters::-webkit-scrollbar { display: none; }

  /* Ajustements Modale vidéo smartphone */
  .modal-overlay { padding: 0.5rem; }
  .modal-inner { max-width: 100%; }
  .modal-close { top: -2.2rem; right: 6px; font-size: 1.4rem; }
}

/* Petits Mobiles (< 600px) */
@media (max-width: 600px) {
  .works-teaser { grid-template-columns: 1fr; }
}

/* Boutons empilés (< 560px) */
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; flex: 1 1 auto; text-align: center; }
}

/* Smartphones étroits / iPhone SE (< 480px) */
@media (max-width: 480px) {
  .timecode-hud { font-size: 0.66rem; bottom: 14px; }
  .hero h1, .portfolio-hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  
  /* Stats & Contact sur une seule colonne très fluide */
  .hero-stats .container { grid-template-columns: 1fr !important; row-gap: 14px; padding: 20px 5vw; }
  .hero-stats .stat { border-left: