/* ==========================================================================
   Sonzaï — e-Portfolio · Allan S. Heberling
   Direction artistique : éditorial (magazine), blanc cassé / noir / accent orange
   ========================================================================== */

:root {
  --cream: #F4EEE2;
  --cream-2: #EAE2D2;
  --ink: #10100F;
  --ink-2: #1B1A18;
  --orange: #EF4B17;
  --muted: #6E685E;
  --muted-dark: #9D968A;
  --line: rgba(16, 16, 15, .16);
  --line-dark: rgba(244, 238, 226, .16);

  /* Polices : Adobe Fonts (kit à lier dans index.html), repli Google Fonts */
  --f-display: "freight-display-pro", "Cormorant Garamond", "Times New Roman", serif;
  --f-text: "neue-haas-grotesk-text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-label: "fiona", "Cinzel", "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--orange); color: var(--cream); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typographie ---------- */
.kicker {
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1.4;
}
.kicker--accent, .accent { color: var(--orange); }
.display {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .95;
  margin: 0;
}
.display em, .italic { font-style: italic; }
.lead {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
  margin: 0;
}
.body-text { font-size: 15px; line-height: 1.65; max-width: 62ch; }
.body-text p { margin: 0 0 1em; }

/* Les deux points orange du ï, signe de la marque */
.dots { display: inline-flex; gap: .22em; vertical-align: middle; }
.dots::before, .dots::after {
  content: ""; width: .42em; height: .42em; border-radius: 50%; background: var(--orange);
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 92px;
}
.site-header.is-scrolled { background: rgba(244, 238, 226, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-dark { color: var(--cream); }
.site-header.is-dark.is-scrolled { background: rgba(16, 16, 15, .78); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 124px; height: auto; color: currentColor; transition: width .4s var(--ease); }
.site-header.is-scrolled .brand svg { width: 108px; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  font-family: var(--f-label); font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.status { display: flex; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(239, 75, 23, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 75, 23, .45); } 70% { box-shadow: 0 0 0 9px rgba(239, 75, 23, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 75, 23, 0); } }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menu mobile plein écran, façon sommaire */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--cream);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { border-top: 1px solid var(--line-dark); }
.menu li:last-child { border-bottom: 1px solid var(--line-dark); }
.menu a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; }
.menu a small { font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; color: var(--orange); min-width: 2.2em; }
.menu-open { overflow: hidden; }
.menu-open .site-header { color: var(--cream); background: transparent; backdrop-filter: none; }

/* ---------- Héro : présentation ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center;
  padding-top: 132px; padding-bottom: 64px;
}
.hero__text { grid-column: 1 / span 7; }
.hero__title { font-size: clamp(60px, 8.6vw, 150px); margin: 28px 0 36px; }
.hero__title em { color: var(--orange); }
.hero__title .split-line { padding-bottom: .12em; margin-bottom: -.12em; }
.hero__lead { max-width: 30ch; font-size: clamp(22px, 2.2vw, 32px); }
.hero__body { max-width: 52ch; color: var(--muted); font-size: 15px; margin: 22px 0 36px; }
.hero__body strong { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__photo { grid-column: 8 / span 5; position: relative; }
.hero__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; background: var(--cream-2); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
.hero__photo.is-in .hero__frame img { transform: none; }
.hero__photo::after { /* les deux points du ï, en signature de la photo */
  content: ""; position: absolute; top: 6%; right: 2%; width: 22px; height: 22px; border-radius: 50%; background: var(--orange);
  box-shadow: 30px -6px 0 0 var(--orange);
}
.hero__caption { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.hero__caption .kicker { font-size: 10px; }
.hero__caption .kicker:last-child { color: var(--muted); }
.reveal-hero { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-hero.is-in { opacity: 1; transform: none; }
.nowrap { white-space: nowrap; }

/* ---------- Écran d'ouverture ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 300; background: var(--cream); color: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 28px; cursor: pointer;
  clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.76, 0, .24, 1);
}
.intro__sig { width: min(720px, 82vw); }
.intro__sig svg { width: 100%; height: auto; overflow: visible; }
.intro__name { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.intro.is-named .intro__name { opacity: 1; transform: none; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); }
.intro.is-leaving .intro__sig { transform: translateY(-40px); opacity: .0; transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .8s; }
.is-intro, .is-intro body { overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid currentColor; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--cream); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid::before { background: var(--orange); }
.btn--light { color: var(--cream); }
.btn--light::before { background: var(--cream); }
.btn--light:hover { color: var(--ink); }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.x-unused-scroll-hint { display: flex; align-items: center; gap: 12px; }
.x-unused-scroll-hint__line { width: 46px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.x-unused-scroll-hint__line::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Bandeau défilant ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 4vw, 56px); line-height: 1; padding-right: .5em; white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; }
.marquee__track span i { font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 170px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .kicker:not(.kicker--accent) { color: var(--muted-dark); }
.section--paper { background: var(--cream-2); }
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end;
  border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(48px, 7vw, 100px);
}
.section--dark .section-head { border-color: var(--line-dark); }
.section-head__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head__num {
  grid-column: 1 / span 3; font-family: var(--f-display); font-weight: 300; font-size: clamp(80px, 12vw, 190px); line-height: .8; letter-spacing: -.04em;
}
.section-head__title { grid-column: 4 / span 6; font-size: clamp(44px, 6.4vw, 104px); }
.section-head--left .section-head__title { grid-column: 1 / span 8; }
.section-head__intro { grid-column: 10 / span 3; font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; align-self: end; }
.section--dark .section-head__intro { color: var(--muted-dark); }

/* ---------- Sommaire ---------- */
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { border-top: 1px solid var(--line); }
.toc li:last-child { border-bottom: 1px solid var(--line); }
.toc a {
  display: grid; grid-template-columns: 120px 1fr auto 80px; align-items: baseline; gap: 24px;
  padding: clamp(16px, 2.2vw, 28px) 0; position: relative; transition: padding .5s var(--ease-out), color .3s;
}
.toc a:hover { padding-left: 18px; }
.toc__num { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.toc__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4.4vw, 68px); line-height: 1; letter-spacing: -.02em; }
.toc a:hover .toc__title { font-style: italic; }
.toc__cat { font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.toc__year { font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-align: right; color: var(--muted); }

/* ---------- 01 · Sites web ---------- */
.site-index { display: flex; flex-wrap: wrap; gap: 10px; margin: -40px 0 clamp(48px, 6vw, 80px); }
.site-index a {
  height: 42px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-dark);
  font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s;
}
.site-index a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.site-feature { scroll-margin-top: 100px; }
.site-feature {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: center;
  padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid var(--line-dark);
}
.site-feature:first-of-type { border-top: 0; padding-top: 0; }
.site-feature__media { grid-column: 1 / span 8; position: relative; }
.site-feature__info { grid-column: 9 / span 4; }
.site-feature:nth-of-type(even) .site-feature__media { grid-column: 5 / span 8; order: 2; }
.site-feature:nth-of-type(even) .site-feature__info { grid-column: 1 / span 4; order: 1; }
.x-unused-index { font-family: var(--f-display); font-weight: 300; font-size: 64px; line-height: 1; color: var(--orange); margin-bottom: 18px; }
.site-feature h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 4.6vw, 72px); line-height: .95; letter-spacing: -.02em; margin: 10px 0 20px; }
.site-feature p { color: var(--muted-dark); font-size: 15px; margin: 0 0 24px; max-width: 42ch; }
.meta-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line-dark); }
.meta-list li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.meta-list li span:first-child { font-family: var(--f-label); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); }
.section:not(.section--dark) .meta-list, .section:not(.section--dark) .meta-list li { border-color: var(--line); }
.section:not(.section--dark) .meta-list li span:first-child { color: var(--muted); }

.browser {
  border-radius: 12px; overflow: hidden; background: #0b0b0a; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(244, 238, 226, .08);
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease-out);
}
.browser__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #1c1b19; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3833; }
.browser__bar i:first-child { background: var(--orange); }
.browser__url { margin-left: 14px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: #2a2926; font-size: 11px; line-height: 20px; padding: 0 10px; color: #8d877c; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser__screen { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.browser__screen img { width: 100%; height: auto; transform: translateY(0); transition: transform var(--dur, 9s) cubic-bezier(.45, .05, .35, 1); will-change: transform; }
.site-feature__media:hover .browser__screen img, .browser.is-playing .browser__screen img { transform: translateY(var(--scroll, 0px)); }
.phone {
  position: absolute; width: 20%; min-width: 110px; right: 4%; bottom: -10%; border-radius: 26px; padding: 7px; background: #0b0b0a;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(244, 238, 226, .12);
}
.site-feature:nth-of-type(even) .phone { right: auto; left: 4%; }
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow:hover { color: var(--orange); }

/* ---------- 02 · Cahiers (feuilletage) ---------- */
.books-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.books-tabs button {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--f-label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s;
}
.books-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.books-tabs button:hover:not([aria-selected="true"]) { border-color: var(--ink); }
.books-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: start; }
.books-stage { grid-column: 1 / span 8; }
.books-info { grid-column: 10 / span 3; position: sticky; top: 110px; }
.books-info h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 4.2vw, 64px); line-height: .95; letter-spacing: -.02em; margin: 12px 0 20px; }
.books-info h3 em { font-style: italic; }
.books-info p { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.book-panel[hidden] { display: none; }
.credit { font-size: 11px !important; color: var(--muted); font-style: italic; margin: -8px 0 0 !important; }

.flipbook { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; }
.flipbook__viewport { display: grid; place-items: center; padding: 30px 0 24px; perspective: 2600px; }
.flipbook__book {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
}
.flipbook.is-single .flipbook__book { width: var(--pw); }
.flipbook__book.at-start { transform: translateX(calc(var(--pw) * -.5)); }
.flipbook__book.at-end { transform: translateX(calc(var(--pw) * .5)); }
.flipbook.is-single .flipbook__book.at-start, .flipbook.is-single .flipbook__book.at-end { transform: none; }
.leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.3, .1, .2, 1);
  cursor: pointer;
}
.flipbook.is-single .leaf { left: 0; width: 100%; }
.leaf.is-dragging { transition: none; }
.leaf__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: #fff;
}
.leaf__face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.leaf__face--back { transform: rotateY(180deg); }
.leaf__face--blank { background: var(--cream-2); }
/* ombres de pli */
.leaf__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.leaf__face--front::after { background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .04) 5%, transparent 12%); }
.leaf__face--back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .04) 5%, transparent 12%); }
.leaf__shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 70%); backface-visibility: hidden; transition: opacity .3s; }
.flipbook__shadow {
  position: absolute; left: 0; right: 0; bottom: -28px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 16, 15, .28), transparent); filter: blur(6px); z-index: -1;
}
.flipbook__controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.flipbook__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.flipbook__btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.flipbook__btn:disabled { opacity: .3; cursor: default; }
.flipbook__count { font-family: var(--f-label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; min-width: 130px; text-align: center; }
.flipbook__progress { height: 1px; background: var(--line); margin: 22px auto 0; max-width: 420px; position: relative; }
.flipbook__progress span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--orange); width: 0; transition: width .8s var(--ease-out); }
.flipbook__hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------- 03 · Campagne ---------- */
.campaign { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.campaign__poster { grid-column: 1 / span 5; position: sticky; top: 116px; }
.campaign__poster img { width: auto; max-width: 100%; max-height: calc(100svh - 180px); margin: 0 auto; box-shadow: 0 50px 80px -45px rgba(16, 16, 15, .6); }
.campaign__poster figcaption { margin-top: 14px; }
.campaign__grid { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.campaign__intro { grid-column: 1 / -1; margin-bottom: 20px; }
.tile { position: relative; overflow: hidden; background: var(--cream-2); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile--wide { grid-column: 1 / -1; }
.tile--tall { aspect-ratio: 2 / 3; }
.tile--land { aspect-ratio: 4 / 3; }
figcaption, .caption { font-size: 12px; line-height: 1.5; color: var(--muted); }
.caption b { font-family: var(--f-label); font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--orange); margin-right: 8px; }
.tile figcaption { padding: 10px 0 0; background: var(--cream); }

/* ---------- 04 · Identité ---------- */
.identity { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.identity__logo { grid-column: 1 / span 7; background: var(--cream); display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10%; border: 1px solid var(--line); position: relative; }
.identity__logo svg, .identity__logo img { width: 100%; height: auto; }
.identity__logo .clearspace { position: absolute; inset: 7%; border: 1px dashed rgba(239, 75, 23, .45); pointer-events: none; opacity: 0; transition: opacity .5s; }
.identity__logo:hover .clearspace { opacity: 1; }
.identity__text { grid-column: 9 / span 4; align-self: center; }
.swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.swatch { border: 1px solid var(--line); }
.swatch__chip { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 18px; font-family: var(--f-display); font-weight: 300; font-size: 30px; }
.swatch__data { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 16px 18px; font-size: 12px; }
.swatch__data dt { font-family: var(--f-label); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.swatch__data dd { margin: 0; text-align: right; }
.type-specimens { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.specimen { border-top: 1px solid var(--ink); padding-top: 16px; }
.specimen__big { font-size: clamp(54px, 6vw, 96px); line-height: 1; margin: 18px 0 10px; }
.specimen--display .specimen__big { font-family: var(--f-display); font-weight: 300; }
.specimen--text .specimen__big { font-family: var(--f-text); font-weight: 400; letter-spacing: -.02em; }
.specimen--label .specimen__big { font-family: var(--f-label); letter-spacing: .1em; }
.specimen p { font-size: 12px; color: var(--muted); margin: 0; }
.identity__mockups { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 6vw, 80px); }
.identity__mockups .tile:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; aspect-ratio: 1; }
.identity__mockups .tile:nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
.identity__mockups .tile:nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }

/* ---------- 05 · Photomontages : défilement horizontal piloté par le scroll ---------- */
#photomontages { padding-bottom: 0; overflow: clip; }
#photomontages .section-head { margin-bottom: 0; }
.pin { position: relative; }
.pin__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 92px; }
.pin__ghost {
  position: absolute; top: 50%; left: 0; white-space: nowrap; transform: translateY(-50%); pointer-events: none;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(120px, 22vw, 360px); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(16, 16, 15, .14); display: flex; align-items: center; gap: .3em; will-change: transform;
}
.pin__ghost .dots { font-size: .2em; }
.pin__track { position: relative; display: flex; align-items: center; gap: clamp(40px, 7vw, 120px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.shot { flex: 0 0 auto; margin: 0; }
.shot:nth-child(odd) { margin-top: -6vh; }
.shot:nth-child(even) { margin-top: 10vh; }
.shot__frame { height: min(58svh, 600px); overflow: hidden; position: relative; background: var(--cream); box-shadow: 0 40px 70px -40px rgba(16, 16, 15, .55); transform: rotate(var(--rot, 0deg)); transition: transform .6s var(--ease-out); }
.shot__frame img { height: 100%; width: 100%; object-fit: cover; transform: translateX(var(--px, 0px)) scale(1.07); cursor: zoom-in; }
.shot:hover .shot__frame { --rot: 0deg !important; transform: rotate(0) scale(1.02); }
.shot figcaption { color: var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 16px; }
.shot__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; }
.shot__title em { font-style: italic; }
.shot .kicker { color: var(--orange); }
.pin__foot { display: flex; align-items: center; gap: 24px; margin-top: auto; padding-bottom: 28px; }
.pin__foot .kicker { color: var(--muted); white-space: nowrap; }
.pin__progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.pin__progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
/* sans animation : simple grille */
.pin.is-static .pin__sticky { position: static; height: auto; padding: 60px 0; }
.pin.is-static .pin__track { width: auto; flex-wrap: wrap; justify-content: center; }
.pin.is-static .pin__ghost, .pin.is-static .pin__foot { display: none; }
.pin.is-static .shot { margin-top: 0; }

/* ---------- Studio / à propos ---------- */
.studio { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.studio__quote { grid-column: 1 / span 7; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.05; }
.studio__quote em { font-style: italic; }
.studio__text { grid-column: 9 / span 4; }
.services { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(60px, 8vw, 120px); counter-reset: srv; }
.service { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.service .dots { font-size: 14px; }
.service h3 { font-family: var(--f-display); font-weight: 300; font-size: 30px; line-height: 1.05; margin: 14px 0 12px; }
.service p { font-size: 13px; color: var(--muted-dark); margin: 0; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: clamp(100px, 14vw, 200px) 0; }
.contact .display { font-size: clamp(56px, 10vw, 170px); }
.contact__mail { display: inline-block; margin-top: 40px; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 40px); border-bottom: 1px solid currentColor; }
.contact__mail:hover { color: var(--orange); }
.contact__links { display: flex; justify-content: center; gap: 32px; margin-top: 40px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer svg { width: 64px; }

/* ---------- Visionneuse ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(16, 16, 15, .96); color: var(--cream); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.lightbox__stage { position: relative; min-height: 0; margin: 0 var(--gutter); }
.lightbox__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__bottom { gap: 24px; }
.lightbox__bottom .kicker { flex: 1; text-align: center; color: var(--cream); font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: .04em; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.lightbox button:hover { background: var(--cream); color: var(--ink); }

/* ---------- Apparitions au défilement ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .section-head__num { grid-column: 1 / span 4; }
  .section-head__title { grid-column: 5 / -1; }
  .section-head__intro { grid-column: 5 / -1; margin-top: 24px; }
  .books-stage { grid-column: 1 / -1; }
  .books-info { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .books-info > * { grid-column: auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav, .status { display: none; }
  .menu-btn { display: block; }
  .site-header__inner { height: 76px; }
  .brand svg, .site-header.is-scrolled .brand svg { width: 96px; }
  .hero { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 36px; padding-top: 104px; }
  .hero__photo { width: min(60%, 240px); align-self: center; }
  .hero__caption { display: none; }
  .hero__photo::after { width: 16px; height: 16px; box-shadow: 22px -4px 0 0 var(--orange); }
  .hero__title { margin: 20px 0 24px; }
  .site-index { margin-top: -10px; }
  .shot__frame { height: auto; width: 78vw; max-height: 56svh; }
  .shot:nth-child(odd), .shot:nth-child(even) { margin-top: 0; }
  .pin__track { gap: 28px; }
  .shot__title { font-size: 24px; }
  .pin__ghost { -webkit-text-stroke-width: .6px; }
  .section-head { display: block; }
  .section-head__num { font-size: 88px; margin-bottom: 18px; }
  .section-head__intro { margin-top: 20px; }
  .toc a { grid-template-columns: 52px 1fr; gap: 6px 14px; }
  .toc__cat { grid-column: 2; }
  .toc__year { display: none; }
  .site-feature, .site-feature:nth-of-type(even) { display: flex; flex-direction: column; align-items: stretch; }
  .site-feature:nth-of-type(even) .site-feature__media { order: 0; }
  .site-feature__media { margin-bottom: 30px; }
  .phone { width: 28%; right: -2%; bottom: -12%; }
  .site-feature:nth-of-type(even) .phone { left: auto; right: -2%; }
  .books-info { display: block; }
  .campaign { display: block; }
  .campaign__poster { position: static; margin-bottom: 40px; }
  .campaign__grid { gap: 16px; }
  .identity, .identity__mockups { display: flex; flex-direction: column; }
  .identity__text { margin-top: 32px; }
  .identity__mockups .tile { aspect-ratio: 4 / 3; }
  .swatches, .type-specimens { grid-template-columns: 1fr; }
  .studio { display: block; }
  .studio__text { margin-top: 32px; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero__caption { flex-direction: column; gap: 4px; }
  .campaign__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-img, .reveal-hero, .split-line > span { opacity: 1; transform: none; clip-path: none; }
}
