:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #111112;
  --muted: #6b6b70;
  --line: #e3e1dc;
  --accent: #30d17f; /* le vert de l'anneau de charge */
  --radius: 18px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-weight: 800; letter-spacing: .22em; text-decoration: none; font-size: 18px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 8px 14px; border-radius: 999px; font-size: 15px;
}
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center;
}
.lang-picker { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-btn:hover { border-color: var(--muted); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; }
.lang-menu input { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: var(--bg); color: var(--ink); }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang-menu a span { color: var(--muted); font-size: 12px; font-weight: 600; }
.lang-menu a:hover, .lang-menu a:focus { background: var(--bg); outline: none; }
.lang-menu a[aria-selected="true"] { font-weight: 700; }
.lang-none { margin: 6px 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .nav { display: none; } .lang-picker { margin-left: auto; } .lang-picker .lang-menu { position: fixed; top: 72px; left: 16px; right: 16px; width: auto; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 26px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--muted); font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 20px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 1 / 1; }
}

section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.08; margin: 8px 0 14px; }
.section-lead { color: var(--muted); max-width: 54ch; margin: 0 0 40px; }

/* Fiche produit */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #e9e7e2; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(2, 120px); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: relative; }
.thumbs span {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--ink); font-size: 12px; font-weight: 600;
}
.buy { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.buy h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.price { font-size: 24px; font-weight: 700; margin: 10px 0 22px; }
.field-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.swatch-note { font-size: 13px; margin: 0 0 22px; }
.swatch {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  background: var(--c); position: relative; padding: 0; overflow: visible;
}
.swatch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
/* Pastille de la teinte, en bas à droite de la photo */
.swatch::before {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c); border: 2px solid var(--surface);
}
.swatch[aria-checked="true"]::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ink);
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.buy ul { list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.buy li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .buy { position: static; } }
@media (max-width: 420px) { .swatches { gap: 10px; } .swatch { width: 48px; height: 48px; } }

/* Appareils */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.device { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.device img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.device div { padding: 20px 22px 24px; }
.device h3 { margin: 0 0 4px; font-size: 20px; }
.device p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } }

/* Chez vous */
.lifestyle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lifestyle img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .lifestyle { grid-template-columns: 1fr; } }

/* Atouts */
.dark { background: var(--ink); color: #f3f3f1; }
.dark .section-lead, .dark .muted { color: #a3a3a8; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: #2a2a2d; border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink); padding: 30px 26px; }
.feature b { display: block; font-size: 18px; margin-bottom: 6px; }
.feature span { color: #a3a3a8; font-size: 15px; }

/* Fabrication */
.made { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.made-media { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #e9e7e2; }
.made-media img { width: 100%; height: 100%; object-fit: cover; }
.made .section-lead { margin-bottom: 28px; }
.made-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.made-list li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--line); }
.made-list b { font-size: 17px; }
.made-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .made { grid-template-columns: 1fr; gap: 28px; } .made-media { aspect-ratio: 1 / 1; } }

/* Boîte et montage */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 700; color: var(--muted); font-size: 14px; }
.step h3 { margin: 10px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Panier */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--surface); z-index: 50; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 20px; }
.icon-btn { border: 0; background: none; font-size: 26px; line-height: 1; padding: 4px 8px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.cart-line .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.2); margin-right: 6px; }
.cart-line .qty { margin: 6px 0 0; }
.cart-line .qty button { width: 32px; height: 32px; font-size: 16px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.drawer footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zone label { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.zone input { margin-right: 6px; }
.zone label:has(input:checked) { border-color: var(--ink); }
.country {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-size: 15px; background: var(--bg); color: var(--ink);
}
.zone-info { font-size: 13px; margin: 0; }
.notice { font-size: 13px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff6d6; color: #6b5300; }
.totals { display: grid; gap: 4px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 18px; margin-top: 6px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.form-error { color: #c0392b; font-size: 14px; min-height: 1em; margin: 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px;
  transition: all .2s; z-index: 60; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Pages simples (compte, merci, légal) */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.03em; margin: 0 0 16px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
input[type="email"] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; background: var(--bg); margin: 8px 0 14px;
}
.orders { display: grid; gap: 14px; margin-top: 18px; }
.order { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.status { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--bg); font-weight: 600; }
.status.paid { background: #e6f9ef; color: #14804a; }
.status.shipped { background: #e8f0fe; color: #1a56c4; }
.status.failed, .status.cancelled { background: #fdecea; color: #b42318; }
.legal p, .legal li { color: #39393d; }
.todo { background: #fff6d6; padding: 0 4px; border-radius: 4px; }

/* Administration */
.admin .page { padding-top: 32px; }
.admin .page .wrap { max-width: var(--max); }
.admin .site-header .wrap { justify-content: flex-start; }
.admin [data-logout] { margin-left: auto; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.narrow h1 { font-size: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.stat b { font-size: 26px; letter-spacing: -.02em; }
.stat > span { color: var(--muted); font-size: 13px; }
.pack { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; min-height: 32px; align-items: center; }
.pack .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tabs { display: flex; gap: 4px; background: #ebe9e4; padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 9px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.toolbar.actions { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.check-all { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-orders { display: grid; gap: 8px; margin-top: 12px; }
.admin-orders .empty { padding: 24px 0; }
.admin-order { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.admin-order.open { border-color: var(--ink); }
.admin-order .row { display: flex; align-items: center; gap: 12px; padding: 0 0 0 16px; }
.admin-order .row > input { width: 18px; height: 18px; flex: none; }
.returned-check { display: flex; align-items: center; gap: 6px; flex: none; padding-right: 16px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.returned-check input { width: 16px; height: 16px; }
.row-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 110px 1.4fr 1.2fr 90px 120px 110px; gap: 12px; align-items: center; text-align: left; border: 0; background: none; font: inherit; color: inherit; padding: 14px 16px 14px 0; cursor: pointer; }
.row-main .num { font-weight: 700; font-size: 14px; }
.row-main .who { display: grid; overflow: hidden; }
.row-main .who, .row-main .what { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.row-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.row-main .amount { font-weight: 600; text-align: right; }
.row-main .status { justify-self: start; white-space: nowrap; }
.row-main .when { font-size: 13px; text-align: right; }
.status.pending { background: #fff4d6; color: #8a5a00; }
.detail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; padding: 4px 20px 20px 46px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }
.detail p { margin: 6px 0 8px; line-height: 1.55; }
.detail .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.detail input[type="text"] { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 10px; }
.detail-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.status.refunded { background: #f1f1ef; color: #6b6b70; }
.refund-zone { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: -8px; }
.refund-link { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; color: #b5b5b9; cursor: pointer; }
.refund-link:hover { color: var(--muted); text-decoration: underline; }
.refund-done { color: var(--muted); font-size: 13px; margin: 0 auto 0 0 !important; }
.refund-zone.open { justify-content: flex-start; }
.refund-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #f3c7c2; background: #fff8f7; border-radius: 12px; padding: 12px 14px; width: 100%; }
.refund-form label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.refund-form input[type="number"] { width: 96px; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.refund-form .muted { width: 100%; margin: 0 !important; font-size: 12px; }
.btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .row-main { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .row-main .what { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--muted); }
  .row-main .amount { grid-column: 2; grid-row: 1; }
  .row-main .status { grid-column: 2; grid-row: 2; justify-self: end; }
  .row-main .when { grid-column: 2; grid-row: 3; }
  .detail { grid-template-columns: 1fr; padding-left: 20px; gap: 16px; }
  .admin-order .row { flex-wrap: wrap; }
  .admin-order .row .row-main { flex: 1; min-width: 0; }
  .returned-check { flex-basis: 100%; padding: 0 16px 12px 30px; margin-top: -6px; }
}
.admin [data-logout] { white-space: nowrap; }
@media (max-width: 480px) { .admin .site-header .muted { display: none; } }
.stock-panel { margin-bottom: 24px; padding: 0; }
.stats-panel { padding: 56px 0 0; }
.stats-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.stats-panel .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.stats-head h2 { margin: 0; }
.stats-group { margin-top: 28px; }
.stats-group h3 { font-size: 18px; margin: 0 0 4px; }
.stats-group > p.muted { font-size: 13px; margin: 0 0 12px; }
.stats-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .dash { width: 16px; border-top: 2px dashed var(--muted); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--muted); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.dashed { stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(0,0,0,.04); }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.5; padding: 8px 10px; border-radius: 10px; transform: translateX(-50%); white-space: nowrap; z-index: 2; }
.chart-empty { padding: 40px 0; text-align: center; margin: 0; }
.stat .delta { font-size: 12px; font-weight: 600; }
.delta.up { color: #1d9b5b; } .delta.down { color: #c2412d; }
.stat small { color: var(--muted); font-size: 12px; }
.stats.long { margin-bottom: 0; }
.color-table { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-top: 12px; overflow-x: auto; }
.color-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.color-table th { text-align: right; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 0 6px 12px; }
.color-table td { text-align: right; padding: 10px 0 10px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.color-table th:first-child, .color-table td:first-child { text-align: left; padding-left: 0; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e8f7ef; color: #1d7a4a; }
.pill.warn { background: #fff4dd; color: #8a5a00; }
.pill.alert { background: #fde8e4; color: #b03a26; }
.pill.none { background: var(--bg); color: var(--muted); }
.zone-row { display: grid; gap: 6px; padding: 10px 0; font-size: 14px; }
.zone-row + .zone-row { border-top: 1px solid var(--line); }
.zone-row .top { display: flex; justify-content: space-between; gap: 8px; }
.zone-row .bars { display: grid; gap: 3px; }
.zone-row .bars i { display: block; height: 8px; border-radius: 4px; min-width: 2px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right; padding: 4px 0 8px; }
.compare td { text-align: right; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.promo-note { font-size: 13px; margin: 12px 0 0; }
.stat { min-width: 0; }
.group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.group-head p.muted { font-size: 13px; margin: 0 0 12px; }
.promo-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; align-items: end; margin-bottom: 12px; }
.promo-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.promo-form input, .promo-form select { width: 100%; height: 42px; font: inherit; font-size: 15px; font-weight: 400; line-height: 1.2; color: var(--ink); padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--surface); }
.promo-form input:focus, .promo-form select:focus { outline: none; border-color: var(--ink); }
/* Listes déroulantes dessinées par le site : même rendu sur Chrome, Brave, Safari et Windows. */
.promo-form select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111112' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.promo-form select option { color: var(--ink); background: var(--surface); }
.promo-form input[name="code"] { text-transform: uppercase; letter-spacing: .04em; }
.promo-form .inline { display: grid; grid-template-columns: 1fr 88px; gap: 6px; }
.promo-preview-row { grid-column: 1 / -1; }
.promo-preview-row .label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.promo-preview-row .color-table { margin: 0; background: var(--bg); }
.promo-preview, .promo-form .form-error { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.promo-form .form-error:empty { display: none; }
.promo-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.code-tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: .03em; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
@media (max-width: 760px) {
  .stats-split { grid-template-columns: 1fr; }
  .promo-form { grid-template-columns: 1fr 1fr; }
  .stats-panel .stat b { font-size: 20px; }
  .chart .axis { font-size: 18px; }
}
.stock-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.stock-head h2 { margin: 0; font-size: 20px; }
.stock-head .muted { font-size: 13px; }
.stock-product { font-size: 15px; margin: 14px 0 8px; color: var(--muted); font-weight: 600; }
.stock-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stock-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.stock-item.low { border-color: #f0c36d; background: #fffaf0; }
.stock-name { font-weight: 600; display: flex; align-items: center; }
.stock-name .dot, .stock-info .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.stock-qty { display: flex; align-items: center; justify-content: space-between; }
.stock-qty b { font-size: 28px; letter-spacing: -.02em; }
.stock-qty button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; }
.stock-qty button:disabled { opacity: .3; cursor: not-allowed; }
.stock-note { font-size: 13px; color: var(--muted); }
.stock-item.low .stock-note { color: #8a5a00; }
.notify-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
@media (max-width: 900px) { .stock-grid { grid-template-columns: repeat(2, 1fr); } }
/* Disponibilité sur la fiche produit */
.stock-info { font-size: 14px; margin: 10px 0 18px; display: flex; align-items: center; }
.stock-info.in_stock .dot { --c: var(--accent); }
.stock-info.longer .dot { --c: #e0a526; }
.stock-info[hidden] { display: none; }

/* Boutique : grille de produits */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.product-card { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.product-card-media { position: relative; aspect-ratio: 1; background: #ece9e3; }
.product-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.product-card-media .hover { opacity: 0; }
.product-card:hover .product-card-media .hover { opacity: 1; }
.product-card-body { padding: 20px 22px 22px; display: grid; gap: 6px; }
.product-card-body h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.product-card-body p { margin: 0; font-size: 15px; }
.product-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-card-foot .dots { display: flex; gap: 6px; }
.product-card-foot .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.shop-filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shop-filters button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }

.notice-link { margin: 24px 0 0; }

/* Avis clients */
.narrow-page { max-width: 620px; }
.review-form { display: grid; gap: 10px; }
.review-form .field-label { margin-top: 4px; }
.review-form input, .review-form textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; }
.review-form label { margin-top: 8px; }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: 0; padding: 0 2px; font-size: 38px; line-height: 1; color: #d9d6cf; cursor: pointer; transition: transform .1s; }
.star-input button.on { color: #f2b01e; }
.star-input button:hover { transform: scale(1.12); }
.stars { color: #f2b01e; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d9d6cf; }
.reviews-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.reviews-summary b { font-size: 40px; letter-spacing: -.02em; }
.reviews-summary .stars { font-size: 22px; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.review-card p { margin: 0; }
.review-card .who { font-size: 13px; color: var(--muted); }
.reviews-more { margin-top: 16px; }
@media (max-width: 860px) { .review-list { grid-template-columns: 1fr; } }
.rating-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; margin: -6px 0 14px; }
.rating-link:hover { color: var(--ink); }
.reviews-panel { padding: 56px 0 0; }
.reviews-panel h2 { margin: 0 0 4px; }
.admin-reviews { display: grid; gap: 8px; }
.admin-review { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.admin-review p { margin: 0; }
.admin-review .meta { font-size: 13px; color: var(--muted); }
.admin-review .actions { display: flex; gap: 12px; align-items: center; grid-row: span 2; }
.admin-review.pending { border-color: #f0d9a8; background: #fffbf2; }
.visit-lists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.visit-list h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.visit-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.visit-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: relative; padding: 3px 6px; border-radius: 6px; overflow: hidden; }
.visit-list li > i { position: absolute; inset: 0 auto 0 0; background: var(--bg); z-index: 0; }
.visit-list li span { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .visit-lists { grid-template-columns: 1fr 1fr; } }
