/* ==========================================================================
   VFX in Motion — feuille de style principale
   Palette, typo et composants. Tout est ici : pas de CSS inline.
   ========================================================================== */

/* ------------------------------------------------------------- Polices ---
   Fichiers variables auto-hébergés dans assets/fonts/.
   latin  = français courant · latin-ext = caractères européens étendus
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs de marque */
  --ink:      #15111C;   /* fond principal */
  --ink-soft: #1A1522;   /* fond de section alterné */
  --ink-tile: #1B1624;   /* fond des vignettes */
  --paper:    #F6F4F8;   /* texte sur fond sombre */
  --light:    #EDEBEF;   /* fond des sections claires */

  --purple:  #7B2F9E;
  --magenta: #C93A8C;
  --red:     #F0426E;
  --orange:  #FB7A3C;
  --yellow:  #FFC93F;

  --ramp: linear-gradient(100deg, #7B2F9E, #C93A8C, #F0426E, #FB7A3C, #FFC93F);

  /* Typo */
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, sans-serif;
  --body:    'Instrument Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rythme */
  --gutter: 5vw;
  --section-y: clamp(52px, 6vw, 92px);
  --line: 1px solid rgba(246, 244, 248, 0.1);
  --line-strong: 1px solid rgba(246, 244, 248, 0.14);
}

/* --------------------------------------------------------------- Base --- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--yellow); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------ Éléments typographiques */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.eyebrow--yellow  { color: var(--yellow); }
.eyebrow--orange  { color: var(--orange); }
.eyebrow--red     { color: var(--red); }
.eyebrow--purple  { color: var(--purple); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1; }
h3 { letter-spacing: -0.03em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: rgba(246, 244, 248, 0.82);
}

/* ------------------------------------------------------------- Boutons --- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 16px 26px;
  border-radius: 8px;
  transition: filter .18s ease, border-color .18s ease, color .18s ease;
}

.btn--primary {
  color: var(--ink);
  background: var(--ramp);
}
.btn--primary:hover { color: var(--ink); filter: brightness(1.08); }

.btn--ghost {
  color: var(--paper);
  border: 1px solid rgba(246, 244, 248, 0.3);
  background: rgba(21, 17, 28, 0.4);
}
.btn--ghost:hover { color: var(--paper); border-color: rgba(246, 244, 248, 0.65); }

.btn--dark {
  color: var(--ink);
  border: 1px solid rgba(21, 17, 28, 0.3);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 13px 20px;
  border-radius: 7px;
}
.btn--dark:hover { color: var(--ink); border-color: var(--ink); }

.btn--lg { font-size: 14px; padding: 18px 30px; }

/* -------------------------------------------------------------- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  background: rgba(21, 17, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand:hover { color: var(--paper); }

.brand__mark {
  display: block;
  width: 43px; height: 48px;
  flex: none;
}

.brand__name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 19px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(13px, 1.8vw, 24px);
  font-size: 14px;
}

.nav a { color: var(--paper); opacity: 0.72; transition: opacity .18s ease; }
.nav a:hover { opacity: 1; color: var(--paper); }

.nav__cta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--ink) !important;
  opacity: 1 !important;
  background: var(--ramp);
  padding: 10px 16px;
  border-radius: 6px;
}
.nav__cta:hover { filter: brightness(1.08); }

/* Bouton burger — masqué au-dessus de 860px */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid rgba(246, 244, 248, 0.25);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--paper);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: var(--line);
  background:
    radial-gradient(90% 120% at 20% 10%, rgba(123, 47, 158, 0.5), rgba(21, 17, 28, 0) 65%),
    radial-gradient(80% 100% at 90% 20%, rgba(240, 66, 110, 0.32), rgba(21, 17, 28, 0) 60%),
    repeating-linear-gradient(-38deg, rgba(255, 201, 63, 0.09) 0 2px, rgba(21, 17, 28, 0) 2px 16px),
    var(--ink);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,17,28,0.2) 0%, rgba(21,17,28,0.15) 35%, rgba(21,17,28,0.8) 100%);
}

/* voile renforcé quand la vidéo tourne derrière le texte */
.hero__video ~ .hero__veil {
  background: linear-gradient(180deg, rgba(21,17,28,0.55) 0%, rgba(21,17,28,0.45) 40%, rgba(21,17,28,0.9) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 64px);
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin: 0 0 22px;
}

.hero h1 {
  line-height: 0.92;
  font-size: clamp(42px, 6.2vw, 92px);
  margin: 0 0 26px;
  max-width: 20em;
}

.hero .lede { max-width: 40em; margin: 0 0 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- Clients --- */

.clients {
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  border-bottom: var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 248, 0.55);
  margin: 0;
  list-style: none;
}
.clients__label { font-size: 11.5px; color: rgba(246, 244, 248, 0.38); }

/* ------------------------------------------------------------ Sections --- */

.section { padding: var(--section-y) var(--gutter); }
.section--soft   { background: var(--ink-soft); border-top: var(--line); }
.section--light  { background: var(--light); color: var(--ink); }
.section--rules  { border-top: var(--line); border-bottom: var(--line); padding: clamp(46px, 5vw, 72px) var(--gutter); }

.section--light h2, .section--light h3 { color: var(--ink); }
.section--light p { color: rgba(21, 17, 28, 0.74); }

.section__title { margin: 0 0 44px; max-width: 22em; }
.section__intro {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.7);
  max-width: 48em;
  margin: 0 0 44px;
}

/* Grille auto-ajustée réutilisable */
.grid { display: grid; gap: 18px; }
.grid--3   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--4   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.grid--card{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.grid--pairs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
/* Au-delà de 900px on force 2 colonnes : quatre cartes = une grille 2×2
   équilibrée, et des médias plus grands qu'en 3 + 1. */
@media (min-width: 900px) {
  .grid--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid--split {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ---------------------------------------------------------- Offre (01/02/03) */

.offer {
  border: var(--line-strong);
  border-radius: 10px;
  padding: 28px;
}
.offer--1 { background: linear-gradient(160deg, rgba(123, 47, 158, 0.22), rgba(246, 244, 248, 0.02)); }
.offer--2 { background: linear-gradient(160deg, rgba(240, 66, 110, 0.18), rgba(246, 244, 248, 0.02)); }
.offer--3 { background: linear-gradient(160deg, rgba(255, 201, 63, 0.16), rgba(246, 244, 248, 0.02)); }

.offer__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--yellow);
  margin: 0 0 18px;
}
.offer h3 { font-size: 25px; margin: 0 0 14px; }
.offer p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.74);
  margin: 0 0 20px;
}
.offer ul {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: rgba(246, 244, 248, 0.6);
  margin: 0; padding: 0; list-style: none;
}

/* ------------------------------------------------------- Avant / après --- */

.pair {
  border: var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(21, 17, 28, 0.6);
}

.pair__media { display: grid; grid-template-columns: 1fr 1fr; }

.pair__side {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-tile);
}
.pair__side--before {
  background:
    repeating-linear-gradient(-38deg, rgba(123, 47, 158, 0.28) 0 6px, rgba(21, 17, 28, 0) 6px 14px),
    var(--ink-tile);
  border-right: var(--line-strong);
}
.pair__side--after {
  background:
    repeating-linear-gradient(-38deg, rgba(240, 66, 110, 0.22) 0 6px, rgba(21, 17, 28, 0) 6px 14px),
    var(--ink-tile);
  cursor: pointer;
}

.pair__side img,
.pair__side video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Si le fichier manque, on ne veut ni texte alternatif ni icône « image
     cassée » par-dessus le placeholder : le média n'apparaît qu'une fois chargé. */
  font-size: 0;
  color: transparent;
}

.pair__side img { opacity: 0; transition: opacity .3s ease; }
.pair__side img.is-loaded { opacity: 1; }

/* Libellé de secours affiché derrière le média (visible si le fichier manque) */
.pair__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 248, 0.5);
}

.pair__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(21, 17, 28, 0.78);
  color: rgba(246, 244, 248, 0.7);
}
.pair__badge--result {
  background: linear-gradient(100deg, #C93A8C, #FFC93F);
  color: var(--ink);
  font-weight: 500;
}

/* Indice « survolez pour lire », masqué dès que la vidéo tourne */
.pair__hint {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(21, 17, 28, 0.72);
  color: rgba(246, 244, 248, 0.75);
  transition: opacity .2s ease;
}
.pair__side--after.is-playing .pair__hint { opacity: 0; }

.pair__body { padding: 22px; }
.pair__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.pair__head h3 { font-size: 21px; margin: 0; }
.pair__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 244, 248, 0.45);
  border: 1px solid rgba(246, 244, 248, 0.2);
  padding: 3px 7px;
  border-radius: 4px;
}
.pair__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.7);
  margin: 0 0 14px;
}
.pair__tools {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 248, 0.42);
  margin: 0;
}

/* ---------------------------------------------------------- Stack outils --- */

.stack-copy h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.02; margin: 0 0 14px; }
.stack-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.7);
  margin: 0;
  max-width: 36em;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.tools li {
  border: 1px solid rgba(246, 244, 248, 0.16);
  border-radius: 7px;
  padding: 14px;
  color: rgba(246, 244, 248, 0.72);
}

/* -------------------------------------------------------------- Cadence --- */

.cadence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: var(--section-y) var(--gutter);
}

.cadence h2 { font-size: clamp(30px, 3.4vw, 50px); margin: 0 0 22px; max-width: 20em; }
.cadence p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.76);
  max-width: 34em;
  margin: 0 0 16px;
}
.cadence p:last-of-type { margin-bottom: 30px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  max-width: 520px;
  font-family: var(--mono);
}
.stats > div { border-top: 1px solid rgba(246, 244, 248, 0.16); padding-top: 12px; }
.stats dt {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 244, 248, 0.5);
  margin-bottom: 6px;
}
.stats dd { margin: 0; font-size: 19px; display: flex; flex-wrap: wrap; gap: 8px; }
.stats .sep { color: rgba(246, 244, 248, 0.3); }

/* File de livraison */
.queue {
  border: var(--line-strong);
  border-radius: 12px;
  padding: 18px;
  background: rgba(246, 244, 248, 0.03);
}
.queue__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  margin-bottom: 14px;
}
.queue__label { font-size: 11.5px; letter-spacing: 0.07em; color: rgba(246, 244, 248, 0.55); }
.queue__counter { font-size: 15px; font-weight: 500; }

.queue__track {
  height: 2px;
  background: rgba(246, 244, 248, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.queue__bar {
  height: 100%;
  width: 0%;
  background: var(--ramp);
  transition: width .3s ease;
}

.queue__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }

.tile {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  border: 1px solid rgba(246, 244, 248, 0.1);
  overflow: hidden;
}
.tile__fill {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .32s ease, transform .32s ease;
}
.tile__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 5px;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  word-break: break-all;
  color: rgba(246, 244, 248, 0.92);
  opacity: 0;
  transition: opacity .4s ease .08s;
}
/* La vidéo couvre la tuile ; la couleur reste en bandeau sous le nom,
   ce qui garde le motif en diagonale de la file pleine. */
.tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease .1s;
}
.tile.is-on .tile__video { opacity: 1; }
.tile__name { top: auto; padding: 3px 5px; }
.tile.is-on .tile__fill { opacity: 1; transform: scale(1); }
.tile.is-on .tile__name { opacity: 1; }
.tile--dark .tile__name { color: rgba(21, 17, 28, 0.85); }

.queue__note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.45);
  margin: 16px 0 0;
}

/* -------------------------------------------------------------- Parcours --- */

.portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  max-width: 420px;
  background:
    repeating-linear-gradient(-38deg, rgba(123, 47, 158, 0.22) 0 6px, rgba(237, 235, 239, 0) 6px 14px),
    #DAD6DF;
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  font-size: 0; color: transparent;
  opacity: 0; transition: opacity .3s ease;
}
.portrait img.is-loaded { opacity: 1; }
.portrait__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(21, 17, 28, 0.45);
}

.bio h2 { font-size: clamp(28px, 3.2vw, 46px); margin: 0 0 22px; max-width: 20em; }
.bio p { font-size: 16.5px; line-height: 1.65; margin: 0 0 14px; }
.bio p:last-of-type { margin-bottom: 26px; }
.bio__links { display: flex; flex-wrap: wrap; gap: 12px; }

.split-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* ------------------------------------------------------------ Formations --- */

.course { border-top: 2px solid rgba(246, 244, 248, 0.2); padding-top: 20px; }
.course--featured { border-top-color: var(--yellow); }
.course__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 244, 248, 0.55);
  margin: 0 0 12px;
}
.course--featured .course__meta { color: var(--yellow); }
.course h3 { font-size: 22px; margin: 0 0 12px; }
.course p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.7);
  margin: 0 0 16px;
}
.course a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }

/* --------------------------------------------------------------- Conseil --- */

.advice-card {
  background: #FFFFFF;
  border: 1px solid rgba(21, 17, 28, 0.14);
  border-radius: 10px;
  padding: 26px;
}
.advice-card h3 { font-size: 21px; margin: 0 0 12px; }
.advice-card p { font-size: 15px; line-height: 1.6; margin: 0; }

.advice-card--invert {
  background: var(--ink);
  border-color: var(--purple);
}
.advice-card--invert h3 { color: var(--paper) !important; }
.advice-card--invert p { color: rgba(246, 244, 248, 0.74) !important; }

/* ------------------------------------------------------------------- FAQ --- */

.faq { max-width: 900px; border-top: 1px solid rgba(246, 244, 248, 0.16); }
.faq__item { border-bottom: 1px solid rgba(246, 244, 248, 0.16); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(16px, 1.4vw, 19px);
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
}

.faq__sign {
  font-family: var(--mono);
  font-size: 20px;
  color: rgba(246, 244, 248, 0.5);
  transition: transform .2s ease, color .2s ease;
  flex: none;
}
.faq__q[aria-expanded="true"] .faq__sign { transform: rotate(45deg); color: var(--yellow); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s ease;
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(246, 244, 248, 0.72);
  margin: 0;
  padding: 0 60px 24px 4px;
  max-width: 62em;
}

/* --------------------------------------------------------------- Contact --- */

.contact {
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  border-top: var(--line);
  background: radial-gradient(120% 140% at 88% 0%, rgba(123, 47, 158, 0.3) 0%, rgba(21, 17, 28, 0) 62%);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}
.contact h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 0.98;
  margin: 0 0 18px;
}
.contact__lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.75);
  margin: 0 0 22px;
  max-width: 32em;
}
.contact__aside {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.6);
  margin: 0;
  max-width: 32em;
}
.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.contact__note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 248, 0.5);
  margin: 0;
}

/* ---------------------------------------------------------------- Footer --- */

.site-footer {
  padding: 26px var(--gutter) 40px;
  border-top: var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 248, 0.45);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ------------------------------------------------------------ Responsive --- */

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink); /* opaque : rien du hero ne doit transparaître */
    border-bottom: var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: var(--line); }
  .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
}

@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .queue__grid { gap: 4px; }
  .tile__name { font-size: 6px; }
  .faq__a p { padding-right: 24px; }
}

/* ------------------------------------------------- Mouvement réduit --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PAGES INTÉRIEURES — blog, réalisations, formations
   Ajouté lors de la migration du contenu WordPress.
   ========================================================================== */

/* ------------------------------------------------- En-tête de rubrique --- */

.page-head {
  padding: clamp(46px, 5.5vw, 84px) var(--gutter) clamp(30px, 3.5vw, 48px);
  border-bottom: var(--line);
  background: radial-gradient(90% 160% at 12% 0%, rgba(123, 47, 158, 0.32), rgba(21, 17, 28, 0) 62%);
}
.page-head h1 {
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 0.96;
  margin: 0 0 18px;
  max-width: 16em;
}
.page-head p {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.72);
  max-width: 44em;
  margin: 0;
}

/* Fil d'Ariane */
.crumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 244, 248, 0.45);
  margin: 0 0 20px;
}
.crumb a { color: rgba(246, 244, 248, 0.6); }
.crumb a:hover { color: var(--yellow); }
.crumb span { color: rgba(246, 244, 248, 0.28); margin: 0 8px; }

/* ------------------------------------------------------ Grille de cartes --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
  padding: var(--section-y) var(--gutter);
}

.card {
  display: flex;
  flex-direction: column;
  border: var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(246, 244, 248, 0.02);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(246, 244, 248, 0.34); transform: translateY(-2px); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    repeating-linear-gradient(-38deg, rgba(123, 47, 158, 0.26) 0 6px, rgba(21, 17, 28, 0) 6px 14px),
    var(--ink-tile);
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  font-size: 0; color: transparent;
  opacity: 0; transition: opacity .3s ease;
}
.card__media img.is-loaded { opacity: 1; }

/* Pastille de lecture sur les réalisations qui portent une vidéo */
.card__play {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(21, 17, 28, 0.8);
  color: rgba(246, 244, 248, 0.8);
}

.card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--orange);
  margin: 0;
}

.card__title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
}
.card a.card__link { color: var(--paper); }
.card a.card__link:hover { color: var(--paper); }

.card__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(246, 244, 248, 0.66);
  margin: 0;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 244, 248, 0.45);
  border: 1px solid rgba(246, 244, 248, 0.18);
  padding: 3px 7px;
  border-radius: 4px;
}

/* Toute la carte est cliquable sans imbriquer les liens */
.card__link::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

/* --------------------------------------------------------------- Article --- */

.article {
  padding: clamp(36px, 4vw, 64px) var(--gutter) clamp(52px, 6vw, 92px);
  max-width: 820px;
  margin: 0 auto;
}

.article__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--orange);
  margin: 0 0 16px;
}

.article h1 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.02;
  margin: 0 0 24px;
}

.article__hero {
  border-radius: 10px;
  overflow: hidden;
  border: var(--line-strong);
  margin: 0 0 36px;
  aspect-ratio: 16 / 9;
  position: relative;
  background:
    repeating-linear-gradient(-38deg, rgba(123, 47, 158, 0.26) 0 6px, rgba(21, 17, 28, 0) 6px 14px),
    var(--ink-tile);
}
.article__hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  font-size: 0; color: transparent;
  opacity: 0; transition: opacity .3s ease;
}
.article__hero img.is-loaded { opacity: 1; }

/* -------------------------------------------------------- Corps de texte --- */

.prose { font-size: 17px; line-height: 1.7; color: rgba(246, 244, 248, 0.82); }

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.15;
  margin-top: 1.9em;
  color: var(--paper);
}
.prose h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.25;
  margin-top: 1.7em;
  color: var(--paper);
}
.prose h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 1.6em;
}

.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.prose strong { color: var(--paper); font-weight: 600; }

.prose ul, .prose ol { padding-left: 1.3em; margin-top: 1em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--orange); }

.prose blockquote {
  border-left: 2px solid var(--magenta);
  padding-left: 20px;
  color: rgba(246, 244, 248, 0.72);
  font-style: italic;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(246, 244, 248, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--yellow);
}
.prose pre {
  background: rgba(0, 0, 0, 0.35);
  border: var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: rgba(246, 244, 248, 0.86); }

.prose img { border-radius: 8px; border: var(--line-strong); }

.prose hr { border: 0; border-top: var(--line); margin: 2.4em 0; }

/* Tableaux — celui des effets After Effects fait 200 lignes */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-family: var(--mono);
}
.prose th, .prose td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(246, 244, 248, 0.12);
  vertical-align: top;
}
.prose th {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--yellow);
  border-bottom-color: rgba(255, 201, 63, 0.4);
  position: sticky; top: 0;
  background: var(--ink);
}
.prose tbody tr:hover { background: rgba(246, 244, 248, 0.035); }

/* ------------------------------------------------------ Vidéos intégrées --- */

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: var(--line-strong);
  background: #000;
  margin: 1.6em 0;
}
.embed iframe, .embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ----------------------------------------------------- Fiche de formation --- */

.course-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(36px, 4vw, 64px) var(--gutter) 0;
  max-width: 1200px;
  margin: 0 auto;
}

.course-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: var(--line-strong);
  background:
    repeating-linear-gradient(-38deg, rgba(255, 201, 63, 0.18) 0 6px, rgba(21, 17, 28, 0) 6px 14px),
    var(--ink-tile);
}
.course-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  font-size: 0; color: transparent;
  opacity: 0; transition: opacity .3s ease;
}
.course-visual img.is-loaded { opacity: 1; }

/* Les visuels des formations sont des boîtes en portrait sur fond noir :
   on les montre en entier plutôt que de les rogner. */
.course-visual,
.page-formations .card__media { background: #000; }
.course-visual img,
.page-formations .card__media img { object-fit: contain; }
.page-formations .card__media { aspect-ratio: 4 / 3; }

.course-buy {
  border: var(--line-strong);
  border-radius: 12px;
  padding: 26px;
  background: linear-gradient(160deg, rgba(123, 47, 158, 0.22), rgba(246, 244, 248, 0.02));
}
.course-buy h1 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.04; margin: 0 0 18px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  margin: 0 0 22px;
}
.price__amount { font-size: 38px; font-weight: 500; color: var(--yellow); }
.price__note { font-size: 11.5px; letter-spacing: 0.06em; color: rgba(246, 244, 248, 0.55); }
.price--todo .price__amount { font-size: 19px; color: var(--orange); }

.course-buy .btn { width: 100%; text-align: center; }

.course-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: rgba(246, 244, 248, 0.6);
  border-top: 1px solid rgba(246, 244, 248, 0.14);
  padding-top: 16px;
}

/* --------------------------------------------------- Bas de page d'article --- */

.post-foot {
  border-top: var(--line);
  padding: clamp(36px, 4vw, 56px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
  align-items: center;
}
.post-foot h2 { font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 10px; }
.post-foot p { font-size: 15.5px; line-height: 1.6; color: rgba(246, 244, 248, 0.7); margin: 0; }
.post-foot__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bloc « article suivant / précédent » */
.siblings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  padding: 0 var(--gutter) clamp(40px, 5vw, 70px);
  max-width: 1200px;
  margin: 0 auto;
}
.sibling {
  border: var(--line-strong);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color .2s ease;
}
.sibling:hover { border-color: rgba(246, 244, 248, 0.34); }
.sibling span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: rgba(246, 244, 248, 0.45);
  margin-bottom: 7px;
}
.sibling a { color: var(--paper); font-weight: 600; font-size: 16px; line-height: 1.3; }
.sibling a:hover { color: var(--yellow); }
.sibling--next { text-align: right; }

/* --------------------------------------------------------------- Filtres --- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px var(--gutter) 0;
}
.filter {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 244, 248, 0.6);
  border: 1px solid rgba(246, 244, 248, 0.2);
  background: none;
  padding: 8px 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.filter:hover { color: var(--paper); border-color: rgba(246, 244, 248, 0.45); }
.filter.is-active {
  color: var(--ink);
  background: var(--ramp);
  border-color: transparent;
  font-weight: 500;
}

.cards .card.is-hidden { display: none; }

.empty-note {
  padding: 0 var(--gutter) 40px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(246, 244, 248, 0.5);
}
