/* Boutique — feuille de style. Sobre, mobile d'abord, sans police externe (rapide, aucune requête tierce). */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --ink-2: #3b3934;
  --muted: #6e695f;
  --line: #e2ddd2;
  --soft: #ece8df;
  --danger: #9b2c1f;
  --ok: #2f5d46;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --pad: 20px;
  --max: 1320px;
}
@media (min-width: 900px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(24px, 3.6vw, 32px); }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.todo { background: #fff3c4; color: #5b4a00; padding: 0 4px; border-radius: 2px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  border-radius: var(--radius); text-decoration: none; font-size: 15px; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.link-more { font-size: 14px; color: var(--ink-2); white-space: nowrap; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 239, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; height: 62px; gap: 8px; }
.logo { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.nav { display: none; }
.header-actions { display: flex; gap: 2px; justify-self: end; }
.icon-btn { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 62px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; display: grid; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
.menu-panel a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 22px; }
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto 1fr auto; height: 76px; gap: 40px; }
  .menu { display: none; }
  .logo { font-size: 26px; text-align: left; }
  .nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
  .nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
  .nav a:hover, .nav a[aria-current] { border-color: var(--ink); }
}

/* Accueil */
.hero { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(36px, 8vw, 68px); max-width: 12em; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.hero-cta .btn:first-child { grid-column: 1 / -1; }
@media (min-width: 600px) { .hero-cta { display: flex; flex-wrap: wrap; } }
.hero-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 5 / 4; }
.hero-mosaic .m { overflow: hidden; background: var(--soft); }
.hero-mosaic .m0 { grid-row: span 2; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hero-mosaic .m:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; padding-top: 56px; padding-bottom: 72px; }
}
.assurances { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); padding: 0; margin-bottom: 20px; width: calc(100% - 2 * var(--pad)); max-width: calc(var(--max) - 2 * var(--pad)); }
.assurances div { background: var(--bg); padding: 18px 16px; display: grid; gap: 4px; }
.assurances strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.assurances span { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .assurances { grid-template-columns: repeat(4, 1fr); } .assurances div { padding: 24px; } }
.section { padding-top: 44px; padding-bottom: 12px; }
@media (min-width: 900px) { .section { padding-top: 72px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; color: #fff; font-family: var(--serif); font-size: 20px; background: linear-gradient(transparent, rgba(0,0,0,.55)); display: grid; }
.tile small { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; }
.chips a:hover { border-color: var(--ink); }
.sold-strip .card { opacity: .9; }

/* Grille d'articles */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card-link { display: block; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .9s ease; }
.card-media img.alt { opacity: 0; }
@media (hover: hover) { .card-link:hover img.alt { opacity: 1; } .card-link:hover img { transform: scale(1.02); } }
.card-body { padding-top: 12px; }
.card-brand { margin: 0 0 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--sans); font-size: 14px; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 14px; }
.card-meta span:first-child { color: var(--muted); }
.price { font-weight: 600; }
.is-sold .card-media img { filter: grayscale(.35); opacity: .75; }
.is-sold .price { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--surface); color: var(--ink); }
.badge-sold { background: var(--ink); color: #fff; }
.badge-reserved { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

/* Boutique : en-tête, filtres */
.page-head { padding-top: 28px; padding-bottom: 18px; }
@media (min-width: 900px) { .page-head { padding-top: 48px; padding-bottom: 26px; } }
.page-head h1 { margin-bottom: 6px; }
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 0 14px; min-height: 50px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; min-height: 48px; font-size: 16px; }
.search:focus-within { border-color: var(--ink); }
.filter-panel { border: 1px solid var(--line); background: var(--surface); }
.filter-panel summary { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; }
.filter-panel[open] summary::after { content: "–"; }
.pill { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; text-align: center; line-height: 20px; letter-spacing: 0; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 4px 16px 18px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field select, .field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--radius); font-size: 16px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.price-range div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.filter-fields .btn { grid-column: 1 / -1; }
.js .filter-fields .btn { display: none; }
@media (min-width: 900px) {
  .filters { grid-template-columns: minmax(260px, 360px) 1fr; align-items: start; }
  .filter-fields { grid-template-columns: repeat(4, 1fr); }
  .js .filter-fields .btn { display: inline-flex; grid-column: auto; align-self: end; }
}
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ink); font-size: 13px; text-decoration: none; background: var(--surface); }
.chip-x svg { width: 14px; height: 14px; }
.empty { text-align: center; padding: 60px 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 44px 0 10px; }
.pagination a, .pagination .dots { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid transparent; }
.pagination a[aria-current] { border-color: var(--ink); }
.pagination svg { width: 18px; height: 18px; }

/* Fiche article */
.crumbs { display: none; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (min-width: 900px) { .crumbs { display: flex; } }
.product { display: grid; gap: 22px; padding: 0; }
@media (max-width: 899px) { .product { padding: 0; } .product .buy { padding: 0 var(--pad); } }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 56px; padding-top: 18px; align-items: start; } }
.gallery { position: relative; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 3 / 4; }
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; top: 12px; margin: 0; padding: 4px 10px; background: rgba(255,255,255,.9); font-size: 12px; letter-spacing: .08em; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad) 0; scrollbar-width: none; }
.thumbs button { flex: 0 0 64px; padding: 0; border: 1px solid transparent; background: var(--soft); cursor: pointer; opacity: .65; }
.thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.thumbs img { width: 64px; height: 85px; object-fit: cover; }
@media (min-width: 900px) {
  .gallery { position: sticky; top: 96px; }
  .thumbs { padding: 12px 0 0; flex-wrap: wrap; }
  .thumbs button { flex-basis: 72px; }
  .thumbs img { width: 72px; height: 96px; }
}
.buy-brand { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.buy-brand a { text-decoration: none; color: var(--muted); }
.buy h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.buy-price { font-size: 24px; margin-bottom: 22px; }
.buy-price.is-sold { color: var(--muted); text-decoration: line-through; }
.facts { margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.buy-actions { display: grid; gap: 10px; margin-bottom: 24px; }
.status-note { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; }
.status-note .badge { position: static; }
.in-cart { background: var(--ok); border-color: var(--ok); }
.reassure { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.reassure li { display: flex; gap: 12px; align-items: flex-start; }
.reassure small { color: var(--muted); }
.description { border-top: 1px solid var(--line); padding-top: 22px; }
.description h2 { font-size: 22px; }
.description p { color: var(--ink-2); }
.lightbox { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0f0f0e; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; z-index: 2; width: 52px; height: 52px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .1em; margin: 0; }

/* Panier */
.cart { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 900px) { .cart { grid-template-columns: 1fr 380px; align-items: start; gap: 48px; } }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-item img { width: 84px; height: 112px; object-fit: cover; background: var(--soft); }
.cart-item h3 { font-family: var(--sans); font-size: 15px; margin: 0 0 4px; }
.cart-item h3 a { text-decoration: none; }
.cart-item p { margin: 0; font-size: 13px; color: var(--muted); }
.cart-item .remove { background: none; border: 0; padding: 8px 0; font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--muted); }
.cart-item.unavailable { opacity: .6; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 16px; }
@media (min-width: 900px) { .cart-summary { position: sticky; top: 100px; } }
.cart-summary h2 { font-size: 22px; margin: 0; }
.ship { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ship legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.radio { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.radio:has(input:checked) { border-color: var(--ink); }
.radio input { accent-color: var(--ink); width: 18px; height: 18px; }
.radio small { display: block; color: var(--muted); }
.totals { margin: 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; font-size: 15px; }
.totals dd { margin: 0; }
.totals .total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; font-weight: 600; }
.notice { background: var(--soft); padding: 14px 16px; font-size: 14px; margin: 0; }
.notice-ok { background: #e4efe7; color: #1e4430; }
.notice-error, .error { background: #f7e3df; color: var(--danger); padding: 12px 14px; font-size: 14px; margin: 0; }
.thanks { padding: 48px var(--pad) 40px; }
.order-lines { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-lines .total { font-weight: 600; }

/* Formulaires, pages de texte */
.form { display: grid; gap: 16px; margin-bottom: 32px; }
.form .btn { justify-self: start; }
.contact-product { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 10px; margin-bottom: 20px; font-size: 14px; }
.contact-product img { width: 54px; height: 72px; object-fit: cover; }
.contact-alt { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 40px; }
.prose { padding-bottom: 56px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.notfound { padding-top: 80px; padding-bottom: 80px; }

/* Pied de page */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); padding-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { text-decoration: underline; }
.footer-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.logo-footer { text-align: left; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; padding-bottom: 28px; font-size: 13px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-grid > div:first-child { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Pages de marque / catégorie */
.intro { margin-top: -6px; margin-bottom: 22px; }
.intro .lead { font-size: 16px; max-width: 52em; }
.intro .chips { margin-top: 12px; }

/* Présentation (accueil) */
.presentation-grid { display: grid; gap: 8px 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.presentation-grid h2 { margin: 0; }
.presentation-text p { color: var(--ink-2); max-width: 40em; }
.presentation-text p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .presentation-grid { grid-template-columns: 1fr 1.4fr; padding: 56px 0; } }
