/* Vitrine dz1.org — base. L'identité par site vient des variables via themes.css.
   Les valeurs ci-dessous sont celles du thème 1 (Argan), l'épure chaleureuse. */
:root {
  --bg: #faf5ec;
  --surface: #fffdf9;
  --ink: #33291d;
  --muted: #8b7d6a;
  --soft: #f1e6d2;
  --line: #e8dcc8;
  --accent: #b3703c;
  --accent-2: #8a5a30;
  --accent-soft: #f4e9d8;
  --danger: #b8513f;
  --ok: #4f7c5a;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(122, 88, 40, .10);
  --shadow-strong: 0 20px 40px rgba(122, 88, 40, .16);
  --ph: rgba(138, 90, 48, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
a { color: var(--accent-2); text-decoration: none; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--accent); color: var(--surface);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  text-transform: uppercase;
}
.brand-logo { max-height: 42px; max-width: 180px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.header-cta {
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2);
  transition: background .2s;
}
.header-cta:hover { background: var(--soft); }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 64px 0 52px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15; font-weight: 700;
  letter-spacing: -.5px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  margin: 14px auto 0; max-width: 520px;
  color: var(--muted); font-size: 17px;
}

/* ---- grille produits ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.card-img {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-soft), var(--soft));
  display: grid; place-items: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph-letter {
  font-family: var(--serif); font-size: 64px; color: var(--ph);
}
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ok); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-nom { font-family: var(--serif); font-size: 17.5px; line-height: 1.3; }
.card-couleurs { font-size: 12.5px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.prix { font-weight: 700; color: var(--accent); font-size: 18px; }
.prix.ancien { color: var(--muted); text-decoration: line-through; font-size: 13.5px; font-weight: 500; margin-right: 6px; }

/* --- load more / empty --- */
.load-more { text-align: center; padding: 34px 0 10px; }
.loader { color: var(--muted); font-size: 14px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.end-note { color: var(--muted); text-align: center; font-size: 14px; padding: 30px 0 6px; }

.empty-state {
  text-align: center; padding: 70px 20px 90px;
  border: 2px dashed var(--soft); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.empty-state .dot {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-soft); margin: 0 auto 18px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; color: var(--accent);
}
.empty-state h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 380px; margin: 0 auto; }

/* ---- detail produit ---- */
.detail-top { padding: 26px 0 10px; }
.retour { font-size: 13.5px; color: var(--muted); }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 34px; align-items: start; margin-top: 8px;
}
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.carousel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--soft);
}
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  aspect-ratio: 4 / 3.4;
}
.carousel-track::-webkit-scrollbar, .carousel::-webkit-scrollbar { display: none; }
.slide {
  min-width: 100%; scroll-snap-align: start;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--accent-soft), var(--soft));
}
.slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slide .ph-letter { font-family: var(--serif); font-size: 120px; color: var(--ph); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; z-index: 5;
}
.carousel-btn:hover { background: var(--surface); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 5; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.carousel-dots span.on { background: var(--accent); width: 18px; border-radius: 999px; }

.detail-info h1 {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2; letter-spacing: -.4px;
}
.prix-ligne { margin: 14px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prix-ligne .prix { font-size: 27px; }
.prix-ligne .prix.ancien { font-size: 16px; }
.desc { color: color-mix(in srgb, var(--ink) 72%, gray); font-size: 15.5px; }
.dims { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.dims b { color: var(--ink); font-weight: 600; }

.pick { margin-top: 18px; }
.pick label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  transition: all .15s;
}
.pill.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 19px; color: var(--accent-2); cursor: pointer; }
.qty button:hover { background: var(--accent-soft); }
.qty input { width: 52px; height: 42px; border: 0; text-align: center; font-size: 15px; font-weight: 600; background: transparent; color: var(--ink); }
.qty input:focus { outline: none; }

.buybar {
  position: sticky; bottom: 0; z-index: 30;
  margin-top: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -8px 30px rgba(122, 88, 40, .08);
}
@media (min-width: 861px) { .buybar { position: static; border: 0; background: transparent; box-shadow: none; padding: 0; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer;
  background: var(--accent); color: var(--surface);
  font-size: 16px; font-weight: 700;
  padding: 15px 26px; border-radius: 14px;
  transition: background .18s, transform .12s;
}
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-lg { flex: 1; width: 100%; max-width: 340px; }

/* ---- formulaire ---- */
.form {
  margin-top: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: var(--font); color: var(--ink);
  background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field select:disabled { background: var(--soft); color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.bandeau-paiement {
  display: flex; gap: 8px; align-items: center;
  background: var(--accent-soft); color: var(--accent-2);
  border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px;
}

.totaux { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.totaux .row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14.5px; }
.totaux .row.total { font-weight: 800; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.erreur { color: var(--danger); font-size: 13.5px; margin-top: 10px; }

.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 620px) { .reassurance { grid-template-columns: 1fr; } }
.reass { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 13px; }
.reass b { display: block; color: var(--accent-2); font-size: 14.5px; margin-bottom: 2px; }

/* ---- section savoir-faire (detail) ---- */
.savoir {
  margin: 56px 0 30px; padding-top: 40px; border-top: 1px solid var(--line);
}
.savoir h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px); text-align: center; margin-bottom: 8px; }
.savoir > p.intro { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 34px; }
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .stack { grid-template-columns: 1fr; } }
.stack-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.stack-img { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--accent-soft), var(--soft)); display: grid; place-items: center; }
.stack-img .ph-letter { font-family: var(--serif); font-size: 90px; color: var(--ph); }
.stack-card figcaption { padding: 14px 18px 18px; }
.stack-card b { font-family: var(--serif); font-size: 17px; }
.stack-card p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---- confirmation ---- */
.confirm {
  max-width: 560px; margin: 46px auto 70px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 30px; box-shadow: var(--shadow);
}
.confirm .check {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 34px;
  display: grid; place-items: center; margin: 0 auto 18px;
}
.confirm h1 { font-family: var(--serif); font-size: 26px; }
.confirm .num { color: var(--accent); font-weight: 800; }
.recap { text-align: left; background: var(--bg); border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-size: 14.5px; }
.recap .row { display: flex; justify-content: space-between; padding: 2px 0; }
.recap .row.total { font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }

/* ---- footer ---- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 40%, transparent); }
.footer-inner { padding: 30px 20px 34px; text-align: center; }
.footer-inner strong { font-family: var(--serif); font-size: 18px; }
.footer-inner p { color: var(--muted); font-size: 13.5px; max-width: 460px; margin: 6px auto 0; }
.footer-inner .muted { margin-top: 12px; font-size: 12.5px; }