/* ============================================================
   Le Stère Français – feuille de style
   ============================================================ */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --cream: #f3eadc;
  --ink: #221b16;
  --muted: #6e6259;
  --line: #e6dccd;
  --ember: #d0552a;
  --ember-dark: #a9421e;
  --moss: #3f6b4a;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --dark: #1d1814;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 27, 22, .06), 0 6px 20px rgba(34, 27, 22, .06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-sm { padding: 48px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); font-weight: 600; margin-bottom: 10px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; transition: background .2s, transform .1s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-ember { background: var(--ember); }
.btn-ember:hover { background: var(--ember-dark); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; background: var(--cream); color: var(--ink); }
.btn-icon:hover { background: var(--line); }
.link-arrow { color: var(--ember); font-weight: 600; font-size: .9rem; }

/* ---------- En-tête ---------- */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--dark); color: #f3e7d6; text-align: center; font-size: .82rem; padding: 7px 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 1.45rem var(--font-head); color: var(--ink); }
.logo svg { width: 28px; height: 28px; color: var(--ember); }
.logo-light { color: #fff; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--ember); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.cart-btn:hover { background: var(--cream); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ember); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 20%, rgba(208, 85, 42, .35), transparent 60%), linear-gradient(160deg, #2a201a, #15110e); color: #f8efe3; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(56px, 9vw, 110px) 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #f2a541; }
.hero p.lead { font-size: 1.15rem; color: #e6d7c4; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px; padding: 0; list-style: none; font-size: .92rem; color: #d9c8b3; }
.hero-points li::before { content: "✓"; color: #f2a541; margin-right: 6px; font-weight: 700; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hero-art .glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(242, 165, 65, .55), rgba(208, 85, 42, .15) 60%, transparent 70%); filter: blur(10px); animation: flicker 3.5s ease-in-out infinite; }
.hero-art svg { position: relative; width: 100%; height: 100%; }
@keyframes flicker { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.flame-a { transform-origin: 50% 90%; animation: sway 2.6s ease-in-out infinite; }
.flame-b { transform-origin: 50% 90%; animation: sway 2s ease-in-out infinite reverse; }
@keyframes sway { 0%, 100% { transform: scaleY(1) skewX(0); } 50% { transform: scaleY(1.06) skewX(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .glow, .flame-a, .flame-b { animation: none; } }

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card > div:last-child { padding: 18px 20px 20px; }
.cat-card p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.cat-art svg { width: 100%; aspect-ratio: 4 / 3; }

/* ---------- Grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; }
.card-media svg { width: 100%; aspect-ratio: 4 / 3; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ember); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--moss); font-weight: 600; }
.card h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--ember); }
.card-unit { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 6px; }
.price { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.price-lg { font-size: 2rem; margin: 8px 0 16px; }
.price small { font: 500 .85rem var(--font-body); color: var(--muted); }

/* ---------- Étapes / atouts ---------- */
.band { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ember); color: #fff; font: 700 1.1rem var(--font-head); margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 4px; }
.feature .ico { font-size: 1.8rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.cta-band { background: linear-gradient(120deg, var(--ember), #b8431d); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #fde6d8; }

/* ---------- Boutique ---------- */
.page-head { background: var(--cream); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); margin: 0; max-width: 40em; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 28px 0 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font: 500 .9rem var(--font-body); cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.input, select, textarea { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.filters .input { width: 220px; }
.filters select { width: auto; }
.count { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Fiche produit ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 24px 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ember); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.product-media svg { width: 100%; aspect-ratio: 4 / 3; }
.specs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specs li { background: var(--cream); padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.buy-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--cream); }
.qty input { width: 48px; border: 0; text-align: center; font: 600 1rem var(--font-body); background: none; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 36px; }
.qty-sm span { min-width: 26px; text-align: center; font-weight: 600; }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Panier ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; padding: 36px 0 72px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto 32px; gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.cart-thumb { border-radius: 10px; overflow: hidden; }
.cart-info { display: flex; flex-direction: column; }
.cart-info a { text-decoration: none; }
.cart-info span { color: var(--muted); font-size: .88rem; }
.cart-sub { font-family: var(--font-head); font-size: 1.1rem; min-width: 84px; text-align: right; }
.remove { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; }
.remove:hover { color: var(--ember); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 120px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.summary-row strong { font: 600 1.6rem var(--font-head); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.text-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; margin-top: 12px; }

/* ---------- Pages de contenu ---------- */
.prose { max-width: 780px; padding: 44px 0 80px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.todo { background: #fff3cd; border-radius: 4px; padding: 0 4px; color: #7a5a00; font-weight: 500; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ember); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card p { color: var(--muted); margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--cream); font-size: .9rem; }

/* ---------- Pied de page ---------- */
#site-footer { background: var(--dark); color: #cdbfae; padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid p { font-size: .92rem; margin-top: 14px; max-width: 28em; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer-grid a, .footer-grid span { display: block; text-decoration: none; font-size: .92rem; margin-bottom: 8px; color: #cdbfae; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #3a312a; padding: 18px 0; font-size: .85rem; color: #8f8174; }

/* ---------- WhatsApp flottant & toast ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 168, 85, .4); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 70; font-size: .92rem; box-shadow: var(--shadow); transition: transform .3s; max-width: calc(100% - 110px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #f2a541; font-weight: 600; margin-left: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .product-grid, .cart-layout { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; }
  .cat-grid, .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .steps, .info-cards { grid-template-columns: 1fr; }
  .filters, .filters .input { width: 100%; }
  .filters select { flex: 1; }
  .cart-line { grid-template-columns: 56px 1fr auto; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cart-line .cart-sub { grid-column: 3 / 4; grid-row: 2; text-align: right; min-width: 0; white-space: nowrap; justify-self: end; }
  .cart-line .remove { grid-column: 3; grid-row: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cat-grid, .features, .footer-grid { grid-template-columns: 1fr; }
  .topbar { font-size: .75rem; }
}

/* ---------- Logo ---------- */
.logo img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.logo span { font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 380px) { .logo span { font-size: 1.1rem; } }

/* ---------- Photos ---------- */
.card-media img, .cat-art img, .product-media img, .cart-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-media img { transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media { overflow: hidden; }
.hero { background: linear-gradient(100deg, rgba(21, 17, 14, .92) 30%, rgba(21, 17, 14, .6)), url("../img/photos/hero.jpg") center / cover; }
.hero-art { aspect-ratio: 4 / 3; }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.credits td, .credits th { font-size: .82rem; vertical-align: top; }
.credits a { word-break: break-all; }

/* ---------- Bulle de discussion WhatsApp ---------- */
.wa-fab { border: 0; cursor: pointer; }
.wa-dot { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: #e53935; color: #fff; font: 700 .75rem/22px var(--font-body); text-align: center; box-shadow: 0 0 0 3px var(--bg); animation: pop .3s ease-out; }
.wa-dot[hidden] { display: none; }
.wa-chat { position: fixed; right: 20px; bottom: 92px; z-index: 61; width: min(340px, calc(100vw - 32px)); background: #efeae2; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .25s, transform .25s; }
.wa-chat.show { opacity: 1; transform: none; }
.wa-chat[hidden] { display: none; }
.wa-chat-head { display: flex; align-items: center; gap: 12px; background: #075e54; color: #fff; padding: 14px 16px; }
.wa-chat-head img { width: 40px; height: 40px; border-radius: 50%; }
.wa-chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.wa-chat-head span { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.wa-chat-head i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.wa-chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8; padding: 4px; }
.wa-chat-close:hover { opacity: 1; }
.wa-chat-body { padding: 18px 16px 8px; min-height: 120px; }
.wa-msg { position: relative; background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 12px 18px; font-size: .92rem; color: #111; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: pop .25s ease-out; }
.wa-msg::before { content: ""; position: absolute; left: -8px; top: 0; border: 8px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 8px 10px 0; }
.wa-msg p { margin: 0 0 6px; }
.wa-msg .wa-msg-info { font-size: .82rem; color: #075e54; font-weight: 600; margin-bottom: 0; }
.wa-msg time { position: absolute; right: 10px; bottom: 4px; font-size: .7rem; color: #8a8a8a; }
.wa-typing { display: inline-flex; gap: 4px; background: #fff; border-radius: 12px; padding: 12px 14px; }
.wa-typing[hidden], .wa-msg[hidden] { display: none; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; animation: blink 1s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
.wa-chat-cta { margin: 8px 16px 16px; width: calc(100% - 32px); }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .wa-chat { right: 16px; bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .wa-chat, .wa-msg, .wa-dot, .wa-typing span { animation: none; transition: none; } }
