/* ============================================================
   Brocante — inventaire de trouvailles
   Palette et typographie : voir variables ci-dessous.
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f4f4f6;
  --text: #1d1a15;
  --muted: #6b6257;
  --accent: #c4471f;
  --accent-text: #fffdf8;
  --ink: #1d1a15;
  --ink-text: #f3ece0;
  --ink-muted: #b3a898;
  --rule: #3a3329;
  --line: #e3e0da;

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 24px;
  --margin: 40px;
  --max: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120e;
    --surface: #221d17;
    --text: #f3ece0;
    --muted: #b3a898;
    --accent: #e5714a;
    --accent-text: #15120e;
    --ink: #221d17;
    --ink-text: #f3ece0;
    --ink-muted: #b3a898;
    --rule: #4a4136;
    --line: #332c24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Aucun mot ne se casse en colonne de trois lettres : on coupe entre les mots. */
a, summary, button, p, li, h1, h2, h3, span { word-break: normal; overflow-wrap: break-word; }

/* Les pastilles de catégorie et le lien « Voir les autres photos » restent
   d'un seul tenant : ils ne se cassent jamais en colonne de trois lettres. */
.cat-chip,
.card-more > summary {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  hyphens: none;
  text-wrap: nowrap;
  inline-size: max-content;
  max-inline-size: 100%;
}
.card-more > summary { white-space: normal; text-wrap: pretty; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: 40px; line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: 30px; line-height: 1.08; letter-spacing: -0.005em; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-family: var(--display);
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.head-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
  max-width: 100%;
}
.head-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.head-nav a:hover { color: var(--text); }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--ink-muted); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  border-radius: 3px;
  transition: background-color 150ms ease-out;
}
.btn:hover { background: var(--text); color: var(--bg); }

.link-underline {
  font-size: 15px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.link-underline:hover { color: var(--accent); }
.link-underline.small { font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.hero-text { order: 2; }
.hero-media { order: 1; position: relative; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

.hero-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
  transform: rotate(-2deg);
  max-width: calc(100% - 32px);
}

h1 em {
  font-style: italic;
}

/* le trait orange sous le dernier mot, comme un coup de crayon */
.pencil {
  position: relative;
  display: inline-block;
}
.pencil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-lede {
  margin-top: 20px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn { width: 100%; }
.hero-actions .link-underline { justify-content: center; }

.hero-note {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- trouvailles ---------- */
.trouvailles { padding: 8px 0 72px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.section-lede {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
}

/* ---------- recherche par catégorie ---------- */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
}
.cat-filter > * {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: nowrap;
  hyphens: none;
  padding: 13px 18px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.cat-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
/* Catégorie encore vide : visible, mais qui ne s'ouvre pas. */
.cat-chip.is-empty {
  color: var(--muted);
  border-style: dashed;
  cursor: default;
  opacity: 0.75;
}
.cat-chip.is-empty:hover { border-color: var(--line, #d8d2c8); color: var(--muted); }

.cat-empty {
  margin: 0 0 28px;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

.grid-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.card { display: flex; flex-direction: column; min-width: 0; }
.card > * { min-width: 0; max-width: 100%; }

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}
.card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 400ms ease-out;
}
.card-media .ph-b {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.card-media:hover .ph-a,
.card-media:focus-visible .ph-a { opacity: 0; }
.card-media:hover .ph-b,
.card-media:focus-visible .ph-b { opacity: 1; }

.price-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 2px;
  transform: rotate(-2deg);
  letter-spacing: 0.01em;
}

/* pièce vendue : la photo reste, l'étiquette prix laisse place à « Vendue » */
.card.is-sold .card-media img { filter: grayscale(0.55); opacity: 0.85; }
.card.is-sold .card-media:hover .ph-a,
.card.is-sold .card-media:focus-visible .ph-a { opacity: 0.85; }
.card.is-sold .card-media:hover .ph-b,
.card.is-sold .card-media:focus-visible .ph-b { opacity: 0; }
.sold-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--ink);
  color: var(--ink-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 2px;
  transform: rotate(-2deg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.badge-sold {
  color: var(--ink-text);
  background: var(--ink);
  border-color: var(--ink);
}

.card-body { padding-top: 14px; }

.card-num {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
}
.card-num span {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

.card-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.card-name {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 6px;
  text-wrap: pretty;
}
.card-meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.card-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body > * { min-width: 0; max-width: 100%; }
.card-desc { word-break: normal; overflow-wrap: anywhere; }

.card-more {
  margin-top: 10px;
  font-size: 13px;
  width: 100%;
  min-width: min-content;
}
.card-more summary {
  cursor: pointer;
  color: var(--accent);
  min-height: 32px;
  display: block;
  width: auto;
  min-width: min-content;
  max-width: 100%;
  padding: 6px 0;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.card-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.card-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: var(--surface);
}
.thumb-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 3px;
  min-width: 0;
}
.thumb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Photo agrandie par-dessus la page */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 18, 14, 0.92);
}
.lightbox-inner {
  margin: 0;
  max-width: min(880px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
/* Toutes les photos de la galerie s'affichent au même format, quelle que soit
   la forme de l'image d'origine : un cadre fixe, l'image ajustée dedans. */
.lightbox-stage {
  width: min(880px, 100%);
  aspect-ratio: 4 / 3;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0d0a;
  border-radius: 4px;
  overflow: hidden;
}
.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lightbox-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.lightbox-dot {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid #6b6257;
  border-radius: 3px;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.lightbox-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-dot.is-on { border-color: #e5714a; border-width: 2px; }
.lightbox-dot:focus-visible { outline: 2px solid #e5714a; outline-offset: 2px; }
.lightbox-inner figcaption {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: #f3ece0;
  font-size: 14px;
  line-height: 1.5;
}
.lightbox-count { color: #b3a898; white-space: nowrap; }
.lightbox-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.lightbox-nav button,
.lightbox-close {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 3px;
  border: 1px solid #6b6257;
  background: transparent;
  color: #f3ece0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.lightbox-nav button:hover,
.lightbox-close:hover { border-color: #f3ece0; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(21, 18, 14, 0.8);
}
.lightbox button:focus-visible { outline: 2px solid #e5714a; outline-offset: 2px; }

.badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 8px;
}

.grid-foot {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ---------- preuve ---------- */
.preuve {
  background: var(--ink);
  color: var(--ink-text);
  padding: 32px 0;
}
.preuve-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.preuve-item {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.preuve-item:first-child { border-top: 0; padding-top: 0; }
.preuve-item:last-child { padding-bottom: 0; }
/* Le premier bloc n'a plus qu'un grand mot : on le centre sur sa hauteur. */
.preuve-item:first-child { display: flex; align-items: center; }
.preuve-num {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 6px;
}
/* « Passeur d'objets » tient sur une seule ligne, même en colonne étroite */
.preuve-item:first-child .preuve-num {
  font-size: clamp(24px, 6.4vw, 40px);
  white-space: nowrap;
}
.preuve-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- fonctionnement ---------- */
.fonctionnement {
  background: var(--surface);
  padding: 64px 0;
}
.fonc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.fonc-left img {
  margin-top: 24px;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.step-num {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  flex: 0 0 auto;
  min-width: 28px;
}
.steps h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}
.steps p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- commander ---------- */
.commander {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.commander-head { margin-bottom: 28px; }
.commander-head h2 { max-width: 24ch; }
.steps-order { margin-bottom: 24px; }
.commander-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.commander-actions .btn { width: 100%; }
.commander-actions .link-underline { justify-content: center; }
.commander-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

/* ---------- livraison ---------- */
.livraison {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.livraison-head { margin-bottom: 28px; }
.livraison-head h2 { max-width: 26ch; }

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ship-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.ship-item:first-child { border-top: 0; padding-top: 0; }
.ship-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ship-item h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.ship-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.ship-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.livraison-foot {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--accent); }

/* ---------- boutique ---------- */
.boutique-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.boutique-photo { overflow: hidden; }
.boutique-photo img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.boutique-text {
  background: var(--ink);
  color: var(--ink-text);
  padding: 32px 20px;
}
.boutique-text h2 {
  margin-bottom: 24px;
  max-width: 20ch;
}
.boutique-line {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-text);
  margin-bottom: 14px;
}
.boutique-intro {
  max-width: 42ch;
  margin-bottom: 22px;
}
.boutique-text .btn {
  margin-top: 16px;
  width: 100%;
}
.boutique-text .btn:hover { background: var(--ink-text); color: var(--ink); }

/* ---------- contact ---------- */
.contact { padding: 64px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact-left p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 48ch;
}
.contact-note { font-size: 15px; }

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: border-color 150ms ease-out;
}
.contact-block:last-child { border-bottom: 1px solid var(--line); }
.contact-block:hover { border-top-color: var(--accent); }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}
.contact-block:hover .contact-value { color: var(--accent); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--ink-text);
  padding: 32px 0;
}
.foot-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.foot-name {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
}
.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.foot-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-nav a:hover { color: var(--ink-text); }
.foot-bottom {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.foot-legal {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.foot-admin {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.foot-admin a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
  display: inline-block;
}
.foot-admin a:hover,
.foot-admin a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.attribution { font-size: 12px; }
.attribution a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.attribution a:hover { color: var(--ink-text); }

/* ============================================================
   Tablette
   ============================================================ */
@media (min-width: 700px) {
  .wrap { padding: 0 32px; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }

  .hero { padding: 56px 0 88px; }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .hero-actions .btn { width: auto; }

  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .card-media img { aspect-ratio: 4 / 5; }
  .card-name { font-size: 22px; }
  .card-num { font-size: 28px; }
  .price-tag { font-size: 14px; left: 12px; bottom: 12px; }
  .sold-tag { font-size: 14px; left: 12px; bottom: 12px; }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
  .section-head > div { max-width: 60%; }

  .preuve { padding: 48px 0; }
  .preuve-grid { grid-template-columns: repeat(3, 1fr); }
  .preuve-item {
    padding: 0 24px;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .preuve-item:first-child { border-left: 0; padding-left: 0; }
  .preuve-item:first-child .preuve-num { margin-bottom: 0; }
  .preuve-num { font-size: 48px; }
  .preuve-item:first-child .preuve-num { font-size: clamp(22px, 3.4vw, 40px); }

  .fonc-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .steps h3 { font-size: 18px; }

  .commander { padding: 72px 0 80px; }
  .commander-actions { flex-direction: row; align-items: center; gap: 24px; }
  .commander-actions .btn { width: auto; }

  .livraison { padding: 72px 0 80px; }
  .ship-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
  }
  .ship-item { padding: 24px 0; }
  .ship-item:first-child { padding-top: 24px; border-top: 1px solid var(--line); }
  .ship-item h3 { font-size: 24px; }

  .boutique-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .boutique-photo { position: relative; min-height: 420px; overflow: hidden; }
  .boutique-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
  }
  /* la photo reste dans la marge de la page, comme le texte */
  .boutique-photo { margin-left: max(32px, calc((100% - var(--max)) / 2 + 32px)); }
  .boutique-text { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
  .boutique-text .btn { width: auto; align-self: flex-start; }

  .contact-grid { grid-template-columns: 7fr 5fr; gap: 56px; }

  .foot-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .foot-name { font-size: 32px; }
  .foot-nav { flex-direction: row; gap: 24px; }
  .foot-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
  }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 1000px) {
  .wrap { padding: 0 var(--margin); }
  h1 { font-size: 64px; }
  h2 { font-size: 40px; }

  .hero { padding: 72px 0 104px; }
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }
  .hero-text { order: 1; }
  .hero-media { order: 2; }
  .hero-media img { aspect-ratio: 4 / 5; height: auto; border-radius: 4px; }
  .hero-tag { top: 20px; right: 12px; }

  .trouvailles { padding: 16px 0 104px; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .card.offset { transform: translateY(48px); }
  .grid-foot { margin-top: 88px; }
  .trouvailles { overflow: hidden; }

  .preuve { padding: 56px 0; }
  .preuve-num { font-size: 56px; }
  .preuve-item:first-child .preuve-num { font-size: 40px; }
  .preuve-label { font-size: 13px; }

  .fonctionnement { padding: 96px 0; }
  .fonc-grid { gap: 64px; }

  .boutique-photo { margin-left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))); }
  .boutique-text { padding: 64px; }
  .boutique-text h2 { font-size: 40px; }

  .contact { padding: 96px 0; }
  .contact-value { font-size: 28px; }
  .contact-block { padding: 24px 0; }

  .site-foot { padding: 48px 0 32px; }
}

/* ---------- demande d'achat (sous chaque pièce) ---------- */
.demande-open { margin-top: 12px; }
.demande-btn { width: 100%; text-align: center; padding: 12px 16px; font-size: 14px; }
.demande-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.card-sold-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.demande-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.demande-title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.demande-label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.demande-form input,
.demande-form select,
.demande-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.demande-form textarea { resize: vertical; }
.demande-form input:focus-visible,
.demande-form select:focus-visible,
.demande-form textarea:focus-visible,
.demande-btn:focus-visible,
.demande-annuler:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.demande-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.demande-erreur { margin: 10px 0 0; font-size: 13px; color: #b00020; }
.demande-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.demande-actions .btn { padding: 11px 16px; font-size: 14px; }
.demande-annuler {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
  text-decoration: underline;
}
.demande-ok {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
}
.demande-ok p { margin: 0; }

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
  .card-media:hover .ph-a,
  .card-media:focus-visible .ph-a { opacity: 1; }
  .card-media:hover .ph-b,
  .card-media:focus-visible .ph-b { opacity: 0; }
  .btn, .contact-block, .cat-chip { transition: none; }
}
