/* Maison Grelot — boutique de Noël */
:root {
  --vert: #0f3d2e;
  --vert-fonce: #0a2b20;
  --rouge: #b3222d;
  --or: #c9a227;
  --or-clair: #e6c65c;
  --creme: #faf6ee;
  --blanc: #ffffff;
  --encre: #1d2521;
  --gris: #6b7570;
  --ombre: 0 10px 30px rgba(15, 61, 46, .12);
  --radius: 14px;
}

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

body {
  font-family: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--creme);
  color: var(--encre);
  line-height: 1.6;
}

h1, h2, h3, .brand { font-family: "Playfair Display", Georgia, serif; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Bandeau annonce ---------- */
.topbar {
  background: var(--rouge);
  color: #fff;
  text-align: center;
  font-size: .85rem;
  padding: 7px 16px;
  letter-spacing: .03em;
}
.topbar strong { color: var(--or-clair); }

/* ---------- Header ---------- */
header.site {
  background: var(--vert);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand .flocon { color: var(--or-clair); }
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or-clair);
}
nav.main { display: flex; gap: 22px; font-size: .92rem; }
nav.main a { color: #e8efe9; text-decoration: none; }
nav.main a:hover { color: var(--or-clair); }

.cart-btn {
  position: relative;
  background: var(--or);
  border: none;
  color: var(--vert-fonce);
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.cart-btn:hover { background: var(--or-clair); }
.cart-count {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--rouge);
  color: #fff;
  font-size: .7rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(201,162,39,.25), transparent 60%),
    linear-gradient(160deg, var(--vert-fonce), var(--vert) 70%);
  color: #fff;
  text-align: center;
  padding: 72px 20px 84px;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.15; }
.hero h1 em { color: var(--or-clair); font-style: normal; }
.hero p.lead {
  max-width: 640px;
  margin: 18px auto 30px;
  color: #d6e2da;
  font-size: 1.08rem;
}
.hero .cta {
  display: inline-block;
  background: var(--or);
  color: var(--vert-fonce);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 1.02rem;
}
.hero .cta:hover { background: var(--or-clair); }
.hero .mentions { margin-top: 14px; font-size: .72rem; color: #9db5a8; }

/* ---------- Réassurance ---------- */
.reassurance {
  background: var(--blanc);
  border-bottom: 1px solid #ece5d4;
}
.reassurance .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
  text-align: center;
  font-size: .86rem;
}
.reassurance strong { display: block; color: var(--vert); }
.reassurance span { color: var(--gris); font-size: .78rem; }

/* ---------- Grille produits ---------- */
.section-title { text-align: center; margin: 56px 0 10px; font-size: 2rem; color: var(--vert); }
.section-sub { text-align: center; color: var(--gris); margin-bottom: 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  padding-bottom: 70px;
}
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,61,46,.18); }
.card .visuel { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f1ece1; }
.card .visuel img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rouge);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.badge.or { background: var(--or); color: var(--vert-fonce); }
.card .infos { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.15rem; color: var(--vert); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .pitch { font-size: .88rem; color: var(--gris); flex: 1; }
.stars { color: var(--or); font-size: .9rem; letter-spacing: .1em; }
.stars small { color: var(--gris); letter-spacing: 0; margin-left: 6px; }
.prix { display: flex; align-items: baseline; gap: 10px; }
.prix .actuel { font-size: 1.35rem; font-weight: 700; color: var(--encre); }
.prix .barre { color: var(--gris); text-decoration: line-through; font-size: .9rem; }
.stock { font-size: .78rem; color: var(--rouge); font-weight: 600; }
.stock.ok { color: #2e7d32; }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  background: var(--vert);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--vert-fonce); }
.btn.secondaire { background: transparent; color: var(--vert); border: 2px solid var(--vert); }
.btn.secondaire:hover { background: var(--vert); color: #fff; }

/* ---------- Fiche produit ---------- */
.breadcrumb { font-size: .82rem; color: var(--gris); margin: 22px 0; }
.breadcrumb a { color: var(--gris); }

.fiche {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 60px;
}
@media (max-width: 820px) { .fiche { grid-template-columns: 1fr; } }

.fiche .visuel {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  position: relative;
}
.fiche h1 { font-size: 1.9rem; color: var(--vert); line-height: 1.2; margin-bottom: 6px; }
.fiche .ref { font-size: .78rem; color: var(--gris); margin-bottom: 14px; }
.fiche .prix { margin: 18px 0 4px; }
.fiche .prix .actuel { font-size: 2rem; }
.fiche .tva { font-size: .75rem; color: var(--gris); margin-bottom: 18px; }
.fiche ul.points { margin: 18px 0; padding-left: 0; list-style: none; }
.fiche ul.points li { padding: 7px 0 7px 30px; position: relative; font-size: .95rem; }
.fiche ul.points li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  color: var(--or);
}
.achat { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.achat .btn { flex: 1; min-width: 180px; padding: 15px 20px; font-size: 1.05rem; }

.encart {
  background: #eef4ef;
  border-left: 4px solid var(--vert);
  padding: 14px 18px;
  font-size: .85rem;
  border-radius: 0 10px 10px 0;
  margin-top: 18px;
}

.description {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 38px 42px;
  margin-bottom: 60px;
}
.description h2 { color: var(--vert); margin-bottom: 16px; font-size: 1.5rem; }
.description h3 { color: var(--vert); margin: 24px 0 8px; font-size: 1.15rem; }
.description p { margin-bottom: 12px; }
.description ul, .description ol { margin: 10px 0 16px 22px; }
.description li { margin-bottom: 6px; }

table.specs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
table.specs th, table.specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #ece5d4; }
table.specs th { color: var(--vert); width: 38%; font-weight: 600; }

.avis { margin-bottom: 70px; }
.avis h2 { color: var(--vert); margin-bottom: 20px; font-size: 1.5rem; }
.avis .bloc {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.avis .auteur { font-weight: 700; font-size: .9rem; }
.avis .auteur small { color: var(--gris); font-weight: 400; }
.avis p { font-size: .92rem; margin-top: 6px; }

/* ---------- Panier (drawer) ---------- */
.drawer-fond {
  position: fixed; inset: 0;
  background: rgba(10, 25, 18, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0; right: -420px;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--blanc);
  z-index: 100;
  box-shadow: -8px 0 30px rgba(0,0,0,.25);
  transition: right .25s ease;
  display: flex;
  flex-direction: column;
}
body.panier-ouvert .drawer { right: 0; }
body.panier-ouvert .drawer-fond { opacity: 1; pointer-events: auto; }
.drawer header {
  background: var(--vert);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer header h2 { font-size: 1.2rem; }
.drawer header button { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.drawer .lignes { flex: 1; overflow-y: auto; padding: 16px 20px; }
.ligne {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ece5d4;
}
.ligne img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.ligne .nom { font-size: .88rem; font-weight: 600; flex: 1; }
.ligne .nom small { display: block; color: var(--gris); font-weight: 400; }
.ligne .suppr { background: none; border: none; color: var(--rouge); cursor: pointer; font-size: 1.05rem; }
.drawer footer { padding: 18px 20px; border-top: 2px solid var(--creme); }
.drawer .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.drawer .btn { width: 100%; }
.panier-vide { text-align: center; color: var(--gris); padding: 40px 10px; font-size: .92rem; }

/* ---------- Modale checkout ---------- */
.modale-fond {
  position: fixed; inset: 0;
  background: rgba(10, 25, 18, .65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modale-fond.visible { display: flex; }
.modale {
  background: var(--blanc);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 34px 36px;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modale h2 { color: var(--vert); margin-bottom: 10px; }
.modale p { font-size: .95rem; margin-bottom: 14px; }
.modale .fermer {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gris);
}
.modale .options { display: grid; gap: 10px; margin: 18px 0; text-align: left; }
.modale .options button {
  background: var(--creme);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .92rem;
  cursor: pointer;
  text-align: left;
}
.modale .options button:hover { border-color: var(--or); }
.modale .petit { font-size: .72rem; color: var(--gris); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--vert);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .25s ease;
  z-index: 300;
  max-width: 92vw;
  text-align: center;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--vert-fonce);
  color: #bccfc3;
  padding: 44px 20px 30px;
  font-size: .84rem;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
footer.site h4 { color: #fff; margin-bottom: 10px; font-size: .95rem; }
footer.site a { color: #bccfc3; text-decoration: none; }
footer.site a:hover { color: var(--or-clair); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 6px; }
.footer-bas {
  text-align: center;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .72rem;
  color: #7e9488;
}

/* ---------- Neige ---------- */
.flocon-anim {
  position: fixed;
  top: -5vh;
  color: #fff;
  opacity: .8;
  pointer-events: none;
  z-index: 40;
  animation: chute linear forwards;
  text-shadow: 0 0 4px rgba(255,255,255,.6);
}
@keyframes chute {
  to { transform: translateY(110vh) rotate(360deg); opacity: .2; }
}
