:root {
  --bg: #0d0d0d;
  --bg-2: #151515;
  --card: #1a1a1a;
  --line: #2a2a2a;
  --text: #f1ece6;
  --muted: #a39d96;
  --accent: #f5f1ec;
  --accent-2: #d6d0c9;
  --danger: #e5655b;
  --ok: #7cc49a;
  --radius: 14px;
  --font-title: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 13, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

.announcement { background: var(--accent); color: #0d0d0d; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #0d0d0d; font-weight: 600; font-size: 15px;
  font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer; transition: transform .15s, background .15s; text-decoration: none !important;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.nav .btn { color: #0d0d0d; padding: 9px 18px; }

/* ── Hero ── */
.hero {
  position: relative; min-height: min(88vh, 760px);
  display: grid; align-items: center;
  background: #000 url('/static/img/hero.jpg') center right / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.8) 40%, rgba(0,0,0,.25) 100%);
}
.hero .container { position: relative; padding: 80px 0; }
.hero-logo { width: min(420px, 80%); margin-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; color: var(--accent); }
.hero-list { list-style: none; padding: 0; margin: 20px 0 34px; display: grid; gap: 8px; color: #ddd; font-size: 17px; }
.hero-list li::before { content: '—'; color: var(--accent); margin-right: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Sections ── */
section { padding: 90px 0; }
section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker { color: var(--muted); font-family: var(--font-title); text-transform: uppercase; letter-spacing: .25em; font-size: 13px; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); text-transform: uppercase; margin-top: 6px; }
.section-head p { color: var(--muted); }

/* ── Box cards ── */
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.box-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.box-card:hover { transform: translateY(-4px); border-color: #3a3a3a; }
.box-card .photo { aspect-ratio: 4 / 3; background: #111 center / cover no-repeat; position: relative; }
.box-card .photo.empty { display: grid; place-items: center; color: #444; font-size: 54px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #0d0d0d;
}
.box-card .photo .badge { position: absolute; top: 14px; left: 14px; }
.box-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.box-card .title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.box-card h3 { font-size: 26px; text-transform: uppercase; color: var(--accent); margin: 0; }
.box-card .price { font-family: var(--font-title); font-size: 26px; font-weight: 600; white-space: nowrap; }
.box-card .pieces { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.composition { font-size: 15px; color: #d8d2cb; flex: 1; }
.composition ul { list-style: none; padding: 0; margin: 0 0 10px; }
.composition li { padding: 3px 0; border-bottom: 1px dashed #2c2c2c; }
.composition li:last-child { border-bottom: 0; }
.composition h4 { color: var(--accent); text-transform: uppercase; font-size: 14px; letter-spacing: .1em; margin: 12px 0 4px; }
.box-card .actions { margin-top: 18px; }
.box-card .actions .btn { width: 100%; }

/* ── Marchés ── */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.market-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.market-card h3 { text-transform: uppercase; font-size: 22px; color: var(--accent); margin-bottom: 6px; }
.market-card .when { font-weight: 600; }
.market-card .where { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.market-card .notes { font-size: 14px; color: #c9c2ba; margin-top: 10px; }
.next-dates { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.next-dates h3 { text-transform: uppercase; font-size: 18px; letter-spacing: .08em; }
.next-dates ul { list-style: none; padding: 0; margin: 0; }
.next-dates li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.next-dates li:last-child { border-bottom: 0; }
.next-dates .d { font-weight: 600; text-transform: capitalize; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ── Étapes ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step; }
.step { padding: 26px; border-left: 2px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--font-title); color: var(--accent); font-size: 34px; font-weight: 600; display: block; }
.step h3 { text-transform: uppercase; font-size: 20px; }
.step p { color: var(--muted); margin: 0; }
.center { text-align: center; }
.mt { margin-top: 40px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; color: var(--muted); font-size: 15px; }
.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.site-footer h4 { color: var(--text); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
.site-footer p { margin: 4px 0; }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.site-footer .bottom a { color: var(--muted); }

/* ── Formulaires ── */
.page { padding: 60px 0 90px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; }
.lead { color: var(--muted); max-width: 680px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #333; background: #111; color: var(--text);
  font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 18px; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: rgba(229,101,91,.1); border-color: rgba(229,101,91,.4); color: #ffb3ad; }
.alert-success { background: rgba(124,196,154,.1); border-color: rgba(124,196,154,.4); color: #b5e8c9; }
.alert-info { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.25); color: #e8e3dd; }

/* Commande */
.order-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; margin-top: 30px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.panel h2 { font-size: 22px; text-transform: uppercase; color: var(--accent); }
.order-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line .thumb { width: 74px; height: 74px; border-radius: 10px; background: #111 center / cover; }
.order-line .name { font-family: var(--font-title); text-transform: uppercase; font-size: 19px; }
.order-line .meta { color: var(--muted); font-size: 14px; }
.order-line .tag { font-size: 11px; margin-left: 6px; vertical-align: middle; }
.qty { display: flex; align-items: center; border: 1px solid #333; border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; color: var(--text); width: 36px; height: 36px; font-size: 20px; cursor: pointer; }
.qty button:hover { background: #222; }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; padding: 0; height: 36px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary { position: sticky; top: 90px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 14px; font-size: 15px; }
.summary-lines li { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-title); font-size: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.summary .btn { width: 100%; margin-top: 18px; }
.summary .small { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.confirm-box { max-width: 640px; margin: 0 auto; text-align: center; }
.confirm-box .big { font-size: 60px; }
.confirm-box .panel { text-align: left; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto; background: var(--bg); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav-toggle { display: block; }
  .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  section { padding: 64px 0; }
  .hero { background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.92)); }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .box-grid { grid-template-columns: 1fr; }
  .order-line { grid-template-columns: 56px 1fr; }
  .order-line .thumb { width: 56px; height: 56px; }
  .order-line .qty { grid-column: 1 / -1; justify-self: end; }
}

/* ── Légal & allergènes ── */
.allergens { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.allergens strong { color: var(--text); font-weight: 600; }
.allergens-inline { font-size: 12px; }
.allergen-note { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0; }
.cgv-check { align-items: flex-start; font-size: 14px; margin-top: 16px; }
.cgv-check input { margin-top: 2px; flex-shrink: 0; }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; text-transform: uppercase; margin-top: 36px; }
.legal h3 { font-size: 18px; margin-top: 24px; }
.legal p, .legal li { color: #d8d2cb; }
.legal mark { background: rgba(229, 101, 91, .2); color: #ffb3ad; padding: 0 4px; border-radius: 4px; }
