/* Comptoir Moderne : minimalisme chaleureux, produits dessinés en SVG. */
:root {
  --bg: oklch(0.972 0.009 85);
  --bg-soft: oklch(0.945 0.012 80);
  --surface: oklch(0.995 0.004 90);
  --ink: oklch(0.24 0.015 55);
  --ink-soft: oklch(0.42 0.015 55);
  --muted: oklch(0.55 0.015 55);
  --clay: oklch(0.56 0.095 45);
  --clay-deep: oklch(0.46 0.095 42);
  --brass: oklch(0.68 0.105 85);
  --hair: oklch(0.24 0.015 55 / 0.12);
  --ok: oklch(0.55 0.12 150);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(15px, 1rem + 0.1vw, 16.5px);
  line-height: 1.65;
}
::selection { background: var(--clay); color: var(--surface); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: "Fraunces", serif; font-weight: 560; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding: 14px clamp(18px, 4.5vw, 48px);
  background: oklch(0.972 0.009 85 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16px;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-mark { width: 22px; height: 22px; color: var(--clay); }
.site-header nav { display: flex; gap: clamp(14px, 2.4vw, 26px); margin-left: auto; }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color 200ms var(--ease);
}
.site-header nav a:hover { color: var(--ink); }
.cart-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
  font: 500 13.5px "Sora", sans-serif; cursor: pointer;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.cart-button:hover { border-color: var(--clay); transform: translateY(-1px); }
.cart-button svg { width: 17px; height: 17px; }
.cart-count {
  min-width: 21px; height: 21px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clay); color: var(--surface);
  border-radius: 999px; font-size: 11.5px; font-weight: 600;
}
.cart-count.pulse { animation: count-pulse 500ms var(--ease); }
@keyframes count-pulse { 40% { transform: scale(1.45); } }
@media (max-width: 640px) { .site-header nav { display: none; } .site-header { gap: 12px; } .cart-button { margin-left: auto; } }

/* ---- Hero ---- */
.hero { padding: clamp(56px, 10vw, 120px) clamp(18px, 4.5vw, 48px) clamp(40px, 6vw, 72px); max-width: 1160px; margin: 0 auto; }
.kicker {
  font-family: ui-monospace, "SF Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.hero h1 { font-size: clamp(38px, 6.5vw, 72px); max-width: 14ch; }
.hero-sub { max-width: 52ch; color: var(--ink-soft); margin: 22px 0 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--surface);
  font: 600 15px "Sora", sans-serif; text-decoration: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-full { width: 100%; }
.btn .lock { width: 16px; height: 16px; }

/* ---- Collection ---- */
.collection { max-width: 1160px; margin: 0 auto; padding: clamp(30px, 5vw, 56px) clamp(18px, 4.5vw, 48px); }
.section-head { max-width: 560px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2, .maison h2, .visite h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); margin: 12px 0 0; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 14px; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: oklch(0.24 0.015 55 / 0.22); box-shadow: 0 18px 40px oklch(0.24 0.015 55 / 0.09); }
.card figure { margin: 0; aspect-ratio: 1; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.card figure svg { width: 72%; height: 72%; transition: transform 320ms var(--ease); }
.card:hover figure svg { transform: translateY(-4px) rotate(-1.2deg); }
.card h3 { font: 600 15.5px "Sora", sans-serif; margin: 13px 0 2px; letter-spacing: -0.01em; }
.card .matiere { color: var(--muted); font-size: 12.5px; margin: 0; }
.card .ligne { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.card .prix { font-weight: 600; font-size: 15px; }
.badge-stock {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: oklch(0.68 0.105 85 / 0.16); color: oklch(0.5 0.1 80);
}
.badge-stock.out { background: oklch(0.24 0.015 55 / 0.08); color: var(--muted); }
.card .add {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--hair); background: transparent; color: var(--ink);
  font: 600 13px "Sora", sans-serif; cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.card .add:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.card .add:disabled { cursor: not-allowed; color: var(--muted); }
.card .add.added { background: var(--ok); border-color: var(--ok); color: var(--surface); }

/* ---- Maison / Visite ---- */
.maison { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(18px, 4.5vw, 48px); text-align: center; }
.maison p { color: var(--ink-soft); margin: 16px 0 0; }
.visite {
  max-width: 1160px; margin: 0 auto clamp(40px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px) clamp(18px, 4.5vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--hair);
}
@media (max-width: 720px) { .visite { grid-template-columns: 1fr; } }
.visite address { font-style: normal; color: var(--ink-soft); margin-top: 12px; }
.visite a { color: var(--clay-deep); }
.visite-note { align-self: end; color: var(--muted); font-size: 14px; max-width: 34ch; }

/* ---- Panier ---- */
.scrim { position: fixed; inset: 0; z-index: 50; background: oklch(0.2 0.01 55 / 0.35); }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(400px, 100vw); background: var(--surface);
  border-left: 1px solid var(--hair);
  display: flex; flex-direction: column;
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform 320ms var(--ease);
  box-shadow: -24px 0 60px oklch(0.24 0.015 55 / 0.12);
}
.cart-panel.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { font-size: 21px; }
.cart-close {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--hair);
  background: transparent; color: var(--ink); font-size: 19px; cursor: pointer; line-height: 1;
  transition: border-color 200ms var(--ease);
}
.cart-close:hover { border-color: var(--clay); }
.cart-items { list-style: none; margin: 16px 0 0; padding: 0; overflow-y: auto; flex: 1; }
.cart-items li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14px;
}
.cart-items .mini { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.cart-items .mini svg { width: 66%; height: 66%; }
.cart-items .qte { color: var(--muted); font-size: 12.5px; }
.cart-items .ret {
  margin-left: auto; border: 0; background: none; color: var(--muted);
  font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cart-items .ret:hover { color: var(--clay-deep); }
.cart-empty { color: var(--muted); font-size: 14px; margin-top: 20px; }
.cart-foot { border-top: 1px solid var(--hair); padding-top: 14px; }
.cart-total { display: flex; justify-content: space-between; font-size: 15px; margin: 0 0 12px; }
.cart-note { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* ---- Dialog démo ---- */
.demo-dialog {
  border: 1px solid var(--hair); border-radius: 20px; padding: 30px 28px;
  max-width: 380px; width: calc(100vw - 40px); text-align: center;
  background: var(--surface); color: var(--ink);
}
.demo-dialog::backdrop { background: oklch(0.2 0.01 55 / 0.45); }
.demo-dialog .big { width: 34px; height: 34px; color: var(--clay); }
.demo-dialog h2 { font-size: 21px; margin: 10px 0 8px; }
.demo-dialog p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 22px clamp(18px, 4.5vw, 48px) calc(22px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer a { color: var(--clay-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
