:root {
  --ink: #151314;
  --ink-2: #4a4446;
  --muted: #7b7275;
  --line: #ece4e2;
  --bg: #ffffff;
  --blush: #f8eeec;
  --blush-2: #f2dfdc;
  --rose: #c7707f;
  --ok: #2f7d5b;
  --warn: #b7791f;
  --bad: #b3404a;
  --wa: #1fa855;
  --radius: 14px;
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 400; letter-spacing: -.01em; margin: 0 0 22px; }
.muted { color: var(--muted); }
.section { padding: 56px 0 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-weight: 500; letter-spacing: .02em; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #333; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--blush); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; font-size: 26px; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--blush); }
.link-btn { border: 0; background: none; padding: 8px 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* En-tête */
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo span { font-size: 30px; font-weight: 400; letter-spacing: .18em; }
.logo small { font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.lang { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.lang:hover { border-color: var(--ink); }
.cart-btn { position: relative; border: 0; background: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.cart-btn:hover { background: var(--blush); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 760px) {
  .header-in { height: auto; flex-wrap: wrap; padding-top: 10px; gap: 0; justify-content: space-between; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 20px; padding: 8px 0 10px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .lang { margin-left: auto; margin-right: 6px; }
}

/* Accueil */
.hero { background: linear-gradient(180deg, var(--blush) 0%, #fff 100%); }
.hero-in { display: grid; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; font-weight: 400; letter-spacing: -.02em; margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img img { border-radius: 24px; width: 100%; aspect-ratio: 1110 / 752; object-fit: cover; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding-top: 64px; padding-bottom: 48px; } }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 800px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--blush); text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.04); }
.cat span { position: absolute; left: 12px; bottom: 12px; background: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 500; letter-spacing: .05em; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(21,19,20,.08); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: #faf7f6; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-body { padding: 12px 14px 16px; }
.card-body h3 { font-size: 15px; font-weight: 500; line-height: 1.3; margin: 0 0 6px; }
.card-price { margin: 0; font-size: 15px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fff; }
.badge-out { color: var(--bad); }
.badge-low { color: var(--warn); }
.badge-promo { background: var(--rose); color: #fff; }
.skeleton { min-height: 280px; background: linear-gradient(90deg, #f6f1f0 25%, #fbf8f7 50%, #f6f1f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.band { background: var(--blush); margin-top: 64px; padding: 56px 0; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 22px; color: var(--ink-2); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .1em; color: var(--rose); margin-bottom: 8px; }
.steps strong { display: block; color: var(--ink); font-weight: 500; font-size: 18px; margin-bottom: 4px; }

.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; cursor: pointer; white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters-right { display: flex; gap: 14px; align-items: center; flex: 1 1 280px; justify-content: flex-end; }
#search { flex: 1; max-width: 320px; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: #fff; }
.toggle { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; cursor: pointer; }
.toggle input { accent-color: var(--ink); width: 18px; height: 18px; }

.about { display: grid; gap: 32px; align-items: center; padding-bottom: 64px; }
.about p { color: var(--ink-2); max-width: 560px; }
.about img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Page produit */
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; } .pdp-media { position: sticky; top: 90px; } }
.pdp-main { position: relative; background: #faf7f6; border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.pdp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.pdp-thumbs button { flex: 0 0 72px; height: 72px; border: 1px solid var(--line); border-radius: 10px; background: #faf7f6; padding: 2px; cursor: pointer; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 10px; }
.pdp-price { font-size: 24px; margin: 0 0 22px; }
.pdp-price s { color: var(--muted); font-size: 18px; }
.pdp-price .promo { color: var(--rose); }
.label { margin: 0 0 10px; color: var(--ink-2); }
.shade-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shade { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer; font-size: 14px; }
.shade img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #faf7f6; }
.shade:not(:has(img)) { padding-left: 14px; min-height: 42px; }
.shade[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shade.is-out span { text-decoration: line-through; color: var(--muted); }
.stock { font-size: 14px; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.is-in { color: var(--ok); } .stock.is-low { color: var(--warn); } .stock.is-out { color: var(--bad); }
.buy { display: flex; gap: 12px; margin-bottom: 12px; }
.buy .btn { flex: 1; }
#pdp-wa { width: 100%; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 999px; }
.qty input { width: 38px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 34px; margin-top: 6px; }
.qty-sm button { width: 32px; font-size: 16px; }
.qty-sm span { min-width: 22px; text-align: center; }
.pdp-desc { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.pdp-desc h2 { font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.pdp-desc p { color: var(--ink-2); margin: 0; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.perks li::before { content: '✓'; color: var(--rose); margin-right: 10px; }

/* Panier */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(21,19,20,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 400; margin: 0; }
.drawer-body { overflow-y: auto; padding: 8px 20px 28px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-ph { width: 64px; height: 64px; object-fit: contain; background: #faf7f6; border-radius: 10px; }
.cart-item a { text-decoration: none; font-weight: 500; font-size: 15px; }
.cart-item small { display: block; color: var(--muted); font-size: 13px; }
.warn { color: var(--bad); font-weight: 500; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; padding: 18px 0; }
.order-form { display: grid; gap: 12px; }
.order-form label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.order-form input, .order-form select, .order-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 16px; }
.form-error { color: var(--bad); margin: 0; font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

/* Pied de page */
.footer { background: var(--ink); color: #d9d2d3; margin-top: 40px; }
.footer .logo small { color: #9d9496; }
.footer-in { display: grid; gap: 28px; padding: 48px 16px 28px; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 2fr 1fr 1fr; padding-left: 28px; padding-right: 28px; } }
.footer h3 { color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.footer p { margin: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #333; padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #9d9496; }
.footer-bottom a { color: #9d9496; }
.pdp-lead { color: var(--ink-2); margin: -8px 0 22px; }
.pdp-desc + .pdp-desc { margin-top: 18px; }
.pdp-desc p + p { margin-top: 8px; }
.pdp-desc ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.pdp-desc li { margin-bottom: 4px; }
