:root {
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --brand-soft: #e7f5f2;
  --ink: #12302d;
  --muted: #5d7673;
  --line: #e3ece9;
  --bg: #fbfdfc;
  --card: #ffffff;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 48, 45, .05), 0 8px 24px rgba(18, 48, 45, .06);
  --shadow-lg: 0 2px 4px rgba(18, 48, 45, .06), 0 18px 40px rgba(18, 48, 45, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 253, 252, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em;
  text-decoration: none;
}
.logo b { font-weight: 800; color: var(--brand); }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--brand); color: #fff;
}
.logo-mark svg { width: 18px; height: 18px; }

.search {
  flex: 1; max-width: 460px; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700;
  transition: background .15s, transform .15s;
}
.cart-btn:hover { background: var(--brand-dark); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.1); } }
.badge {
  display: grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #fff; color: var(--brand-dark);
  font-size: .78rem; font-weight: 800;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--wa); color: var(--wa-dark); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .3); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.busy { opacity: .7; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, #c9ede6 0%, transparent 60%),
    radial-gradient(600px 300px at -5% 110%, #e8f6f2 0%, transparent 60%),
    var(--bg);
}
.hero-in {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
  padding: 72px 0 64px;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 800;
}
h1 em { font-style: normal; color: var(--brand); }
.lead { margin: 0 0 30px; max-width: 540px; font-size: 1.1rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.steps {
  list-style: none; margin: 0; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.steps li { display: flex; align-items: center; gap: 16px; padding: 16px; }
.steps li + li { border-top: 1px dashed var(--line); }
.steps span {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800;
}
.steps b { display: block; line-height: 1.2; }
.steps small { color: var(--muted); font-size: .88rem; }

/* ---------- Catalogue ---------- */
#produits { padding: 56px 0 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.025em; }
.section-head p { margin: 0; font-size: .92rem; }

.filters { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-select { flex: none; }
.brand-select select {
  height: 42px; padding: 0 38px 0 16px; max-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .92rem;
}
.brand-select select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chips {
  flex: 1; min-width: 0;
  display: flex; gap: 8px; margin: 0; padding: 4px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .92rem; white-space: nowrap;
  transition: all .15s;
}
.chip svg { width: 17px; height: 17px; }
.chip:hover { border-color: var(--brand); }
.chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-visual {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / .82; overflow: hidden;
}
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-visual .glyph {
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 28px;
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(18, 48, 45, .08);
}
.card-visual .glyph svg { width: 40px; height: 40px; }
.tone-0    { background: linear-gradient(135deg, #d9f1ec, #b9e4db); color: #0f766e; }
.tone-1    { background: linear-gradient(135deg, #fdecd9, #f9d9b8); color: #b45309; }
.tone-2    { background: linear-gradient(135deg, #fde2ea, #f9c6d4); color: #be185d; }
.tone-3    { background: linear-gradient(135deg, #e6e3fb, #cfc9f6); color: #5b21b6; }
.tone-4    { background: linear-gradient(135deg, #dcecfb, #bddaf6); color: #1d4ed8; }
.tone-5    { background: linear-gradient(135deg, #fddfdb, #f9c2bb); color: #b91c1c; }
.tone-none { background: linear-gradient(135deg, #e9f0ee, #d5e2df); color: #3f5f5a; }

/* loading skeleton */
.skel .card-visual { background: linear-gradient(100deg, #eef3f1 30%, #f8fbfa 50%, #eef3f1 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel .card-body i { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: #eef3f1; }
.skel .card-body i.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.brand { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 4px 0 4px; font-size: 1.02rem; line-height: 1.3; letter-spacing: -.01em; }
.desc { margin: 0 0 14px; font-size: .86rem; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .75rem; font-weight: 700; color: var(--muted); margin-left: 2px; }
.price-col { display: flex; flex-direction: column; line-height: 1.15; }
.old { font-size: .78rem; color: var(--muted); font-weight: 600; }

.badges { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.badge-tag { font-size: .72rem; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(18, 48, 45, .12); white-space: nowrap; }
.badge-promo { background: #d9382c; color: #fff; }
.badge-new { background: var(--brand); color: #fff; }

.add {
  height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .9rem;
  transition: background .15s, color .15s;
}
.add:hover { background: var(--brand); color: #fff; }

.stepper {
  display: inline-flex; align-items: center;
  height: 40px; border-radius: 999px; background: var(--brand); color: #fff;
}
.stepper button {
  width: 38px; height: 40px; border: 0; background: transparent; color: inherit;
  font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.stepper button:first-child { border-radius: 999px 0 0 999px; }
.stepper button:last-child { border-radius: 0 999px 999px 0; }
.stepper button:hover { background: rgba(255, 255, 255, .15); }
.stepper span { min-width: 20px; text-align: center; font-weight: 800; }

.empty {
  grid-column: 1 / -1; text-align: center;
  padding: 56px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 48px 0 72px; padding: 36px 40px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: 28px;
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn { flex: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 36px 0 40px; }
.footer-in { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 32px; }
.footer p { margin: 8px 0 0; }
.disclaimer { color: var(--muted); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); transition: background .15s, color .15s; }
.social a:hover { background: var(--brand); color: #fff; }
.social svg { width: 19px; height: 19px; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px rgba(31, 168, 85, .45);
  transition: transform .15s;
}
.fab:hover { transform: scale(1.07); }
.fab .ico { width: 30px; height: 30px; }

/* ---------- Drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 30, 28, .45); backdrop-filter: blur(2px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-direction: column;
  width: min(440px, 100%); background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(105%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark);
}
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }

.cart-empty { text-align: center; padding: 64px 12px; color: var(--muted); }
.cart-empty .glyph { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 24px; background: var(--brand-soft); color: var(--brand); }
.cart-empty .glyph svg { width: 34px; height: 34px; }

.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line-thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; overflow: hidden; }
.line-thumb svg { width: 24px; height: 24px; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-info b { display: block; font-size: .95rem; line-height: 1.3; }
.line-info small { color: var(--muted); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-total { font-weight: 800; font-size: .95rem; }
.line .stepper { height: 32px; background: var(--brand-soft); color: var(--brand-dark); }
.line .stepper button { width: 30px; height: 32px; }
.line .stepper button:hover { background: rgba(15, 118, 110, .12); }

.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #fcfefd; }
.fields { display: grid; gap: 8px; margin-bottom: 16px; }
.fields input, .fields textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; resize: none; font-size: .92rem;
}
.fields input:focus, .fields textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.fields select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .92rem;
}
.fields select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.sum { display: grid; gap: 4px; margin-bottom: 8px; font-size: .92rem; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; }
.sum-row b { color: var(--ink); }
.total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.total b { font-size: 1.4rem; letter-spacing: -.02em; }
.cart-hint { margin: -4px 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: .86rem; font-weight: 600; }
.cart-hint.warn { background: #fff3e0; color: #8a4b00; }
.link-btn { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted); font-size: .86rem; text-decoration: underline; }
.link-btn:hover { color: var(--ink); }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 44px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .disclaimer { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .filters { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 22px; }
  .chips { margin: 0 -16px; padding: 4px 16px; flex: none; }
  .brand-select select { width: 100%; max-width: none; }
  .header-in { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .cart-btn { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-visual .glyph { width: 60px; height: 60px; border-radius: 20px; }
  .card-visual .glyph svg { width: 28px; height: 28px; }
  .card h3 { font-size: .93rem; }
  .desc { font-size: .8rem; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add { width: 100%; }
  .stepper { justify-content: space-between; }
  .stepper button { flex: 1; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
