/* ==========================================================================
   MANI — Portfolio motion designer
   Typographie : Broke Grotesk (Regular 400 / Bold 700)
   ========================================================================== */

@font-face {
  font-family: "Broke Grotesk";
  src: url("../fonts/BrokeGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Broke Grotesk";
  src: url("../fonts/BrokeGrotesk-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Broke Grotesk";
  src: url("../fonts/BrokeGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Broke Grotesk";
  src: url("../fonts/BrokeGrotesk-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
/* Police du logo MANI (essai sur le titre d'accueil) */
@font-face {
  font-family: "ManiMotion";
  src: url("../fonts/ManiMotion-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Écriture au marqueur, pour le titre d'accueil (Permanent Marker, licence Apache 2.0) */
@font-face {
  font-family: "Permanent Marker";
  src: url("../fonts/PermanentMarker-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark; /* site volontairement sombre (un seul thème) */
  --ink: #1a1a1a;
  --paper: #f4f1e9;
  --paper-2: #e4dfd3;
  --tape: #d5d0c4;
  --orange: #eecc44; /* jaune des scotchs */
  --muted: #b4b2ab;
  --line: #4b4b46;

  --font: "Broke Grotesk", system-ui, sans-serif;
  --gutter: 48px;
  --max: 1440px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Bruit de fond qui grésille (canvas créé par js/main.js) */
.bg-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* Bouton flottant : activer / désactiver le trait crayon */
.trail-toggle {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 70; /* au-dessus du trait, sous la pop-up vidéo */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.trail-toggle:hover { border-color: var(--orange); transform: translateY(-2px); }
.trail-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.trail-toggle svg { flex: none; color: var(--orange); }
.trail-toggle__state {
  min-width: 38px;
  padding: 5px 0;
  text-align: center;
  background: var(--orange);
  color: var(--ink);
  font-size: 11px;
}
.trail-toggle.is-off { color: var(--muted); }
.trail-toggle.is-off svg { color: var(--muted); }
.trail-toggle.is-off .trail-toggle__state { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
/* Pas de souris (écrans tactiles) : le trait ne s'affiche pas, le bouton non plus */
@media (hover: none) { .trail-toggle { display: none; } }

/* Trait au crayon qui suit la souris (canvas créé par js/main.js) */
.pencil-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60; /* au-dessus du contenu et du menu, sous la pop-up vidéo */
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

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

/* ---------- Helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--orange { background: var(--orange); color: var(--ink); }

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--paper .eyebrow,
.section--orange .eyebrow { color: var(--ink); }

.micro {
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: "ManiMotion", var(--font); /* police du logo MANI pour tous les grands titres */
  font-weight: 400;
  font-synthesis: none; /* une seule graisse : jamais de faux gras */
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: -0.03em;
}
/* ManiMotion est plus large que Broke Grotesk : on neutralise les interlettrages
   très serrés des titres (prioritaire sur les réglages de chaque section). */
body .display { letter-spacing: -0.01em; }

/* Effet grunge « poussière » sur les grands titres :
   deux textures de bruit utilisées comme masque (éclats fins + usure). */
.display,
.grunge {
  -webkit-mask-image: url("../assets/img/grain-dust.svg"), url("../assets/img/grain-wear.svg");
          mask-image: url("../assets/img/grain-dust.svg"), url("../assets/img/grain-wear.svg");
  -webkit-mask-size: 320px 320px, 600px 600px;
          mask-size: 320px 320px, 600px 600px;
  -webkit-mask-repeat: repeat;
          mask-repeat: repeat;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  /* Stop motion : la texture saute à une nouvelle position 2 fois par seconde
     (8 positions sur 4 s, chacune tenue 0,5 s grâce à steps(1)). */
  animation: dust-boil 4s steps(1, end) infinite;
}
@keyframes dust-boil {
  0%    { -webkit-mask-position: 0 0, 0 0;               mask-position: 0 0, 0 0; }
  12.5% { -webkit-mask-position: -97px 143px, 211px -58px;  mask-position: -97px 143px, 211px -58px; }
  25%   { -webkit-mask-position: 171px -64px, -133px 247px; mask-position: 171px -64px, -133px 247px; }
  37.5% { -webkit-mask-position: -38px -211px, 389px 112px; mask-position: -38px -211px, 389px 112px; }
  50%   { -webkit-mask-position: 233px 89px, -276px -181px; mask-position: 233px 89px, -276px -181px; }
  62.5% { -webkit-mask-position: -156px 27px, 64px 333px;   mask-position: -156px 27px, 64px 333px; }
  75%   { -webkit-mask-position: 59px 194px, -412px 41px;   mask-position: 59px 194px, -412px 41px; }
  87.5% { -webkit-mask-position: -263px -121px, 157px -297px; mask-position: -263px -121px, 157px -297px; }
  100%  { -webkit-mask-position: 0 0, 0 0;               mask-position: 0 0, 0 0; }
}

.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover .arrow,
button:hover .arrow,
.card:hover .arrow,
.row:hover .arrow { transform: translate(4px, -4px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--paper .rule,
.section--orange .rule { background: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-weight: 700;
  font-size: 13px;
  padding: 0 14px 0 20px;
  height: 54px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn .arrow { font-weight: 400; font-size: 26px; line-height: 1; }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); text-transform: uppercase; font-size: 12px; height: 58px; }
.btn--ink .arrow { color: var(--orange); font-size: 28px; }
.btn--ink:hover { background: #000; }

.link-underline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ink);
}
.nav__inner {
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto auto; /* liens collés à droite, près du bouton contact */
  column-gap: 58px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
/* Logo MANI (main + mot « mani »), fichier PNG transparent */
.brand__logo {
  display: block;
  flex: none;
  height: 58px;
  width: auto;
  max-width: none;
  transform-origin: 12% 70%;
  transition: transform .5s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-4deg); }
.brand__tag {
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 12px;
}

.nav__links {
  display: flex;
  gap: 58px;
  font-size: 13px;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current]::after { transform: scaleX(1); }

.nav__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 212px;
  height: 50px;
  padding: 0 12px 0 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  transition: background .3s var(--ease);
}
.nav__cta .arrow { font-size: 22px; line-height: 1; }
.nav__cta:hover { background: var(--orange); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-self: end;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero (accueil)
   ========================================================================== */
.hero { padding: 40px 0 26px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 675px);
  justify-content: space-between;
  gap: 32px;
}
.hero__title {
  /* Le masque « poussière » coupe tout ce qui dépasse du titre :
     on agrandit sa zone (padding) et on compense par des marges négatives
     pour que le cercle autour d'« IDÉES. » reste visible en entier. */
  padding: .3em .4em .35em .6em;
  margin: calc(46px - .3em) calc(-.4em) calc(-.35em) calc(-6px - .6em);
  font-size: clamp(46px, 6vw, 86px); /* « Je mani-fie » est la ligne la plus large */
  line-height: .97;
  white-space: nowrap;
}
.hero__title .ideas {
  position: relative;
  display: inline-block;
  color: var(--orange);
  font-size: 1.24em;
  letter-spacing: -0.06em;
  margin-top: .05em;
}
.hero__title .ideas img {
  position: absolute;
  width: 115%;
  height: auto;
  left: -6%;
  top: 4%;
  z-index: -1; /* derrière les lettres */
  transform: rotate(5deg);
  pointer-events: none;
  /* Stop motion : 3 poses par seconde (8 poses sur 8/3 s) */
  animation: circle-boil 2.6667s steps(1, end) infinite;
}
@keyframes circle-boil {
  0%    { transform: translate(0, 0)         rotate(5deg); }
  12.5% { transform: translate(-1.5%, 3%)    rotate(3.2deg); }
  25%   { transform: translate(1%, -2%)      rotate(6.4deg); }
  37.5% { transform: translate(-.5%, 1.5%)   rotate(4.1deg); }
  50%   { transform: translate(1.5%, 2.5%)   rotate(7deg); }
  62.5% { transform: translate(-1%, -1.5%)   rotate(3.6deg); }
  75%   { transform: translate(.5%, 3.5%)    rotate(5.8deg); }
  87.5% { transform: translate(-1.5%, -.5%)  rotate(2.9deg); }
  100%  { transform: translate(0, 0)         rotate(5deg); }
}
/* Second cercle : un peu plus grand, décalé, incliné dans l'autre sens,
   placé derrière le premier avec ses propres poses (même rythme). */
.hero__title .ideas img.circle--2 {
  /* Plus large que le premier, mais centré dessus pour ne jamais sortir
     de l'écran à gauche (même dans les poses les plus décalées). */
  width: 119%;
  left: -3%;
  top: 9%;
  z-index: -2;
  opacity: .85;
  transform: rotate(-3deg);
  animation-name: circle-boil-2;
}
@keyframes circle-boil-2 {
  0%    { transform: translate(0, 0)         rotate(-3deg); }
  12.5% { transform: translate(1.5%, -2%)    rotate(-1.2deg); }
  25%   { transform: translate(-.5%, 2.5%)   rotate(-4.6deg); }
  37.5% { transform: translate(2%, 1%)       rotate(-2.1deg); }
  50%   { transform: translate(-1%, -1.5%)   rotate(-5deg); }
  62.5% { transform: translate(.5%, 3%)      rotate(-1.6deg); }
  75%   { transform: translate(-1%, .5%)     rotate(-3.8deg); }
  87.5% { transform: translate(1%, -2.5%)    rotate(-.8deg); }
  100%  { transform: translate(0, 0)         rotate(-3deg); }
}
/* Lettres désordonnées (découpées en JS) */
.jumble__word { display: inline-block; white-space: nowrap; }
.jumble__ch {
  display: inline-block;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .5s var(--ease);
}
.jumble:hover .jumble__ch {
  transform: translate(calc(var(--x, 0) * -1), calc(var(--y, 0) * -1)) rotate(calc(var(--r, 0deg) * -1));
}
/* Téléphone : l'inclinaison remplace le survol (js/main.js règle --k de 1 à -1) */
.jumble.is-tilt .jumble__ch {
  transform: translate(calc(var(--x, 0) * var(--k, 1)), calc(var(--y, 0) * var(--k, 1))) rotate(calc(var(--r, 0deg) * var(--k, 1)));
  transition: transform .25s linear;
}
.hero__lead {
  margin-top: 40px;
  font-size: 18px;
  line-height: 28px;
  max-width: 420px;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 27px;
  flex-wrap: wrap;
}
.hero__actions .btn { width: 209px; }

.reel {
  position: relative;
  aspect-ratio: 675 / 650;
  margin-top: 46px; /* le haut du scotch s'aligne sur la ligne « Indépendant · Nantes » */
  rotate: 3deg; /* encart légèrement penché (sens horaire), scotch compris */
  overflow: visible;
}
.reel__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.reel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.reel:hover .reel__img img { transform: scale(1.04); }

/* ---------- Pop-up vidéo (showreel) ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px var(--gutter);
  background: rgba(20, 20, 20, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease), visibility 0s;
}
.video-modal__frame {
  position: relative;
  width: min(1200px, 100%, calc((100vh - 144px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  transform: translateY(24px) scale(.97);
  transition: transform .45s var(--ease);
}
.video-modal.is-open .video-modal__frame { transform: none; }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background .3s var(--ease);
}
.video-modal__close span { font-size: 20px; line-height: 1; font-weight: 400; }
.video-modal__close:hover { background: var(--paper); }
.video-modal__close:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
body.modal-open { overflow: hidden; }
.video-modal { align-content: center; gap: 18px; }
.video-modal__link {
  justify-self: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.video-modal__link:hover { color: var(--orange); }
.video-modal__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}
.video-modal__fallback .tri { font-size: 56px; line-height: 1; }
.reel__meta {
  position: absolute;
  left: 25px;
  right: 56px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px; /* légende, triangle et durée à la même taille */
  color: var(--paper);
}
/* Lecture du showreel : petit triangle devant la légende */
.reel__meta-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.reel__meta-play .tri {
  font-size: 1em;
  line-height: 1;
  color: var(--orange);
  transition: transform .35s var(--ease);
}
.reel__meta-play:hover { color: var(--orange); }
.reel__meta-play:hover .tri { transform: scale(1.25); }
.reel__meta-play:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sticker {
  position: absolute;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 15px 14px;
  white-space: nowrap;
}
.reel .sticker {
  top: -26px; /* à cheval : moitié sur l'aperçu, moitié sur le fond */
  z-index: 2;
  left: 50%; /* centré sur la largeur de l'aperçu */
  width: 268px;
  transform: translateX(-50%) rotate(-6deg);
}

/* Scotchs : un PNG tiré au hasard par js/main.js remplace le fond uni.
   Le visuel est étiré sur toute la boîte ; le padding garde le texte
   à l'intérieur des bords déchirés. */
.sticker.has-tape,
.tape.has-tape {
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.sticker.has-tape {
  width: auto;
  padding: 22px 40px 21px;
  text-align: center;
  /* même typo que les grands titres : ManiMotion */
  font-family: "ManiMotion", var(--font);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}
.sticker.tape--dark { color: var(--paper); }
/* Scotch de l'accueil : taille fixe, le texte alterne « Vos idées. » / « Mes keyframes. » (js/main.js) */
.sticker.sticker--swap { width: 336px; height: 61px; padding: 0; overflow: hidden; }
.sticker__word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(60%);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.sticker__word.is-on { opacity: 1; transform: none; }
.sticker__word.is-out { opacity: 0; transform: translateY(-60%); }
.tape.has-tape { opacity: 1; height: auto; aspect-ratio: 3.2 / 1; }
.hero__foot {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.scroll-arrow {
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Bandeau défilant ---------- */
.marquee {
  background: var(--orange);
  color: var(--ink);
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee__track {
  display: flex;
  flex: none;
  white-space: pre;
  font-weight: 700;
  font-size: 19px;
  animation: marquee 32s linear infinite;
}
/* js/main.js duplique le texte pour couvrir l'écran et règle --marquee-shift sur la
   largeur exacte d'une copie : la boucle retombe pile sur ses pieds, sans coupure. */
.marquee__track span { flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift, -50%)); }
}

/* ==========================================================================
   Cartes projets
   ========================================================================== */
.projects { padding: 50px 0 40px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.section-head__title {
  margin-top: 14px;
  margin-left: -5px;
  font-size: clamp(48px, 5.3vw, 76px);
  letter-spacing: -0.05em;
}
.section-head__aside {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.25;
  padding-bottom: 14px;
  margin-right: 78px;
}
.grid-2 {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 28px;
}

.card { display: block; }
.card__media {
  position: relative;
  aspect-ratio: 656 / 390;
  overflow: hidden;
  background: #111;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
/* Covid-19 : l'image a un liseret blanc en bas, on la zoome légèrement dès le repos */
.card__media img[src$="covid/fete.jpg"] { transform: scale(1.03); transform-origin: 50% 40%; }
.card:hover .card__media img[src$="covid/fete.jpg"] { transform: scale(1.08); }
.card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 21px 0 24px;
  border-bottom: 1px solid var(--line);
}
.card__title { font-weight: 700; font-size: 26px; line-height: 1.2; }
.card__body .arrow { font-size: 30px; line-height: 1; padding-right: 3px; }
.card__desc { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: var(--muted); }
.card__tags { grid-column: 1 / -1; margin-top: 10px; font-size: 9px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }

/* Kinetic type (carte typographique) */
.kinetic {
  position: absolute;
  inset: 0;
  background: var(--orange);
  color: var(--ink);
  padding: 25px 27px 0;
  display: flex;
  flex-direction: column;
}
.kinetic__label { font-size: 10px; font-weight: 700; }
.kinetic__word {
  margin-top: 16px;
  font-weight: 700;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: .95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.kinetic__word span { display: block; transition: transform .6s var(--ease); }
.card:hover .kinetic__word span:nth-child(1) { transform: translateX(14px); }
.card:hover .kinetic__word span:nth-child(2) { transform: translateX(-6px); }
.kinetic__arrow {
  position: absolute;
  right: 37px;
  top: 34px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}
.timeline {
  margin-top: auto;
  margin-bottom: 18px;
  margin-right: 0;
  position: relative;
}
.timeline__ruler {
  height: 14px;
  border-top: 1px solid var(--ink);
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 120px);
  background-size: 1px 14px, 100% 7px, 100% 14px;
  background-position: right top, left top, left top;
  background-repeat: no-repeat;
}
.timeline__head {
  position: absolute;
  top: -4px;
  left: 0;
  width: 2px;
  height: 20px;
  background: var(--ink);
  animation: playhead 6s linear infinite;
}
@keyframes playhead {
  from { left: 0; }
  to { left: 100%; }
}
.timeline__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9px;
  padding-right: 30px;
}

.projects__foot {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -1px;
}
.projects__foot a { color: var(--paper); margin-right: 72px; }
.projects__foot a:hover { color: var(--orange); }

/* ==========================================================================
   À propos (accueil) + affiche
   ========================================================================== */
.about { padding: 47px 0 70px; overflow: hidden; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 474px);
  justify-content: space-between;
  gap: 40px;
}
.about__title {
  margin-top: 38px;
  margin-left: -5px;
  font-size: clamp(42px, 4.25vw, 61px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.about__lead { margin-top: 40px; font-size: 18px; line-height: 29px; max-width: 520px; }
.about__text { margin-top: 24px; font-size: 14px; line-height: 24px; max-width: 470px; }
.about .link-underline { margin-top: 30px; }

.poster-wrap { position: relative; padding-top: 48px; }
.tape {
  position: absolute;
  background: var(--tape);
  opacity: .8;
  z-index: 2;
}
.poster-wrap .tape { width: 132px; height: 36px; top: 0; left: 36%; }
.poster-wrap .tape.has-tape { width: 170px; height: auto; top: 22px; left: 50%; transform: translateX(-50%) rotate(-5deg); } /* à cheval sur le haut du post-it */
.poster {
  position: relative;
  background: var(--orange);
  color: var(--ink);
  aspect-ratio: 474 / 448;
  padding: 23px 24px;
  transform: rotate(-5deg);
  overflow: hidden;
  container-type: inline-size; /* le titre suit la largeur du post-it */
}
.poster__label { font-size: 10px; }
.poster__title {
  margin-top: 48px;
  font-family: "ManiMotion", var(--font);
  font-weight: 400;
  font-synthesis: none;
  font-size: 9.2cqw; /* proportionnel au post-it : toujours sur deux lignes, « Keyframes » / « & café serré. » */
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Post-its : texte masqué tant que js/main.js n'a pas posé la note du jour (data-ready) */
.poster__title:not([data-ready]),
.note__title:not([data-ready]),
.poster__label:not([data-ready]),
.note__label:not([data-ready]) { visibility: hidden; }

/* Bouton « une autre note » (coin haut droit des post-its, ajouté par js/main.js) */
.note-reload {
  position: absolute;
  top: 20px;  /* sur la ligne de « NOTE À MOI-MÊME / 0XX » */
  right: 22px;
  z-index: 6;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .6s var(--ease), background-color .2s;
}
.note-reload:hover { background-color: rgba(26, 26, 26, .1); }
.note-reload:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.note-reload svg { width: 10px; height: 10px; }
.note .note-reload { top: 14px; right: 16px; width: 16px; height: 16px; }
.note .note-reload svg { width: 8px; height: 8px; }

/* Note 05 : « Un jour. » barré, corrigé en dessous par « Toujours ! » */
.note-strike { display: inline-block; line-height: 1; }
.note-strike s {
  text-decoration: line-through;
  text-decoration-thickness: .12em;
  text-decoration-color: currentColor;
}
.note-strike small {
  display: block;
  margin-top: .12em;
  font-size: .55em;
  transform: rotate(-4deg);
}
.poster__star {
  position: absolute;
  right: 26px;
  bottom: 0;
  font-weight: 700;
  font-size: 142px;
  line-height: 1;
}
.poster__rule { position: absolute; left: 24px; right: 25px; bottom: 64px; height: 1px; background: var(--ink); }
.poster__foot { position: absolute; left: 24px; bottom: 30px; font-size: 11px; font-weight: 700; }

/* --- Post-it qui se décolle par le bas (js/main.js, attribut data-peel) ---
   Le post-it est dupliqué en deux faces : le haut reste collé, le bas pivote
   en 3D autour d'une ligne de pli (--fold) qui suit la souris. */
.poster.is-peel {
  background: none;
  padding: 0;
  overflow: visible;
  perspective: 1100px;
  --fold: 100%;   /* position du pli (de haut en bas) */
  --lift: 0deg;   /* soulèvement de la partie basse */
  --twist: 0deg;  /* torsion : le coin le plus proche de la souris se soulève plus */
  --amount: 0;    /* intensité 0 → 1 (ombre et reflet) */
}
.poster__face {
  position: absolute;
  inset: 0;
  padding: 23px 24px;
  background: var(--orange);
  overflow: hidden;
}
.poster__face--top { z-index: 1; } /* découpe réglée par js/main.js */
/* Partie basse : un « rabat » composé de fines bandes, chacune un peu plus inclinée
   que la précédente, pour former une courbe douce au lieu d'une charnière. */
.poster__flap {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 2;
  pointer-events: none;
}
.poster__slice { backface-visibility: hidden; }
/* chaque bande s'éclaire puis s'assombrit selon son inclinaison */
.poster__slice::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .22), rgba(0, 0, 0, .10));
  opacity: var(--shade, 0);
}

/* ==========================================================================
   Expertises (accueil)
   ========================================================================== */
.expertise { padding: 52px 0 44px; }
.expertise__grid {
  display: grid;
  /* colonne de titre plus large : ManiMotion est plus large que Broke Grotesk */
  grid-template-columns: minmax(0, 1fr) minmax(0, min(682px, 58%));
  gap: 40px;
}
.expertise__title {
  margin-top: 40px;
  margin-left: -5px;
  font-size: clamp(44px, 4.5vw, 65px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.expertise__lead { margin-top: 50px; font-size: 15px; color: var(--muted); }
.expertise__steps { margin-top: 95px; white-space: pre; }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 49px 1fr auto;
  align-items: start;
  padding: 19px 0 0;
  height: 128px;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding .35s var(--ease);
}
.row:hover { padding-left: 12px; }
.row__num { color: var(--orange); font-size: 12px; padding-top: 7px; }
.row__title { font-weight: 700; font-size: 27px; }
.row__desc { margin-top: 9px; font-size: 13px; color: var(--muted); }
.row .arrow { font-size: 29px; padding: 3px 6px 0 0; }

/* ==========================================================================
   Contact + pied de page
   ========================================================================== */
.contact { padding: 43px 0 52px; }
.contact__top { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.contact__top p:last-child { margin-right: 163px; }
.contact__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* titre au-dessus ; champs / bouton d'envoi */
  align-items: end;
  gap: 32px 48px;
  margin-top: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--ink);
}
.contact__title {
  margin-left: -6px;
  grid-column: 1 / -1; /* au-dessus du formulaire */
  font-size: clamp(40px, 4.3vw, 62px); /* réduit : place pour le formulaire */
  line-height: 1;
  letter-spacing: -0.05em;
}
/* Formulaire de contact : champs soulignés, posés sur le fond jaune */
.contact__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  max-width: 540px;
  width: 100%;
  justify-self: start;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.field input,
.field textarea {
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
.field textarea { min-height: 72px; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 5px; }
.field.is-invalid .field__label { font-weight: 700; }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-style: dashed; }
.contact__status { grid-column: 1 / -1; min-height: 1.3em; font-size: 12px; }
button.contact__circle { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.contact__circle:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 50%; }
.contact__circle {
  position: relative;
  flex: none;
  width: 240px;
  height: 240px;
  margin-right: 4px;
  align-self: center; /* centré en hauteur sur les champs */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--orange);
  transition: transform .5s var(--ease);
}
.contact__circle img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__circle .arrow { position: relative; font-size: 100px; line-height: .8; transition: transform .5s var(--ease); }
.contact__send { position: relative; font-family: "ManiMotion", var(--font); font-synthesis: none; font-size: 22px; text-transform: uppercase; color: var(--orange); }
.contact__circle:hover { transform: scale(1.05); }
.contact__circle:hover .arrow { transform: rotate(45deg); } /* seule la flèche tourne : « Envoyer » reste lisible */
.contact__bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 78px;
  padding-top: 28px;
}
.contact__mail { font-weight: 700; font-size: 35px; }
.contact__mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact__write { font-size: 11px; font-weight: 700; white-space: pre; }
.contact__place { font-size: 14px; line-height: 1.25; margin-right: 84px; }

.footer__inner {
  height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 46px;
}
.footer__brand { font-family: "ManiMotion", var(--font); font-weight: 400; font-synthesis: none; font-size: 32px; letter-spacing: 0; } /* typo du logo */
.footer__links { display: flex; gap: 68px; font-size: 12px; margin-right: 0; }
.footer__links a:hover { color: var(--orange); }
.footer__lang { font-size: 10px; color: var(--muted); padding-right: 13px; }
.footer__lang button { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.footer__lang .is-on { color: var(--paper); }

/* ==========================================================================
   Page Projets
   ========================================================================== */
.intro { padding: 35px 0 30px; }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1000px) minmax(0, 340px);
  justify-content: space-between;
  gap: 32px;
}
.intro__title {
  margin-top: 40px;
  margin-left: -7px;
  font-size: clamp(64px, 8.5vw, 122px);
  line-height: .95;
  letter-spacing: -0.06em;
}
.intro__aside { position: relative; padding-top: 145px; }
.intro__aside .sticker {
  top: 48px;
  left: 0; /* bord gauche aligné sur « Des univers différents. » */
  width: 250px;
  padding: 15px 17px;
  font-size: 12px;
  rotate: 5deg; /* propriété séparée : n'est pas écrasée par l'animation d'apparition */
  transform-origin: 0 50%; /* pivote depuis le bord gauche : l'alignement tient */
}
.intro__aside .sticker.has-tape { width: auto; padding: 22px 40px 21px; font-size: 18px; }
.intro__aside .big { font-size: 21px; line-height: 30px; }
.intro__aside .small { margin-top: 40px; font-size: 14px; line-height: 23px; color: var(--muted); }
.intro__foot {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.intro__foot .scroll-arrow { font-size: 36px; margin-right: 10px; }

.filters { border-top: 1px solid var(--line); }
.filters__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 25px; /* haut/bas seulement : les marges latérales restent celles de .wrap */
  padding-bottom: 29px;
}
.filters__list { display: flex; gap: 16px; flex-wrap: wrap; }
.chip {
  height: 42px;
  padding: 0 18px;
  min-width: 151px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.chip:hover { border-color: var(--orange); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.filters__count { margin-right: 0; } /* calé sur la marge de droite */

.project { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.project.is-hidden { display: none; }

.feature { padding: 24px 0 28px; }
.feature .card__media { aspect-ratio: 1344 / 620; }
.feature__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  width: 271px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}
.feature__body {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--line);
}
.feature__title { font-weight: 700; font-size: 44px; line-height: 1.2; }
.feature__tags { margin-top: 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.feature__quote { font-size: 22px; line-height: 29px; padding-top: 6px; }
.feature__desc { margin-top: 17px; font-size: 13px; color: var(--muted); }
.feature__body .arrow { color: var(--orange); font-size: 46px; line-height: 1; padding-top: 6px; }

.gallery { padding: 56px 0 14px; }
.gallery__top {
  display: grid;
  grid-template-columns: minmax(0, 656px) minmax(0, 592px);
  justify-content: space-between;
  gap: 32px;
}
.gallery .card__title { font-size: 30px; }
.gallery .card__desc { font-size: 14px; margin-top: 10px; }
.gallery .card__tags { font-size: 10px; margin-top: 13px; }
.gallery__side { padding-top: 118px; }
/* Scotchs à jeux de mots « mani » dans les vides autour des aperçus */
.gallery__main,
.gallery__side { position: relative; }
.gallery__tape { position: absolute; left: 50%; z-index: 2; translate: -50% 0; }
.gallery__tape--top { top: 28px; rotate: -4deg; }
.gallery__main { align-self: start; } /* hauteur = la carte : le scotch du bas se place dans le vide */
.gallery__tape--bottom { top: 100%; margin-top: 42px; rotate: 3deg; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 32px;
  margin-top: 48px;
}
.feature .card__title { font-size: 44px; } /* le projet le plus récent reste mis en avant par sa taille */
.gallery__side .card__media { aspect-ratio: 592 / 390; }
.gallery__quote {
  margin-top: 54px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
}
.gallery__quote + .micro { margin-top: 24px; color: var(--orange); }
.gallery__bottom {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 888px) minmax(0, 355px);
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.gallery__bottom .card__media { aspect-ratio: 888 / 450; }
.gallery__bottom--flip { grid-template-columns: minmax(0, 355px) minmax(0, 888px); }
.gallery__bottom--flip .gallery__text { margin-right: 0; margin-left: 29px; }
@media (max-width: 960px) {
  .gallery__bottom--flip .gallery__text { margin-left: 0; order: 2; }
}
.gallery__bottom .card__body { border-bottom: 0; padding-bottom: 0; }
.gallery__text { padding-top: 19px; margin-right: 29px; }
.gallery__text .eyebrow { color: var(--orange); }
.gallery__text h3 { margin-top: 47px; font-size: clamp(28px, 2.6vw, 37px); line-height: 1.14; }
.gallery__text p.body { margin-top: 47px; font-size: 16px; line-height: 25px; color: var(--muted); }
.gallery__text .micro { margin-top: 48px; }

.bridge { padding: 54px 0 70px; }
.bridge__grid {
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(0, 476px);
  justify-content: space-between;
  gap: 32px;
}
.bridge__title {
  margin-left: -5px;
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.bridge__text { padding-top: 11px; font-size: 16px; line-height: 26px; max-width: 470px; }
.bridge .btn { margin-top: 48px; width: 260px; }

/* ==========================================================================
   Page À propos
   ========================================================================== */
.about-hero { padding: 35px 0 120px; overflow: hidden; }
/* Tache de café tirée au hasard (js/main.js) : derrière le contenu, coupée par la zone beige */
.about-hero .about-hero__grid { position: relative; z-index: 1; }
.coffee-stain {
  position: absolute;
  z-index: 0;
  width: var(--w, 320px);
  height: auto;
  max-width: none;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .5;
}
.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 487px);
  justify-content: space-between;
  gap: 32px;
}
.about-hero__title {
  /* Comme sur l'accueil : zone du masque « poussière » agrandie (padding)
     et compensée (marges négatives) pour que les cercles ne soient pas coupés. */
  padding: .3em 1em .6em .6em; /* 1em à droite : place pour le cercle autour de « moi ? » */
  margin: calc(46px - .3em) calc(-1em) calc(-.6em) calc(-7px - .6em);
  font-size: clamp(64px, 8.75vw, 126px);
  line-height: .95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.about-hero__title .me { position: relative; display: inline-block; }
.about-hero__title .me img {
  position: absolute;
  width: 122%;  /* le cercle n'entoure que « moi ? » */
  max-width: none;
  height: auto;
  left: -11%;
  top: -8%;
  z-index: -1; /* derrière les lettres */
  transform: rotate(5deg);
  pointer-events: none;
  animation: circle-boil 2.6667s steps(1, end) infinite; /* même stop motion que l'accueil */
}
.about-hero__title .me img.circle--2 {
  width: 126%;
  left: -13%;
  top: -3%;
  z-index: -2;
  opacity: .85;
  transform: rotate(-3deg);
  animation-name: circle-boil-2;
}
.about-hero__lead { margin-top: 52px; font-size: 18px; line-height: 29px; max-width: 520px; }
.about-hero__text { margin-top: 40px; font-size: 15px; line-height: 25px; max-width: 480px; }
.about-hero__text + .about-hero__text { margin-top: 16px; }
.about-hero__loc { margin-top: 88px; color: var(--ink); font-size: 10px; text-transform: uppercase; }

.snapshot { position: relative; padding-top: 0; }
.snapshot .tape { width: 133px; height: 31px; top: -26px; left: 38%; }
.snapshot .tape.has-tape { width: 165px; height: auto; top: -34px; left: 35%; transform: rotate(5deg); }
.snapshot__frame {
  position: relative;
  background: var(--paper-2);
  padding: 12px 12px 0;
  aspect-ratio: 460 / 530;
  transform: rotate(3deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25);
  transition: transform .6s var(--ease);
}
.snapshot__frame:hover { transform: rotate(1deg); }
.snapshot__frame img { width: 100%; aspect-ratio: 436 / 445; object-fit: cover; }
.snapshot__frame figcaption { position: absolute; right: 63px; bottom: 28px; font-size: 9px; font-weight: 700; }
.note {
  position: absolute; /* sous la photo, centré, qui mord un peu sur son bas */
  left: 50%;
  top: calc(100% - 2px);
  width: 284px;
  aspect-ratio: 284 / 185;
  min-height: 0; /* hauteur fixe : le texte s’adapte (js/main.js), pas le post-it */
  padding: 17px 18px;
  background: var(--orange);
  color: var(--ink);
  transform: translateX(-50%) rotate(-6deg);
  z-index: 3;
  transition: transform .6s var(--ease);
}
.note:hover { transform: translateX(-50%) rotate(-3deg) translateY(-4px); }
.snapshot { align-self: start; justify-self: end; width: 100%; max-width: 400px; margin-top: 60px; margin-bottom: 100px; } /* photo réduite et abaissée */ /* hauteur = la photo ; place pour le post-it en dessous */
.note__label { font-size: 8px; }
.note__title { margin-top: 14px; font-family: "ManiMotion", var(--font); font-weight: 400; font-synthesis: none; font-size: 33px; line-height: 35px; text-transform: uppercase; white-space: nowrap; }
.note__foot { position: absolute; left: 18px; bottom: 18px; font-size: 9px; font-weight: 700; }

.manifesto { padding: 45px 0 30px; }
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1000px) minmax(0, 323px);
  justify-content: space-between;
  gap: 32px;
}
.manifesto__title {
  margin-top: 46px;
  margin-left: -5px;
  font-size: clamp(42px, 4.4vw, 63px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.manifesto__title .accent { position: relative; display: inline-block; }
.manifesto__title .accent::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: var(--orange);
}
.manifesto__aside { padding-top: 72px; }
.manifesto__aside .big { font-size: 18px; line-height: 28px; }
.manifesto__aside .small { margin-top: 46px; font-size: 14px; line-height: 23px; color: var(--muted); }
.manifesto__foot { margin-top: 46px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--orange); }

.skills { padding: 46px 0 58px; }
.skills__title {
  margin-top: 36px;
  margin-left: -5px;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.05em;
}
.skills__lead { margin-top: 30px; font-size: 16px; }
.skills__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill { border-top: 1px solid var(--muted); padding-top: 20px; }
.skill__num { font-weight: 700; font-size: 13px; }
.skill__title { margin-top: 22px; font-weight: 700; font-size: 27px; line-height: 31px; }
.skill__sub { margin-top: 25px; font-size: 12px; line-height: 19px; }
.skill__text { margin-top: 27px; font-size: 14px; line-height: 22px; max-width: 300px; }

.method { padding: 46px 0 34px; }
.method__grid {
  display: grid;
  grid-template-columns: minmax(0, 940px) minmax(0, 330px);
  justify-content: space-between;
  gap: 32px;
}
.method__title {
  margin-top: 36px;
  margin-left: -5px;
  font-size: clamp(42px, 4.4vw, 63px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.method__aside { padding-top: 72px; font-size: 17px; line-height: 27px; color: var(--muted); }
.steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 33px;
}
.step { border-top: 1px solid var(--line); padding-top: 15px; }
.step__num { font-weight: 700; font-size: 58px; line-height: 1.2; color: var(--orange); }
.step__title { margin-top: 16px; font-weight: 700; font-size: 28px; }
.step__text { margin-top: 17px; font-size: 17px; line-height: 25px; color: var(--muted); max-width: 400px; }
.step .micro { margin-top: 38px; color: var(--paper); }

.bridge--about .bridge__grid { grid-template-columns: minmax(0, 925px) minmax(0, 350px); }
.bridge--about .btn { width: 302px; height: 60px; }

/* ==========================================================================
   Pages projet (projet-*.html)
   ========================================================================== */
.eyebrow a:hover { color: var(--orange); }

.case-hero { padding: 35px 0 46px; }
.case-hero__grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end;
  gap: 48px;
}
.case-hero__num { font-size: 11px; color: var(--orange); letter-spacing: .02em; }
/* Titre de projet long (ex. « Qu’est-ce que le motion design ? ») : plus petit pour tenir sur ~3 lignes */
.case-title.case-title--long { font-size: clamp(42px, 6.1vw, 96px); line-height: .98; }
@media (min-width: 961px) and (max-width: 1100px) { .case-title.case-title--long { font-size: 5.6vw; } }
.case-title {
  /* marge de sécurité pour que le masque « poussière » ne rogne pas les lettres inclinées */
  padding: .2em .3em;
  margin: calc(18px - .2em) -.3em -.2em calc(-6px - .3em);
  font-size: clamp(56px, 13vw - 46px, 150px); /* tient dans la colonne de 1024 à 1440 px */
  line-height: .92;
  letter-spacing: -0.05em;
}
.case-hero__aside { padding-bottom: 12px; }
.case-hero__tagline { font-size: 22px; line-height: 29px; }
.case-hero__lead { margin-top: 22px; font-size: 15px; line-height: 24px; color: var(--muted); }
.case-meta {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.case-meta > div { padding: 18px 20px 0 0; }
.case-meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.case-meta dd { margin: 8px 0 0; font-size: 14px; line-height: 20px; }

.case-visual { padding: 10px 0 40px; }
.case-cover { position: relative; margin: 0; }
.case-cover__media {
  position: relative;
  aspect-ratio: 1344 / 680;
  max-width: 100%;
  overflow: hidden;
  background: #111;
}
.case-cover__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-cover__media video,
.case-frame__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Visuel cliquable : lance la vidéo */
.case-cover__media[data-open-video] { cursor: pointer; }
.case-cover__media[data-open-video]:hover img { transform: scale(1.03); }
.case-cover__media[data-open-video]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.case-cover__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(26, 26, 26, .55);
  color: var(--orange);
  font-size: 34px;
  line-height: 1;
  padding-left: 6px;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.case-cover__media[data-open-video]:hover .case-cover__play,
.case-cover__media[data-open-video]:focus-visible .case-cover__play { opacity: 1; transform: none; }
/* Images clés qui lancent chacune un film (projets en plusieurs épisodes) */
.case-frame__media img { transition: transform 1s var(--ease); }
.case-frame__media[data-open-video] { cursor: pointer; }
.case-frame__media[data-open-video]:hover img { transform: scale(1.03); }
.case-frame__media[data-open-video]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.case-frame__media[data-open-video]:hover .case-cover__play,
.case-frame__media[data-open-video]:focus-visible .case-cover__play { opacity: 1; transform: none; }
/* Image du showreel (accueil) : un clic lance la vidéo */
.reel__img[data-open-video] { cursor: pointer; }
.reel__img[data-open-video]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.reel__img[data-open-video]:hover .case-cover__play,
.reel__img[data-open-video]:focus-visible .case-cover__play { opacity: 1; transform: none; }
.case-cover .sticker { top: -26px; right: 8%; transform: rotate(4deg); z-index: 2; }
.case-cover .kinetic { padding: 4% 4% 0; }
.case-cover .kinetic__label { font-size: 12px; }
.case-cover .kinetic__word { font-size: clamp(64px, 14vw, 210px); margin-top: 2%; }
.case-visual__foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.case-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 16px;
  transition: color .3s var(--ease);
}
.case-play .tri { color: var(--orange); font-size: 1em; transition: transform .35s var(--ease); }
.case-play:hover { color: var(--orange); }
.case-play:hover .tri { transform: scale(1.25); }
.case-play:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.case-story { padding: 70px 0 80px; }
.case-story__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.case-story__title {
  margin-top: 30px;
  margin-left: -4px;
  font-size: clamp(40px, 4.4vw, 63px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.case-story__text { margin-top: 28px; font-size: 18px; line-height: 29px; max-width: 540px; }

.case-frames { padding: 64px 0 40px; }
.case-frames__title {
  margin-top: 14px;
  margin-left: -5px;
  font-size: clamp(44px, 5.3vw, 76px);
  letter-spacing: -0.05em;
}
.case-frames__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.case-frame { margin: 0; }
.case-frames__sub { margin-top: 56px; }
.case-frames__grid--3 { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-frame--big { grid-column: 1 / -1; }
/* Dessins d'étude : chaque image garde ses proportions, la rangée s'aligne en hauteur */
.case-studies { margin-top: 20px; display: grid; gap: 32px; }
.case-studies--first { margin-top: 36px; }
.case-studies__row { display: flex; gap: 32px; align-items: flex-start; }
.case-study { margin: 0; min-width: 0; }
.case-study__media { overflow: hidden; background: #111; }
.case-study__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .case-studies__row { flex-direction: column; }
  .case-study { flex: none !important; width: 100%; }
}
.case-frames__grid--portrait .case-frame__media { aspect-ratio: 413 / 651; background: #f6b8b7; }
/* Vidéos carrées (Instagram) : cadres carrés, 4 par ligne quand il y en a 4 */
.case-frames__grid--square .case-frame__media { aspect-ratio: 1 / 1; }
.case-frames__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .case-frames__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-frame__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background: #111;
}
.case-frame--big .case-frame__media { aspect-ratio: 1344 / 560; }
.case-frame__media img { width: 100%; height: 100%; object-fit: cover; }
.case-frame figcaption,
.case-study figcaption {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--muted);
}
.case-type {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 150px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.case-frame:not(.case-frame--big) .case-type { font-size: clamp(40px, 5.5vw, 84px); }
.case-type--orange { background: var(--orange); color: var(--ink); }
.case-type--ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.case-type--paper { background: var(--paper); color: var(--ink); }
.case-type--orange span { display: inline-block; transform: scaleX(1.35); }
.case-type--ink span { display: inline-block; transform: translateY(12%) rotate(-8deg); }
.case-type--paper span { display: inline-block; letter-spacing: .12em; }

.case-deliver { padding: 30px 0 80px; }
.case-deliver__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.case-list { list-style: none; margin: 22px 0 0; padding: 0; }
.case-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.case-list li:first-child { border-top: 1px solid var(--line); }
.case-list--credits li span:last-child { color: var(--muted); }

/* Navigation entre projets : précédent à gauche, suivant à droite.
   Vignette et texte côte à côte pour un bloc peu haut. */
.case-nav { padding: 40px 0 44px; }
.case-nav__grid { display: grid; grid-template-columns: 1fr 1fr; }
.case-nav__link { display: flex; align-items: center; gap: 28px; padding: 6px 40px 6px 0; min-width: 0; }
.case-nav__link--next { flex-direction: row-reverse; text-align: right; padding: 6px 0 6px 40px; border-left: 1px solid var(--ink); }
.case-nav__thumb { position: relative; flex: none; width: 170px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--orange); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.case-nav__link--next .case-nav__thumb { transform: rotate(3deg); }
.case-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-nav__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case-nav__link--next .case-nav__text { align-items: flex-end; }
.case-nav__title { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.02; letter-spacing: -0.03em; }
.case-nav__kind { font-size: 13px; display: inline-flex; align-items: center; gap: 10px; }
.case-nav__link--prev .case-nav__kind { flex-direction: row-reverse; justify-content: flex-end; }
.case-nav__arrow { font-size: 22px; line-height: 1; transition: transform .4s var(--ease); }
.case-nav__link:hover .case-nav__thumb { transform: rotate(0deg) scale(1.05); }
.case-nav__link--prev:hover .case-nav__arrow { transform: translateX(-6px); }
.case-nav__link--next:hover .case-nav__arrow { transform: translateX(6px); }
@media (max-width: 960px) { .case-nav__thumb { width: 120px; } .case-nav__link { gap: 18px; } }
@media (max-width: 700px) {
  .case-nav__grid { grid-template-columns: 1fr; }
  .case-nav__link { padding: 0 0 24px; }
  .case-nav__link--next { border-left: 0; border-top: 1px solid var(--ink); padding: 24px 0 0; }
}
.case-next { padding: 56px 0 64px; }
.case-next__link { display: block; }
.case-next__row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.case-next__title {
  margin-left: -5px;
  flex: 0 1 auto;
  min-width: 0; /* un titre long passe sur deux lignes au lieu de pousser la vignette */
  font-size: clamp(56px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.case-next__thumb {
  position: relative;
  flex: none;
  width: 220px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--orange);
  transform: rotate(-4deg);
  transition: transform .5s var(--ease);
}
.case-next__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kinetic--mini { padding: 10% 8%; }
.kinetic--mini .kinetic__word { font-size: 38px; margin-top: 0; }
.case-next__arrow { margin-left: auto; font-size: clamp(48px, 6vw, 90px); line-height: 1; }
.case-next__link:hover .case-next__thumb { transform: rotate(2deg) scale(1.05); }
.case-next__kind { display: block; margin-top: 16px; font-size: 14px; }

@media (max-width: 960px) {
  .case-title { padding-right: 0; margin-right: 0; } /* pas de marge qui dépasse de l'écran */
  .case-hero__grid,
  .case-story__grid,
  .case-deliver__grid { grid-template-columns: 1fr; gap: 36px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .case-cover__media { aspect-ratio: 4 / 3; }
  .case-cover .sticker { right: 12px; }
  .case-frames__grid { grid-template-columns: 1fr; }
  .case-frame--big .case-frame__media { aspect-ratio: 16 / 9; }
  .case-next__thumb { width: 140px; }
}
@media (max-width: 600px) {
  .case-next__row { flex-wrap: wrap; gap: 16px; }
  .case-next__arrow { margin-left: 0; }
}

/* ==========================================================================
   Animations d’apparition
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .brand__tag { display: none; }
  .nav__links { gap: 36px; }
  .contact__top p:last-child,
  .contact__place,
  .filters__count,
  .footer__links,
  .projects__foot a,
  .section-head__aside { margin-right: 0; }
  .footer__links { gap: 36px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }

  .nav__inner { grid-template-columns: 1fr auto; height: 80px; }
  .brand__logo { height: 46px; }
  .nav__toggle { display: block; }
  .nav__links,
  .nav__cta { display: none; }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: absolute;
    top: 80px;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    padding: 32px var(--gutter) 24px;
    background: var(--ink);
    font-size: 28px;
    font-weight: 700;
  }
  .nav--open .nav__links a { align-self: flex-start; }
  .nav--open .nav__cta {
    display: inline-flex;
    position: absolute;
    top: calc(80px + 190px);
    left: 0;
    width: 100%;
  }
  .nav--open .nav__inner::after {
    content: "";
    position: absolute;
    top: 80px;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    height: 264px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    z-index: -1;
  }

  .hero__grid,
  .about__grid,
  .expertise__grid,
  .intro__grid,
  .gallery__top,
  .gallery__grid,
  .gallery__bottom,
  .bridge__grid,
  .bridge--about .bridge__grid,
  .about-hero__grid,
  .manifesto__grid,
  .method__grid { grid-template-columns: 1fr; }

  .hero__title { white-space: normal; }
  .reel { margin-top: 32px; }
  .reel .sticker { top: -30px; width: auto; }
  .reel .sticker.sticker--swap { width: min(336px, 80%); }

  .grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head__aside { padding-bottom: 0; }
  .projects__foot { flex-direction: column; gap: 10px; padding-top: 16px; }

  .poster-wrap { max-width: 474px; margin-top: 24px; }
  .expertise__steps { margin-top: 32px; white-space: normal; }
  .row { height: auto; padding-bottom: 22px; }

  .contact__top { flex-direction: column; gap: 8px; }
  .contact__fields { justify-self: stretch; max-width: none; }
  .contact__circle { width: 150px; height: 150px; margin-top: 0; }
  .contact__circle .arrow { font-size: 60px; }
  .contact__send { font-size: 15px; }
  .contact__bottom { grid-template-columns: 1fr; gap: 14px; }
  .contact__mail { font-size: 28px; }

  .footer__inner { height: auto; padding-top: 28px; padding-bottom: 28px; grid-template-columns: 1fr auto; gap: 18px; } /* marges latérales : celles de .wrap */
  .footer__links { grid-column: 1 / -1; order: 3; }

  .intro__aside { padding-top: 124px; } /* le texte passe sous le scotch, qui ne bouge pas */
  .intro__aside .sticker { left: 0; top: 10px; }
  .filters__inner { flex-direction: column; align-items: flex-start; }
  .feature__body { grid-template-columns: 1fr auto; gap: 18px; }
  .feature__body > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .gallery__side { padding-top: 0; }
  .gallery__tape { display: none; }
  .gallery__text { margin-right: 0; }
  .gallery__text h3,
  .gallery__text p.body,
  .gallery__text .micro { margin-top: 24px; }

  .snapshot { margin-top: 60px; max-width: 460px; }
  .note { width: 240px; }
  .snapshot { margin-bottom: 90px; }
  .note__title { font-size: 26px; line-height: 28px; }
  .about-hero { padding-bottom: 110px; }
  .about-hero__loc { margin-top: 40px; }
  .manifesto__aside,
  .method__aside { padding-top: 24px; }
  .skills__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .skills__grid { grid-template-columns: 1fr; }
  .chip { min-width: 0; }
  .hero__actions .btn { width: 100%; }
  .bridge .btn,
  .bridge--about .btn { width: 100%; }
  .contact__main { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .contact__fields { justify-self: stretch; max-width: none; }
  .contact__circle { justify-self: end; }
  .footer__links { gap: 22px; flex-wrap: wrap; }
  .feature__title { font-size: 34px; }
  .feature__badge { width: auto; left: 12px; top: 12px; }
  .kinetic { padding: 18px 18px 0; }
  .kinetic__arrow { right: 18px; top: 22px; }
}

/* Références clients (page À propos) : planche pleine largeur, 6 × 3 sur desktop */
.clients { grid-column: 1 / -1; margin-top: 88px; }
.clients__label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 18px; }
.clients__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.clients__item {
  display: flex; align-items: center; justify-content: center;
  min-height: 96px; padding: 14px 12px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.clients__name {
  font-weight: 700; font-size: 14px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .02em;
  text-wrap: balance;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.clients__item img {
  display: block; width: auto; height: auto;
  max-width: 72%; max-height: 40px;
  /* Logos officiels passés en niveaux de gris, couleur d'origine au survol */
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: .82;
  transition: filter .35s ease, opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.clients__item--square img { max-height: 52px; }
.clients__item:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.clients__item:hover .clients__name { transform: scale(1.06); }
.about-hero__grid > .about-hero__loc { grid-column: 1 / -1; margin-top: 40px; }
@media (max-width: 1100px) {
  .clients__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .clients__name { font-size: 12px; }
}
@media (max-width: 760px) {
  .clients { margin-top: 56px; }
  .clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients__item { min-height: 72px; padding: 10px 8px; }
  .clients__name { font-size: 11px; }
  .clients__item img { max-width: 80%; max-height: 30px; }
  .clients__item--square img { max-height: 40px; }
}

/* Post-it « J et K » : les lettres posées sur une touche de clavier */
.note-key {
  display: inline-block;
  font: inherit;
  line-height: 1;
  padding: .12em .26em .1em;
  margin: 0 .04em;
  border-radius: .2em;
  background: var(--ink);
  color: var(--orange);
  box-shadow: 0 .07em 0 rgba(0,0,0,.35);
  vertical-align: .04em;
}
