/* ==========================================================================
   Le Cabounet — feuille de style
   Blanc papier, trait d'encre 1px, EB Garamond, une touche de terre cuite.
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f7f6f3;
  --ink: #141414;
  --ink-2: #3b3833;
  --muted: #77716a;
  --line: #141414;
  --line-soft: #dcd8d0;
  --accent: #a85a32;
  --accent-soft: #f6ece5;
  --ok: #2f5d3a;
  --ok-soft: #e9f0ea;
  --warn: #8a5e0f;
  --warn-soft: #f8f0dd;
  --err: #9b2c1f;
  --err-soft: #f7e6e3;

  --font: 'EB Garamond', Garamond, 'Garamond Premier Pro', 'Times New Roman', serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

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

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}

.lead { font-size: clamp(20px, 2vw, 23px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--muted); }
.nums { font-variant-numeric: lining-nums tabular-nums; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip-link:focus { top: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Bandeaux ---------- */
.offer-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25em 0.6em;
  padding: 9px var(--gutter);
  background: var(--ink); color: var(--paper);
  font-size: 15px; letter-spacing: 0.04em; text-align: center; text-decoration: none;
}
.offer-strip:hover { color: var(--paper); }
.offer-strip:hover > span:last-child { transform: translateX(3px); }
.offer-strip > span:last-child { transition: transform .2s; }
.offer-strip strong { font-weight: 500; }
.offer-strip__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(168, 90, 50, .6); animation: pulse 2.4s infinite;
}
.offer-strip__sep { opacity: .5; }
.offer-strip--muted { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.offer-strip--muted:hover { color: var(--accent); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 120, 80, .7); }
  70% { box-shadow: 0 0 0 8px rgba(198, 120, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 120, 80, 0); }
}
@media (prefers-reduced-motion: reduce) { .offer-strip__dot { animation: none; } html { scroll-behavior: auto; } }

.demo-banner {
  padding: 8px var(--gutter); text-align: center; font-size: 14px;
  background: var(--warn-soft); color: var(--warn); border-bottom: 1px dashed var(--warn);
}

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand__name { font-size: 30px; letter-spacing: 0.01em; }
.brand__tagline { margin-top: 5px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.site-nav a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav .site-nav__cta { border: 1px solid var(--ink); padding: 9px 16px; }
.site-nav .site-nav__cta:hover { background: var(--ink); color: var(--paper); }
[data-page="portfolio"] [data-nav="portfolio"],
[data-page="contact"] [data-nav="contact"] { border-bottom-color: var(--ink); }
[data-page="precommande"] [data-nav="precommande"] { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none; border: 1px solid var(--ink); background: none; padding: 8px 14px; cursor: pointer;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  body { font-size: 18px; }
  .brand__name { font-size: 25px; }
  .brand__tagline { font-size: 10.5px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px var(--gutter); border-bottom: 1px solid var(--line-soft); }
  .site-nav .site-nav__cta { border: 0; border-bottom: 1px solid var(--line-soft); padding: 16px var(--gutter); }
}

/* ---------- Sections ---------- */
.section { border-bottom: 1px solid var(--line); }
.section__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px);
}
.section__index { display: flex; gap: 18px; align-items: baseline; margin-bottom: 18px; }
.section__index .num { font-size: 15px; font-variant-numeric: lining-nums; }
.section__title { font-size: clamp(36px, 4.6vw, 60px); }
.section__body { padding-bottom: clamp(48px, 7vw, 96px); }

/* ---------- Héros ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.hero__text {
  padding: clamp(40px, 7vw, 104px) clamp(0px, 4vw, 56px) clamp(40px, 6vw, 88px) 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title { font-size: clamp(46px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.02em; margin: 18px 0 26px; }
.hero__title em { color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.hero__figure { border-left: 1px solid var(--line); padding: clamp(24px, 4vw, 56px) 0 clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.hero__figure svg { width: 100%; height: auto; color: var(--ink); }
.hero__photo { width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.hero__figure .figcaption { width: 100%; max-width: 560px; margin-inline: auto; }
.figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); font-style: italic; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 22px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-weight: 400; font-size: 21px; }
.facts span { font-size: 16px; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { padding-right: 0; }
  .hero__figure { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .facts > div:first-child { border-top: 0; }
}

/* ---------- Atelier / savoir-faire ---------- */
.atelier { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); }
.atelier__quote { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; font-style: italic; }
.atelier__quote::before { content: '« '; color: var(--accent); }
.atelier__quote::after { content: ' »'; color: var(--accent); }
.atelier__drawing { margin: 32px 0 0; border-top: 1px solid var(--line-soft); padding-top: 24px; }
.atelier__drawing img { width: 100%; max-width: 420px; height: auto; mix-blend-mode: multiply; }
@media (max-width: 860px) { .atelier { grid-template-columns: 1fr; } }

/* ---------- Avant / après ---------- */
.ba-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.ba-grid li { background: var(--paper); display: flex; flex-direction: column; }
.ba-grid img { width: 100%; height: auto; aspect-ratio: 800 / 1131; object-fit: cover; }
.ba-grid span { padding: 10px 14px 12px; border-top: 1px solid var(--line-soft); font-size: 16px; font-style: italic; color: var(--ink-2); }
@media (max-width: 860px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }

.crafts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.craft { padding: 28px clamp(16px, 2.4vw, 32px) 8px; border-left: 1px solid var(--line); }
.craft:first-child { border-left: 0; padding-left: 0; }
.craft:last-child { padding-right: 0; }
.craft__art { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-soft); margin-bottom: 20px; background: var(--paper); }
.craft__art img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.craft h3 { font-size: 27px; margin-bottom: 8px; }
.craft p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 860px) {
  .crafts { grid-template-columns: 1fr; }
  .craft { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line-soft); }
  .craft:first-child { border-top: 0; }
}

/* ---------- Portfolio ---------- */
.pf-grid {
  list-style: none; margin: 0; padding: 1px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; grid-auto-flow: dense;
  background: var(--paper);
}
.pf-grid__item { background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.pf-grid__item--wide { grid-column: span 2; }
.pf-grid__item--wide .pf-item { aspect-ratio: 3 / 2; }
.pf-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper);
  aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in;
}
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.pf-item:hover img { transform: scale(1.025); }
.pf-item:focus-visible { outline-offset: -4px; }
.pf-item__badge {
  position: absolute; top: 10px; right: 10px; padding: 2px 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--ink);
}
.pf-empty { border: 1px solid var(--line); padding: clamp(40px, 7vw, 80px) 24px; text-align: center; }
.pf-empty p { font-size: 22px; font-style: italic; }
.pf-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; }
@media (max-width: 520px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  border: 1px solid var(--ink); padding: 0; background: var(--paper); color: var(--ink);
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
}
.lightbox::backdrop { background: rgba(255, 255, 255, .92); }
.lightbox__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); max-height: calc(100vh - 34px); }
.lightbox__media { background: var(--paper-2); display: grid; place-items: center; min-height: 0; border-right: 1px solid var(--line); }
.lightbox__media img { max-height: calc(100vh - 34px); width: 100%; object-fit: contain; }
.lightbox__side { display: flex; flex-direction: column; padding: 24px; overflow: auto; }
.lightbox__caption { white-space: pre-line; font-size: 18px; flex: 1; }
.lightbox__nav { display: flex; gap: 8px; margin-top: 18px; }
.lightbox__nav .btn { flex: 1; min-height: 42px; padding: 8px 12px; }
.lightbox__close { align-self: flex-end; margin-bottom: 14px; background: none; border: 1px solid var(--ink); width: 40px; height: 40px; cursor: pointer; font-size: 22px; line-height: 1; }
.lightbox__close:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .lightbox__inner { grid-template-columns: 1fr; overflow: auto; }
  .lightbox__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .lightbox__media img { max-height: 62vh; }
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 28px clamp(16px, 2.4vw, 32px) 0; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step__num { font-size: 56px; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.step h3 { font-size: 26px; margin: 18px 0 8px; }
.step p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-bottom: 8px; }
  .step:first-child { border-top: 0; }
}

/* ---------- Encart offre ---------- */
.offer-box {
  display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--ink);
  outline: 1px solid var(--ink); outline-offset: 6px; margin: 6px;
}
.offer-box__text { padding: clamp(28px, 4vw, 52px); border-right: 1px solid var(--ink); }
.offer-box__text h2 { font-size: clamp(38px, 4.6vw, 62px); margin: 14px 0 18px; }
.offer-box__aside { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.price { font-size: clamp(56px, 6vw, 84px); line-height: 1; font-variant-numeric: lining-nums; }
.price small { font-size: 18px; color: var(--muted); margin-left: 6px; }
@media (max-width: 860px) {
  .offer-box { grid-template-columns: 1fr; }
  .offer-box__text { border-right: 0; border-bottom: 1px solid var(--ink); }
}

.slots { display: flex; flex-wrap: wrap; gap: 5px; }
.slot { width: 15px; height: 15px; border: 1px solid var(--ink); }
.slot.is-taken { background: var(--ink); }
.slots-label { font-size: 17px; }
.slots-label strong { font-weight: 500; color: var(--accent); }

.countdown { display: flex; gap: 0; border: 1px solid var(--line-soft); width: fit-content; }
.countdown > span { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-left: 1px solid var(--line-soft); min-width: 64px; }
.countdown > span:first-child { border-left: 0; }
.countdown b { font-weight: 400; font-size: 28px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.countdown small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line-soft); font-size: 17px; }
.checklist li:last-child { border-bottom: 1px solid var(--line-soft); }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font-size: 23px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 760px; padding-bottom: 12px; }

/* ---------- Pages intérieures ---------- */
.page-head { border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); margin-top: 16px; }
.page-head .lead { max-width: 720px; margin-top: 18px; }

/* ---------- Précommande ---------- */
.preorder { display: grid; grid-template-columns: minmax(300px, 4fr) 7fr; align-items: start; }
.preorder__aside {
  position: sticky; top: calc(var(--header-h) + 16px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 40px) 40px 0; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.preorder__aside h2 { font-size: 34px; }
.preorder__figure { margin: 0; max-width: 300px; }
.preorder__figure img { width: 100%; height: auto; }
@media (max-width: 920px) { .preorder__figure { display: none; } }
.preorder__main { padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px); min-width: 0; }
@media (max-width: 920px) {
  .preorder { grid-template-columns: 1fr; }
  .preorder__aside { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .preorder__main { padding-left: 0; }
}

.notice { border: 1px solid var(--ink); padding: 16px 20px; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.notice p { margin: 0; flex: 1 1 280px; }
.notice--closed { border-color: var(--accent); background: var(--accent-soft); }

.form-step { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.form-step legend { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0 0 12px; margin-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 28px; }
.form-step legend .num { font-size: 15px; letter-spacing: .14em; color: var(--accent); font-variant-numeric: lining-nums; }
.form-step legend .hint { margin-left: auto; font-size: 15px; color: var(--muted); font-style: italic; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 18px 20px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field > span i { font-style: normal; color: var(--muted); letter-spacing: .06em; text-transform: none; font-size: 14px; font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 19px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 0;
  padding: 11px 14px; min-height: 50px; transition: border-color .15s;
  font-variant-numeric: lining-nums;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-soft); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: 12px 10px; text-align: center; border-left: 1px solid var(--line-soft); font-size: 17px; cursor: pointer; }
.choice:first-child span { border-left: 0; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: -4px; }
@media (max-width: 640px) {
  .choices { grid-template-columns: 1fr 1fr; }
  .choice:nth-child(3) span { border-left: 0; }
  .choice:nth-child(n+3) span { border-top: 1px solid var(--line-soft); }
}

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 210px; padding: 28px 20px; text-align: center;
  border: 1px dashed var(--ink); background: var(--paper); cursor: pointer; transition: background-color .2s;
}
.dropzone:hover, .dropzone.is-over { background: var(--paper-2); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__title { font-size: 23px; }
.dropzone__hint { font-size: 15px; color: var(--muted); }
.dropzone svg { width: 64px; height: auto; color: var(--ink); margin-bottom: 6px; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; list-style: none; padding: 0; }
.thumbs:empty { display: none; }
.thumb { position: relative; border: 1px solid var(--line); aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__name { position: absolute; inset: auto 0 0 0; padding: 4px 6px; font-size: 12px; background: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb__remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; font-size: 18px; line-height: 1; }
.thumb__remove:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .thumbs { grid-template-columns: repeat(2, 1fr); } }

.photo-tips { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--muted); }
.photo-tips li::before { content: '— '; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ink); flex: none; }

.pay-summary { border: 1px solid var(--ink); margin-top: 8px; }
.pay-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.pay-summary__row:last-of-type { border-bottom: 1px solid var(--ink); }
.pay-summary__row strong { font-weight: 400; font-size: 30px; font-variant-numeric: lining-nums; }
.pay-summary__note { font-size: 16px; color: var(--muted); padding: 12px 20px 0; margin: 0; }
.pay-summary .btn { border: 0; min-height: 62px; font-size: 15px; }
.pay-summary .form-error { margin: 12px 20px; }
.pay-summary__secure { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-soft); }

.progress { height: 3px; background: var(--line-soft); margin-top: 0; overflow: hidden; }
.progress[hidden] { display: none; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.form-error { border: 1px solid var(--err); background: var(--err-soft); color: var(--err); padding: 12px 16px; margin: 0 0 18px; }
.form-error:empty { display: none; }
.form-success { border: 1px solid var(--ok); background: var(--ok-soft); color: var(--ok); padding: 16px 20px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Merci ---------- */
.thanks { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 8vw, 110px); text-align: center; }
.thanks svg { width: 180px; margin: 0 auto 28px; color: var(--ink); }
.thanks h1 { font-size: clamp(44px, 6vw, 76px); margin: 14px 0 22px; }
.thanks__box { border: 1px solid var(--ink); text-align: left; margin: 32px 0; }
.thanks__box > div { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.thanks__box > div:last-child { border-bottom: 0; }
.thanks .state { display: none; }
.is-pending .state--pending, .is-ok .state--ok, .is-failed .state--failed { display: block; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; }
.contact__aside { padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px) 48px 0; border-right: 1px solid var(--line); }
.contact__main { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px); min-width: 0; }
.contact__block { margin-bottom: 36px; }
.contact__block .big { font-size: clamp(22px, 2.4vw, 28px); word-break: break-word; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact__aside { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .contact__main { padding-left: 0; }
}

.social-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.social-list li { border-bottom: 1px solid var(--line-soft); }
.social-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 12px 0; text-decoration: none; }
.social-list__label { font-size: 20px; }
.social-list__handle { color: var(--muted); font-size: 16px; }
.social-list a:hover .social-list__arrow { transform: translate(2px, -2px); }
.social-list__arrow { transition: transform .2s; }

/* ---------- Texte long (conditions) ---------- */
.prose { max-width: 780px; padding-block: clamp(32px, 5vw, 64px); }
.prose h2 { font-size: 34px; margin: 48px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; margin: 26px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.todo { background: var(--warn-soft); color: var(--warn); padding: 0 4px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: -1px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
.site-footer__grid p { font-size: 17px; color: var(--ink-2); margin-top: 14px; }
.site-footer .label { margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: 17px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .social-list { margin-top: 0; border-top: 0; }
.site-footer .social-list a { padding: 4px 0; }
.site-footer .social-list li { border-bottom: 0; }
.site-footer .social-list__label { font-size: 17px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 18px 28px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.not-found h1 { font-size: clamp(48px, 7vw, 90px); margin: 14px 0 20px; }
