:root {
  --bg: #07090B;
  --surface: #0B0F12;
  --line: #1C252C;
  --line-strong: #2A3740;
  --text: #E8EEF1;
  --text-2: #9FB0BA;
  --text-3: #B6C3CB;
  --muted: #8A9AA5;
  --cyan: #22D3EE;
  --cyan-hover: #67E8F9;
  --on-cyan: #041014;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button { font: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--cyan); color: var(--on-cyan); padding: 10px 16px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typo */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.cyan { color: var(--cyan); }
.muted { color: var(--text-2); }
.dim { color: #6E808B; }
.small { font-size: 13px; }
.eyebrow { font: 400 12px/1.4 var(--mono); letter-spacing: 0.24em; color: var(--cyan); }
.display { font: 400 clamp(46px, 6vw, 88px)/1.02 var(--serif); letter-spacing: -0.01em; }
.display em { color: var(--cyan); }
.h1 { font: 400 clamp(40px, 5vw, 56px)/1.05 var(--serif); }
.h2 { font: 400 clamp(36px, 4.4vw, 52px)/1.06 var(--serif); }
.h2-sm { font: 400 clamp(32px, 3.6vw, 40px)/1.1 var(--serif); }
.h3 { font: 400 30px/1.1 var(--serif); }
.lead { max-width: 460px; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.todo { background: none; color: var(--cyan); font-family: var(--mono); font-size: 0.85em; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-top: 112px; padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.border-top { border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 2px; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--cyan); color: var(--on-cyan); font-weight: 600; }
.btn-primary:hover { background: var(--cyan-hover); color: var(--on-cyan); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.grow { flex: 1 1 220px; }
.link-btn { align-self: flex-start; min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; gap: 2px; color: var(--text); min-height: 44px; justify-content: center; }
.brand:hover { color: var(--text); }
.brand-top { font: 400 11px/1 var(--mono); letter-spacing: 0.32em; color: var(--cyan); }
.brand-bottom { font: 400 28px/1 var(--serif); letter-spacing: 0.18em; }
.main-nav { display: flex; gap: 32px; font-size: 14px; }
.main-nav a, .back { color: var(--text-3); display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.main-nav a:hover, .back:hover { color: var(--text); }
.cart-pill { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; }
.cart-pill:hover { border-color: var(--line-strong); color: var(--text); }

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; }
.hero-media { flex: 1 1 420px; border: 1px solid var(--line); background: var(--surface); }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--text-3); }
.promises li { display: flex; gap: 12px; align-items: center; }
.promises li::before { content: ''; flex: 0 0 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head p { max-width: 360px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 16px; color: var(--text); }
.card:hover { color: var(--text); }
.card-media { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media { border-color: var(--line-strong); }
.card:hover .card-media img { transform: scale(1.03); }
.tag-num { position: absolute; top: 14px; left: 14px; }
.badge { position: absolute; top: 12px; right: 12px; font: 400 10px/1 var(--mono); letter-spacing: 0.16em; padding: 5px 8px; border: 1px solid var(--cyan); color: var(--cyan); background: rgba(7, 9, 11, .6); }
.card-body { display: flex; flex-direction: column; gap: 6px; }
.card-name { font-size: 24px; line-height: 1.15; }
.card-body .small { color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > * { flex: 1 1 420px; }
.split-media { border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#univers .muted { font-size: 16px; line-height: 1.7; }

/* Fiche produit */
.crumbs { padding-top: 24px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.product { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 32px; padding-bottom: 96px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { border: 1px solid var(--line); background: var(--surface); }
.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { padding: 0; min-height: 44px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.thumb.is-active { border-color: var(--cyan); }
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.buy > .muted { line-height: 1.7; }
.price { font-size: 22px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.specs > div { background: var(--bg); padding: 16px; }
.specs dt { font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.specs dd { margin-top: 6px; font-size: 15px; }
.add { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 2px; }
.qty button { width: 48px; height: 52px; background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; }
.qty button:hover { color: var(--cyan); }
.qty output { min-width: 32px; text-align: center; font: 400 15px var(--mono); }
[data-add-status]:empty { display: none; }
[data-add-status] { margin-top: -16px; }
.dash-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-3); }
.dash-list li::before { content: '— '; }
details { border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; font-size: 15px; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
summary:hover { color: var(--cyan-hover); }
details p { margin-top: 4px; line-height: 1.7; }

/* Panier */
.cart { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 112px; }
.cart-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-lines:empty { display: none; }
.line { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.line-media { flex: 0 0 96px; border: 1px solid var(--line); }
.line-media img { width: 96px; height: 128px; object-fit: cover; }
.line-info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.line-name { font-size: 24px; color: var(--text); line-height: 1.2; }
.line-name:hover { color: var(--cyan-hover); }
.line .qty button { width: 44px; height: 44px; font-size: 18px; }
.line-price { min-width: 96px; text-align: right; font-size: 15px; }
.summary { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.totals { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--text-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.total .mono { font-size: 24px; }
.btn-pay { min-height: 56px; font-size: 16px; width: 100%; }
.error { color: #FCA5A5; }
.error:empty { display: none; }
.summary .small { line-height: 1.6; color: var(--muted); }

/* Pages légales */
.legal h2 { font: 400 28px/1.2 var(--serif); margin-top: 24px; }
.legal p { color: var(--text-2); line-height: 1.75; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.footer-brand .serif { font-size: 24px; letter-spacing: 0.18em; }
.footer-brand a { color: var(--muted); font-size: 14px; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.footer-brand a:hover { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.site-footer nav a { color: var(--text-3); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--text); }
.site-footer > .wrap:last-child { padding-bottom: 32px; font-size: 11px; }

/* Mobile */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .brand-bottom { font-size: 24px; }
  .main-nav { order: 3; width: 100%; gap: 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 4px; margin-top: -4px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-text, .hero-media, .split > *, .gallery, .buy { flex-basis: 100%; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-head { margin-bottom: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card { gap: 12px; }
  .card-name { font-size: 20px; }
  .split { gap: 40px; }
  .product { gap: 36px; padding-top: 20px; padding-bottom: 72px; }
  .cart { padding-top: 40px; gap: 40px; }
  .line { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; }
  .line-media { grid-row: span 2; }
  .line-media img { width: 72px; height: 96px; }
  .line .qty { justify-self: start; }
  .line-price { grid-column: 2; text-align: left; }
  .summary { padding: 24px 20px; }
  .actions .btn { flex: 1 1 100%; }
}

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