/* Vanille Raigniac — feuille de style commune */
:root {
  --nuit: #0a1628;
  --nuit-2: #162447;
  --or: #d4af37;
  --or-vif: #ffd700;
  --creme: #f8f4ed;
  --creme-2: #eeded4;
  --sable: #e8dcc4;
  --texte: #0a1628;
  --texte-doux: #5b6272;
  --blanc: #fff;
  --ok: #2e7d4f;
  --erreur: #b3261e;
  --rayon: 10px;
  --ombre: 0 10px 30px rgba(10, 22, 40, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-weight: 300; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.5rem; }
p { margin: 0 0 1em; }
.conteneur { width: min(1140px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(820px, 100% - 32px); margin-inline: auto; }
.centre { text-align: center; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(165deg, var(--nuit) 0%, var(--nuit-2) 100%);
  color: var(--creme);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; }
.marque img { width: 52px; height: 52px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--or); }
.lien-panier { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.lien-panier svg { width: 22px; height: 22px; }
.pastille {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--or); color: var(--nuit); font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pastille[data-vide] { display: none; }
.burger { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.burger svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nuit); padding: 8px 16px 16px;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; cursor: pointer; border: 0;
  background: var(--or-vif); color: #000;
  font: 600 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 4px; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,175,55,.35); }
.bouton:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.bouton-contour { background: transparent; color: var(--nuit); border: 1.5px solid var(--nuit); }
.bouton-contour:hover { background: var(--nuit); color: var(--creme); box-shadow: none; }
.bouton-plein { width: 100%; text-align: center; }

/* ---------- Sections ---------- */
.hero {
  background: linear-gradient(165deg, var(--nuit) 0%, var(--nuit-2) 50%, #0a1f3d 100%);
  color: var(--creme); text-align: center; padding: clamp(70px, 12vw, 140px) 0;
}
.hero-sur { color: var(--or); font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: var(--blanc); }
.hero h1 em { display: block; font-style: normal; color: var(--or); font-weight: 500; }
.hero p { color: var(--sable); font-weight: 300; font-size: 1.1rem; max-width: 640px; margin: 0 auto 36px; }
.hero-court { padding: clamp(50px, 8vw, 90px) 0; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-creme { background: var(--creme); }
.section-degrade { background: linear-gradient(var(--creme) 0%, var(--creme-2) 100%); }
.section-nuit { background: var(--nuit); color: var(--creme); }
.section-nuit h2 { color: var(--or); }
.sous-titre { color: var(--texte-doux); margin-top: -10px; margin-bottom: 44px; }

.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.carte {
  background: var(--blanc); border-radius: var(--rayon); padding: 34px 28px;
  box-shadow: var(--ombre); text-align: center;
}
.carte .icone { font-size: 2rem; margin-bottom: 10px; color: var(--or); }
.carte p { color: var(--texte-doux); margin: 0; }

.bandeau-atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 22px 0; background: var(--creme); font-size: .88rem; font-weight: 500; }
.bandeau-atouts span::before { content: "✦ "; color: var(--or); }

/* ---------- Produits ---------- */
.grille-produits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.produit {
  position: relative; background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); display: flex; flex-direction: column;
}
.produit img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.produit-corps { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.produit h3 { margin-bottom: 4px; }
.produit .accroche { color: var(--texte-doux); font-size: .92rem; }
.produit ul { padding-left: 18px; margin: 0 0 16px; font-size: .9rem; color: var(--texte-doux); }
.prix { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--nuit); }
.prix-unite { font-size: .82rem; color: var(--texte-doux); margin-bottom: 16px; }
.produit .bouton { margin-top: auto; }
.etiquette {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--nuit); color: var(--or); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 20px;
}
.mention-tva { font-size: .82rem; color: var(--texte-doux); font-style: italic; }

/* Fiche produit */
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr; } }
.galerie-principale { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--blanc); }
.galerie-principale img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.miniatures { display: flex; gap: 10px; margin-top: 12px; }
.miniatures button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; width: 76px; }
.miniatures button[aria-pressed="true"] { border-color: var(--or); }
.miniatures img { aspect-ratio: 1; object-fit: cover; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; border: 0; padding: 0; }
.formats legend { font-weight: 600; margin-bottom: 8px; }
.formats label {
  border: 1.5px solid var(--sable); border-radius: 8px; padding: 12px; cursor: pointer;
  display: flex; flex-direction: column; font-size: .9rem;
}
.formats label strong { font-size: 1rem; }
.formats input { position: absolute; opacity: 0; }
.formats input:checked + label { border-color: var(--or); background: #fffbea; }
.formats input:focus-visible + label { outline: 2px solid var(--nuit); }
.quantite { display: inline-flex; align-items: center; border: 1.5px solid var(--sable); border-radius: 6px; }
.quantite button { background: none; border: 0; width: 38px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.quantite input { width: 46px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.quantite input::-webkit-outer-spin-button, .quantite input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ligne-achat { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ligne-achat .bouton { flex: 1; }
.description h2 { font-size: 1.8rem; margin-top: 1.4em; }

/* ---------- Panier ---------- */
.panier { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .panier { grid-template-columns: 1fr; } }
.ligne-panier { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--sable); }
.ligne-panier img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; }
.ligne-panier .nom { font-weight: 600; }
.ligne-panier .actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.lien-retirer { background: none; border: 0; color: var(--texte-doux); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; }
.recap { background: var(--creme); border-radius: var(--rayon); padding: 26px; position: sticky; top: 100px; }
.recap dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.recap dd { margin: 0; text-align: right; }
.recap .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--sable); padding-top: 10px; }
.recap .aide { font-size: .85rem; color: var(--texte-doux); }
.jauge { height: 6px; border-radius: 3px; background: var(--sable); overflow: hidden; margin: 6px 0 16px; }
.jauge div { height: 100%; background: var(--or); }
.case-cgv { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 16px; }
.case-cgv input { margin-top: 5px; }
.message { padding: 12px 16px; border-radius: 6px; margin: 12px 0; font-size: .9rem; }
.message-erreur { background: #fdecea; color: var(--erreur); }
.message-ok { background: #e8f5ec; color: var(--ok); }
.panier-vide { text-align: center; padding: 40px 0; }

/* ---------- Notification ajout ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px);
  background: var(--nuit); color: var(--creme); padding: 14px 20px; border-radius: 8px;
  box-shadow: var(--ombre); z-index: 100; display: flex; gap: 16px; align-items: center;
  transition: transform .3s; max-width: calc(100% - 32px);
}
.toast.visible { transform: translate(-50%, 0); }
.toast a { color: var(--or); font-weight: 600; white-space: nowrap; }

/* ---------- Recettes ---------- */
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filtres button { border: 1.5px solid var(--sable); background: var(--blanc); border-radius: 30px; padding: 8px 18px; cursor: pointer; font: 500 .88rem var(--sans); }
.filtres button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--or); }
.recettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 400px) { .recettes { grid-template-columns: 1fr; } }
.recette { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 28px; border-top: 4px solid var(--or); }
.recette[hidden] { display: none; }
.recette .categorie { color: var(--or); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.recette .infos { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--texte-doux); margin-bottom: 12px; }
.recette h4 { font-family: var(--serif); font-size: 1.2rem; margin: 18px 0 6px; }
.recette ul, .recette ol { padding-left: 20px; margin: 0; font-size: .93rem; }
.astuce { background: var(--creme); border-left: 3px solid var(--or); padding: 12px 16px; margin-top: 16px; font-size: .9rem; border-radius: 0 6px 6px 0; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 16px; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .formulaire .deux { grid-template-columns: 1fr; } }
.formulaire label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.formulaire input, .formulaire textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--sable); border-radius: 6px; background: var(--blanc);
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--or); }
.pot-de-miel { position: absolute; left: -9999px; }

/* ---------- Pages texte (CGV, etc.) ---------- */
.texte-legal { padding: 60px 0 80px; }
.texte-legal h2 { font-size: 1.7rem; margin-top: 1.8em; }
.texte-legal h3 { font-size: 1.25rem; margin-top: 1.4em; }
.texte-legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .92rem; }
.texte-legal th, .texte-legal td { border: 1px solid var(--sable); padding: 10px; text-align: left; vertical-align: top; }
.texte-legal th { background: var(--creme); }
.texte-legal .maj { color: var(--texte-doux); font-style: italic; }
.tableau-defilant { overflow-x: auto; }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: var(--sable); padding: 56px 0 28px; font-size: .9rem; }
.pied .colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pied h3 { color: var(--or); font-size: 1.3rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied .bas { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .8rem; }

/* =========================================================
   V2 — ajouts
   ========================================================= */

/* Bandeau d'annonce */
.annonce { background: var(--or); color: var(--nuit); text-align: center; font-size: .82rem; font-weight: 600; padding: 8px 16px; letter-spacing: .02em; }
.annonce a { color: inherit; }
.annonce:empty { display: none; }

/* Héros photo */
.hero-photo { position: relative; background: var(--nuit) center/cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.72) 55%, rgba(10,22,40,.35) 100%); }
.hero-photo > * { position: relative; }
.hero-gauche { text-align: left; }
.hero-gauche p { margin-left: 0; }
.hero-boutons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-gauche .hero-boutons { justify-content: flex-start; }
.bouton-clair { background: transparent; color: var(--creme); border: 1.5px solid var(--creme); }
.bouton-clair:hover { background: var(--creme); color: var(--nuit); box-shadow: none; }

/* Bande de réassurance */
.reassurance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding: 26px 0; }
.reassurance div { display: flex; gap: 10px; align-items: center; font-size: .86rem; line-height: 1.35; }
.reassurance strong { display: block; }
.reassurance .pic { font-size: 1.5rem; color: var(--or); flex: none; }

/* Économie */
.economie { display: inline-block; background: #e8f5ec; color: var(--ok); font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.formats .economie { margin: 4px 0 0; align-self: flex-start; }

/* Blocs image + texte */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.duo img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; object-fit: cover; }
.duo-inverse > :first-child { order: 2; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 28px; } .duo-inverse > :first-child { order: 0; } }

/* Étapes plantation */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; counter-reset: etape; }
.etape { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.etape img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.etape div { padding: 20px 22px; }
.etape h3::before { counter-increment: etape; content: counter(etape) ". "; color: var(--or); }
.etape p { color: var(--texte-doux); font-size: .93rem; margin: 0; }

/* Cartes recettes / guides avec photo */
.cartes-photo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.carte-photo { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s; }
.carte-photo:hover { transform: translateY(-4px); }
.carte-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.carte-photo div { padding: 18px 20px 22px; }
.carte-photo h3 { font-size: 1.35rem; margin-bottom: 6px; }
.carte-photo p { color: var(--texte-doux); font-size: .9rem; margin: 0; }
.carte-photo .categorie { color: var(--or); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.carte-photo[hidden] { display: none; }

/* Page recette / article */
.article { padding: 50px 0 70px; }
.article .chapeau { font-size: 1.12rem; color: var(--texte-doux); }
.article h2 { font-size: 1.9rem; margin-top: 1.6em; }
.article h3 { font-size: 1.35rem; margin-top: 1.3em; }
.article img.illustration { border-radius: var(--rayon); margin: 26px 0; width: 100%; max-height: 520px; object-fit: cover; }
.fil-ariane { font-size: .82rem; color: var(--texte-doux); margin-bottom: 18px; }
.fil-ariane a { color: inherit; }
.recette-infos { display: flex; flex-wrap: wrap; gap: 10px 22px; background: var(--creme); padding: 14px 18px; border-radius: 8px; font-size: .92rem; }
.encart-achat { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; background: var(--nuit); color: var(--creme); border-radius: var(--rayon); padding: 20px; margin: 36px 0; }
.encart-achat img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.encart-achat p { margin: 0 0 10px; }
.encart-achat strong { color: var(--or); }
@media (max-width: 520px) { .encart-achat { grid-template-columns: 1fr; } .encart-achat img { max-width: 140px; } }
.etapes-recette { counter-reset: pas; list-style: none; padding: 0; }
.etapes-recette li { counter-increment: pas; position: relative; padding: 0 0 18px 48px; }
.etapes-recette li::before { content: counter(pas); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--or); color: var(--nuit); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--sable); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--or); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--texte-doux); }

/* Fiche produit : réassurance + barre mobile */
.garanties { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; font-size: .9rem; }
.garanties li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--blanc); box-shadow: 0 -6px 20px rgba(10,22,40,.15); padding: 10px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px; }
.barre-achat .prix { font-size: 1.4rem; }
.barre-achat .bouton { padding: 13px 18px; }
@media (max-width: 860px) { .barre-achat.visible { display: flex; } body.avec-barre { padding-bottom: 70px; } }

/* Suggestion panier */
.suggestion { border: 1.5px dashed var(--or); border-radius: 8px; padding: 14px 16px; margin: 20px 0; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fffbea; font-size: .92rem; }
.suggestion .bouton { padding: 11px 16px; font-size: .75rem; }

/* Newsletter */
.newsletter { background: linear-gradient(165deg, var(--nuit) 0%, var(--nuit-2) 100%); color: var(--creme); }
.newsletter h2 { color: var(--blanc); }
.newsletter p { color: var(--sable); }
.form-newsletter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 520px; margin: 0 auto; }
.form-newsletter input[type=email] { flex: 1 1 240px; font: inherit; padding: 14px 16px; border-radius: 4px; border: 0; }
.form-newsletter .consentement { flex-basis: 100%; font-size: .78rem; color: var(--sable); display: flex; gap: 8px; align-items: flex-start; text-align: left; }
.form-newsletter .consentement input { margin-top: 4px; }
.pied .form-newsletter { justify-content: flex-start; margin: 0; }
.pied .form-newsletter input[type=email] { padding: 10px 12px; }
.pied .form-newsletter .bouton { padding: 12px 16px; }
.retour-newsletter { flex-basis: 100%; font-size: .88rem; }

/* Fondateur */
.fondateur img { aspect-ratio: 4/5; max-height: 560px; }
.signature { font-family: var(--serif); font-size: 1.5rem; color: var(--or); font-style: italic; }

/* Galerie : 5 miniatures qui tiennent sur mobile */
.fiche > * { min-width: 0; }
.miniatures { overflow-x: auto; }
.miniatures button { flex: 0 0 auto; width: 64px; }
