/* Studio Lemovices — feuille de style unique */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Couleurs : blanc papier, noir encre */
  --ink: #1C1B19;
  --paper: #F6F3EE;
  --muted: #706b64;
  --line: #e2ddd5;
  --field: #cdc7bd;
  --soft: #ece7df;
  --header-bg: rgba(246, 243, 238, .94);
  --sheet: #F6F3EE;
  --photo-filter: none;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1440px;
  --section: clamp(88px, 14vw, 180px);
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

/* Mode sombre automatique (réglage du téléphone / de l'ordinateur) */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDE6DA;
    --paper: #1E1D1B;
    --muted: #a29b8f;
    --line: #34312d;
    --field: #4a4640;
    --soft: #2a2825;
    --header-bg: rgba(30, 29, 27, .94);
    --photo-filter: brightness(.92);
    color-scheme: dark;
  }
  /* photos légèrement adoucies (pas le logo ni les dessins) */
  .frame img, .fiche-photo img, .mo-item:not(.sketch) img, .about-band img, .lb-figure img:not(.sketch) { filter: var(--photo-filter); }
}
picture { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typographie commune ---------- */
.h-section, .h-family, .hero-title, .fiche-title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1.2;
  margin: 0;
}
.h-section { font-size: clamp(26px, 3.4vw, 44px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); scroll-margin-top: var(--header-h); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .rule { width: 48px; height: 1px; background: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgba(255,255,255,0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.solid { background: var(--header-bg); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .24em; font-size: 14px; font-weight: 500;
  margin-right: auto;
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.solid .brand, body.on-piece .brand { opacity: 1; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a {
  text-decoration: none; font-size: 11px; font-weight: 400; 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: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.lang { font-size: 11px; letter-spacing: .2em; color: var(--muted); padding: 8px 0; white-space: nowrap; }
.lang { display: flex; gap: 6px; align-items: center; }
.lang button { font-size: 11px; letter-spacing: .2em; color: var(--muted); padding: 4px 0; }
.lang button.on { color: var(--ink); font-weight: 500; }
.lang button:hover { color: var(--ink); }
.menu-btn { display: none; width: 32px; height: 32px; position: relative; }
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 1px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn::before { top: 11px; } .menu-btn span { top: 16px; } .menu-btn::after { top: 21px; }
.menu-open .menu-btn::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
  position: relative;
}
.hero-inner { display: grid; justify-items: center; gap: 22px; }
.hero-logo { width: clamp(150px, 22vw, 260px); height: auto; margin-bottom: 10px; }
.hero-title { font-size: clamp(26px, 4.4vw, 56px); letter-spacing: .3em; margin-right: -.3em; font-weight: 500; }
.hero-phrase { margin: 0; }
.hero-lieux { margin: 6px 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; overflow: hidden;
  background: var(--line); transform: translateX(-50%);
}
.hero-scroll::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--ink);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }
.js .hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; }
.js .hero-inner > :nth-child(2) { animation-delay: .15s; }
.js .hero-inner > :nth-child(3) { animation-delay: .3s; }
.js .hero-inner > :nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { max-width: 820px; margin: 0 auto; text-align: center; }
.intro .section-head { justify-items: center; }
.intro-text { font-size: clamp(16px, 1.25vw, 19px); margin: 0 auto; max-width: 680px; }
.intro-origin { margin: 40px auto 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }

/* ---------- Pièces ---------- */
.family { margin-top: clamp(56px, 8vw, 110px); }
.section-head + .family { margin-top: 0; }
.family-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line);
}
.family-head .num { font-family: var(--serif); font-size: 18px; color: var(--muted); }
.h-family { font-size: clamp(20px, 2.2vw, 28px); }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.card a { display: block; text-decoration: none; }
.frame { overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
/* Vignettes des pièces et des étapes : photo entière, jamais coupée,
   posée en bas d'un cadre carré (les noms restent alignés) */
.card .frame { aspect-ratio: 4 / 5; }
.card .frame img { object-fit: cover; }
.step .frame { aspect-ratio: 1 / 1; background: transparent; }
.step .frame img { object-fit: contain; object-position: center bottom; }
.card a:hover .frame img, .card a:focus-visible .frame img,
.mo-item:hover img, .fiche-photo:hover img, .step:hover img { transform: scale(1.045); }
.card-name {
  display: block; margin-top: 14px;
  font-family: var(--serif); font-size: clamp(17px, 1.4vw, 21px); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}

/* Sommaire des familles */
.toc { list-style: none; margin: 0 0 clamp(64px, 9vw, 120px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.toc a { display: block; position: relative; text-decoration: none; color: #fff; }
.toc-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.toc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.toc a:hover .toc-img img { transform: scale(1.045); }
.toc-label {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: rgba(0,0,0,.16); text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.toc-label .num { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 22px); }
.toc-name { font-family: var(--serif); font-size: clamp(17px, 2vw, 28px); letter-spacing: .24em; margin-right: -.24em; text-transform: uppercase; }
.family { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Rangée « À l'atelier » (making-of) de la page d'une pièce ---------- */
.mo-row { margin-top: clamp(28px, 4vw, 48px); }
.mo-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.mo-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: .16em; text-transform: uppercase; }
.mo-head .count { color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.mo-strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 0 10px;
  scrollbar-width: thin; scrollbar-color: var(--field) transparent;
  -webkit-overflow-scrolling: touch;
}
.mo-item { flex: 0 0 auto; scroll-snap-align: start; overflow: hidden; background: var(--soft); }
.mo-item img { height: clamp(150px, 16vw, 220px); width: calc(clamp(150px, 16vw, 220px) * .8); max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
/* dessin 00.jpg : image entière, à sa largeur naturelle */
.mo-item.sketch { background: #fff; }
.mo-item.sketch img { width: auto; object-fit: contain; }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 3vw, 44px) clamp(16px, 2vw, 32px); grid-template-columns: repeat(4, 1fr); }
.step .frame { margin-bottom: 20px; }
.step .num { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--muted); }
.step h3 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: .14em; text-transform: uppercase; }
.step p { margin: 0; }

/* ---------- À propos ---------- */
.about-band { width: 100vw; margin: 0 0 clamp(56px, 8vw, 104px) calc(50% - 50vw); height: clamp(72px, 9vw, 140px); overflow: hidden; background: var(--soft); }
.about-band img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin: 0 auto 1.2em; max-width: 680px; }
.about-text p:first-child { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; font-weight: 400; }

/* ---------- Contact ---------- */
.contact { max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: var(--section); }
.contact .section-head { justify-items: center; }
.form { display: grid; gap: 26px; margin-top: 48px; text-align: left; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--field); border-radius: 0; padding: 10px 0; width: 100%;
  transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  justify-self: center; display: inline-block; text-decoration: none;
  border: 1px solid var(--ink); padding: 16px 44px;
  font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: wait; }
.form-status { min-height: 1.7em; margin: 0; text-align: center; font-size: 14px; }
.thanks { margin-top: 48px; padding: 48px 24px; border: 1px solid var(--line); }
.contact-links { margin-top: 56px; display: grid; gap: 10px; justify-items: center; }
.insta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.insta svg { width: 18px; height: 18px; }
.insta:hover { text-decoration: underline; text-underline-offset: 6px; }
.places { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Fiche pièce ---------- */
.fiche { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); }
.fiche-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.fiche-photos { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.fiche-photo { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.fiche-photo.wide { aspect-ratio: 5 / 4; } /* vue d'ensemble d'un meuble long */
.fiche-photo.free { aspect-ratio: auto; } /* photo pas encore au format : forme d'origine */
.fiche-photo.free img { height: auto; }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fiche-photos .fiche-photo:first-child img { view-transition-name: piece-hero; }
.fiche-info { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; }
.back { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--ink); }
.fiche-title { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: .16em; }
.fiche-sub { margin: -6px 0 0; }
.fiche-mat { margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fiche-text { margin: 0; font-size: clamp(15px, 1.15vw, 18px); }
.fiche-mention { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.fiche-actions .btn { justify-self: start; }
.fiche-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin-top: clamp(64px, 9vw, 120px); padding: 36px 0 var(--section); border-top: 1px solid var(--line);
}
.fiche-nav a { text-decoration: none; }
.fiche-nav .pn { display: grid; gap: 6px; }
.fiche-nav .pn strong { font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; }
.fiche-nav .next { text-align: right; justify-items: end; }
.fiche-nav .pn:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: flex-start; justify-content: space-between; }
.foot details { max-width: 520px; }
.foot summary { cursor: pointer; letter-spacing: .2em; text-transform: uppercase; list-style: none; }
.foot summary::-webkit-details-marker { display: none; }
.foot details p { margin: 10px 0 0; }
.foot a { letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  touch-action: pan-y;
  animation: fade .35s var(--ease);
}
.lb-figure {
  margin: 0; width: 100%; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: clamp(56px, 8vh, 96px) clamp(72px, 10vw, 160px) clamp(28px, 5vh, 56px);
}
.lb-figure img { flex: 0 1 auto; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 90px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-cap {
  display: flex; gap: 18px; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center;
  font-family: var(--serif); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
}
.lb-count { color: var(--muted); }
/* légende d'une photo d'atelier, sous la photo : petite et discrète */
.lb-legend { margin: -8px 0 0; max-width: 40em; text-align: center; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (min-width: 761px) { .lb-legend { font-size: 16px; } } /* ordinateur : un peu plus grande */
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; color: var(--ink); opacity: .7; transition: opacity .2s; }
.lb-btn svg { width: 26px; height: 26px; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: clamp(8px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
body.lb-open .site-header { visibility: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.noscript { padding: 40px var(--gutter); text-align: center; }

/* ---------- Apparitions & transitions ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.view-in { animation: fade .5s var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-group(piece-hero) { animation-duration: .6s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero-inner > * { opacity: 1; transform: none; }
  .frame img, .mo-item img, .fiche-photo img { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fiche-grid { grid-template-columns: minmax(0, 1fr); }
  .fiche-info { position: static; }
  /* Fiche sur téléphone/tablette : titre d'abord, puis photos, puis texte, puis atelier */
  .fiche-grid { display: flex; flex-direction: column; gap: 0; }
  .fiche-photos, .fiche-info { display: contents; }
  .fiche-info > * { order: 3; margin-top: 22px; }
  .fiche-info > .back { order: 1; margin-top: 0; }
  .fiche-info > .eyebrow, .fiche-info > .fiche-title { order: 1; }
  .fiche-info > .fiche-sub { order: 1; margin-top: 16px; }
  .fiche-photo { order: 2; margin-top: clamp(12px, 1.6vw, 24px); }
  .fiche-photo[data-i="0"] { margin-top: 32px; }
  .fiche-info > .fiche-mat { margin-top: 32px; }
  .mo-row { order: 4; min-width: 0; max-width: 100%; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .site-header.solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .menu-btn { display: block; order: 3; }
  .lang { order: 2; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--paper);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .brand { opacity: 1; }
  .nav a { font-family: var(--serif); font-size: 24px; letter-spacing: .22em; }
  .brand span { font-size: 12px; letter-spacing: .2em; }
  .brand img { width: 26px; height: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-name { font-size: 14px; letter-spacing: .1em; margin-top: 10px; }
  .family-head { gap: 12px; }
  .fiche-nav { grid-template-columns: 1fr 1fr; }
  .fiche-nav .mid { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .lb-figure { padding: 64px 20px 76px; }
  .lb-cap { font-size: 12px; gap: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .brand span { display: none; }
}

/* Mode sombre : chaque dessin 00.jpg posé comme une feuille de papier */
@media (prefers-color-scheme: dark) {
  .mo-item.sketch { background: var(--sheet); padding: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.28); }
  .mo-item.sketch img { height: calc(clamp(150px, 16vw, 220px) - 16px); }
  .lb-figure img.sketch { background: var(--sheet); padding: clamp(10px, 2vw, 24px); box-shadow: 0 4px 24px rgba(0,0,0,.35); }
}
