/* ==========================================================
   Melizoé — feuille de style de la boutique
   ========================================================== */
:root {
  --cream: #faf5ea;
  --paper: #fffdf8;
  --honey: #e0a030;
  --honey-soft: #f6dfae;
  --amber: #a8601a;
  --ink: #2a1c0c;
  --ink-2: #4a3820;
  --muted: #7a6548;
  --line: #eadcc2;
  --sage: #5e6b45;
  --danger: #a3352a;
  --ok: #4d6b33;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 28, 12, .05), 0 12px 32px -12px rgba(42, 28, 12, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--honey); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--honey-soft); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 12px 22px; font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--amber); color: var(--paper); transform: translateY(-1px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.back::after { content: none; }
.link-arrow.back::before { content: "←"; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a[aria-current="page"]::after, .nav a:not(.cart-link):hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--honey); border-radius: 2px;
}
.cart-link { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); padding: 9px 16px !important; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.cart-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.badge { background: var(--honey); color: var(--ink); font-size: .78rem; font-weight: 700; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 99px; padding: 0 6px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .header-inner { height: 70px; }
  .brand img { height: 46px; }
  .nav-toggle {
    display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .cart-link { margin-top: 12px; justify-content: center; border: 0 !important; }
}

/* ---------- Messages flash ---------- */
.flashes { margin-top: 14px; }
.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.flash-success { box-shadow: inset 4px 0 0 var(--ok), inset 0 0 0 1px var(--line); }
.flash-error { box-shadow: inset 4px 0 0 var(--danger), inset 0 0 0 1px var(--line); color: var(--danger); }
.flash-info { box-shadow: inset 4px 0 0 var(--honey), inset 0 0 0 1px var(--line); }
.flash a { font-weight: 600; margin-left: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 12px; }
.page-head h1 { margin-bottom: 12px; }
.empty, .empty-state { color: var(--muted); }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 70px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero h1 { font-style: italic; font-weight: 400; }
.hero h1::first-letter { font-style: normal; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 30px 0 40px; }
.hero-facts { list-style: none; display: flex; gap: 30px; padding: 22px 0 0; margin: 0; border-top: 1px solid var(--line); flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-facts strong { display: block; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.hero-visual { position: relative; }
.comb {
  aspect-ratio: 1 / 1.08; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--honey-soft) url("../img/honeycomb.svg") center / 90px;
}
.comb img { width: 100%; height: 100%; object-fit: cover; }
.bee { position: absolute; width: 64px; top: 8%; left: -4%; animation: buzz 6s ease-in-out infinite; }
@keyframes buzz { 0%,100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(18px,-14px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .bee { animation: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; grid-row: 1; }
}

/* ---------- Cartes produits ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 1; background: var(--honey-soft) url("../img/honeycomb.svg") center / 70px; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.is-out .card-media img { filter: grayscale(.7) opacity(.7); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 99px; }
.tag-honey { background: var(--honey); color: var(--ink); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-body h3 a { text-decoration: none; }
.card-size { color: var(--amber); font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font: 500 1.3rem/1 var(--serif); }
.price s, .product-price s { color: var(--muted); font-size: .8em; margin-right: 6px; }

/* ---------- Histoire ---------- */
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.story-photo { margin: 0; position: relative; }
.story-photo img { border-radius: 200px 200px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--honey-soft); }
.story-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; font-style: italic; font-family: var(--serif); }
.prose p { color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.story .btn { margin-top: 10px; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-photo { max-width: 420px; } }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps li { text-align: center; padding: 0 10px; }
.steps p { color: var(--muted); }
.hex {
  display: inline-grid; place-items: center; width: 64px; height: 72px; margin-bottom: 18px;
  background: var(--honey); color: var(--ink); font: 500 1.5rem/1 var(--serif);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-lg { width: 88px; height: 100px; font-size: 2.2rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Visite ---------- */
.visit { background: var(--ink); color: var(--cream); }
.visit .eyebrow { color: var(--honey); }
.visit .lead { color: #e8dcc4; }
.visit a { color: var(--honey); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.visit address { font-style: normal; margin: 22px 0; font-size: 1.1rem; line-height: 1.7; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #3a2a15; }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Catalogue ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chips a { text-decoration: none; padding: 8px 16px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .95rem; }
.chips a[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------- Fiche produit ---------- */
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.product-media { border-radius: var(--radius); overflow: hidden; background: var(--honey-soft) url("../img/honeycomb.svg") center / 90px; aspect-ratio: 1; position: sticky; top: 110px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-price { font: 500 2rem/1 var(--serif); margin: 16px 0 22px; }
.buy { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 10px; }
.qty { display: inline-flex; align-items: center; background: var(--paper); border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { background: none; border: 0; width: 44px; height: 50px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font: 600 1.05rem var(--sans); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 38px; }
.qty-sm input { width: 34px; }
.stock-note { color: var(--amber); font-weight: 600; font-size: .92rem; }
.out { background: var(--paper); padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 20px; }
.reassure { list-style: none; padding: 22px 0; margin: 22px 0; border-block: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-2); font-size: .96rem; }
.reassure li::before { content: ""; display: inline-block; width: 10px; height: 11px; background: var(--honey); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); margin-right: 10px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } .product-media { position: static; } }

/* ---------- Panier / commande ---------- */
.cart-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.cart-lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 76px 1fr auto auto 32px; gap: 18px; align-items: center; background: var(--paper); padding: 14px; border-radius: 14px; box-shadow: var(--shadow); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--honey-soft); }
.line-info { display: grid; gap: 2px; }
.line-info a { font-family: var(--serif); font-size: 1.12rem; text-decoration: none; }
.line-info .muted { font-size: .9rem; }
.line-total { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; min-width: 90px; text-align: right; }
.remove { background: none; border: 0; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
.remove:hover { color: var(--danger); }
@media (max-width: 640px) {
  .line { grid-template-columns: 64px 1fr 28px; }
  .line img { width: 64px; height: 64px; grid-row: span 2; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line .line-total { grid-column: 2; grid-row: 3; text-align: left; }
  .remove { grid-column: 3; grid-row: 1; }
}
.summary { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.summary h2 { font-size: 1.5rem; }
.summary dl { margin: 16px 0 20px; }
.summary dl > div { display: flex; justify-content: space-between; padding: 8px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.summary .total dt, .summary .total dd { font: 500 1.3rem var(--serif); color: var(--ink); }
.summary .back { margin-top: 16px; display: flex; justify-content: center; }
.hint { font-size: .9rem; color: var(--muted); }
.secure { font-size: .85rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .96rem; border-bottom: 1px dashed var(--line); }
.mini-lines li.total { border: 0; font: 500 1.25rem var(--serif); padding-top: 14px; }
@media (max-width: 960px) {
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

.progress { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--muted); counter-reset: p; }
.progress li { counter-increment: p; }
.progress li::before { content: counter(p) ". "; }
.progress li + li::before { content: "— " counter(p) ". "; }
.progress [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Formulaires ---------- */
.panel { background: var(--paper); border: 0; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin: 0 0 22px; }
.panel legend { font: 500 1.3rem var(--serif); padding: 0; float: left; width: 100%; margin-bottom: 16px; }
.panel legend small { font: 400 .9rem var(--sans); color: var(--muted); }
.panel legend + * { clear: both; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .94rem; margin-bottom: 16px; }
label small { color: var(--muted); font-weight: 400; }
input, textarea, select {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, background .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--honey); background: var(--paper); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 500; display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-zip { display: grid; grid-template-columns: 120px 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); }
.hp { position: absolute; left: -9999px; }

.ship-options { display: grid; gap: 10px; margin-bottom: 18px; }
.ship-option { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 400; }
.ship-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--honey); background: #fff8e9; }
.ship-option input { width: 18px; height: 18px; accent-color: var(--amber); margin: 0; }
.ship-body { display: grid; gap: 2px; }
.ship-body small { color: var(--muted); font-size: .86rem; }
.ship-price { font-weight: 600; white-space: nowrap; }
.address-fields[hidden] { display: none; }

/* ---------- Contact / merci ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-aside { padding: 10px 0; }
.big-link { font: 500 1.6rem var(--serif); text-decoration: none; }
.sent, .thanks { text-align: center; }
.thanks .lead { margin-inline: auto; }
.order-recap { text-align: left; margin: 30px 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.legal h2 { font-size: 1.35rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 26px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 12px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--muted); }
.site-footer h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.site-footer p { color: var(--ink-2); }
.site-footer a { text-decoration: none; }
.socials a { margin-right: 14px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--muted); font-size: .86rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq h2 { margin: 40px 0 14px; scroll-margin-top: 90px; }
.faq h2:first-child { margin-top: 0; }
.faq-item { background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; scroll-margin-top: 90px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.06rem; margin: 0; line-height: 1.35; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--amber); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover h3 { color: var(--amber); }
.faq-item .prose { padding: 0 20px 18px; color: var(--muted); }
.faq-item .prose p:last-child { margin-bottom: 0; }
.faq-cta { margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--honey-soft); text-align: center; }
.faq-cta h2 { margin: 0 0 8px; }
.faq-cta .btn { margin: 8px 14px 0 0; }
.footer-bottom .credit { flex-basis: 100%; text-align: center; font-size: .8rem; opacity: .75; }
