/* ============================================================
   La Manufacture Partagée — feuille de style
   Direction : « le patron de couture ». Papier à patron, encre,
   fil de bâti, crans et repères. Turquoise de la marque en accent.
   ============================================================ */

/* ---------- 1. Jetons ---------- */
:root {
  color-scheme: light;

  --paper:        #F6F3EE;
  --paper-2:      #EEE9E0;
  --paper-3:      #E5DFD3;
  --ink:          #16191D;
  --ink-2:        #565D66;
  --ink-3:        #8A9099;
  --line:         #D7D0C3;
  --line-soft:    #E4DFD4;

  --accent:       #0C7488;   /* turquoise de la marque, assombri pour l'AA */
  --accent-soft:  #2FA8C4;   /* turquoise d'origine, en aplat */
  --accent-wash:  #E2F0F3;
  --rouge:        #A32B31;   /* réservé au MOF */

  --on-band:      #F3EFE7;
  --band:         #16191D;
  --band-2:       #1F2429;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body:    'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap:   1220px;
  --gutter: clamp(20px, 5vw, 64px);
  --s1: 8px;  --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px; --s6: 64px;  --s7: 96px;  --s8: 128px;

  --sec-y: clamp(64px, 9vw, 128px);
  --head-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --paper:     #131619;
  --paper-2:   #191D21;
  --paper-3:   #20252A;
  --ink:       #EDE9E1;
  --ink-2:     #A2A9B1;
  --ink-3:     #767D85;
  --line:      #2B3137;
  --line-soft: #23282D;
  --accent:      #52C6E0;
  --accent-soft: #52C6E0;
  --accent-wash: #16303A;
  --rouge:       #E0656A;
  --band:      #0C0E10;
  --band-2:    #151A1E;
  --on-band:   #EDE9E1;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  /* trame de papier à patron */
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; text-decoration: none; font-weight: 500;
}
.skip:focus { transform: none; }

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

.mono {
  font-family: var(--mono);
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
}

/* ---------- 3. Typographie ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .mono {
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 1px 6px;
  letter-spacing: 0.08em;
}

.fineprint { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* ---------- 4. Boutons ---------- */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--btn-fg);
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 8px 15px; font-size: 14px; }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 14px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.linklike:hover { color: var(--accent); border-color: var(--accent); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.icon-btn:hover { border-color: var(--ink); color: var(--accent); }

#theme-toggle .i-moon { display: none; }
html[data-theme='dark'] #theme-toggle .i-sun  { display: none; }
html[data-theme='dark'] #theme-toggle .i-moon { display: block; }

/* ---------- 5. En-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__bar {
  height: var(--head-h);
  max-width: 1560px; margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}

/* Logotype — reprise du symbole de la maison (le fil noué en cœur et l'aiguille),
   redessiné en vectoriel pour rester net et lisible à toutes les tailles. */
.logo {
  display: flex; align-items: center; gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  width: 44px; height: 32px; flex: none;
  color: var(--accent);
  overflow: visible;
}
.logo__words { display: grid; line-height: 1; }
.logo__a {
  font-family: var(--body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.logo__b {
  font-family: var(--display);
  font-size: 16px; font-weight: 400; font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-top: 1px;
}
.logo:hover .logo__mark { color: var(--ink); }

.nav {
  display: flex; gap: clamp(14px, 2vw, 28px);
  margin-inline-start: auto;
  font-size: 14.5px;
}
.nav a {
  text-decoration: none; color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover { color: var(--ink); border-color: var(--accent); }
.nav a.is-current { color: var(--ink); border-color: var(--ink); }

.head-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav + .head-actions { margin-inline-start: 0; }

.progress { height: 2px; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }

.burger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 20px; height: 1.5px; margin: 4px auto;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Menu mobile */
.menu-mobile {
  position: fixed; inset: var(--head-h) 0 0; z-index: 89;
  background: var(--paper);
  padding: var(--s5) var(--gutter) var(--s6);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  font-family: var(--display); font-size: 30px; letter-spacing: -0.02em;
}
.menu-mobile nav a .mono {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.menu-mobile__foot { display: grid; gap: 10px; padding-top: var(--s5); }

/* ---------- 6. Fil de bâti (sommaire latéral) ---------- */
.basting {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: none;
}
.basting__thread {
  position: absolute; left: 3.5px; top: 6px; bottom: 6px; width: 1px;
  background-image: linear-gradient(var(--line) 55%, transparent 0);
  background-size: 1px 9px;
}
.basting__thread i {
  position: absolute; inset: 0 auto auto 0; width: 1px; height: 0;
  background-image: linear-gradient(var(--accent) 55%, transparent 0);
  background-size: 1px 9px;
}
.basting ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.basting a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding-left: 18px;
  text-decoration: none; color: var(--ink-3);
  font-size: 12px; letter-spacing: 0.02em;
  transition: color .2s var(--ease);
}
.basting a::before {
  /* le cran du patron */
  content: ''; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border: 1px solid var(--line);
  background: var(--paper);
  transform: rotate(45deg);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.basting a .mono { font-size: 10px; letter-spacing: 0.1em; }
.basting a span:last-child, .basting a { white-space: nowrap; }
.basting a:hover { color: var(--ink); }
.basting a.is-current { color: var(--ink); }
.basting a.is-current::before { background: var(--accent); border-color: var(--accent); }

@media (min-width: 1400px) { .basting { display: block; } }

/* ---------- 7. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) var(--sec-y);
}

.hero__title {
  font-size: clamp(52px, 11.5vw, 132px);
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
  font-weight: 300;
  margin: 0 0 var(--s4);
}
.hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  position: relative;
}
/* le trait de coupe sous le mot pivot */
.hero__title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.1em;
  height: 2px;
  background-image: linear-gradient(to right, currentColor 62%, transparent 0);
  background-size: 13px 2px;
  opacity: .45;
}

.hero__lead {
  font-size: clamp(17px, 1.35vw, 19.5px);
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 var(--s4);
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s5); }

.facts {
  display: grid; gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 15px; color: var(--ink); }

.hero__figure { margin: 0; position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(1.02);
}
.hero__figure figcaption {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-top: 12px;
  font-size: 13px; color: var(--ink-3);
}
.hero__figure figcaption .mono {
  color: var(--accent);
  border: 1px solid currentColor; padding: 1px 6px; font-size: 11px;
  letter-spacing: 0.08em;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
  }
  .hero__figure img { aspect-ratio: 3 / 4; }
}

/* ---------- 8. Sections ---------- */
.sec { padding-block: var(--sec-y); }
.sec--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.sec-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--tight { margin-bottom: var(--s4); }
.sec-head h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 300;
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 100;
}
.sec-head__lead {
  margin: var(--s3) 0 0;
  font-size: clamp(16.5px, 1.2vw, 18.5px);
  color: var(--ink-2);
}
.sec-head__lead em { font-style: italic; color: var(--ink); }

/* Bande encrée */
.band {
  background: var(--band);
  color: var(--on-band);
  padding-block: var(--sec-y);
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 88px 88px;
}
.band .eyebrow { color: rgba(243,239,231,.5); }
.band .eyebrow .mono { color: var(--accent-soft); }
.sec-head--invert h2 { color: var(--on-band); }
.sec-head--invert .sec-head__lead { color: rgba(243,239,231,.72); }
.sec-head--invert .sec-head__lead em { color: var(--on-band); }

/* ---------- 9. Section 01 · le titre MOF ---------- */
.titre-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .titre-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

.titre-figure { position: relative; margin: 0; }
.titre-figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 1px solid rgba(243,239,231,.14);
}
.zoom-btn {
  position: absolute; left: 0; bottom: 0;
  background: var(--on-band); color: var(--band);
  border: 0; padding: 9px 16px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.zoom-btn:hover { background: var(--accent-soft); color: #06222A; }

.figures { display: grid; gap: 0; margin: 0 0 var(--s5); }
.figures > div {
  padding: var(--s3) 0;
  border-top: 1px solid rgba(243,239,231,.16);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.figures > div:last-child { border-bottom: 1px solid rgba(243,239,231,.16); }
.figures dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(243,239,231,.5);
}
.figures dd { margin: 0; }
.figures .big {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 300; line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-soft);
}
.figures .big sup { font-size: .4em; vertical-align: super; }
.figures p { margin: 2px 0 0; color: rgba(243,239,231,.72); font-size: 15px; }

@media (min-width: 640px) {
  .figures > div {
    grid-template-columns: 190px 1fr;
    align-items: baseline;
    column-gap: var(--s4);
  }
  .figures dt { grid-column: 1; padding-top: 14px; }
  .figures dd { grid-column: 2; }
  .figures p  { grid-column: 2; }
}

.titre-note {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 300; line-height: 1.34;
  letter-spacing: -0.015em;
  color: var(--on-band);
  border-left: 2px solid var(--accent-soft);
  padding-left: var(--s3);
  margin: 0 0 var(--s5);
  max-width: 46ch;
}

.titre-delegation { display: flex; align-items: center; gap: 18px; }
.titre-delegation img { width: 84px; height: auto; flex: none; }
.titre-delegation p {
  margin: 0; font-size: 13.5px; line-height: 1.45;
  color: rgba(243,239,231,.8);
}
.titre-delegation span { color: rgba(243,239,231,.55); }

/* ---------- 10. Section 02 · pièces / offres ---------- */
.pieces {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .pieces { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pieces { grid-template-columns: repeat(4, 1fr); } }

.piece {
  background: var(--paper);
  padding: var(--s4) var(--s3) var(--s4);
  display: flex; flex-direction: column;
  transition: background-color .25s var(--ease);
}
.piece:hover { background: var(--accent-wash); }
html[data-theme='dark'] .piece:hover { background: var(--paper-3); }

.piece__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: var(--s4);
}
.ico {
  width: 30px; height: 30px;
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.piece__ref {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.piece h3 {
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 400;
  margin-bottom: 10px;
}
.piece > p:not(.piece__price) { margin: 0 0 var(--s3); font-size: 15.5px; color: var(--ink-2); }

.notches { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 8px; }
.notches li {
  position: relative; padding-left: 18px;
  font-size: 14.5px; color: var(--ink-2);
}
.notches li::before {
  /* cran de montage */
  content: ''; position: absolute; left: 0; top: .55em;
  width: 0; height: 0;
  border-left: 5px solid var(--accent);
  border-block: 3.5px solid transparent;
}

.piece__price {
  margin: auto 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 16px; font-weight: 500;
  color: var(--ink);
}

/* ---------- 11. Section 03 · tarifs ---------- */
.rates {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .rates { grid-template-columns: repeat(2, 1fr); } }

.rate-block h3 {
  font-size: 15px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th {
  text-align: left; font-weight: 500; font-size: 16px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: baseline;
}
.rate-table th span {
  display: block; font-weight: 400; font-size: 13.5px;
  color: var(--ink-3); margin-top: 3px;
}
.rate-table td {
  text-align: right; white-space: nowrap;
  font-size: 17px; font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: baseline;
}
.rate-note {
  margin: var(--s3) 0 0;
  font-size: 14.5px; color: var(--ink-2);
  padding: var(--s3);
  background: var(--paper);
  border: 1px solid var(--line);
}
html[data-theme='dark'] .rate-note { background: var(--paper-3); }

.rate-foot {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.rate-foot .fineprint { flex: 1 1 320px; margin: 0; }

/* ---------- 12. Blocs scindés ---------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--rev .split__figure { order: 2; }
}
.split__figure { margin: 0; }
.split__figure img { width: 100%; }
.split__figure figcaption {
  padding-top: 12px; font-size: 13px; color: var(--ink-3);
}
.split__figure--paper img {
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #fff;
}

.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.specs__k { font-size: 15.5px; }
.specs__v {
  margin-left: auto; font-size: 14px; color: var(--accent);
  white-space: nowrap;
}

.quote { margin: 0 0 var(--s4); }
.quote p {
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 300; line-height: 1.36; letter-spacing: -0.015em;
  margin: 0 0 var(--s3);
  text-wrap: pretty;
}
.quote p::before { content: '« '; color: var(--ink-3); }
.quote p::after  { content: ' »'; color: var(--ink-3); }
.quote footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.quote cite { font-style: normal; font-size: 14px; color: var(--ink-3); }

/* ---------- 13. Galerie ---------- */
.gallery {
  display: grid; gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gal { margin: 0; }
.gal img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  cursor: zoom-in;
  transition: filter .3s var(--ease), transform .4s var(--ease);
  background: var(--paper-3);
}
.gal img:hover { filter: saturate(1.08) contrast(1.02); }
.gal figcaption {
  display: flex; gap: 9px; align-items: baseline;
  padding-top: 10px; font-size: 13px; color: var(--ink-3);
}
.gal figcaption .mono { color: var(--accent); font-size: 11px; letter-spacing: .1em; }

@media (min-width: 760px) {
  .gal--tall { grid-row: span 2; }
  .gal--tall img { aspect-ratio: 3 / 4; height: calc(100% - 34px); }
}
@media (min-width: 1080px) {
  .gal--wide { grid-column: span 2; }
  .gal--wide img { aspect-ratio: 16 / 10; }
}

/* ---------- 14. Section 06 · le lieu ---------- */
.place {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 940px) { .place { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.infos { margin: 0 0 var(--s4); border-top: 1px solid var(--line); }
.infos > div {
  display: grid; gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 520px) {
  .infos > div { grid-template-columns: 130px 1fr; column-gap: var(--s3); align-items: baseline; }
}
.infos dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.infos dd { margin: 0; font-size: 16px; }
.infos a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.infos a:hover { color: var(--accent); border-color: var(--accent); }

.place__photo { margin: 0; }
.place__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.place__map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  display: grid;
  grid-template-rows: minmax(440px, 1fr);
}
.place__map iframe {
  display: block; width: 100%; height: 100%;
  border: 0;
  filter: saturate(.88);
}
html[data-theme='dark'] .place__map iframe {
  filter: saturate(.7) brightness(.82) contrast(1.06) invert(.92) hue-rotate(180deg);
}
.place__map-link {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease);
}
.place__map-link:hover { background: var(--accent); color: #fff; }

/* ---------- 15. Pied de page (minimal) ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: var(--s3);
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  gap: 10px var(--s3);
}
.site-foot__legal-line {
  margin: 0;
  font-size: 13px; color: var(--ink-3);
}
.site-foot__legal {
  display: flex; flex-wrap: wrap;
  gap: 8px var(--s3);
}
.site-foot__legal .linklike { font-size: 13px; }

/* ---------- 16. Macaron MOF et feu d'artifice ---------- */
.mof-badge {
  position: fixed; left: 20px; bottom: 20px; z-index: 80;
  width: 62px; height: 62px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .22));
  transition: transform .25s var(--ease);
}
.mof-badge img { width: 100%; height: auto; }
.mof-badge:hover { transform: translateY(-3px) rotate(-4deg); }
.mof-badge:active { transform: translateY(-1px) scale(.95); }
@media (max-width: 700px) {
  .mof-badge { width: 50px; height: 50px; left: 14px; bottom: 14px; }
}

.fireworks {
  position: fixed; inset: 0; z-index: 230;
  display: grid; place-items: center;
  background: rgba(8, 10, 12, .9);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.fireworks[hidden] { display: none; }
.fireworks canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.fireworks__card {
  position: relative;
  text-align: center; color: #F5F1E9;
  padding: clamp(24px, 5vw, 44px) clamp(20px, 5vw, 52px);
  max-width: min(560px, 92vw);
  animation: fwIn .5s var(--ease) both;
}
@keyframes fwIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.fireworks__ribbon {
  position: absolute; left: 50%; bottom: 0;
  width: 108px; height: 4px; margin-left: -54px;
  background: linear-gradient(to right,
    #0055A4 0 33.33%, #FFFFFF 33.33% 66.66%, #EF4135 66.66% 100%);
}
.fireworks__k {
  margin: 0 0 12px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(245, 241, 233, .6);
}
.fireworks__title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(34px, 7.6vw, 68px);
  font-weight: 300; line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
}
.fireworks__sub {
  margin: 0 0 22px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: rgba(245, 241, 233, .78);
}
.fireworks__sub sup { font-size: .68em; }

@media (prefers-reduced-motion: reduce) {
  .fireworks__card { animation: none; }
  .fireworks canvas { display: none; }
}

/* ---------- 17. Panneau d'appel ---------- */
.call {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.call[hidden] { display: none; }
.call__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 12, 14, .72);
  backdrop-filter: blur(6px);
}

.call__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px);
  text-align: center;
  display: grid; justify-items: center;
  animation: callIn .28s var(--ease);
}
@keyframes callIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .call__panel { animation: none; } }

.call__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer;
}
.call__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.call__close:hover { border-color: var(--ink); color: var(--accent); }

.call__mark { width: 82px; height: 59px; color: var(--accent); margin-bottom: var(--s3); overflow: visible; }

.call__eyebrow {
  margin: 0 0 var(--s2);
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}

.call__number {
  display: block;
  font-family: var(--mono);
  font-size: clamp(30px, 7.2vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0 2px;
  border-bottom: 2px solid var(--accent);
  transition: color .2s var(--ease);
}
.call__number:hover { color: var(--accent); }

.call__hint {
  margin: var(--s3) 0 var(--s4);
  max-width: 40ch;
  font-size: 15px; color: var(--ink-2);
}

.call__actions {
  display: grid; gap: 10px; width: 100%;
  max-width: 470px;
}
.call__actions .btn { padding-inline: 16px; white-space: nowrap; }
@media (min-width: 520px) { .call__actions { grid-template-columns: 1fr 1fr; } }

.call__alt {
  display: grid; gap: 10px; justify-items: center;
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px dashed var(--line);
  width: 100%;
}
.call__alt a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: break-word;
}
.call__alt a:hover { color: var(--accent); }
.call__alt svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 18. Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 12, 14, .94);
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; }
.lightbox img {
  max-width: 100%; max-height: 82vh;
  width: auto; margin-inline: auto;
  object-fit: contain;
}
.lightbox figcaption {
  text-align: center; color: rgba(243,239,231,.7); font-size: 13.5px;
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(243,239,231,.3);
  color: #F3EFE7; cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lightbox__close:hover { border-color: #F3EFE7; }

/* ---------- 19. Modale documents ---------- */
.modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10, 12, 14, .55); }
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (min-width: 720px) { .modal { place-items: center; } }

.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.modal__head h2 { font-size: 24px; font-weight: 400; }
.modal__body { padding: var(--s4); overflow-y: auto; }
.modal__body h3 {
  font-family: var(--body); font-size: 15px; font-weight: 600;
  letter-spacing: .01em; margin: var(--s4) 0 8px;
}
.modal__body h3:first-child { margin-top: 0; }
.modal__body p, .modal__body ul { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.modal__body p { margin: 0 0 12px; }
.modal__body ul { margin: 0 0 12px; padding-left: 20px; }
.modal__body li { margin-bottom: 8px; }
.modal__body a { color: var(--accent); }
.modal__body code {
  font-family: var(--mono); font-size: 13px;
  background: var(--paper-3); padding: 1px 5px;
}
.doc-date { font-size: 12.5px !important; color: var(--ink-3) !important; font-style: italic; }
.doc-action { margin: var(--s3) 0 !important; }

body.is-locked { overflow: hidden; }

/* ---------- 20. Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 21. Petits écrans ---------- */
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: block; }
  .nav + .head-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .head-actions { gap: 6px; }
  .head-actions .btn--sm span { display: none; }
  .head-actions .btn--sm { width: 44px; padding: 0; }
  .site-head__bar { gap: 12px; }
  .logo { gap: 8px; }
  .logo__mark { width: 36px; height: 26px; }
  .logo__a { font-size: 12px; letter-spacing: 0.1em; }
  .logo__b { font-size: 14px; }
  .gallery { grid-template-columns: 1fr; }
  .rate-foot .btn { width: 100%; }
  .call__number { font-size: clamp(28px, 8.4vw, 40px); }
}
