/* =====================================================================
   LE RUCHER DE KER-WEN — Feuille de style principale
   Charte : Anthracite / Crème / Ambre (miel)
   Aucun build requis. CSS vanilla, variables natives.
   ===================================================================== */

/* ---------- 0. Polices self-hébergées (RGPD + performance) ----------
   Fichiers woff2 dans assets/fonts/ (source : @fontsource, licence OFL).
   Subset latin (couvre le français, œ inclus). font-display:swap = texte
   visible immédiatement avec la police de repli pendant le chargement. */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* ---------- 1. Variables de design ---------- */
:root {
  /* Couleurs */
  --anthracite:      #1b1a18;
  --anthracite-soft: #2a2824;
  --cream:           #f6f1e7;
  --cream-deep:      #ece3d2;
  --ivory:           #fbf8f1;
  --amber:           #b8801f;
  --amber-bright:    #d49a2b;
  --amber-deep:      #8c5f12;
  /* Ambre « porteur de texte blanc ». Le --amber de la charte ne donne que
     3,4:1 sur blanc — sous le minimum WCAG AA (4,5:1). Cette variante est
     réservée aux SURFACES qui portent du texte blanc (boutons, badges,
     bulles) et atteint 4,7:1. Le --amber d'origine reste utilisé partout
     où il est décoratif (filets, points, bordures), sans perte d'identité. */
  --amber-ink:       #9c6a16;

  --text:            #2a2824;
  --text-muted:      #6f685c;
  --text-inverse:    #f6f1e7;
  --line:            #e2d8c5;
  --line-dark:       #3a372f;

  /* Typographie */
  --font-title: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mesures */
  --header-h: 132px;            /* hauteur totale du header (bandeau marque + nav) */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --shadow-soft: 0 14px 40px rgba(27, 26, 24, 0.10);
  --shadow-card: 0 8px 26px rgba(27, 26, 24, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { margin: 0 0 1.1em; }

/* ---------- 3. Utilitaires ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--dark { background: var(--anthracite); color: var(--text-inverse); }
.section--cream { background: var(--cream); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber-deep); margin-bottom: 1.1rem; display: inline-block;
}
.section--dark .eyebrow { color: var(--amber-bright); }
.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 60ch; }
.section--dark .lead { color: #cfc6b4; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Filet décoratif ambré */
.divider-bee {
  width: 64px; height: 1px; background: var(--amber);
  margin: 1.4rem 0; position: relative;
}
.text-center .divider-bee { margin-inline: auto; }
.divider-bee::after {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; background: var(--amber); border-radius: 50%;
}

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1rem 2.4rem; border: 1px solid var(--amber);
  border-radius: var(--radius); transition: all .35s var(--ease);
}
.btn--solid { background: var(--amber-ink); color: #fff; }
.btn--solid:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn--ghost { background: transparent; color: var(--anthracite); }
.section--dark .btn--ghost { color: var(--text-inverse); border-color: var(--amber-bright); }
.btn--ghost:hover { background: var(--amber-ink); color: #fff; border-color: var(--amber-ink); }
.btn--light { background: var(--cream); color: var(--anthracite); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; }

/* ---------- 5. Header (bandeau marque + barre de nav) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

/* Bandeau supérieur : logo centré + nom dessous */
.brand-band {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.1rem 0 .9rem; transition: padding .3s var(--ease);
}
.is-scrolled .brand-band { padding: .6rem 0 .5rem; }
.brand-logo {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--amber);
  background: var(--cream);
  transition: all .3s var(--ease);
}
.is-scrolled .brand-logo { width: 44px; height: 44px; }
.brand-logo svg { width: 60%; height: 60%; }
.brand-name {
  font-family: var(--font-title); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .06em; margin-top: .5rem; color: var(--anthracite);
  transition: font-size .3s var(--ease);
}
.is-scrolled .brand-name { font-size: 1.2rem; }
.brand-name span { color: var(--amber-deep); }

/* Barre de navigation */
.nav-bar { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.nav-menu { display: flex; gap: clamp(1rem, 3vw, 2.6rem); }
.nav-menu a {
  position: relative; font-size: .82rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  padding: .7rem 0; transition: color .25s var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: .35rem;
  width: 0; height: 1.5px; background: var(--amber); transition: width .3s var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--amber-deep); }
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }

/* Burger (mobile) */
.nav-toggle {
  display: none; position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: .5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--anthracite); margin: 5px 0; transition: .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Décalage du contenu sous le header fixe */
.page { padding-top: var(--header-h); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: calc(86vh - var(--header-h));
  display: grid; place-items: center; text-align: center;
  color: var(--text-inverse); overflow: hidden;
  background:
    linear-gradient(rgba(20,19,17,.55), rgba(20,19,17,.55)),
    radial-gradient(120% 120% at 50% 0%, #3a352b 0%, #1b1a18 70%);
  background-size: cover; background-position: center;
}
/* Si une vraie photo est déposée, décommenter dans head/page :
   .hero { background-image: linear-gradient(...) , url('assets/img/hero.jpg'); } */
.hero__inner { max-width: 760px; padding: 3rem var(--gutter); }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p { font-size: 1.22rem; color: #ece3d2; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--amber-bright); }

/* ---------- 7. Sections de contenu ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .media { order: 2; }
.media {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cream-deep), #ddd0b6);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative; overflow: hidden; box-shadow: var(--shadow-card);
}
.media::after {
  content: attr(data-label); position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-deep); opacity: .65;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cartes valeurs */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: 2.5rem; }
.value-card {
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.8rem; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.value-card .ico { width: 46px; height: 46px; margin: 0 auto 1.1rem; color: var(--amber); }
.value-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.value-card p { color: var(--text-muted); font-size: .98rem; margin: 0; }

/* Bande de rappel / CTA */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }

/* ---------- 8. Page intérieure (titre) ---------- */
.page-hero {
  background: var(--anthracite); color: var(--text-inverse);
  text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfc6b4; max-width: 60ch; margin-inline: auto; }
.breadcrumb { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 9. Contenu long (légal / article) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.9rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #3a372f; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  background: #fdf6e3; border: 1px solid #e8cf8c; border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 2.4rem;
  font-size: .95rem; color: #6b5618;
}
.legal-note strong { color: var(--amber-deep); }
.placeholder { background: #f3ead2; padding: .05em .35em; border-radius: 2px; color: var(--amber-deep); font-weight: 600; }

/* ---------- 10. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0;
  font-family: var(--font-title); font-size: 1.4rem; color: var(--anthracite);
  padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 1.6rem; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a__inner { padding-bottom: 1.4rem; color: var(--text-muted); }

/* ---------- 11. Blog / Journal ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.post-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.post-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--cream-deep), #ddd0b6); background-size: cover; background-position: center; background-repeat: no-repeat; }
.post-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: .6rem; }
.post-card__body h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.post-card__body p { color: var(--text-muted); font-size: .96rem; flex: 1; }
.post-card__link { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); margin-top: .8rem; }
.post-card__link:hover { color: var(--anthracite); }

article.prose img { border-radius: var(--radius); margin: 1.6rem 0; }
.article-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.related { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }

/* ---------- 12. Formulaire de contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; color: var(--text); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field textarea { min-height: 160px; resize: vertical; }
.contact-info { font-size: 1rem; }
.contact-info dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin-top: 1.3rem; }
.contact-info dd { margin: .2rem 0 0; }
.form-alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: .95rem; }
.form-alert--ok { background: #e9f3e6; border: 1px solid #b6d5ab; color: #355c2a; }
.form-alert--err { background: #fbe9e6; border: 1px solid #e2b3aa; color: #7a3326; }

/* ---------- 13. Bandeau « bientôt » (Notre production / Phase 2) ---------- */
.coming { text-align: center; max-width: 640px; margin-inline: auto; }
.coming .badge { display: inline-block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-deep); border: 1px solid var(--amber); border-radius: 100px; padding: .4rem 1.1rem; margin-bottom: 1.4rem; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--anthracite); color: #cfc6b4; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand-name { color: var(--cream); font-size: 1.5rem; }
.footer-brand p { font-size: .95rem; max-width: 32ch; margin-top: 1rem; }
.footer-col h2 { font-family: var(--font-body); font-size: .76rem; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-size: .94rem; color: #cfc6b4; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; transition: all .25s var(--ease); }
.footer-social a:hover { border-color: var(--amber); color: var(--amber-bright); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0; font-size: .82rem; color: #8a8273; }
.footer-bottom a:hover { color: #fff; }
.footer-credit { flex: 1 1 auto; text-align: center; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: #fff; }

/* ---------- 15. Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 116px; }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: flex-start; }
  .nav-menu {
    position: fixed; top: var(--header-h); right: 0; left: 0; bottom: 0;
    flex-direction: column; gap: 0; background: var(--ivory);
    border-top: 1px solid var(--line); padding: .3rem var(--gutter) 2rem;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s .4s;
    box-shadow: var(--shadow-soft); overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .4s var(--ease), visibility 0s 0s; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 1rem .1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav-menu li:last-child a { border-bottom: 0; }
  .nav-menu a::after { display: none; }
  /* Masque l'assistant tant que le menu mobile est ouvert (évite le chevauchement) */
  body.nav-open .chat-fab, body.nav-open .chat-nudge { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .media { order: 0; }
  .values, .post-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* =====================================================================
   17. BOUTIQUE
   ===================================================================== */

/* Icône panier dans la nav */
.nav-cart {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--anthracite);
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem;
  transition: color .25s var(--ease);
}
.nav-cart:hover { color: var(--amber-deep); }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart__count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px;
  background: var(--amber-ink); color: #fff; font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; display: inline-grid; place-items: center;
}

/* Sous-navigation boutique */
.shop-subnav { background: var(--ivory); border-bottom: 1px solid var(--line); }
.shop-subnav .container { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; padding-block: .9rem; }
.shop-subnav__link {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); padding: .55rem 1.3rem; border-radius: 100px;
  border: 1px solid transparent; transition: all .2s var(--ease); white-space: nowrap;
}
.shop-subnav__link:hover { color: var(--anthracite); border-color: var(--line); }
.shop-subnav__link.is-active { background: var(--anthracite); color: var(--cream); border-color: var(--anthracite); }

/* Deux collections */
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.collection-card {
  display: flex; flex-direction: column; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.collection-card__media { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.collection-card__body { padding: 1.8rem; }
.collection-card__body h2 { font-size: 2rem; margin-bottom: .4rem; }
.collection-card__body p { color: var(--text-muted); }
.collection-card__link { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.collection-card:hover .collection-card__link { color: var(--anthracite); }

/* Grille produits */
/* Grille adaptative et centrée : s'ajuste au nombre de produits (1 seul miel
   aujourd'hui → carte centrée, pas perdue dans une grille à 4 colonnes ; se
   remplit proprement quand le catalogue s'étoffe). */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: clamp(1.2rem, 2.4vw, 2rem); justify-content: center; }
.shop-card {
  display: flex; flex-direction: column; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.shop-card__media { position: relative; aspect-ratio: 1 / 1; background-size: cover; background-position: center; display: block; overflow: hidden; }
.shop-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.shop-card__attr { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.shop-card__body h3 { font-size: 1.4rem; margin: .25rem 0 .4rem; }
.shop-card__body h3 a:hover { color: var(--amber-deep); }
.shop-card__short { color: var(--text-muted); font-size: .92rem; flex: 1; margin-bottom: 1rem; }
/* Prix + CTA : autorise le retour à la ligne pour que le bouton ne déborde
   jamais d'une carte étroite (le bouton passe pleine largeur sous le prix). */
.shop-card__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.shop-card__buy > .btn { flex: 1 1 100%; text-align: center; }
.shop-card__price { font-family: var(--font-title); font-size: 1.4rem; color: var(--anthracite); white-space: nowrap; }

/* Badges */
.shop-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: var(--anthracite); color: var(--cream);
  font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 100px;
}
.shop-badge--season { top: auto; bottom: .8rem; left: .8rem; background: var(--amber-ink); color: #fff; }
.shop-badge--stock { top: .8rem; right: .8rem; left: auto; }
.shop-badge--low { background: var(--amber-deep); color: #fff; }
.shop-badge--out { background: #7a3326; color: #fff; }
.btn-out { background: var(--line); color: var(--text-muted); border: 1px solid var(--line); cursor: not-allowed; }

/* --- État « Récolte en cours » (miel pas encore récolté) --- */
.shop-badge--soon { background: var(--amber-deep); color: #fff; top: .8rem; left: .8rem; }
.shop-card__soon {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .35rem; text-align: center;
  padding: 1rem; color: var(--amber-deep);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.65), rgba(255,255,255,0) 60%),
    url('../img/motif-comb-1.svg') center/150px repeat,
    linear-gradient(160deg, #f6ead2, #efe0c4);
}
.shop-card__soon svg { width: 34px; height: 34px; opacity: .8; margin-bottom: .2rem; }
.shop-card__soon-title { font-family: var(--font-title); font-size: 1.35rem; color: var(--anthracite); line-height: 1.1; }
.shop-card__soon-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-deep); }
.shop-card__price-soon { font-family: var(--font-body); font-size: .82rem; color: var(--text-muted); letter-spacing: .01em; white-space: normal; }
.btn-notify { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn-notify:hover { background: var(--anthracite); border-color: var(--anthracite); }

/* Fiche produit en attente de récolte */
.pgallery-main--soon { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; }
.product-soon { margin-top: .4rem; }
.product-soon__lead { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.product-soon__price { font-family: var(--font-title); font-size: 1.15rem; color: var(--anthracite); margin: 1rem 0 1.1rem; }
.product-soon .btn-notify { display: inline-flex; }
.product-soon__note { font-size: .84rem; color: var(--text-muted); margin-top: .8rem; }

.product-stock { font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin: -.4rem 0 1rem; }
.product-stock--in { color: #3a7d2c; }
.product-stock--low { color: var(--amber-deep); }
.product-stock--out { color: #7a3326; }

/* Boutons boutique */
.btn-quick { padding: .7rem 1.2rem; font-size: .72rem; }
.btn-cart-detail { flex: 1; }
.btn-sub { display: inline-block; width: 100%; text-align: center; margin-top: .9rem; }

/* Note produits vivants */
.live-note {
  background: #fdf6e3; border: 1px solid #e8cf8c; border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: .95rem; color: #6b5618; line-height: 1.6;
}
.live-note strong { color: var(--amber-deep); }
.live-note--compact { margin-top: 1.2rem; font-size: .88rem; padding: .9rem 1.1rem; }

/* Fiche produit */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pgallery-main {
  aspect-ratio: 1 / 1; border-radius: var(--radius); background-size: cover; background-position: center;
  box-shadow: var(--shadow-card); position: relative; border: 1px solid var(--line);
}
.pgallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; }
.pgallery-thumb {
  width: 80px; height: 80px; border-radius: var(--radius); background-size: cover; background-position: center;
  border: 1px solid var(--line); cursor: pointer; padding: 0; transition: border-color .2s var(--ease);
}
.pgallery-thumb.is-active, .pgallery-thumb:hover { border-color: var(--amber); }

.product-info h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: .5rem; }
.product-attr { display: inline-flex; align-items: center; gap: .45rem; color: var(--amber-deep); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.4rem; }
.product-attr svg { width: 18px; height: 18px; }
.product-desc p { color: #3a372f; }
.product-season { font-size: .95rem; color: var(--text-muted); }
.product-rule { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.product-field__label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; color: var(--text); }
.size-select { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.size-opt {
  min-width: 70px; padding: .65rem 1.1rem; cursor: pointer;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color: var(--text); transition: all .2s var(--ease);
}
.size-opt:hover { border-color: var(--amber); }
.size-opt.is-active { background: var(--anthracite); color: var(--cream); border-color: var(--anthracite); }

.product-price { font-family: var(--font-title); font-size: 2.4rem; color: var(--anthracite); margin: .3rem 0 1.2rem; }

.product-actions { display: flex; gap: .9rem; align-items: stretch; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty-stepper button { width: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--anthracite); }
.qty-stepper button:hover { background: var(--cream); }
.qty-stepper input { width: 48px; text-align: center; border: 0; border-inline: 1px solid var(--line); font-family: var(--font-body); font-size: 1rem; padding: .85rem 0; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-sub-note { font-size: .82rem; color: var(--text-muted); margin-top: .5rem; }

.related-products { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-top: 2.5rem; }
.related-products h2 { font-size: 2rem; }

/* Toast (repli boutique non activée) */
.shop-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--anthracite); color: var(--cream); padding: .9rem 1.4rem;
  border-radius: var(--radius); box-shadow: var(--shadow-soft); font-size: .92rem;
  z-index: 2000; opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); max-width: 90vw;
}
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Panier — tiroir latéral */
.cart-overlay { position: fixed; inset: 0; background: rgba(20,19,17,.45); z-index: 1500; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 384px; max-width: 92vw;
  background: var(--ivory); z-index: 1600; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .35s var(--ease); box-shadow: var(--shadow-soft);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { margin: 0; font-size: 1.5rem; }
.cart-close { background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--text-muted); }
.cart-close:hover { color: var(--anthracite); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: .6rem 1.4rem; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 2.5rem 0; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .85rem; align-items: start; padding: .95rem 0; border-bottom: 1px solid var(--line); position: relative; }
.cart-line__img { width: 56px; height: 56px; border-radius: var(--radius); background-size: cover; background-position: center; border: 1px solid var(--line); }
.cart-line__name { font-family: var(--font-title); font-size: 1.12rem; line-height: 1.2; }
.cart-line__meta { font-size: .72rem; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .1em; margin-top: .15rem; }
.cart-line__qty { display: inline-flex; align-items: center; gap: .7rem; margin-top: .45rem; }
.cart-line__qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-line__qty button:hover { border-color: var(--amber); }
.cart-line__price { font-family: var(--font-title); font-size: 1.05rem; white-space: nowrap; }
.cart-line__remove { position: absolute; right: 0; bottom: .95rem; background: none; border: 0; color: var(--text-muted); font-size: 1.15rem; cursor: pointer; }
.cart-line__remove:hover { color: var(--amber-deep); }
.cart-drawer__foot { border-top: 1px solid var(--line); padding: 1.3rem 1.4rem; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-title); font-size: 1.4rem; margin-bottom: 1rem; }
.cart-drawer__foot .btn { width: 100%; }
.cart-note { font-size: .76rem; color: var(--text-muted); margin: .8rem 0 0; text-align: center; }
@media (max-width: 480px) { .cart-drawer { width: 100%; } }

/* Responsive boutique */
/* La grille auto-fit gère seule le nombre de colonnes selon la largeur —
   plus besoin de forcer 2 colonnes ici (évitait un miel esseulé à gauche). */
@media (max-width: 900px) {
  .collections { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .nav-cart { right: 4.2rem; }
}
@media (max-width: 520px) {
  .shop-grid { gap: 1rem; }
  .shop-card__body { padding: 1rem; }
  .shop-card__body h3 { font-size: 1.2rem; }
  .product-actions { flex-wrap: wrap; }
  .btn-cart-detail { flex-basis: 100%; }
}

/* ---------- Bandeau boutique (paiement pas encore activé) ---------- */
.shop-notice {
  background: var(--amber-deep); color: var(--cream);
  font-size: .92rem; text-align: center;
}
.shop-notice .container { padding-block: .7rem; }
.shop-notice strong { color: #fff; }
.shop-notice a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.shop-notice a:hover { color: var(--amber-bright); }

/* ===================== ASSISTANT IA (chat) ===================== */
.chat-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1200;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--amber-ink); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow-soft); display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.chat-fab:hover { background: var(--amber-deep); transform: translateY(-2px); }
.chat-fab svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1250;
  width: 380px; max-width: calc(100vw - 2rem);
  height: 560px; max-height: calc(100vh - 3rem);
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.chat-panel__head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; background: var(--anthracite); color: var(--cream); }
.chat-mark { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.chat-mark svg { width: 18px; height: 18px; color: var(--amber-bright); }
.chat-panel__titles { flex: 1; line-height: 1.15; }
.chat-panel__title { font-family: var(--font-title); font-size: 1.25rem; }
.chat-panel__sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-bright); }
.chat-panel__close { background: none; border: 0; color: var(--cream); opacity: .75; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-panel__close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.chat-msg { max-width: 85%; padding: .6rem .8rem; font-size: .9rem; line-height: 1.45; border-radius: 10px; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 3px; }
.chat-msg--user { align-self: flex-end; background: var(--amber-ink); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg a { color: inherit; text-decoration: underline; }

.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .1rem 0; }
.chat-chip { font-size: .78rem; padding: .4rem .7rem; border: 1px solid var(--line); background: #fff; border-radius: 100px; cursor: pointer; color: var(--text-muted); transition: border-color .15s var(--ease), color .15s var(--ease); }
.chat-chip:hover { border-color: var(--amber); color: var(--amber-deep); }

.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); opacity: .4; animation: chatdot 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatdot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }

.chat-foot { border-top: 1px solid var(--line); padding: .7rem .8rem .55rem; background: var(--ivory); }
.chat-inputrow { display: flex; gap: .5rem; align-items: flex-end; }
.chat-input { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .7rem; font-family: var(--font-body); font-size: .9rem; line-height: 1.35; max-height: 96px; background: #fff; color: var(--text); }
.chat-input:focus { outline: none; border-color: var(--amber); }
.chat-send { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; border: 0; background: var(--amber-ink); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-send:hover { background: var(--amber-deep); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send svg { width: 18px; height: 18px; }
.chat-consent { font-size: .66rem; color: var(--text-muted); text-align: center; margin: .45rem 0 0; }
.chat-consent a { color: var(--amber-deep); }
/* Bloc transparence IA + crédit agence, séparé par un filet (charte du site). */
.chat-credit { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .45rem; text-align: center; }
.chat-credit__note { font-size: .64rem; color: var(--text-muted); margin: 0; line-height: 1.35; }
.chat-credit__by { font-size: .64rem; color: var(--text-muted); margin: .2rem 0 0; }
.chat-credit__by a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 2px; }
.chat-credit__by a:hover { color: var(--amber-bright); }

@media (max-width: 480px) {
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; }
  .chat-fab { right: 1rem; bottom: 1rem; }
}

/* --- Assistant : halo pulsé + bulle d'invitation --- */
.chat-fab { position: fixed; }
.chat-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(184,128,31,.45);
  animation: chatpulse 2.6s var(--ease) infinite;
  will-change: transform, opacity;
}
.chat-fab:hover::before, .chat-fab[aria-expanded="true"]::before { animation: none; }
/* Animée en transform/opacity uniquement : composée par le GPU, donc
   sans repaint à chaque image (l'ancienne version animait box-shadow,
   signalée par Lighthouse comme « animation non composée »). */
@keyframes chatpulse {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
/* Respect du réglage système « réduire les animations ». */
@media (prefers-reduced-motion: reduce) {
  .chat-fab::before { animation: none; }
}

.chat-nudge {
  position: fixed; right: 1.5rem; bottom: 5.7rem; z-index: 1240;
  display: flex; align-items: center; gap: .5rem;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 100px;
  box-shadow: var(--shadow-soft); padding: .5rem .6rem .5rem .95rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat-nudge.is-visible { opacity: 1; transform: none; }
/* pointe dirigée vers le bas (vers le bouton), avec un liseré de bordure */
.chat-nudge::before {
  content: ""; position: absolute; right: 21px; bottom: -8px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid var(--line);
}
.chat-nudge::after {
  content: ""; position: absolute; right: 22px; bottom: -6px;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid var(--ivory);
}
.chat-nudge__text {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--font-body); font-size: .84rem; line-height: 1.3; color: var(--text);
}
.chat-nudge__text:hover { color: var(--amber-deep); }
.chat-nudge__close {
  background: none; border: 0; cursor: pointer; color: var(--text-muted);
  font-size: 1.05rem; line-height: 1; padding: 0 .15rem;
}
.chat-nudge__close:hover { color: var(--anthracite); }

@media (max-width: 480px) {
  .chat-nudge { right: 1rem; bottom: 5.2rem; }
}
