:root {
  --bg: #0f1012;
  --panel: #17181b;
  --panel-2: #1f2024;
  --text: #ece8df;
  --muted: #9b968c;
  --line: #2a2b30;
  --gold: #d4a43a;
  --gold-dark: #b8892a;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1.75rem; max-width: 1160px; margin: 0 auto; padding: .9rem 1.25rem; background: rgba(15, 16, 18, .94); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: .9rem; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.brand em { font-style: normal; color: var(--gold); margin-left: .35rem; }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.top nav a:hover { color: var(--text); }
.top-call { padding: .45rem .9rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); text-decoration: none; font-size: .85rem; font-weight: 600; }
.top-call:hover { background: var(--gold); color: var(--bg); }

main { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; padding: 4rem 0 3.5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.intro h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 14ch; }
.intro-text > p:not(.eyebrow) { max-width: 44ch; margin: 1.25rem 0 1.75rem; color: var(--muted); font-size: 1.02rem; }
.intro-link { display: inline-block; padding: .75rem 1.3rem; background: var(--gold); color: var(--bg); text-decoration: none; font-weight: 700; border-radius: 999px; }
.intro-link:hover { background: var(--gold-dark); }
.intro-photo { margin: 0; }
.intro-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }

.catalogue-section { padding: 3rem 0; border-top: 1px solid var(--line); }
section[id], footer[id] { scroll-margin-top: 4.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: 1.9rem; }
#catalogue-status { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.catalogue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.product { background: var(--panel); border: 1px solid #34353b; border-radius: 6px; overflow: hidden; transition: border-color .2s ease; }
.product:hover { border-color: #3a3b41; }
.product-open { all: unset; display: block; width: 100%; cursor: pointer; }
.product-open:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.product-media { display: block; aspect-ratio: 3 / 4; background: var(--panel-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-noimage { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .85rem; }
.product-body { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.15rem; }
.product-kind { margin: 0; color: var(--gold); font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.product-name { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-top: .35rem; }
.product-price { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-stock { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.product-stock.is-low { color: var(--gold); }

.order { padding: 2.75rem 0 3.5rem; border-top: 1px solid var(--line); max-width: 660px; }
.order h2 { font-size: 1.45rem; margin-bottom: .7rem; }
.order p { margin: 0; color: var(--muted); }

.foot { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem 2.5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.foot p { margin: .2rem 0; color: var(--muted); }
.foot strong { letter-spacing: .1em; font-size: .85rem; }
.foot-links { display: grid; gap: .25rem; justify-items: end; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-legal { grid-column: 1 / -1; font-family: var(--mono); font-size: .75rem; }

dialog { width: min(1000px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.sheet { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; }
.sheet-close { position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 2.3rem; height: 2.3rem; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sheet-gallery { background: var(--panel-2); }
.sheet-main { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.sheet-thumbs { display: flex; gap: .4rem; padding: .55rem; overflow-x: auto; }
.sheet-thumbs button { flex: 0 0 58px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; overflow: hidden; }
.sheet-thumbs button[aria-current="true"] { border-color: var(--gold); }
.sheet-thumbs img { width: 54px; height: 72px; object-fit: cover; }
.sheet-info { padding: 2rem; display: flex; flex-direction: column; gap: .85rem; }
.sheet-info h2 { font-size: 1.6rem; }
.sheet-price { margin: 0; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-specs { margin: .4rem 0; border-top: 1px solid var(--line); }
.sheet-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.sheet-specs dt { color: var(--muted); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.sheet-specs dd { margin: 0; font-weight: 600; text-align: right; }
.sheet-contents { padding: .9rem 1rem; background: var(--panel-2); border-radius: 6px; }
.sheet-contents h3 { margin-bottom: .35rem; font-size: .8rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sheet-contents p { margin: 0 0 .4rem; color: var(--text); font-size: .9rem; font-weight: 600; }
.sheet-contents ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .88rem; display: grid; gap: .15rem; }
.sheet-order { margin-top: auto; padding: .85rem 1rem; background: var(--gold); color: var(--bg); text-align: center; text-decoration: none; font-weight: 700; border-radius: 999px; }
.sheet-order:hover { background: var(--gold-dark); }
.sheet-call { text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 780px) {
  .top { gap: 1rem; }
  .top nav { display: none; }
  .top-call { margin-left: auto; }
  .intro { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 0 2.5rem; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .product-body { padding: .8rem .85rem .95rem; }
  .product-name { font-size: .95rem; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-info { padding: 1.25rem; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-items: start; }
}
@media (max-width: 380px) { .catalogue { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Accessibilité et retours d'interaction (règles UI/UX : focus visible, cibles ≥ 24 px, texte ≥ 12 px). */
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: .6rem 1rem; background: var(--gold); color: var(--bg); border-radius: 999px; font-weight: 700; }
.skip:focus { top: 1rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.top nav a { padding: .4rem .1rem; }
.foot a { display: inline-block; padding: .35rem 0; }
.product-open:active, .intro-link:active, .sheet-order:active, .top-call:active { opacity: .85; }
.retry { margin-left: .4rem; padding: .35rem .8rem; border: 1px solid var(--gold); border-radius: 999px; background: none; color: var(--gold); font: inherit; cursor: pointer; }
.product.is-loading .product-media { animation: pulse 1.4s ease-in-out infinite; }
.skeleton-line { display: block; height: .9rem; margin-top: .5rem; border-radius: 3px; background: var(--panel-2); }
.skeleton-line.is-short { width: 45%; }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .product.is-loading .product-media { animation: none; } }