:root {
  --ink: #10211f;
  --ink-soft: #4a5b58;
  --teal: #0f7b6c;
  --teal-dark: #0a5a4f;
  --sand: #f7f3ea;
  --card: #ffffff;
  --line: #e3ddcf;
  --accent: #f0a23b;
  --danger: #b3321f;
  --ok: #1b7f4b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--sand);
}
a { color: var(--teal-dark); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header / footer */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .2px; color: #fff; text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: #d6e4e1; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.site-footer { background: var(--ink); color: #b8c9c6; margin-top: 64px; padding: 36px 0; font-size: 14px; }
.site-footer a { color: #e6f0ee; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.site-footer p { margin: 6px 0; max-width: 560px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--ink) 0%, #14403a 100%); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 14px; max-width: 700px; }
.hero p { color: #cfe0dd; font-size: 18px; max-width: 620px; margin: 0 0 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 99px; font-size: 14px; }

/* Shop */
.shop { margin-top: -40px; display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 800px) { .shop { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px rgba(16,33,31,.07); }
.panel h2 { margin: 0 0 14px; font-size: 20px; }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.denom { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 8px; cursor: pointer; text-align: center; font: inherit; color: inherit; }
.denom strong { display: block; font-size: 22px; }
.denom span { color: var(--ink-soft); font-size: 14px; }
.denom[aria-pressed="true"] { border-color: var(--teal); background: #e9f5f2; }
.giftcard { aspect-ratio: 16 / 10; border-radius: 16px; background: linear-gradient(140deg, #fff 0%, #ece7da 100%); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; position: relative; overflow: hidden; }
.giftcard::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .25; }
.giftcard b { font-size: 46px; position: relative; z-index: 1; }
.giftcard small { position: absolute; left: 16px; top: 14px; font-weight: 700; color: var(--ink-soft); z-index: 1; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
input[type=email], input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 3px solid rgba(15,123,108,.35); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.btn { display: inline-block; width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { background: var(--teal-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { width: auto; padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn.danger { background: var(--danger); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 18px 0 12px; }
.total strong { font-size: 28px; }
.error { color: var(--danger); font-weight: 600; margin: 10px 0 0; min-height: 1.2em; }
.warn { background: #fff4de; border: 1px solid #f0d199; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Sections */
section.block { margin-top: 56px; }
section.block h2 { font-size: 26px; margin: 0 0 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); font-weight: 800; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Pages simples */
.page { padding: 40px 0 0; }
.page h1 { margin-top: 0; font-size: 32px; }
.page .panel { max-width: 640px; }
.doc { max-width: 760px; }
.doc h2 { margin-top: 28px; font-size: 20px; }
.doc p, .doc li { color: var(--ink-soft); }
.status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; background: #eee; }
.status.pending { background: #fff0cc; }
.status.paid { background: #dbeafe; }
.status.delivered { background: #d6f2e1; color: var(--ok); }
.status.review, .status.failed, .status.expired, .status.cancelled, .status.refunded { background: #fde1dc; color: var(--danger); }
.timeline { list-style: none; padding: 0; margin: 18px 0; }
.timeline li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); }
.timeline li::before { content: "○"; position: absolute; left: 0; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { content: "●"; color: var(--teal); }

/* Admin */
.admin { padding: 24px 0 0; }
.admin h1 { margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat small { color: var(--ink-soft); display: block; }
.stat strong { font-size: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.row .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .meta { color: var(--ink-soft); font-size: 14px; word-break: break-word; }
.row .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row textarea { min-height: 70px; }
.empty { color: var(--ink-soft); padding: 24px 0; }

/* Bannière de consentement */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin-inline: auto; background: var(--ink); color: #e6f0ee; border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35); display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: #fff; }
.consent .btns { display: flex; gap: 8px; }
.consent .btn { width: auto; padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.consent .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* Multi-pays, langue, guides */
select { appearance: auto; }
.giftcard .gc-region { position: absolute; right: 16px; top: 14px; font-weight: 700; color: var(--ink-soft); z-index: 1; font-size: 15px; }
.muted { color: var(--ink-soft); font-size: 13px; margin: 0 0 12px; }
.warn.alert { background: #fde8e4; border-color: #f0b4a8; }
.denoms { margin-top: 14px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; overflow: hidden; }
.lang button { background: transparent; color: #d6e4e1; border: 0; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.btn.cta { display: inline-block; width: auto; padding: 14px 24px; margin-top: 18px; }

/* Admin : barre d'outils et formulaires du catalogue */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.toolbar input { flex: 1 1 260px; max-width: 420px; }
.row .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px; }
.row .grid label { margin: 0 0 4px; font-size: 12px; }
.row label.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; font-size: 14px; }
.row label.inline input { width: auto; }
