/* ------------------------------------------------------------------
   REGARD — design system
   ------------------------------------------------------------------ */
:root {
  --rose:        #FCEDF2;
  --rose-deep:   #F3CBD8;
  --rose-pale:   #FFFFFF;
  --bordeaux:    #521008;
  --bordeaux-mid:#7A3328;
  --ink:         #521008;
  --line:        rgba(82, 16, 8, .16);

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;

  --gutter: 20px;
  --maxw: 1180px;

  --shadow: 0 10px 30px rgba(82, 16, 8, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rose);
  color: var(--ink);
  font-family: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--bordeaux);
  border-radius: var(--r-m);
  background: var(--bordeaux);
  color: var(--rose);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--bordeaux); }
.btn--block { width: 100%; }

/* ---------- en-tête ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rose);
  border-bottom: 1px solid var(--line);
}
.hdr__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.hdr__logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: lowercase;
}
.hdr__nav { display: flex; gap: 20px; margin-inline-start: auto; }
.hdr__nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.hdr__nav a:hover { text-decoration: underline; }

.announce {
  background: var(--bordeaux);
  color: var(--rose);
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  padding: 9px var(--gutter);
  letter-spacing: .01em;
}

.cart-btn {
  position: relative;
  border: 1px solid var(--bordeaux);
  background: transparent;
  color: var(--bordeaux);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
.cart-btn__n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-inline-start: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--rose);
  font-size: .72rem;
}

/* ---------- héros ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding-block: clamp(32px, 6vw, 72px);
}
.hero__kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 14px;
}
.hero__lede { font-size: 1.08rem; max-width: 46ch; margin-block: 18px 26px; }
.hero__media img { border-radius: var(--r-l); }

/* ---------- grille produits ---------- */
.section { padding-block: clamp(28px, 5vw, 56px); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card { text-decoration: none; display: block; }
.card__media {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--rose);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__media img { transform: scale(1.02); }
.card__media img { transition: transform .35s ease; }
.card__tag {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  background: var(--bordeaux);
  color: var(--rose);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.card__name { margin-top: 12px; font-weight: 700; }
.card__sub  { font-size: .9rem; opacity: .72; }
.card__price { margin-top: 4px; font-weight: 700; }
.card__price del { opacity: .45; font-weight: 500; margin-inline-start: 8px; }

/* ---------- fiche produit ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding-block: 32px 64px; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__gallery img { border-radius: var(--r-m); aspect-ratio: 1; object-fit: cover; width: 100%; }
.pdp__gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.pdp__price { font-size: 1.5rem; font-weight: 700; margin-block: 6px 20px; }
.pdp__buy { display: flex; gap: 12px; align-items: stretch; margin-block: 22px; }

.qty { display: flex; align-items: center; border: 1px solid var(--bordeaux); border-radius: var(--r-m); }
.qty button {
  width: 46px; min-height: 52px; border: 0; background: transparent;
  color: var(--bordeaux); font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.qty output { min-width: 34px; text-align: center; font-weight: 700; }

.specs { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.specs b { min-width: 7.5rem; font-weight: 700; }

/* ---------- panier ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr min(420px, 92vw);
  visibility: hidden;
}
.drawer[open] { visibility: visible; }
.drawer__veil {
  background: rgba(82, 16, 8, .34);
  opacity: 0; transition: opacity .25s ease; border: 0; padding: 0; cursor: pointer;
}
.drawer[open] .drawer__veil { opacity: 1; }
.drawer__panel {
  background: var(--rose-pale);
  border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow);
}
html[dir="rtl"] .drawer__panel { transform: translateX(100%); }
.drawer[open] .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--line);
}
.drawer__close { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); line-height: 1; }
.drawer__body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-s); }
.line__name { font-weight: 700; font-size: .95rem; }
.line__meta { font-size: .85rem; opacity: .7; }
.line__rm { border: 0; background: none; cursor: pointer; font-size: .82rem; text-decoration: underline; color: var(--ink); opacity: .7; }

.totals { font-size: .95rem; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .totals__sum { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.ship-hint { font-size: .85rem; background: var(--rose); border-radius: var(--r-s); padding: 9px 12px; margin-bottom: 14px; }

/* ---------- pied ---------- */
.ftr { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 34px 48px; font-size: .9rem; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ftr h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.ftr a { display: block; text-decoration: none; padding: 3px 0; }
.ftr a:hover { text-decoration: underline; }
.ftr__legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); opacity: .72; font-size: .82rem; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero__media { order: -1; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .hdr__nav { gap: 14px; font-size: .9rem; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hdr__nav a:not(.hdr__nav-keep) { display: none; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
