/* ==========================================================================
   Laurence & Jimi Kelly — kellyjimi.com
   Mobile first · aucune dépendance · design tokens en custom properties
   ========================================================================== */

/* ---------- Polices (auto-hébergées, sous-ensemble latin, WOFF2) ---------- */
@font-face {
  font-family: "Inter Display";
  src: url("/assets/fonts/inter-display-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Polices de repli ajustées aux métriques d'Inter : supprime le décalage (CLS) au chargement */
@font-face {
  font-family: "Inter Display Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 94.69%; ascent-override: 102.31%; descent-override: 25.47%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 106.44%; ascent-override: 91.01%; descent-override: 22.66%; line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f7f5;
  --fg: #111110;
  --muted: #5e5e5a;      /* contraste 6,3:1 sur --bg */
  --line: #dcdbd6;
  --tile: #e6e5e1;
  --ink-dark: #1f1f1d;

  --font-text: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter Display Fallback", "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Bodoni Moda", Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left));
  --pad-r: max(var(--gutter), env(safe-area-inset-right));
  --row-h: clamp(220px, 56vw, 560px);   /* hauteur des rangées de la galerie */
  --gap: clamp(8px, 1vw, 16px);
  --section: clamp(112px, 13vw, 208px);
  --nav-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 400; color: var(--fg); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--pad-l); top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--fg); color: var(--bg); border-radius: 999px;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: 12px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-feature-settings: "case";
}
.display {
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: -.03em; line-height: 1; text-wrap: balance;
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; text-wrap: pretty; max-width: 34em; }
.body-muted { color: var(--muted); text-wrap: pretty; }

/* ---------- En-tête (posé sur la couverture) ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: max(12px, env(safe-area-inset-top)) var(--pad-r) 12px var(--pad-l);
  color: #fff;
}
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 32px; width: auto; filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .35)); }
.site-nav { display: flex; align-items: center; gap: 4px 20px; font-size: 13px; letter-spacing: .08em; }
.site-nav__text { display: none; padding: 12px 0; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; gap: 10px;
}
.icon-link svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 640px) {
  .site-header__logo img { height: 34px; }
  .site-nav__text { display: inline-block; }
}

/* ---------- Couverture ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px; max-height: 1200px;
  background: var(--ink-dark); color: #fff;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.hero::before { top: 0; height: 180px; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,0)); }
.hero::after  { bottom: 0; height: 62%; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-r) max(clamp(28px, 4vw, 56px), env(safe-area-inset-bottom)) var(--pad-l);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.hero__title { font-size: clamp(46px, 9vw, 144px); line-height: .92; letter-spacing: -.035em; }
.hero__title .serif { letter-spacing: 0; }
.hero__tagline { margin-top: clamp(14px, 1.6vw, 22px); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.7; font-feature-settings: "case"; }
/* Pas de séparateur orphelin en fin de ligne : retour à la ligne maîtrisé sur mobile */
@media (max-width: 599px) {
  .hero__tagline .sep--last { display: none; }
  .hero__tag-last { display: block; }
}
@media (max-width: 374px) {
  .hero__tagline .sep { display: none; }
  .hero__tagline span { display: block; }
}
.hero__cue { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; letter-spacing: .08em; }
.hero__cue svg { width: 14px; height: 14px; }
.hero :focus-visible { outline-color: #fff; }

/* ---------- Section Travail ---------- */
.work-intro {
  padding: clamp(56px, 8vw, 112px) var(--pad-r) 0 var(--pad-l);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px;
}
.work-intro__title { margin-top: 16px; font-size: clamp(34px, 4.6vw, 72px); }
.work-intro p:last-child { max-width: 400px; }

/* Barre des univers : collante, défilable au doigt sur mobile */
.chips {
  position: sticky; top: 0; z-index: 5;
  margin-top: clamp(28px, 3.5vw, 48px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .chips { background: var(--bg); } }
.chips { display: flex; align-items: center; }
/* Signature de la barre collante : pictogramme sur mobile, logo complet sur grand écran */
.chips__brand {
  flex: none; display: flex; align-items: center; min-height: 44px;
  margin-left: var(--pad-l); padding-right: 14px; border-right: 1px solid var(--line);
}
.chips__picto { height: 26px; width: auto; }
.chips__word { display: none; height: 28px; width: auto; }
@media (min-width: 900px) {
  .chips__picto { display: none; }
  .chips__word { display: block; }
  .chips__brand { padding-right: 24px; }
}
.chips ul {
  flex: 1; min-width: 0;
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 10px var(--pad-r) 10px 14px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.chips ul::-webkit-scrollbar { display: none; }
.chips ul a {
  flex: none; display: flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  font-size: 13px; letter-spacing: .04em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chips ul a:hover { border-color: var(--fg); }
.chips ul a[aria-current="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
@media (min-width: 1100px) {
  .chips ul { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Univers & galeries défilantes ---------- */
.univers { padding-top: clamp(44px, 5.5vw, 80px); scroll-margin-top: var(--nav-h); }
.univers__head {
  padding: 0 var(--pad-r) 0 var(--pad-l);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
}
.univers__title { display: flex; align-items: baseline; gap: 14px; }
.univers__num { font-size: 12px; letter-spacing: .16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.univers__name { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.025em; }
.univers__tools { display: flex; align-items: center; gap: 8px; }
.univers__count { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.link-more {
  min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font-size: 13px; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.link-more:hover { text-decoration-thickness: 2px; }
.arrows { display: none; gap: 8px; }
@media (hover: hover) and (pointer: fine) { .arrows { display: flex; } }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.arrow:hover:not(:disabled) { border-color: var(--fg); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 14px; height: 14px; }

.shelf {
  margin-top: clamp(16px, 2vw, 24px);
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 var(--pad-r) 2px var(--pad-l);
  scroll-padding-inline: var(--pad-l) var(--pad-r);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf:focus-visible { outline-offset: -2px; }
.shot {
  flex: none; height: var(--row-h); aspect-ratio: var(--ar);
  background: var(--c, var(--tile)); overflow: hidden; scroll-snap-align: start;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:focus { outline: none; }
.js .is-extra { display: none; }
.js .is-open .is-extra { display: block; }

/* Carte « Voir plus » en fin de rangée */
.more-item { flex: none; display: flex; scroll-snap-align: start; }
.more-item[hidden] { display: none; }
.more-card {
  height: var(--row-h); width: clamp(150px, 22vw, 300px);
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); background: transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.more-card:hover { border-color: var(--fg); background: #fff; }
.more-card__count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.more-card__label { display: flex; flex-direction: column; gap: 14px; font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.02em; }
.more-card__label svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.more-card:hover .more-card__label svg { transform: translateX(4px); }
.link-more[hidden], .univers__count[hidden] { display: none; }

/* Films : vignette + lecteur Vimeo chargé au clic */
.film { flex: none; position: relative; height: var(--row-h); aspect-ratio: 16 / 9; background: #161615; color: #fff; overflow: hidden; scroll-snap-align: start; }
.film__link { position: absolute; inset: 0; display: block; }
.film__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.film__link:hover img { transform: scale(1.02); }
.film__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,0)); }
.film__play {
  position: absolute; top: 50%; left: 50%; z-index: 1; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.film__play svg { width: 18px; height: 20px; margin-left: 3px; fill: #111110; }
.film__link:hover .film__play { transform: scale(1.06); }
.film__meta { position: absolute; z-index: 1; left: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); bottom: clamp(14px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 6px; }
.film__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.1; }
.film__kind { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.film :focus-visible { outline-color: #fff; outline-offset: -4px; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Le duo ---------- */
.duo { padding: var(--section) var(--pad-r) 0 var(--pad-l); display: flex; flex-direction: column; gap: clamp(64px, 8vw, 128px); }
.duo__intro { display: grid; gap: clamp(40px, 6vw, 104px); align-items: end; }
.duo__intro-text { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 56px); }
.duo__title { font-size: clamp(36px, 4.6vw, 72px); letter-spacing: -.03em; line-height: 1.02; }
.duo__photo { display: flex; flex-direction: column; gap: 14px; }
.duo__photo picture, .portrait picture { display: block; background: var(--c, var(--tile)); overflow: hidden; }
.duo__photo img, .portrait img { width: 100%; height: 100%; object-fit: cover; }
.duo__photo picture { aspect-ratio: 3 / 2; }
.duo__people { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 144px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.person { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 5vw, 88px); }
.person--reverse { flex-direction: row-reverse; justify-content: flex-end; }
.portrait { flex: 1 1 300px; max-width: 480px; }
.portrait picture { aspect-ratio: 4 / 5; }
.person__text { flex: 1 1 320px; max-width: 560px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.person__head { display: flex; flex-direction: column; gap: 14px; }
.person__name { font-size: clamp(40px, 4vw, 64px); line-height: 1; }
.person__bio { display: flex; flex-direction: column; gap: 18px; }
.person__lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; text-wrap: pretty; }
.person__bio p:not(.person__lead) { line-height: 1.7; }
.linkedin { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; letter-spacing: .08em; }
.linkedin svg { width: 18px; height: 18px; }
.linkedin:hover span { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 960px) {
  .duo__intro { grid-template-columns: 1fr 1fr; }
}

/* ---------- Aujourd'hui / contact ---------- */
.today { margin-top: var(--section); padding: clamp(64px, 7vw, 112px) var(--pad-r) clamp(64px, 7vw, 112px) var(--pad-l); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.today__title { max-width: 14em; font-size: clamp(38px, 6.6vw, 108px); line-height: .98; letter-spacing: -.035em; }
.today__sub { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; text-wrap: balance; }
.today__cta { margin-top: clamp(16px, 3vw, 40px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.today__cta p { max-width: 460px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; text-wrap: pretty; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
/* Mobile : deux boutons de même largeur, empilés, flèche alignée à droite */
@media (max-width: 599px) {
  .buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .btn .btn__arrow { margin-left: auto; }
}
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 22px;
  border-radius: 999px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  font-size: 14px; letter-spacing: .06em; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn svg.btn__arrow { width: 12px; height: 12px; }
.btn:hover { background: transparent; color: var(--fg); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 36px var(--pad-r) max(40px, env(safe-area-inset-bottom)) var(--pad-l); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer__logo { display: inline-flex; align-items: center; min-height: 48px; }
.site-footer__logo img { height: 40px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 13px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.site-footer__links svg { width: 18px; height: 18px; }
.site-footer__links a:hover span { text-decoration: underline; text-underline-offset: 5px; }
.legal { border-top: 1px solid var(--line); }
.legal details { border-bottom: 1px solid var(--line); }
.legal summary {
  min-height: 52px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; font-size: 14px; letter-spacing: .01em;
}
.legal summary:hover { color: var(--muted); }
.legal summary::-webkit-details-marker { display: none; }
.legal summary svg { width: 12px; height: 12px; flex: none; transition: transform .25s var(--ease); }
.legal details[open] summary svg { transform: rotate(45deg); }
.legal__body { padding: 4px 0 32px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.copyright { font-size: 12px; color: var(--muted); }

/* ---------- Tablette / desktop ---------- */
@media (min-width: 640px) {
  :root { --nav-h: 66px; }
}

/* ==========================================================================
   Mouvement — inspiré des pages produit d'Apple
   Uniquement transform / opacity (aucun impact CLS), désactivé si « réduire les animations ».
   Les effets liés au défilement utilisent les scroll-driven animations (CSS natif, sans JS) :
   les navigateurs qui ne les gèrent pas affichent simplement la page sans ces effets.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* décélération longue, très « Apple » */
  --spring: cubic-bezier(.32, .72, 0, 1);      /* glissement des pastilles */
  --ghost: #c9c8c3;                            /* mots pas encore « allumés » */
}

/* Pastille glissante de la barre des univers (créée par le JS) */
.chips ul { position: relative; }
.chips__pill {
  position: absolute; top: 10px; left: 0; z-index: 0; height: 44px; width: 0;
  border-radius: 999px; background: var(--fg); pointer-events: none;
  transition: transform .55s var(--spring), width .55s var(--spring);
}
.chips ul a { position: relative; z-index: 1; }
.has-pill a[aria-current="true"] { background: transparent; border-color: transparent; }

/* Titre « Aujourd'hui » : les mots s'allument au fil du défilement (spans créés par le JS) */
.words .w { transition: color .45s var(--ease-out); }
.words.is-ready .w { color: var(--ghost); }
.words.is-ready .w.is-lit { color: var(--fg); }

@media (prefers-reduced-motion: no-preference) {
  /* 1. Arrivée : la photo se pose, le titre se lève, l'en-tête apparaît */
  .hero__media img { animation: hero-settle 2.6s var(--ease-out) both; }
  /* Le titre reste opaque (élément LCP sur mobile) : il monte en sortant d'un léger flou */
  .hero__title { animation: rise-sharp 1.3s .05s var(--ease-out) both; }
  @keyframes rise-sharp { from { transform: translateY(26px); filter: blur(10px); } to { transform: none; filter: blur(0); } }
  .hero__tagline { animation: rise 1.2s .3s var(--ease-out) both; }
  .hero__cue { animation: rise 1.2s .5s var(--ease-out) both; }
  .site-header { animation: fade 1.2s .4s var(--ease-out) both; }
  @keyframes hero-settle { from { transform: scale(1.08); } }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes fade { from { opacity: 0; } }

  /* 2. Révélations au défilement (classes posées par le JS) */
  .js .reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 70ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* Photos : fondu au moment exact où l'image est décodée, sur sa couleur dominante (classe posée par le JS) */
  img.fade-in { opacity: 0; transition: opacity .7s var(--ease-out); }
  img.fade-in.is-loaded { opacity: 1; }

  /* 3. Micro-interactions : légère pression au clic */
  .btn, .more-card, .chips ul a, .arrow, .link-more { transition-property: background-color, color, border-color, transform; transition-duration: .25s; }
  .btn:active, .more-card:active, .chips ul a:active, .arrow:active:not(:disabled) { transform: scale(.96); }
  .film iframe { animation: fade .8s var(--ease-out) both; }

  @supports (animation-timeline: view()) {
    /* 4. La couverture s'éloigne en profondeur pendant qu'on descend */
    .hero { view-timeline: --hero block; }
    .hero__media { animation: hero-away linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__content { animation: content-away linear both; animation-timeline: --hero; animation-range: exit 0% exit 55%; }
    @keyframes hero-away { to { transform: translateY(22%) scale(1.05); } }
    @keyframes content-away { to { opacity: 0; transform: translateY(-48px); } }

    /* 6. Le duo : photo dévoilée par un cadre qui s'ouvre, portraits en léger parallaxe */
    .duo__photo picture { animation: unveil linear both; animation-timeline: view(); animation-range: entry 5% cover 45%; }
    @keyframes unveil { from { clip-path: inset(9% 7% 9% 7%); } to { clip-path: inset(0); } }
    .portrait img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { translate: 0 -5%; scale: 1.11; } to { translate: 0 5%; scale: 1.11; } }
  }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .chips, .arrows, .link-more, .more-card, .skip-link, .today__cta .buttons { display: none !important; }
  .hero { height: auto; min-height: 0; color: var(--fg); background: none; }
  .hero::before, .hero::after, .hero__media { display: none; }
  .hero__content { position: static; }
  .shelf { flex-wrap: wrap; overflow: visible; }
  .js .is-extra { display: block; }
}
