/* =========================================================
   TILT — feuille de style
   ========================================================= */

:root {
  /* Couleurs */
  --bg: #130C1F;          /* fond principal */
  --bg-deep: #0B0613;     /* accueil */
  --bg-alt: #0D0816;      /* sections alternées */
  --bg-lightbox: #08050D; /* plein écran */
  --surface: #1E142E;     /* vignettes */
  --bg-raise: #1E142E;    /* section savoir-faire */
  --bg-contact: #241838;  /* section contact */
  --line: #2A1F3C;
  --line-strong: #3B2E52;
  --text: #EFEAF2;
  --text-2: #C9C0D6;
  --muted: #A99DBC;
  --faint: #8C7FA3;
  --accent: #E5C722;      /* point du logo + accents */
  --accent-light: #FAEB78;

  /* Typos */
  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Espacements */
  --gutter: clamp(20px, 4.45vw, 64px);
  --section-y: clamp(88px, 9.7vw, 140px);
  --radius: 4px;
  /* petits textes : taille actuelle jusqu'à ~1440 px de large, puis grandissent avec l'écran */
  --fs-mono: clamp(13px, calc(8px + .35vw), 18px);     /* textes mono : menu, repères, mentions */
  --fs-mono-s: clamp(10px, calc(5px + .36vw), 14px);   /* étiquettes sur les vignettes */
  --fs-body: clamp(17px, calc(10px + .5vw), 22px);     /* textes courants */
  --content-max: clamp(1120px, 78vw, 2080px); /* largeur du contenu des sections : ~78 % de l'écran (1120 px min, 2080 px max) */
  --nav-h: 56px;         /* hauteur du header = hauteur des bandes sombres au-dessus et au-dessous de la vidéo d'accueil */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { padding-inline: var(--gutter); }
/* sections (hors accueil) : contenu recentré, fonds toujours pleine largeur */
.section.wrap, .breakdowns > .wrap, .contact > .wrap, .site-footer > .wrap {
  padding-inline: max(var(--gutter), (100% - var(--content-max)) / 2);
}
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: var(--accent); letter-spacing: .12em; font-weight: 400; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--bg);
  border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--bg); }

/* ---------- Titres ---------- */
.display {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .88;
}
.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
}
.display--lg { font-size: clamp(64px, 8.9vw, 128px); }
.display--md { font-size: clamp(52px, 6.7vw, 96px); line-height: .9; }
.display--sm { font-size: clamp(48px, 6.1vw, 88px); line-height: .9; }

.section { padding-block: var(--section-y); }
.section__head { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Logo (carré séparé pour l'animer / le colorer) ---------- */
.logo {
  position: relative;
  display: block;
  aspect-ratio: 1410 / 645;
  margin: 0;
}
.logo img { width: 100%; height: 100%; }
.logo__dot {
  position: absolute;
  left: 35.2%; top: 45.67%;
  width: 6.67%; height: 14.57%;
  border-radius: 14%;
  background: var(--accent);
  transform: rotate(29deg);
}
/* grand logo : le point respire (scale + couleur) et, de temps en temps, tourne sur lui-même (JS, propriété rotate) */
.logo__dot--breathe {
  transform: none;
  rotate: 29deg;
  animation: tilt-breathe 4.5s ease-in-out infinite;
}
@keyframes tilt-breathe {
  0%, 100% { scale: 1;    background: var(--accent); }
  50%      { scale: 1.14; background: var(--accent-light); }
}
/* Tilt Pixels : « pixels » plus petit, à droite du logo (header, pied de page)
   ou juste en dessous (grand logo de l'accueil) */
.brand { display: inline-flex; margin: 0; font-weight: 400; }
.brand__word {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--text);
  line-height: 1;
}
/* petits logos : « pixels » glissé sous la fin de la barre du T (le bas du logo est vide après 70 % de sa largeur) */
.brand--inline { --logo-w: 83px; align-items: flex-end; }
.brand--inline .brand__word { font-size: clamp(11px, calc(6px + .35vw), 14px); padding-bottom: 3px; margin-left: calc(var(--logo-w) * -0.28); }
.brand--xs { --logo-w: 61px; }
.brand--xs .brand__word { font-size: 10px; padding-bottom: 2px; }
/* grand logo : « pixels » centré entre le bas des deux T.
   Il est positionné dans la boîte du logo (et non du bloc autour), à 38,6 % de sa largeur :
   il reste donc au même endroit du logo quelle que soit la taille de l'écran. */
.brand--stacked {
  --word-size: clamp(12px, 1.25vw, 18px);
  --word-gap: clamp(8px, .9vw, 14px);
  align-self: flex-start;
}
.brand--stacked .logo { margin-bottom: calc(var(--word-size) + var(--word-gap)); }
.brand--stacked .brand__word {
  position: absolute;
  top: calc(100% + var(--word-gap));
  left: 38.6%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--word-size);
  letter-spacing: .5em;
  padding-left: .5em; /* compense l'espace ajouté après la dernière lettre : centrage exact */
}
.logo--xs   { width: 61px; }
.logo--sm   { width: 83px; }
.logo--hero { width: clamp(154px, 25.2vw, 364px); } /* -30 % */

/* ---------- Accueil : bande sombre sous le header, puis la vidéo sur toute la largeur ----------
   --bar-h : hauteur des bandes sombres au-dessus et au-dessous de la vidéo = hauteur du header
   La vidéo est exportée en 1920×800 : elle s'affiche entière, sur toute la largeur de la fenêtre,
   à toutes les tailles d'écran (mobile compris). */
.hero {
  --bar-h: var(--nav-h);
  position: relative;
  padding-block: var(--bar-h); /* bande sous le header (cachée par lui) et bande identique sous la vidéo */
  background: var(--bg-deep);
}
/* vidéo en pleine largeur, bordée en bas par le même fin liseré que le header */
.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 800;
  overflow: hidden;
  border-bottom: 1px solid rgba(239, 234, 242, .22);
}

/* ---------- Navigation : toujours en haut de l'écran, fond plein en permanence ----------
   tout en haut, elle occupe exactement la bande sombre du haut de l'accueil */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-deep); /* toujours plein */
  border-bottom: 1px solid rgba(239, 234, 242, .22); /* liseré */
}
/* le petit logo n'apparaît qu'une fois le grand logo dépassé (pas de doublon) */
.nav__logo { transition: opacity .4s ease; }
.nav__right { display: flex; align-items: center; gap: 40px; }
/* choix de la langue : la langue active en jaune */
.nav__lang { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.nav__lang a { padding: 12px 2px; }
.nav__lang [aria-current] { color: var(--accent); }
.nav.hide-logo .nav__logo { opacity: 0; pointer-events: none; }
.nav__logo { display: block; }
.nav__links { display: flex; gap: 40px; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { display: inline-block; padding-block: 12px; }
.nav__toggle {
  display: none;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; /* fichier 1920×800 : cadre au même format, rien n'est rogné */
}

/* Aucun filtre coloré sur la vidéo : seulement un léger voile noir neutre,
   en haut à gauche (logo) et en bas (accroche), pour la lisibilité des textes */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .55) 100%);
}
.hero__brand, .hero__content { z-index: 2; }
.hero__frame .wrap { padding-inline: var(--gutter); }
/* grand logo : en haut à gauche de l'image, présent dès le début */
.hero__brand {
  position: absolute; top: clamp(24px, 2.8vw, 40px); left: 0;
  display: flex; flex-direction: column; gap: 20px;
}
.hero__kicker { color: var(--text-2); letter-spacing: .12em; }
.hero__kicker:empty { display: none; } /* ligne vide dans le tableur = ligne masquée */
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(10px, 1.2vw, 18px); /* accroche calée vers le bas de l'image */
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.hero__aside { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.hero__tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(30px, 3.05vw, 44px); line-height: 1.08;
}
.hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--accent); /* trait jaune sous l'accroche */
  color: var(--text-2);
}
.hero__meta a { padding-block: 12px; color: var(--text); }

/* ---------- Studio ---------- */
.studio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 32px;
}
.studio__fields { grid-column: span 4; color: var(--muted); line-height: 1.9; }
/* texte de présentation : un paragraphe par ligne du tableur, le premier mis en avant */
.studio__text { grid-column: span 8; display: flex; flex-direction: column; gap: 28px; max-width: 46em; font-size: clamp(16px, 1.11vw, 28px); } /* largeur de lecture qui grandit avec l’écran */
.studio__text p:first-child { font-size: clamp(24px, 2.35vw, 46px); line-height: 1.3; letter-spacing: -.01em; }
.studio__text p + p {
  position: relative; padding-top: 28px;
  font-size: clamp(17px, 1.35vw, 24px); line-height: 1.65; color: var(--text-2); max-width: 38em;
}
.studio__text p + p::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 1px; background: var(--accent); }

/* ---------- Savoir-faire ---------- */
.skills { background: var(--bg-deep); padding-top: clamp(16px, 2.5vw, 40px); } /* même violet que le header ; contenu remonté près de la vidéo */
.section.studio { background: var(--bg-raise); padding-block: clamp(56px, 5.5vw, 80px); } /* plus resserrée que les autres sections */
.section.studio .rule { margin-bottom: clamp(20px, 2.4vw, 36px); } /* texte de présentation remonté sous « Le studio » */
/* rythme des fonds, du plus sombre au plus clair puis retour :
   accueil + savoir-faire (deep) → breakdowns (base) → studio (raise) → logos (base) → contact (violet chaud) → pied de page (deep) */
.skills__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.skill { display: flex; flex-direction: column; gap: 16px; }
.skill__step { color: var(--accent); text-transform: none; letter-spacing: .04em; }
.skill__title {
  font-size: clamp(32px, 2.8vw, 40px); line-height: .95;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase;
}
.skill__text { max-width: 26em; color: var(--muted); font-size: var(--fs-body); }

/* ---------- Médias (vignettes vidéo) ---------- */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.media img, .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 50%;
}
.media video { opacity: 0; transition: opacity .35s ease; }
.media.is-playing video, .media.has-frame video { opacity: 1; } /* has-frame : première image chargée (breakdowns) */
.media__placeholder { color: var(--faint); font-size: var(--fs-mono-s); letter-spacing: .1em; }
.media__tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 8px; border-radius: 999px; background: rgba(11, 6, 19, .65); color: var(--text-2); font-size: var(--fs-mono-s); letter-spacing: .1em; } /* pastille sombre : lisible sur n'importe quelle image */

/* ---------- Projets ---------- */

.projects__list { display: flex; flex-direction: column; gap: 56px; }
.projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } /* grille 2 × 2, sans projet mis en avant */
.project { display: flex; flex-direction: column; gap: 20px; }
.project:hover { color: inherit; }
.project__info { display: flex; align-items: center; gap: 20px; }
.project__num { width: 28px; color: var(--accent); text-transform: none; }
.project__names { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.project__title {
  font-size: 28px; line-height: 1;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em;
}
.project__cat { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, calc(9px + .75vw), 28px); color: var(--muted); }
.project__arrow {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: border-color .2s ease, color .2s ease;
}
.project:hover .project__arrow, .project:focus-visible .project__arrow { border-color: var(--accent); color: var(--accent); }

/* ---------- Breakdowns ---------- */
.breakdowns { background: var(--bg); }
.breakdowns__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.breakdown { display: flex; flex-direction: column; gap: 14px; }
.breakdown__caption { display: flex; justify-content: space-between; align-items: baseline; }
.breakdown__caption span:first-child { font-family: var(--font-serif); font-style: italic; font-size: clamp(21px, calc(10px + .78vw), 30px); }

/* ---------- Logos : « Utilisations par » (clients finaux), même présentation que les breakdowns ---------- */
.clients .display { letter-spacing: .015em; } /* titre un peu plus espacé que les autres */
.clients__grid {
  /* autant de logos par ligne que la largeur le permet (7 sur une ligne sur ordinateur), sans traits autour */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 4px;
}
.client {
  position: relative; height: clamp(92px, 8vw, 150px);
  display: flex; align-items: center; justify-content: center;
}
.client img {
  max-width: 88%; max-height: 58%; width: auto; height: auto;
  /* logos à fond transparent : tous en blanc cassé, quelle que soit leur couleur d'origine */
  filter: brightness(0) invert(.93);
  opacity: .72; transition: opacity .25s ease;
}
/* logos sur fond opaque (jpg…) : le fond clair disparaît, le logo passe en clair (détection en JS) */
.client.is-opaque img { filter: grayscale(1) invert(1) contrast(2.2) brightness(.93); mix-blend-mode: screen; }
.client:hover img { opacity: 1; }
/* fichier absent : on affiche le nom à la place */
.client.is-missing img { display: none; }
.client.is-missing::after { content: attr(data-name); font-family: var(--font-mono); font-size: var(--fs-mono-s); letter-spacing: .08em; color: var(--faint); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-contact); }
.contact__inner {
  /* bloc compact : environ moitié moins haut que les autres sections */
  padding-block: clamp(40px, 4vw, 56px);
}
/* ligne de contact : point + « Contact » + ligne + bouton e-mail, sur une seule ligne */
.rule.rule--contact { margin: 0; gap: 16px; }
.rule--contact .button { flex: none; margin-left: 8px; min-height: 42px; padding: 0 20px; font-size: clamp(16px, calc(9px + .5vw), 21px); } /* bouton e-mail compact */
.button {
  display: inline-flex; align-items: center;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-size: 20px; font-weight: 600;
  transition: background .2s ease;
}
.button:hover { background: var(--accent-light); color: var(--bg); }
/* ---------- Pied de page : même violet sombre que le haut du site ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(239, 234, 242, .22);
}
.footer {
  min-height: 96px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-block: 20px;
}
.footer__links { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.footer__links a { padding-block: 12px; }
.footer__links a[href$=".html"] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Breakdown agrandi : vidéo au centre, fond obscurci et flouté ---------- */
.breakdown__open { width: 100%; padding: 0; border: 0; font: inherit; color: inherit; cursor: pointer; }
.bd-viewer { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; }
.bd-viewer[hidden] { display: none; }
.bd-viewer__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 5, 13, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.bd-viewer__frame {
  position: relative; margin: 0;
  width: min(1280px, 100vw - 2 * var(--gutter), (100vh - 240px) * 16 / 9);
  display: flex; flex-direction: column; gap: 16px;
}
.bd-viewer__media {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius); overflow: hidden;
}
.bd-viewer__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bd-viewer__caption { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); text-align: center; }
.bd-viewer__close { position: absolute; top: 20px; right: var(--gutter); z-index: 1; background: rgba(11, 6, 19, .6); }

/* ---------- Plein écran projet ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg-lightbox);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.lightbox[hidden] { display: none; }
.lightbox__bar { flex: none; height: 88px; display: flex; align-items: center; justify-content: space-between; }
.lightbox__count { color: var(--muted); }
.lightbox__stage {
  position: relative;
  width: min(100% - 2 * var(--gutter), (100vh - 300px) * 16 / 9, 1400px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}
.lightbox__stage video, .lightbox__stage iframe, .lightbox__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000;
}
.lightbox__info {
  display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 24px; align-items: start;
  padding-block: 32px 40px;
  width: min(100%, 1400px + 2 * var(--gutter)); margin-inline: auto;
}
.lightbox__title { font-size: clamp(32px, 3.3vw, 48px); line-height: .95; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.lightbox__cat { margin-top: 6px; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--muted); }
.lightbox__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-transform: none; letter-spacing: .02em; line-height: 1.6; }
.lightbox__meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lightbox__nav { display: flex; justify-content: flex-end; gap: 12px; }

.pill {
  height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer;
}
.round {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 20px; cursor: pointer;
}
.pill:hover, .round:hover { border-color: var(--accent); color: var(--accent); }
body.is-locked { overflow: hidden; }

/* ---------- Point final des titres ---------- */
.tdot {
  display: inline-block;
  width: .15em; height: .15em;
  margin-left: .06em;
  border-radius: 14%;
  background: var(--accent);
  rotate: 29deg;
  animation: tilt-breathe 4.5s ease-in-out infinite; /* même respiration que le grand logo */
}

/* ---------- Transition vers le plein écran (carré qui grandit) ---------- */
.wipe {
  position: fixed; z-index: 70;
  border-radius: 14%;
  background: var(--accent);
  pointer-events: none;
  will-change: transform;
}
.wipe--dark { background: var(--bg-lightbox); }

/* ---------- Chargement du site : un carré incliné s'ouvre depuis le centre ----------
   deux calques plein écran percés d'un trou carré (clip-path calculé en JS) :
   le sombre s'ouvre en premier et laisse voir le jaune, le jaune s'ouvre juste après et laisse voir le site */
.intro-screen { display: none; }
html.intro .intro-screen { display: block; position: fixed; inset: 0; z-index: 80; }
.intro-screen__yellow, .intro-screen__dark { position: absolute; inset: 0; }
.intro-screen__yellow { background: var(--accent); }
.intro-screen__dark { background: var(--bg-deep); }
html.intro body { overflow: hidden; }

/* ---------- Repère de section : nom + ligne qui se trace ---------- */
.rule {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.rule--under { margin-top: clamp(14px, 1.4vw, 20px); } /* juste sous le gros titre */
.rule .rule__dot { flex: none; width: 10px; height: 10px; margin-left: 0; }
.rule__label { color: var(--muted); letter-spacing: .12em; }
.rule__line { flex: 1; height: 1px; background: var(--line-strong); transform-origin: left center; }
.js .rule.reveal .rule__line { transform: scaleX(0); transition: transform 1s cubic-bezier(.65, 0, .35, 1) .15s; }
.js .rule.reveal.is-visible .rule__line { transform: scaleX(1); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.from-above { transform: translateY(-16px); } /* en remontant, l'élément arrive par le haut */
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .breakdowns__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox__info { grid-template-columns: 1fr; }
  .lightbox__nav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  /* mobile : la vidéo 16:9 en pleine largeur, le logo et l'accroche en dessous */
  .hero__frame { aspect-ratio: auto; overflow: visible; }
  .hero__video, .hero__scrim { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 1920 / 800; } /* mobile : vidéo entière, pleine largeur */
  .hero__scrim { display: none; } /* mobile : pas de texte sur la vidéo, donc aucun voile */
  .hero__frame .wrap { padding-inline: var(--gutter); }
  .hero__brand { position: static; padding: 28px 0 0; }
  .hero__content { position: static; padding: 24px 0 16px; justify-content: flex-start; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav__right { gap: 16px; }
  .nav__links {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 0;
    padding: 8px 20px;
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding-block: 14px; }
  .logo--sm { width: 61px; }
  .brand--inline { --logo-w: 61px; }
  .hero__aside { gap: 16px; }
  .hero__tagline { font-size: 26px; }
  .logo--hero { width: 154px; }
  .studio__fields, .studio__text { grid-column: 1 / -1; }
  .skills__list { grid-template-columns: 1fr; gap: 40px; }
  .projects__grid { grid-template-columns: 1fr; }
  .breakdowns__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .breakdown__caption span:first-child { font-size: 16px; }
  .project__title { font-size: 24px; }
  .lightbox__stage { width: 100%; border-radius: 0; }
  .lightbox__meta { grid-template-columns: 1fr 1fr; }
  .footer__links { gap: 8px 24px; }
  .clients__grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .rule--contact { flex-wrap: wrap; }
  .rule--contact .button { margin-left: 0; }
}

/* ---------- Réduction des animations ----------
   si le système demande de réduire les animations, on garde les fondus doux
   et les animations des points jaunes ; on coupe les autres mouvements */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* les points jaunes gardent leur respiration et leurs rotations (choix de la marque) */
  .js .reveal, .js .reveal.from-above { transform: none; transition: opacity .6s ease; } /* fondu sans glissement */
  .js .rule.reveal .rule__line { transform: none; transition: none; }
}
