/* ==========================================================================
   Boucherie Migross — Variante 2 « Éditorial Atelier »
   Papier crème · encre bordeaux · vert sauge · Fraunces + Onest
   ========================================================================== */

:root {
  --paper: #f3ecdf;
  --paper-2: #ebe2d2;
  --paper-3: #e0d4bf;
  --ink: #4a0f1c;
  --ink-2: #7a1e30;
  --ink-deep: #2e0811;
  --text: #2b1418;
  --muted: #6c5753;
  --sage: #8f9f7f;
  --sage-d: #4f5e44;
  --rule: rgba(74, 15, 28, .18);
  --rule-strong: rgba(74, 15, 28, .42);
  --wa: #1f6b45;

  --f-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gut: clamp(16px, 3.4vw, 56px);
  --maxw: 1680px;
  --hdr-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --display-scale: 1;
}
html[lang="ru"] {
  /* Fraunces n'a pas de cyrillique : Cormorant Garamond prend le relais, un poil plus grand */
  --f-display: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --display-scale: 1.08;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.6;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* grain papier */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .06 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink-2); 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 { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.display {
  font-family: var(--f-display);
  font-weight: 340;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144;
  letter-spacing: -.025em;
  line-height: .95;
  color: var(--ink);
}
.display em, .display-text em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--ink-2);
}
html[lang="ru"] .display { font-weight: 500; letter-spacing: -.01em; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-weight: 500; font-size: .92rem; line-height: 1;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--ink));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); --fill: var(--ink-2); }
.btn--line:hover, .btn--line:focus-visible { color: var(--paper); }
.btn--wa { --bg: var(--wa); --fg: #fff; --bd: var(--wa); --fill: #154d31; }
.btn--sm { padding: .78em 1.2em; font-size: .84rem; }
.btn .ico { transition: transform .5s var(--ease-out); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(4px); }

.link-draw { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.link-draw:hover, .link-draw:focus-visible { background-size: 100% 1px; }

/* ---------- Révélations (déclenchées par .is-in) ---------- */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
html.js.motion .line > span {
  transform: translate3d(0, 108%, 0) rotate(3deg);
  transform-origin: 0 100%;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms + var(--d, 0ms));
}
html.js.motion .is-in .line > span, html.js.motion .is-in.line > span { transform: none; }

html.js.motion .fade-up { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out) .25s, transform 1.2s var(--ease-out) .25s; }
html.js.motion .fade-up.is-in { opacity: 1; transform: none; }

.reveal-img { position: relative; overflow: hidden; background: var(--paper-3); }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
html.js.motion .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); }
html.js.motion .reveal-img--side { clip-path: inset(0 100% 0 0); }
html.js.motion .reveal-img img { transform: scale(1.28); transition: transform 2.2s var(--ease-out); }
html.js.motion .reveal-img.is-in { clip-path: inset(0 0 0 0); }
html.js.motion .reveal-img.is-in img { transform: scale(1.02); }

/* ---------- Loader & rideau ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--paper);
  display: none; place-items: center;
}
html.js.motion .loader { display: grid; }
.loader__inner { text-align: center; }
.loader__tag { opacity: .7; margin: 0 0 2vh; }
.loader__word {
  margin: 0; overflow: hidden;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(4.5rem, 17vw, 16rem); line-height: .9; letter-spacing: -.04em;
}
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__count { position: fixed; right: var(--gut); bottom: var(--gut); margin: 0; font-size: .8rem; }

.curtain {
  position: fixed; inset: 0; z-index: 140;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.curtain__label {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 6vw, 5.5rem); margin: 0; letter-spacing: -.02em;
}

/* ---------- Curseur & image flottante ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js.motion .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none; opacity: 0; transition: opacity .3s; }
  html.js.motion .cursor.is-ready { opacity: 1; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid var(--rule-strong);
    display: grid; place-items: center;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .4s, border-color .4s;
  }
  .cursor__label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .3s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ink); }
  .cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ink); border-color: var(--ink); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-light .cursor__dot { background: var(--paper); }
  .cursor.is-light .cursor__ring { border-color: rgba(243, 236, 223, .5); }
}
.float-img {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: clamp(200px, 18vw, 300px); aspect-ratio: 4 / 5;
  margin: calc(clamp(200px, 18vw, 300px) * -.625) 0 0 calc(clamp(200px, 18vw, 300px) * -.5);
  pointer-events: none; display: none;
}
@media (hover: hover) and (pointer: fine) { html.js.motion .float-img { display: block; } }
.float-img__clip { width: 100%; height: 100%; overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease-out); box-shadow: 0 30px 60px -20px rgba(46, 8, 17, .45); }
.float-img.is-on .float-img__clip { clip-path: inset(0 0 0 0); }
.float-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform .9s var(--ease-out); }
.float-img.is-on img { transform: scale(1); }

/* ---------- En-tête ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: var(--hdr-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 var(--gut);
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.hdr.is-scrolled { background: rgba(243, 236, 223, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__logo { display: inline-flex; align-items: baseline; gap: 12px; color: var(--ink); }
.hdr__word { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.9rem; letter-spacing: -.03em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; line-height: 1; }
.hdr__sub { color: var(--sage-d); font-size: .62rem; }
.hdr__nav { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 40px); }
.hdr__nav a { font-size: .9rem; display: inline-flex; gap: 6px; align-items: baseline; position: relative; padding: 6px 0; }
.hdr__nav a .mono { font-size: .6rem; color: var(--sage-d); }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__right { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; }
.lang__btn { padding: 6px 6px; color: var(--muted); position: relative; }
.lang__btn.is-active { color: var(--ink); }
.lang__btn.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.lang__sep { color: var(--rule-strong); }
.hdr__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); place-items: center; }
.burger__lines, .burger__lines::before { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .4s var(--ease-out); }
.burger__lines::before { content: ""; position: absolute; top: 6px; }
.burger__lines { transform: translateY(-3px); }
.burger[aria-expanded="true"] .burger__lines { transform: translateY(0) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(-6px) rotate(-90deg); }

.menu {
  position: fixed; inset: 0; z-index: 75;
  background: var(--paper);
  padding: calc(var(--hdr-h) + 4vh) var(--gut) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); color: var(--ink); line-height: 1.05; letter-spacing: -.02em; }
.menu nav a .mono { font-size: .7rem; color: var(--sage-d); min-width: 2.2em; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }

/* ---------- Mise en page commune ---------- */
section { position: relative; }
.chapter { color: var(--sage-d); margin: 0 0 2.2rem; display: flex; align-items: center; gap: 14px; }
.chapter::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.sec-head { padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto 8vh; }
.sec-head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6vw; align-items: end; }
.sec-title { font-size: calc(clamp(2.8rem, 7vw, 7.6rem) * var(--display-scale)); margin: 0; }
.sec-lead { font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--muted); max-width: 46ch; margin: 0; }

.folio {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
  padding: 10px 0; color: var(--ink);
}

/* ---------- HERO ---------- */
.hero { padding: calc(var(--hdr-h) + 18px) var(--gut) 10vh; max-width: var(--maxw); margin: 0 auto; min-height: 100svh; }
.hero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  grid-template-rows: auto auto; margin-top: 5vh;
}
.hero__title {
  grid-column: 1 / 10; grid-row: 1; position: relative; z-index: 3;
  font-size: calc(clamp(3.3rem, 10.6vw, 13rem) * var(--display-scale));
  margin: 0; line-height: .9; letter-spacing: -.045em;
}
.hero__title .line:nth-child(2) { padding-left: 12%; }
.hero__title .line:nth-child(3) { padding-left: 4%; }
.hero__media { grid-column: 9 / 13; grid-row: 1 / span 2; margin: 0; position: relative; align-self: start; margin-top: 4vh; }
.hero__img { aspect-ratio: 4 / 5; }
.cap { display: block; margin-top: 12px; color: var(--muted); font-size: .64rem; }
.hero__media2 { grid-column: 5 / 8; grid-row: 2; margin: 6vh 0 0; align-self: start; }
.hero__img2 { aspect-ratio: 4 / 3; }
.hero__aside { grid-column: 1 / 5; grid-row: 2; margin-top: 6vh; }
.hero__lead { font-size: clamp(1.02rem, 1.25vw, 1.22rem); line-height: 1.55; margin: 0 0 2rem; max-width: 40ch; }
.hero__lead::first-letter { font-family: var(--f-display); font-size: 3.4em; float: left; line-height: .8; margin: .08em .1em 0 0; color: var(--ink); font-style: italic; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { position: absolute; width: clamp(110px, 10vw, 158px); left: clamp(-80px, -5vw, -40px); bottom: 14%; z-index: 4; overflow: visible; }
html.js.motion .badge { animation: spin 26s linear infinite; }
.badge__bg { fill: var(--paper); stroke: var(--rule-strong); stroke-width: 1; }
.badge__text { font-family: var(--f-mono); font-size: 13.4px; letter-spacing: 2.3px; text-transform: uppercase; fill: var(--ink); }
.badge__mark { font-size: 40px; fill: var(--ink-2); font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: -1.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; margin-top: 8vh; color: var(--ink); }
.hero__scroll-line { width: 64px; height: 1px; background: var(--rule-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); }
html.js.motion .hero__scroll-line::after { animation: slide 2.2s var(--ease-io) infinite; }
@keyframes slide { 50% { transform: none; } 100% { transform: translateX(100%); } }

/* ---------- Manifeste & compteurs ---------- */
.intro { padding: 16vh var(--gut) 14vh; max-width: var(--maxw); margin: 0 auto; }
.intro__text {
  font-family: var(--f-display); font-weight: 330; color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 72;
  font-size: calc(clamp(1.7rem, 3.7vw, 4rem) * var(--display-scale));
  line-height: 1.13; letter-spacing: -.018em; margin: 0; max-width: 30ch; text-indent: 18%;
}
html[lang="ru"] .intro__text { font-weight: 500; }
html.js.motion .intro__text .w { opacity: .14; }
.stats { list-style: none; margin: 14vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.stat { padding: 26px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--rule); padding-left: 24px; }
.stat__num { font-size: clamp(3.6rem, 8vw, 8.4rem); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-feature-settings: "tnum"; font-family: "Fraunces", Georgia, serif; }
.stat__label { color: var(--muted); font-size: .92rem; max-width: 18ch; }

/* ---------- Engagements ---------- */
.engage { padding: 6vh 0 14vh; }
.engage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto; }
.eitem { display: flex; flex-direction: column; gap: 22px; }
.eitem__img { aspect-ratio: 4 / 5; }
.eitem--1 { grid-column: 1 / 6; }
.eitem--2 { grid-column: 8 / 13; margin-top: 28vh; }
.eitem--2 .eitem__img { aspect-ratio: 1; }
.eitem--3 { grid-column: 2 / 7; margin-top: 2vh; }
.eitem--3 .eitem__img { aspect-ratio: 5 / 4; }
.eitem--4 { grid-column: 8 / 12; margin-top: 18vh; }
.eitem__body { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; }
.eitem__num { grid-row: 1 / span 2; font-size: clamp(3rem, 5vw, 5.4rem); font-style: italic; font-weight: 300; color: var(--sage); font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.eitem__title { font-size: calc(clamp(1.7rem, 2.6vw, 2.7rem) * var(--display-scale)); margin: 0 0 .5rem; line-height: 1; }
.eitem__body p { margin: 0; color: var(--muted); max-width: 42ch; }

/* ---------- Texte sur chemin ---------- */
.pathline { padding: 2vh 0 4vh; overflow: hidden; }
.pathline svg { width: 116%; margin-left: -8%; height: auto; display: block; overflow: visible; }
.pathline__guide { fill: none; stroke: var(--sage); stroke-width: 1; stroke-dasharray: 3 9; }
.pathline__text { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 64px; fill: var(--ink); letter-spacing: -1px; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }

/* ---------- Chapitres horizontaux ---------- */
.chapters { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chapters__pin { height: 100vh; height: 100svh; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; }
.chapters__track { display: flex; align-items: stretch; height: calc(100% - var(--hdr-h) - 60px); margin-top: calc(var(--hdr-h) * .6); width: max-content; will-change: transform; }
.cpanel { width: min(82vw, 1240px); flex: none; padding: 0 var(--gut); display: grid; grid-template-columns: 1fr 1.05fr; gap: 4vw; align-items: center; border-right: 1px solid var(--rule); }
.cpanel--intro { width: min(60vw, 820px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: var(--gut); }
.chapters__hint { display: inline-flex; gap: 14px; align-items: center; margin-top: 4rem; color: var(--sage-d); }
.chapters__hint-line { width: 80px; height: 1px; background: currentColor; }
.cpanel__text { display: flex; flex-direction: column; gap: 1.4rem; align-self: center; }
.cpanel__num { font-family: "Fraunces", Georgia, serif; font-size: clamp(5rem, 11vw, 11rem); line-height: .8; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--ink); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.cpanel__name { font-size: calc(clamp(3rem, 6.4vw, 7rem) * var(--display-scale)); margin: 0; font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.cpanel__desc { margin: 0; color: var(--muted); max-width: 40ch; font-size: 1.04rem; }
.cpanel__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cpanel__count { color: var(--sage-d); }
.cpanel__media { height: 100%; max-height: 72vh; aspect-ratio: 4 / 5; justify-self: end; overflow: hidden; position: relative; background: var(--paper-3); }
.cpanel__media img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; }
.cpanel__tag { position: absolute; left: 14px; top: 14px; background: var(--paper); color: var(--ink); padding: 6px 10px; }
.chapters__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 26px; height: 1px; background: var(--rule-strong); }
.chapters__bar-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* Fallback (mobile / mouvement réduit) : défilement horizontal natif */
.chapters.is-native .chapters__pin { height: auto; padding: 12vh 0 10vh; }
.chapters.is-native .chapters__track { overflow-x: auto; width: auto; height: auto; margin: 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
.chapters.is-native .chapters__track::-webkit-scrollbar { display: none; }
.chapters.is-native .cpanel { scroll-snap-align: start; }
.chapters.is-native .chapters__bar { display: none; }

/* ---------- Grande image / citation ---------- */
.bigshot__pin { height: 100vh; height: 100svh; position: relative; overflow: hidden; display: grid; place-items: center; }
.bigshot__frame { position: absolute; inset: 0; overflow: hidden; }
html.js.motion .bigshot__frame { clip-path: inset(16% 24% 16% 24%); }
.bigshot__frame img { width: 100%; height: 100%; object-fit: cover; }
html.js.motion .bigshot__frame img { transform: scale(1.35); }
.bigshot__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(46, 8, 17, .62), rgba(46, 8, 17, .3) 70%), linear-gradient(180deg, rgba(46, 8, 17, .1), rgba(46, 8, 17, .55)); }
.bigshot__quote { position: relative; z-index: 2; margin: 0; padding: 0 var(--gut); text-align: center; color: var(--paper); }
.bigshot__quote p { color: var(--paper); font-size: calc(clamp(2.6rem, 7.4vw, 8rem) * var(--display-scale)); margin: 0 0 2rem; }
.bigshot__quote em { color: #e9c9b8; }
.bigshot__quote footer { opacity: .8; }

/* ---------- Catalogue ---------- */
.catalog { padding: 18vh 0 12vh; }
.catalog__layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 6vw; padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto; }
.catalog__layout > * { min-width: 0; }
.catalog__sticky { position: sticky; top: calc(var(--hdr-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--rule-strong); padding: 8px 0; color: var(--ink); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 1rem; padding: 4px 0; }
.search input::placeholder { color: var(--muted); opacity: .8; }
.search:focus-within { border-color: var(--ink); }
.catalog__index-label { color: var(--sage-d); margin: 10px 0 0; }
.catalog__index { list-style: none; margin: 0; padding: 0; }
.catalog__index a { display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); position: relative; transition: color .3s, padding .5s var(--ease-out); }
.catalog__index a .mono { font-size: .64rem; color: var(--sage-d); }
.catalog__index a .n { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.catalog__index a::before { content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .4s var(--ease-out); }
.catalog__index a.is-active { padding-left: 8px; }
.catalog__index a.is-active::before { transform: scale(1); }
.catalog__index a.is-active .n { font-style: italic; }
.selbox { margin-top: 10px; padding: 18px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.selbox[hidden] { display: none; }
.selbox p { margin: 0; font-size: .9rem; }
.selbox strong { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.8rem; font-weight: 400; }
.selbox .btn { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --fill: var(--sage); align-self: flex-start; }

.cgroup { margin-bottom: 12vh; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.cgroup[hidden] { display: none; }
.cgroup__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 4px; }
.cgroup__num { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.2rem, 3.4vw, 3.6rem); color: transparent; -webkit-text-stroke: 1px var(--ink); font-style: italic; line-height: .9; }
.cgroup__name { font-size: calc(clamp(2.6rem, 5.4vw, 5.8rem) * var(--display-scale)); margin: 0; font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; line-height: .95; }
.cgroup__count { color: var(--sage-d); padding-bottom: .6em; }

.prow { position: relative; border-bottom: 1px solid var(--rule); }
.prow[hidden] { display: none; }
.prow__line {
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto 40px; gap: 18px; align-items: center;
  padding: 20px 6px; position: relative; isolation: isolate;
}
.prow__line::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-2); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease-out); }
.prow:hover .prow__line::before, .prow.is-open .prow__line::before { transform: scaleY(1); }
.prow__num { color: var(--sage-d); font-size: .68rem; }
.prow__main { min-width: 0; }
.prow__toggle { text-align: left; display: block; width: 100%; }
.prow__name { display: block; font-family: var(--f-display); font-size: calc(clamp(1.35rem, 2.1vw, 2.2rem) * var(--display-scale)); line-height: 1.08; color: var(--ink); letter-spacing: -.015em; font-weight: 360; transition: transform .6s var(--ease-out), color .3s; font-variation-settings: "SOFT" 40, "opsz" 72; }
html[lang="ru"] .prow__name { font-weight: 500; }
.prow:hover .prow__name { transform: translateX(10px); font-style: italic; color: var(--ink-2); }
.prow__desc { display: block; color: var(--muted); font-size: .92rem; margin-top: 4px; transition: transform .6s var(--ease-out) .03s; }
.prow:hover .prow__desc { transform: translateX(10px); }
.prow__price { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink); font-size: .6rem; white-space: nowrap; transition: transform .6s var(--ease-out) .06s; }
.prow__price::before { content: ""; width: 18px; height: 1px; background: var(--ink); }
.prow:hover .prow__price { transform: translateX(10px); }
.prow__actions { display: flex; gap: 8px; align-items: center; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); font-size: .8rem; font-weight: 500; white-space: nowrap; transition: background-color .35s, color .35s; }
.pbtn:hover { background: var(--ink); color: var(--paper); }
.pbtn.is-added { background: var(--ink); color: var(--paper); }
.pbtn .ico { width: 1em; height: 1em; }
.pbtn--wa { width: 40px; padding: 0; justify-content: center; border-color: var(--wa); color: var(--wa); }
.pbtn--wa:hover { background: var(--wa); color: #fff; }
.prow__chev { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); transition: transform .5s var(--ease-out), background-color .3s; }
.prow.is-open .prow__chev { transform: rotate(45deg); background: var(--paper); }
.prow__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.prow.is-open .prow__more { grid-template-rows: 1fr; }
.prow__more > div { overflow: hidden; }
.prow__more-inner { display: grid; grid-template-columns: 3.2em 1fr; gap: 18px; padding: 4px 6px 26px; }
.prow__more p { margin: 0 0 16px; max-width: 72ch; color: var(--text); }
.prow__more .note { color: var(--muted); font-size: .85rem; font-style: italic; }
.prow__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.catalog__empty { text-align: center; color: var(--muted); padding: 4vh var(--gut); font-family: var(--f-display); font-size: 1.6rem; font-style: italic; }

/* ---------- Contact ---------- */
.contact { padding: 16vh 0 14vh; background: var(--paper-2); border-top: 1px solid var(--rule); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto; align-items: start; }
.contact__info .sec-title { margin-bottom: 2rem; }
.clist { list-style: none; padding: 0; margin: 6vh 0 5vh; border-top: 1px solid var(--rule-strong); }
.clist li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.clist__k { color: var(--sage-d); }
.clist__v { font-family: var(--f-display); font-size: clamp(1.25rem, 1.9vw, 1.9rem); color: var(--ink); line-height: 1.15; justify-self: start; overflow-wrap: anywhere; }
.map { aspect-ratio: 16 / 10; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.75) contrast(.95); }
.map__link { position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); padding: 8px 12px; }

.qform { background: var(--paper); border: 1px solid var(--rule-strong); padding: clamp(22px, 3.2vw, 48px); display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--hdr-h) + 20px); }
.qform__head h3 { font-size: calc(clamp(2rem, 3vw, 3rem) * var(--display-scale)); margin: 0 0 .6rem; font-style: italic; font-weight: 300; }
.qform__note { margin: 0; color: var(--muted); font-size: .88rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--rule-strong); background: transparent;
  padding: 22px 0 8px; font-size: 1.02rem; outline: none; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 0; top: 22px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease-out), color .3s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field input[type="date"] + label { transform: translateY(-20px) scale(.78); color: var(--sage-d); }
.field input.is-invalid { border-color: #a3152f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: end; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { color: var(--sage-d); margin-bottom: 10px; padding: 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .86rem; transition: background-color .3s, color .3s, border-color .3s; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.qform__label { color: var(--sage-d); margin: 0 0 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 6px 6px 14px; font-size: .86rem; }
.chips button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.chips button:hover { background: var(--ink); color: var(--paper); }
.chips__empty { margin: 0; color: var(--muted); font-size: .88rem; font-style: italic; }
.chips__empty[hidden] { display: none; }
.qform__err { margin: 0; color: #a3152f; font-size: .9rem; }
.qform__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pied de page ---------- */
.ftr { background: var(--ink); color: var(--paper); padding: 14vh var(--gut) 28px; overflow: hidden; }
.ftr .display { color: var(--paper); }
.ftr__top { display: grid; grid-template-columns: 1.3fr 1.7fr; gap: 6vw; max-width: var(--maxw); margin: 0 auto; }
.ftr__tag { font-size: calc(clamp(1.8rem, 3.2vw, 3.2rem) * var(--display-scale)); margin: 0; line-height: 1.05; }
.ftr__tag em { color: #e9c9b8; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ftr__k { color: var(--sage); margin: 0 0 12px; }
.ftr__cols p { margin: 0; line-height: 1.9; }
.ftr__word {
  font-family: "Fraunces", Georgia, serif !important; font-style: italic; font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: 25.5vw; line-height: .8; letter-spacing: -.055em; margin: 10vh 0 3vh; text-align: center; white-space: nowrap;
  overflow: hidden; padding-bottom: .06em;
}
.ftr__word span { display: inline-block; }
html.js.motion .ftr__word span { transform: translateY(100%); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
html.js.motion .ftr__word.is-in span { transform: none; }
.ftr__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid rgba(243, 236, 223, .2); padding-top: 18px; color: rgba(243, 236, 223, .75); max-width: var(--maxw); margin: 0 auto; }
.ftr__bottom a { color: var(--paper); }

/* ---------- Barre mobile & toast ---------- */
.mbar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, calc(100% + 80px)); visibility: hidden;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px; font-size: .9rem;
  box-shadow: 0 14px 40px -12px rgba(46, 8, 17, .5);
  transition: transform .6s var(--ease-out), visibility 0s linear .6s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out), visibility 0s; }
.toast em { font-family: var(--f-display); font-style: italic; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .burger { display: grid; }
  .hdr { grid-template-columns: auto 1fr; }
  .hdr__right { justify-content: flex-end; }
  .cpanel { width: 88vw; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 64px; }
  .hdr__cta { display: none; }
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; margin-top: 4vh; }
  .hero__title { grid-column: 1; grid-row: auto; font-size: calc(clamp(3rem, 15.5vw, 7rem) * var(--display-scale)); }
  .hero__title .line:nth-child(2) { padding-left: 8%; }
  .hero__media { grid-column: 1; grid-row: auto; margin: 5vh 0 0 18%; }
  .hero__media2 { display: none; }
  .hero__aside { grid-column: 1; grid-row: auto; margin-top: 5vh; }
  .badge { left: -16%; width: 112px; }
  .intro__text { text-indent: 10%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .engage__grid { grid-template-columns: 1fr; row-gap: 9vh; }
  .eitem--1, .eitem--2, .eitem--3, .eitem--4 { grid-column: 1; margin-top: 0; }
  .eitem--2, .eitem--4 { margin-left: 14%; }
  .eitem--1, .eitem--3 { margin-right: 10%; }
  .sec-head--split { grid-template-columns: 1fr; gap: 3vh; }
  .pathline__text { font-size: 84px; }
  .cpanel, .cpanel--intro { width: 86vw; grid-template-columns: 1fr; gap: 22px; padding: 0 16px 0 var(--gut); }
  .cpanel__media { order: -1; justify-self: stretch; width: 100%; max-height: none; aspect-ratio: 4 / 3; }
  .cpanel__media img { width: 100%; margin: 0; }
  .cpanel__num { font-size: 4.4rem; }
  .catalog__layout { grid-template-columns: 1fr; gap: 4vh; }
  .catalog__sticky { position: static; }
  .catalog__index { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .catalog__index::-webkit-scrollbar { display: none; }
  .catalog__index a { display: inline-flex; gap: 8px; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
  .catalog__index a .n { font-size: 1rem; }
  .catalog__index a::before { display: none; }
  .catalog__index a.is-active { background: var(--ink); color: var(--paper); padding-left: 14px; }
  .catalog__index a.is-active .n, .catalog__index a.is-active .mono { color: var(--paper); }
  .catalog__index-label, .selbox { display: none !important; }
  .prow__line { grid-template-columns: 2.4em minmax(0, 1fr) 40px; row-gap: 12px; padding: 18px 2px; align-items: start; }
  .prow__num { padding-top: .5em; }
  .prow__actions { grid-column: 2 / 4; grid-row: 2; }
  .prow:hover .prow__price { transform: none; }
  .prow__chev { grid-column: 3; grid-row: 1; }
  .prow:hover .prow__name, .prow:hover .prow__desc { transform: none; }
  .prow__more-inner { grid-template-columns: 1fr; padding-left: 2.4em; }
  .contact__grid { grid-template-columns: 1fr; gap: 8vh; }
  .qform { position: static; }
  .clist li { grid-template-columns: 1fr; gap: 4px; }
  .ftr__top { grid-template-columns: 1fr; gap: 6vh; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .folio span:nth-child(3) { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.5fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    background: var(--paper); border-top: 1px solid var(--rule-strong);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 64px; font-size: .84rem; font-weight: 500; color: var(--ink); white-space: nowrap; min-width: 0; }
  .mbar a + a { border-left: 1px solid var(--rule); }
  .mbar__main { background: var(--ink); color: var(--paper) !important; }
  .mbar__count { background: var(--paper); color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .72rem; padding: 0 6px; }
  .mbar__count[hidden] { display: none; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .field-row { grid-template-columns: 1fr; }
  .qform__actions .btn { width: 100%; justify-content: center; }
  .ftr__cols { grid-template-columns: 1fr; }
  .hdr__sub { display: none; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
