/* Mariska Lattmann · portfolio, style épuré inspiré d'Apple */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --line: #d2d2d7;
  --accent: #670626;        /* bordeaux de la palette ML */
  --accent-hi: #8a1238;
  --link: #8a1238;
  --butter: #feefb8;
  --choco: #432f2e;
  --sky: #c4dae8;
  --r-lg: 28px;
  --r-md: 18px;
  --gutter: max(22px, calc((100vw - 1024px) / 2));
  --wide: max(16px, calc((100vw - 1440px) / 2));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 400; letter-spacing: -0.01em;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 36px; padding: 8px 18px; font-size: 15px; }
.btn--light { background: #f5f5f7; color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ink { background: var(--choco); color: var(--butter); }
.btn--ink:hover { background: #2e201f; }
.btn--block { width: 100%; min-height: 52px; font-size: 17px; }

.more { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-size: 17px; }
.more svg { width: 7px; height: 12px; transition: transform .2s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:hover svg { transform: translateX(2px); }

.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }

.h2 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; }
.h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.head { padding: 0 var(--gutter); text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.head__sub { margin: 16px auto 0; max-width: 40ch; font-size: clamp(19px, 2vw, 24px); line-height: 1.33; color: var(--ink-2); letter-spacing: -0.02em; }

/* ---------- apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav__in { height: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 24px; }
.nav__logo svg { width: 34px; height: 21px; fill: var(--choco); }
.nav__links { display: flex; gap: clamp(20px, 3.5vw, 40px); margin: 0 auto; font-size: 12px; letter-spacing: -0.01em; }
.nav__links a { color: rgba(0, 0, 0, .8); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-on { color: #000; }
.nav__cta { font-size: 12px; padding: 4px 12px; border-radius: 980px; background: var(--accent); color: #fff; white-space: nowrap; }
.nav__cta:hover { background: var(--accent-hi); }
.nav__burger { display: none; width: 44px; height: 44px; margin-right: -12px; position: relative; }
.nav__burger span { position: absolute; left: 14px; width: 17px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 833px) {
  .nav__in { justify-content: space-between; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 48px 0 auto 0; margin: 0; flex-direction: column; gap: 0;
    padding: 12px 40px 32px; background: rgba(251, 251, 253, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    font-size: 28px; font-weight: 600; letter-spacing: -0.03em;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }
  .nav__links a { display: block; padding: 8px 0; color: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- bandeau ---------- */
.ribbon {
  display: block; text-align: center; background: var(--bg-2); padding: 14px 22px; font-size: 14px; color: var(--ink);
}
.ribbon .more { font-size: 14px; }
.ribbon .more svg { width: 6px; height: 10px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; overflow: hidden; }
.hero .eyebrow { padding: 0 22px; }
.hero__title {
  margin-top: 10px; padding: 0 16px;
  font-size: clamp(52px, 10vw, 128px); font-weight: 700; line-height: 1; letter-spacing: -0.045em;
}
.hero__sub { margin-top: 14px; padding: 0 22px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink-2); line-height: 1.15; }
.hero__ctas { margin-top: 32px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 0 22px; }
.hero__media {
  --s: .86;
  margin: clamp(48px, 7vw, 80px) auto 0; width: min(100%, 1680px);
  transform: scale(var(--s)); transform-origin: 50% 0;
  border-radius: calc(var(--r-lg) / var(--s)); overflow: hidden;
  will-change: transform;
}
.hero__media img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 80%; }
@media (max-width: 734px) {
  .hero__media { --s: 1 !important; border-radius: 0; }
  .hero__media img { aspect-ratio: 4 / 5; object-position: 40% 50%; }
}

/* ---------- projets : tuiles ---------- */
.work { padding: clamp(72px, 10vw, 140px) 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 12px; max-width: 1680px; margin: 0 auto; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg, var(--bg-2)); color: var(--ink);
  height: clamp(580px, 50vw, 760px);
  display: flex; flex-direction: column; text-align: center;
}
.tile--dark { color: #f5f5f7; }
.tile--dark .tile__tag { color: #a1a1a6; }
.tile--dark .tile__kicker { color: #a1a1a6; }
.tile--light { --bg: var(--bg-2); }
.tile__text { position: relative; z-index: 2; padding: clamp(40px, 5vw, 56px) 24px 24px; }
.tile__new { font-size: 15px; font-weight: 600; color: #bf4800; margin-bottom: 6px; letter-spacing: -0.01em; }
.tile__kicker { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; letter-spacing: -0.01em; }
.tile__title { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
.tile__tag { margin-top: 8px; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink-2); }
.tile__links { margin-top: 20px; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tile--dark .more { color: #2997ff; }
.tile__img {
  flex: 1 1 0; width: 100%; min-height: 0; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover .tile__img { transform: scale(1.03); }
.tile__img--contain { object-fit: contain; padding: 0 clamp(16px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.tile:hover .tile__img--contain { transform: scale(1.02); }

.tile--wide { grid-column: 1 / -1; height: auto; }
.tile--pack { --bg: #f5f5f7; min-height: 0; }
.tile--bottle .tile__img { mix-blend-mode: multiply; object-position: 50% 55%; }
.tile--lila { height: clamp(520px, 42vw, 640px); }
.tile--lila .tile__img--contain { padding-inline: clamp(16px, 6vw, 96px); }
.tile__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 8px; }
.tile__duo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.tile--pack:hover .tile__duo img { transform: scale(1.02); }

.tile--brand { --bg: var(--butter); color: var(--choco); min-height: 0; }
.tile--brand .tile__tag, .tile--brand .tile__kicker { color: rgba(67, 47, 46, .72); }
.tile--brand .tile__new { color: var(--accent); }
.tile--brand .more { color: var(--accent); }
.brand { display: grid; justify-items: center; gap: clamp(32px, 5vw, 56px); padding: clamp(32px, 5vw, 64px) 24px clamp(48px, 6vw, 80px); }
.brand__mark { width: clamp(180px, 26vw, 320px); height: auto; aspect-ratio: 73.83 / 45.94; fill: var(--choco); }
.brand__swatches { display: flex; gap: clamp(10px, 2vw, 20px); flex-wrap: wrap; justify-content: center; }
.brand__swatches li { display: grid; gap: 2px; font-size: 12px; color: rgba(67, 47, 46, .7); text-align: left; font-variant-numeric: tabular-nums; }
.brand__swatches li::before { content: ""; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 16px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(67, 47, 46, .18); margin-bottom: 8px; }
.brand__swatches span { font-size: 14px; font-weight: 600; color: var(--choco); }

@media (max-width: 734px) {
  .tiles { grid-template-columns: 1fr; padding: 0; gap: 12px; }
  .tile { border-radius: 0; height: 600px; }
  .tile--wide { height: auto; }
  .tile--lila { height: 520px; }
  .tile__duo { grid-template-columns: 1fr; }
}

/* ---------- photo ---------- */
.photo { background: #000; color: #f5f5f7; padding: clamp(80px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); margin-top: 12px; }
.photo .head__sub { color: #a1a1a6; }
/* séries photo (Hockey, CrossFit) : sans JS ou sur mobile, une rangée qui défile au doigt ;
   sur grand écran (.is-pinned), le cadre reste épinglé et le défilement vertical fait glisser les photos */
.reel { --nav: 48px; --pad: clamp(22px, 4vw, 64px); position: relative; }
.reel + .reel { margin-top: clamp(72px, 9vw, 120px); }
.reel__head { padding: 0 var(--gutter); }
.reel__kicker { display: flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; color: #a1a1a6; letter-spacing: -0.01em; }
.reel__idx { color: var(--butter); font-variant-numeric: tabular-nums; }
.reel__title { margin-top: 10px; font-size: clamp(56px, 7.4vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; color: #f5f5f7; }
.reel__text { margin-top: 18px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.42; color: #a1a1a6; }
.reel__actions { margin-top: 28px; display: flex; align-items: center; gap: 18px; }
.reel__total { font-size: 14px; color: #86868b; font-variant-numeric: tabular-nums; }
.reel__foot { margin-top: 28px; display: flex; align-items: center; gap: 18px; }
.reel__count { font-size: 14px; color: #86868b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel__count b { color: #f5f5f7; font-weight: 600; }
.reel__bar { flex: 1 1 auto; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; min-width: 48px; }
.reel__bar i { display: block; height: 100%; background: #f5f5f7; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.reel__window {
  margin-top: 36px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.reel__window::-webkit-scrollbar { display: none; }
.reel__track { display: flex; gap: 16px; width: max-content; padding: 0 var(--gutter); }
.reel__item { flex: none; scroll-snap-align: start; }
.reel__photo { display: block; overflow: hidden; border-radius: var(--r-md); background: #1d1d1f; cursor: zoom-in; }
.reel__photo img { height: min(62vh, 460px); width: auto; max-width: calc(100vw - 44px); object-fit: cover; transition: transform 1.2s var(--ease); }
.reel__photo:hover img { transform: scale(1.03); }

.reel.is-pinned { height: var(--h, auto); }
.reel.is-pinned + .reel { margin-top: 0; }
.reel.is-pinned .reel__frame {
  position: sticky; top: var(--nav); height: calc(100vh - var(--nav));
  display: grid; grid-template-columns: clamp(320px, 31vw, 460px) minmax(0, 1fr); align-items: center;
}
.reel.is-pinned .reel__head { padding: 0 var(--pad) 0 max(var(--pad), var(--wide)); }
.reel.is-pinned .reel__window { margin: 0; overflow: hidden; overflow: clip; scroll-snap-type: none; }
.reel.is-pinned .reel__track { padding: 0 var(--pad) 0 0; will-change: transform; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); }
/* sans légende sous les photos, elles prennent la place libérée : moins de noir au-dessus et en dessous */
.reel.is-pinned .reel__photo img { --ph: min(calc((100vh - var(--nav)) * .72), 700px); height: var(--ph); max-width: calc(var(--ph) * 1.5); }
/* après la dernière série épinglée, son cadre laisse déjà du noir sous les photos : on n'en rajoute pas */
.reel.is-pinned + .facts { margin-top: clamp(8px, 1.5vw, 24px); }

.arrows { display: flex; gap: 14px; }
.arrows button { width: 44px; height: 44px; border-radius: 99px; background: rgba(66, 66, 69, .72); color: #f5f5f7; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.arrows button:hover { background: rgba(86, 86, 90, .9); }
.arrows button:disabled { opacity: .35; cursor: default; }
.arrows svg { width: 8px; height: 14px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 980px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 22px; text-align: center; }
.facts dt { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; background: linear-gradient(90deg, #feefb8, #c4dae8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts dd { margin-top: 6px; color: #a1a1a6; font-size: 17px; }
@media (max-width: 734px) {
  .facts { grid-template-columns: 1fr; gap: 36px; }
}

/* fiches des séries photo : deux colonnes, chaque photo garde son format */
.sheet__media.sheet__media--cols { display: block; columns: 2; column-gap: 16px; }
.sheet__media--cols figure { break-inside: avoid; margin-bottom: 24px; scroll-margin-top: 64px; }
@media (max-width: 600px) { .sheet__media--cols { columns: 1; } }

/* ---------- mandats ---------- */
.services { padding: clamp(80px, 11vw, 150px) 0; background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 0 var(--gutter); }
.card {
  background: #fff; border-radius: var(--r-lg); padding: 32px 30px 30px;
  display: flex; flex-direction: column; gap: 10px; min-height: 260px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: scale(1.015); box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.card__n { font-size: 14px; font-weight: 600; color: var(--accent); }
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.17; }
.card p:not(.card__n) { color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 10px; }

/* ---------- à propos ---------- */
.about { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text { display: grid; gap: 20px; }
.about__text > p:not(.lead) { color: var(--ink-2); font-size: 19px; line-height: 1.42; }
.lead { font-size: clamp(24px, 2.8vw, 32px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.2; }
.about__pic img { width: 100%; height: auto; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about .h3 { margin-top: clamp(72px, 10vw, 120px); text-align: center; }
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: var(--bg-2); border-radius: var(--r-md); padding: 28px 24px; color: var(--ink-2); font-size: 17px; }
.steps li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 99px; background: var(--choco); color: var(--butter); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.steps strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 833px) {
  .about__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 11vw, 150px) 16px; background: var(--bg-2); }
.form {
  max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px); display: grid; gap: 22px;
}
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 16px; border-radius: 980px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s, color .2s; }
.seg label:hover span { box-shadow: inset 0 0 0 1px var(--ink-3); }
.seg input:checked + span { background: var(--choco); color: var(--butter); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid #0071e3; outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.field output { color: var(--ink); font-variant-numeric: tabular-nums; }
.field input:not([type=range]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s; letter-spacing: -0.02em;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2386868b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.field input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.form__alt { text-align: center; font-size: 14px; color: var(--ink-2); }
.form__alt a { color: var(--link); }
.copy { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--bg-2); margin-left: 4px; }
.copy:hover { background: #e8e8ed; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); letter-spacing: -0.01em; }
.foot__in { max-width: 1024px; margin: 0 auto; padding: 32px 22px 24px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.foot li { margin-bottom: 8px; }
.foot a:hover, .foot button:hover { color: var(--ink); text-decoration: underline; }
.foot button { font-size: 12px; color: var(--ink-2); text-align: left; }
.foot__legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 734px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- fiche projet ---------- */
.sheet {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); margin: auto;
  padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(0, 0, 0, .48); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sheet[open] { animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }
.sheet__close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 3; width: 36px; height: 36px; border-radius: 99px; background: rgba(29, 29, 31, .08); display: grid; place-items: center; }
.sheet__close:hover { background: rgba(29, 29, 31, .14); }
.sheet__close svg { width: 13px; height: 13px; }
.sheet__head { padding: clamp(48px, 6vw, 72px) clamp(24px, 6vw, 80px) 0; max-width: 860px; }
.sheet__meta { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.sheet__title { margin-top: 8px; font-size: clamp(40px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.sheet__text { margin-top: 20px; font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--ink-2); }
.sheet__dl { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.sheet__dl dt { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sheet__dl dd { margin-top: 4px; font-size: 15px; }
.sheet__media { padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px) 0; display: grid; gap: 16px; }
.sheet__media figure img, .sheet__media figure video { width: 100%; height: auto; border-radius: var(--r-md); background: var(--bg-2); }
.sheet__media figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; }
.sheet__media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sheet__foot { padding: 40px 24px 56px; text-align: center; }
@media (max-width: 600px) {
  .sheet { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; max-width: none; }
  .sheet__dl { grid-template-columns: 1fr; }
  .sheet__media .pair { grid-template-columns: 1fr; }
}

/* ---------- intro : monogramme ML, puis la couverture du portfolio ----------
   Affichée seulement quand le script du <head> pose .intro-on (première visite de la session). */
.intro { display: none; }
.intro-on { overflow: hidden; }
.intro-on .intro {
  --ic: #fef7e7;   /* crème de la couverture */
  --ib: #bfd1dd;   /* bleu des rayures */
  --ii: #572022;   /* bordeaux du nom */
  display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: var(--ic); color: var(--ii); cursor: pointer;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.intro__stripes { position: absolute; top: 0; bottom: 0; left: 0; display: flex; }
.intro__stripes i { flex: none; height: 100%; background: var(--ic); }
.intro__stripes i.is-blue { background: var(--ib); }
.intro__mark {
  position: absolute; top: clamp(16px, 3vw, 44px); right: clamp(16px, 3vw, 44px);
  width: clamp(64px, 9vw, 150px); height: auto; overflow: visible; transform-origin: 50% 50%;
}
.intro__mark path { fill: currentColor; stroke: currentColor; stroke-width: .45; stroke-opacity: 0; stroke-linejoin: round; }
.intro__mail { position: absolute; top: clamp(18px, 3.2vw, 46px); left: clamp(16px, 3vw, 44px); width: clamp(180px, 19vw, 320px); color: var(--ii); border-radius: 4px; }
.intro__mail svg { width: 100%; height: auto; fill: currentColor; }
.intro__name { position: absolute; left: 50%; top: 45%; translate: -50% -50%; width: min(54vw, 118vh); height: auto; fill: var(--ii); }
.intro :focus-visible { outline-color: var(--ii); }
@media (max-width: 734px) {
  .intro__name { width: 86vw; top: 46%; }
  .intro__mail { width: 54vw; }
}
/* la page attend sous la couverture : le logo du menu est caché (le ML vient s'y poser),
   et le titre apparaît quand la couverture se lève */
.intro-on .nav__logo { visibility: hidden; }
.intro-hold .hero .reveal { opacity: 0 !important; transform: translateY(28px) !important; }
.intro-hold .hero__media { opacity: 0; }
.js .hero__media { transition: opacity 1.1s var(--ease) .35s; }

/* ---------- livre à feuilleter (fiche Mme Lila) ----------
   Les pages sont empilées ; une page tournée pivote autour de la reliure (bord gauche) et disparaît. */
.book { display: grid; gap: 18px; padding: 4px 8px 0 0; outline: none; }
.book:focus-visible .book__pages { outline: 2px solid #0071e3; outline-offset: 6px; }
.book__pages {
  position: relative; aspect-ratio: 1612 / 1100; perspective: 2600px;
  cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none;
  border-radius: 6px 16px 16px 6px; background: #fff;
  /* tranche des pages à droite et en bas, ombre portée du livre */
  box-shadow: 1px 1px 0 #e7dcec, 3px 3px 0 #fff, 4px 4px 0 #e2d5e8, 6px 6px 0 #fff, 7px 7px 0 #ddd0e3,
              0 30px 50px -24px rgba(70, 30, 80, .45);
}
/* reliure : léger creux à gauche, au-dessus des pages */
.book__pages::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 100; pointer-events: none;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, rgba(45, 15, 55, .28), rgba(45, 15, 55, .08) 45%, rgba(45, 15, 55, 0));
}
.book__page {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #fff;
  transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 1s cubic-bezier(.6, .04, .24, 1);
}
.book__page img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* la page s'assombrit pendant qu'elle tourne */
.book__page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(30, 10, 40, 0) 30%, rgba(30, 10, 40, .35));
  transition: opacity 1s cubic-bezier(.6, .04, .24, 1);
}
.book__page.is-turned { transform: rotateY(-180deg); }
.book__page.is-turned::after { opacity: 1; }
.book__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; }
.book__count { min-width: 9ch; text-align: center; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.book__btn {
  width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink); transition: background .2s, opacity .2s;
}
.book__btn:hover { background: #e8e8ed; }
.book__btn:disabled { opacity: .35; cursor: default; }
.book__btn svg { width: 8px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .book__page, .book__page::after { transition: none; } }

/* ---------- accueil : mur de projets en mouvement (remplace la photo) ----------
   Trois rangées inclinées qui défilent en sens alternés ; pause au survol ; chaque visuel ouvre son projet. */
.hero__wall { position: relative; aspect-ratio: 2 / 1; background: #0f0d0e; isolation: isolate; }
.hero__wall::before { /* lueurs bordeaux et chocolat de la palette ML */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(55% 70% at 72% 28%, rgba(103, 6, 38, .55), transparent 70%),
              radial-gradient(50% 60% at 14% 88%, rgba(67, 47, 46, .65), transparent 70%);
}
.hero__wall::after { /* vignette : les bords se fondent dans le noir */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 clamp(60px, 9vw, 140px) clamp(20px, 3vw, 50px) rgba(12, 10, 11, .9);
}
.wall {
  --h: clamp(120px, 15vw, 250px); --g: clamp(12px, 1.4vw, 22px);
  position: absolute; inset: -18% -12%; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: var(--g);
  transform: perspective(1800px) rotateX(16deg) rotateZ(-7deg);
}
.wall__row { display: flex; gap: var(--g); width: max-content; }
.wall__track { display: flex; gap: var(--g); flex: none; animation: wall-scroll var(--dur, 50s) linear infinite; }
.wall__row--rev .wall__track { animation-direction: reverse; }
@keyframes wall-scroll { to { transform: translateX(calc(-100% - var(--g))); } }
.wall__card {
  flex: none; height: var(--h); padding: 0; overflow: hidden; cursor: pointer;
  border-radius: clamp(10px, 1vw, 16px); background: #1d1b1c;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .85);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero__wall .wall__card img { display: block; width: auto; height: 100%; aspect-ratio: auto; object-fit: fill; }
.wall__card:hover { transform: translateY(-8px) scale(1.035); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9); }
.wall__card--ml { aspect-ratio: 1.3; display: grid; place-items: center; background: var(--butter); }
.wall__card--ml svg { width: 56%; height: auto; fill: var(--choco); }
.hero__wall:hover .wall__track, .hero__wall:focus-within .wall__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .wall__track { animation: none; } }
@media (max-width: 734px) {
  .hero__wall { aspect-ratio: 4 / 5; }
  .wall { --h: clamp(104px, 30vw, 150px); inset: -12% -45%; }
}
