/* ===== NUR STORE — feuille de style ===== */
:root {
  --bg: #e7dcc2;        /* page parchemin / vieux livre */
  --bg-soft: #efe6d2;   /* panneau plus clair */
  --card: #f4ecda;      /* carte crème */
  --line: #cdba93;      /* bordure sépia */
  --text: #322818;      /* encre sépia foncé */
  --muted: #6f6045;     /* sépia atténué */
  --gold: #a9752a;      /* or antique */
  --gold-soft: #c8993f; /* or clair */
  --ink: #241a06;       /* texte sur boutons dorés */
  --radius: 18px;
  --max: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(130% 90% at 50% -10%, #f3ead4 0%, var(--bg) 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
section { padding: 88px 24px; max-width: var(--max); margin: 0 auto; }
/* Décale l'ancre sous le menu fixe lors du défilement vers une section */
section[id] { scroll-margin-top: 80px; }

/* placeholders visuels */
[data-placeholder] {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #e2d5b6 0 12px, #dccca8 12px 24px);
  border: 1px dashed #c3ac7f;
}
[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #93825f; font-size: 0.85rem; text-align: center; padding: 12px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 24px;
  background: rgba(231, 220, 194, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.15em; }
.brand-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold));
  box-shadow: 0 0 8px rgba(169, 117, 42, 0.5);
}
.brand-name { font-size: 1.1rem; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.cart-btn {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 8px 10px; cursor: pointer; transition: border-color 0.2s;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav a { display: inline; }

/* ===== HERO ===== */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.glow { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.1rem; margin: 22px 0 30px; max-width: 30rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 0.85rem; }
.hero-collab {
  margin-top: 16px; display: inline-block;
  color: var(--muted); font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.hero-collab::before { content: "✦ "; color: var(--gold); }
.hero-collab strong { color: var(--gold); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #fff; box-shadow: 0 8px 22px rgba(169, 117, 42, 0.28); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(169, 117, 42, 0.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hero-visual { position: relative; }
.product-shot {
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
}
.product-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(244, 185, 66, 0.22), transparent 60%);
  pointer-events: none;
}

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ===== VIDEO ===== */
.video-frame {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
/* Short YouTube = format vertical : cadre portrait centré */
.video-vertical {
  aspect-ratio: 9 / 16;
  width: min(340px, 80vw);
  margin: 0 auto;
  background: #000;
}
.play-btn {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--gold); color: #fff; border: 0; font-size: 1.6rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(169, 117, 42, 0.4); z-index: 2;
}

/* ===== FEATURES ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: rgba(169, 117, 42, 0.13); color: var(--gold); margin-bottom: 16px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-2 .gallery-item { aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== SPECS ===== */
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.spec-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.spec-value { font-size: 1.35rem; font-weight: 700; }

/* ===== BUY ===== */
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.buy-visual { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.buy-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
}
.buy-panel h2 { font-size: 1.7rem; }
.buy-price { font-size: 2.6rem; font-weight: 800; color: var(--gold); margin: 14px 0; }
.buy-price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.buy-desc { color: var(--muted); margin-bottom: 26px; }
.option-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 22px; cursor: pointer;
}
.option-row input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.option-text { display: flex; flex-direction: column; flex: 1; }
.option-text strong { font-size: 0.95rem; font-weight: 600; }
.option-text small { color: var(--muted); font-size: 0.82rem; }
.option-price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty label { color: var(--muted); font-size: 0.95rem; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-control button { background: var(--bg-soft); color: var(--text); border: 0; width: 40px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.qty-control button:hover { color: var(--gold); }
.qty-control span { width: 46px; text-align: center; font-weight: 600; }
.buy-reassure { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 0.9rem; }
.buy-reassure span::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* ===== FAQ ===== */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; color: var(--muted); font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.15em; color: var(--text); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a:hover { color: var(--gold); }

/* ===== CART DRAWER ===== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s; z-index: 60;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 90vw);
  background: var(--bg-soft); border-left: 1px solid var(--line); z-index: 61;
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-close { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line-thumb { width: 56px; height: 56px; border-radius: 10px; background: repeating-linear-gradient(45deg,#e2d5b6 0 8px,#dccca8 8px 16px); background-size: cover; background-position: center; flex-shrink: 0; }
.cart-line-info { flex: 1; }
.cart-line-name { font-weight: 600; font-size: 0.95rem; }
.cart-line-price { color: var(--gold); font-size: 0.9rem; margin-top: 2px; }
.cart-line-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-line-qty button { background: var(--card); border: 1px solid var(--line); color: var(--text); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.cart-line-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.drawer-foot { padding: 22px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.drawer-shipping { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; text-align: center; }
.drawer-msg { margin-top: 12px; font-size: 0.85rem; text-align: center; color: var(--gold); min-height: 1.2em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .buy { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  section { padding: 60px 18px; }
  .features, .gallery, .specs-grid { grid-template-columns: 1fr; }
}
