/* =========================================================
   BIOKA — Sain, Naturel et Authentique
   Feuille de style unique pour tout le site
   ========================================================= */

:root {
  /* Couleurs du logo */
  --vert-900: #0d3b2e;
  --vert-800: #12503f;
  --vert-700: #177a5f;   /* "BI KAY" du logo */
  --lime: #5db82e;       /* feuille du logo */
  --lime-clair: #e9f5df;
  /* Couleurs des produits (miel, kraft, cacao) */
  --miel: #d9822b;
  --kraft: #c8955a;
  --cacao: #5a3825;
  /* Neutres */
  --creme: #faf6ef;
  --sable: #f1e9dc;
  --blanc: #ffffff;
  --encre: #15241e;
  --gris: #5b6b64;
  --ligne: #e6ded1;
  --danger: #c0392b;

  --rayon: 6px;
  --rayon-s: 4px;
  --ombre: 0 1px 2px rgba(13, 59, 46, .06), 0 6px 18px rgba(13, 59, 46, .06);
  --ombre-forte: 0 2px 4px rgba(13, 59, 46, .08), 0 20px 48px rgba(13, 59, 46, .14);
  --largeur: 1240px;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--vert-700); text-decoration: none; }
a:hover { color: var(--vert-900); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--vert-900);
  letter-spacing: -.02em;
  font-weight: 500;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
em { font-style: italic; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: min(var(--largeur), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-sable { background: var(--sable); }
.centre { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.surtitre {
  display: block;
  font-family: var(--texte);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1rem;
}

.entete-section { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.entete-section p { color: var(--gris); font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--texte); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .9rem 1.6rem;
  border-radius: var(--rayon-s);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primaire { background: var(--vert-900); color: #fff; }
.btn-primaire:hover { background: var(--vert-700); color: #fff; }
.btn-lime { background: var(--lime); color: var(--vert-900); }
.btn-lime:hover { background: #fff; color: var(--vert-900); }
.lien-fleche { font-weight: 600; color: var(--vert-900); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.lien-fleche:hover { color: var(--vert-700); }
.btn-contour { border-color: var(--vert-700); color: var(--vert-700); background: transparent; }
.btn-contour:hover { background: var(--vert-700); color: #fff; }
.btn-blanc { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-blanc:hover { background: #fff; color: var(--vert-900); }
.btn-moncash { background: #e2231a; color: #fff; }
.btn-moncash:hover { background: #c41b13; color: #fff; }
.btn-large { width: 100%; }
.btn-petit { padding: .5rem 1rem; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.entete.defile { border-color: var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { perspective: 600px; }
.logo img { height: 46px; width: auto; transform-style: preserve-3d; }
.logo img.tourne { animation: tourne-logo .6s cubic-bezier(.2,.8,.2,1); }
@keyframes tourne-logo { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-weight: 500; font-size: .95rem; color: var(--encre);
  padding: .4rem 0; border-bottom: 1.5px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { color: var(--vert-900); border-color: var(--ligne); }
.nav a.actif { color: var(--vert-900); border-color: var(--vert-900); }

.actions-entete { display: flex; align-items: center; gap: .3rem; }
.bouton-panier {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: none; color: var(--vert-900);
  transition: background .2s;
}
.bouton-panier:hover { background: var(--sable); color: var(--vert-900); }
.bouton-panier svg { width: 22px; height: 22px; }
.pastille {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--miel); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--creme);
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.pastille.visible { transform: scale(1); }
.pastille.rebond { animation: rebond .45s; }
@keyframes rebond { 40% { transform: scale(1.35); } }

.burger {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--vert-700); color: #fff; cursor: pointer;
  place-items: center;
}
.burger svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--creme);
    border-bottom: 1px solid var(--ligne);
    box-shadow: 0 20px 40px rgba(13, 59, 46, .12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.ouvert { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--ligne); }
}

/* ---------- Connexion cachée (5 clics rapides sur le logo) ---------- */
.porte-admin {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(8, 30, 23, .55); backdrop-filter: blur(6px);
  perspective: 1400px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.porte-admin.ouverte { opacity: 1; pointer-events: auto; }
.porte-admin .boite {
  width: min(400px, 100%); padding: 2.2rem; box-shadow: var(--ombre-forte);
  transform-origin: 50% 0;
  transform: rotateX(-82deg) translateY(-40px) scale(.9);
  transition: transform .9s cubic-bezier(.16, 1.2, .3, 1);
  backface-visibility: hidden;
}
.porte-admin.ouverte .boite { transform: rotateX(0) translateY(0) scale(1); }
.porte-admin img { height: 48px; width: auto; margin: 0 auto 1.2rem; }
.porte-admin .secousse { animation: secousse .4s; }
@keyframes secousse { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Accueil : ouverture ---------- */
.ouverture { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); }
.ouverture .conteneur { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ouverture h1 em { color: var(--vert-700); }
.ouverture .accroche { font-size: 1.15rem; color: var(--gris); max-width: 460px; margin: 1.6rem 0 2.2rem; }
.ouverture .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.ouverture .lieu { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--ligne); display: flex; gap: 2.5rem; flex-wrap: wrap; font-size: .9rem; color: var(--gris); }
.ouverture .lieu strong { display: block; color: var(--encre); font-weight: 600; }
@media (max-width: 900px) { .ouverture .conteneur { grid-template-columns: 1fr; } }

/* Photo en 3D : suit légèrement la souris */
.scene-3d { perspective: 1200px; }
.photo-3d {
  position: relative; border-radius: var(--rayon); overflow: hidden;
  aspect-ratio: 4 / 4.6; background: var(--sable);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 40px 80px -30px rgba(13, 59, 46, .45);
  will-change: transform;
}
.photo-3d img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) translateZ(0); }
/* Accueil : la photo est horizontale, le cadre prend sa forme pour la montrer en entier (sachet de chocolat compris) */
.ouverture .photo-3d { aspect-ratio: 3 / 2; }
.ouverture .photo-3d img { transform: scale(1.02) translateZ(0); }
.photo-3d .reflet {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.22), transparent 55%);
  mix-blend-mode: soft-light;
}
.photo-3d figcaption {
  position: absolute; left: 1.2rem; bottom: 1.1rem; color: #fff; font-size: .82rem; letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0,0,0,.45); transform: translateZ(40px);
}

/* ---------- Titres de section alignés à gauche ---------- */
.tete-section { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tete-section h2 { margin: 0; max-width: 620px; }
.tete-section p { color: var(--gris); margin: .8rem 0 0; max-width: 520px; }

/* ---------- Produits : vitrine sans encadré ---------- */
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 3rem 1.8rem; }
.carte-produit { display: flex; flex-direction: column; background: none; border: 0; }
.carte-produit .visuel {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--sable); border-radius: var(--rayon);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.carte-produit .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.carte-produit:hover .visuel img { transform: scale(1.05); }
.etiquette {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  background: var(--creme); color: var(--vert-900);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 3px;
}
.carte-produit .corps { padding: 1rem 0 0; display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: start; }
.carte-produit h3 { margin: 0; font-size: 1.2rem; }
.carte-produit h3 a { color: var(--vert-900); }
.carte-produit .desc { grid-column: 1 / -1; color: var(--gris); font-size: .92rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-produit .pied { display: contents; }
.carte-produit .pied > span:first-child { grid-row: 1; grid-column: 2; text-align: right; }
.prix { font-family: var(--texte); font-weight: 600; font-size: 1.05rem; color: var(--encre); white-space: nowrap; }
.prix small { font-size: .75em; font-weight: 500; color: var(--gris); margin-left: 3px; }
.bouton-ajout {
  grid-column: 1 / -1; margin-top: .7rem; justify-self: start;
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--vert-900); background: none; color: var(--vert-900);
  border-radius: var(--rayon-s); padding: .55rem .9rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s;
}
.bouton-ajout::after { content: "Ajouter au panier"; }
.bouton-ajout:hover { background: var(--vert-900); color: #fff; }
.bouton-ajout svg { width: 16px; height: 16px; }
.bouton-ajout[disabled] { opacity: .4; cursor: not-allowed; }
.bouton-ajout[disabled]::after { content: "Épuisé"; }
.squelette { background: linear-gradient(90deg, var(--sable) 25%, #f8f2e8 50%, var(--sable) 75%); background-size: 200% 100%; animation: brille 1.3s infinite; border-radius: var(--rayon); min-height: 360px; }
@keyframes brille { to { background-position: -200% 0; } }

/* Recherche du catalogue */
.barre-outils { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ligne); }
.recherche { position: relative; flex: 1; max-width: 360px; min-width: 220px; }
.recherche input { width: 100%; padding: .8rem 1rem .8rem 2.6rem; border-radius: var(--rayon-s); border: 1px solid var(--ligne); background: #fff; font: inherit; }
.recherche input:focus { outline: none; border-color: var(--vert-700); }
.recherche svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 17px; color: var(--gris); }
.compte-produits { color: var(--gris); font-size: .9rem; }

/* ---------- Grande photo pleine largeur ---------- */
.pleine-photo { position: relative; min-height: clamp(420px, 70vh, 680px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.pleine-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pleine-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 30, 23, .78)); z-index: 1; }
.pleine-photo .conteneur { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.pleine-photo blockquote { margin: 0; max-width: 760px; font-family: var(--titre); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -.015em; }
.pleine-photo cite { display: block; margin-top: 1rem; font-style: normal; font-size: .9rem; opacity: .8; letter-spacing: .04em; }
/* Diaporama de la grande photo */
.pleine-photo > .diapo { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.pleine-photo > .diapo.active { opacity: 1; }
.diapo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo .flou { display: none; }
@media (min-width: 700px) {
  /* Sur grand écran, la photo verticale est montrée en entier au centre */
  .diapo.portrait .flou { display: block; transform: scale(1.15); filter: blur(28px) brightness(.75); }
  .diapo.portrait img:not(.flou) { object-fit: contain; }
}
.points-diapo { display: flex; gap: .5rem; margin-top: 1.4rem; }
.points-diapo button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; transition: background .3s, transform .3s; }
.points-diapo button.active { background: #fff; transform: scale(1.25); }
.points-diapo button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Notre démarche ---------- */
.demarche .conteneur { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mosaique img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--rayon); }
.mosaique img:nth-child(2) { margin-top: 3.5rem; }
.etapes-demarche { list-style: none; padding: 0; margin: 2rem 0 2.2rem; counter-reset: etape; }
.etapes-demarche li { counter-increment: etape; display: grid; grid-template-columns: 3rem 1fr; padding: 1.3rem 0; border-top: 1px solid var(--ligne); }
.etapes-demarche li:last-child { border-bottom: 1px solid var(--ligne); }
.etapes-demarche li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titre); color: var(--vert-700); font-size: 1.1rem; }
.etapes-demarche strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.etapes-demarche span { color: var(--gris); font-size: .95rem; }
@media (max-width: 900px) { .demarche .conteneur { grid-template-columns: 1fr; } }

/* ---------- Journal (articles en liste) ---------- */
.journal { list-style: none; padding: 0; margin: 0; }
.journal a { display: grid; grid-template-columns: 9rem 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--ligne); color: var(--encre); transition: padding .3s; }
.journal li:last-child a { border-bottom: 1px solid var(--ligne); }
.journal a:hover { padding-left: .6rem; color: var(--vert-900); }
.journal time { color: var(--gris); font-size: .88rem; }
.journal h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.journal .fleche { color: var(--vert-700); font-size: 1.3rem; }
@media (max-width: 640px) { .journal a { grid-template-columns: 1fr; gap: .3rem; } .journal .fleche { display: none; } }

/* ---------- Bandeau de contact final ---------- */
.appel { background: var(--vert-900); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.appel .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.appel h2 { color: #fff; margin: 0; max-width: 640px; }
.appel p { color: rgba(255,255,255,.75); margin: .8rem 0 0; }

/* ---------- Entête de page ---------- */
.entete-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.entete-page p { color: var(--gris); font-size: 1.08rem; max-width: 620px; margin: 0; }
.fil { font-size: .88rem; color: var(--gris); margin-bottom: 1rem; }
.fil a { color: var(--gris); }
.fil a:hover { color: var(--vert-700); }

/* ---------- Détail produit ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 5rem; }
.detail .scene-3d { position: sticky; top: 100px; }
.detail .visuel { border-radius: var(--rayon); overflow: hidden; background: var(--sable); aspect-ratio: 4/5; }
.detail .visuel img { width: 100%; height: 100%; object-fit: cover; }
.detail .prix { font-size: 2rem; display: block; margin: .3rem 0 1.4rem; }
.detail .description { color: var(--gris); font-size: 1.06rem; }
.detail .achat { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0; }
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; border-top: 1px solid var(--ligne); padding-top: 1.6rem; }
.atouts div { text-align: center; font-size: .82rem; color: var(--gris); }
.atouts svg { display: block; width: 26px; height: 26px; color: var(--vert-700); margin: 0 auto .35rem; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } .detail .scene-3d { position: static; } }

/* Sélecteur de quantité */
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; }
.quantite button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--vert-900); border-radius: 50%; }
.quantite button:hover { background: var(--lime-clair); }
.quantite span, .quantite input { min-width: 34px; width: 40px; text-align: center; font-weight: 600; border: 0; background: none; font: inherit; font-weight: 600; }
.quantite.petite button { width: 34px; height: 34px; font-size: 1rem; }

/* ---------- Panier & commande ---------- */
.mise-panier { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; padding-bottom: 5rem; }
@media (max-width: 920px) { .mise-panier { grid-template-columns: 1fr; } }
.boite { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(1.2rem, 3vw, 2rem); }
.boite h2, .boite h3 { font-size: 1.25rem; }
.ligne-panier { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--ligne); }
.ligne-panier:first-child { padding-top: 0; }
.ligne-panier:last-child { border-bottom: 0; padding-bottom: 0; }
.ligne-panier img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--rayon); background: var(--sable); }
.ligne-panier h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.ligne-panier .unitaire { font-size: .86rem; color: var(--gris); margin-bottom: .55rem; }
.ligne-panier .droite { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.supprimer { background: none; border: 0; color: var(--gris); cursor: pointer; font-size: .84rem; padding: .2rem 0; text-decoration: underline; }
.supprimer:hover { color: var(--danger); }

.resume { position: sticky; top: 100px; }
.resume .ligne { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--gris); }
.resume .total { border-top: 1px solid var(--ligne); margin-top: .6rem; padding-top: 1rem; color: var(--encre); font-family: var(--titre); font-weight: 700; font-size: 1.25rem; }
.resume .btn { margin-top: 1.2rem; }
.resume .note { font-size: .84rem; color: var(--gris); margin: 1rem 0 0; display: flex; gap: .5rem; align-items: center; }
.mini-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .94rem; }
.mini-ligne span:first-child { color: var(--gris); }

.vide { text-align: center; padding: 3.5rem 1rem; }
.vide .icone { width: 84px; height: 84px; border-radius: 50%; background: var(--lime-clair); color: var(--vert-700); display: grid; place-items: center; margin: 0 auto 1.3rem; }
.vide .icone svg { width: 38px; height: 38px; }
.vide p { color: var(--gris); }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 1.1rem; }
.formulaire .double { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .formulaire .double { grid-template-columns: 1fr; } }
.champ label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--vert-900); }
.champ input, .champ textarea, .champ select {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--encre);
  border: 1px solid var(--ligne); border-radius: var(--rayon-s); background: var(--creme);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--lime); background: #fff; box-shadow: 0 0 0 4px rgba(93, 184, 46, .18); }
.champ input:user-invalid { border-color: var(--danger); }
.message { padding: 1rem 1.2rem; border-radius: var(--rayon-s); font-size: .95rem; }
.message.ok { background: var(--lime-clair); color: var(--vert-900); border: 1px solid #c6e6b0; }
.message.erreur { background: #fdecea; color: #8e1f15; border: 1px solid #f5c6c0; }

/* Étapes de commande */
.etapes { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.etape { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--gris); font-weight: 500; }
.etape b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sable); color: var(--gris); font-size: .82rem; }
.etape.faite b, .etape.active b { background: var(--vert-700); color: #fff; }
.etape.active { color: var(--vert-900); }
.etape + .etape::before { content: ""; width: 28px; height: 2px; background: var(--ligne); margin-right: .2rem; }

.succes { text-align: center; padding: 2.5rem 1rem; }
.succes .icone { width: 86px; height: 86px; border-radius: 50%; background: var(--lime); color: var(--vert-900); display: grid; place-items: center; margin: 0 auto 1.4rem; animation: apparait .5s cubic-bezier(.34,1.56,.64,1); }
.succes .icone svg { width: 42px; height: 42px; }
@keyframes apparait { from { transform: scale(0); } }

/* ---------- Contact ---------- */
.grille-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); padding-bottom: 5rem; align-items: start; }
@media (max-width: 860px) { .grille-contact { grid-template-columns: 1fr; } }
.infos-contact { display: grid; }
.info { display: block; padding: 1.3rem 0; border-top: 1px solid var(--ligne); color: var(--encre); }
.info:last-of-type { border-bottom: 1px solid var(--ligne); }
a.info:hover { color: var(--vert-700); }
.info .icone { display: none; }
.info small { display: block; color: var(--gris); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: .3rem; }
.info strong { font-family: var(--titre); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; word-break: break-word; }
.photo-contact { margin-top: 2rem; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 2; }
.photo-contact img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pied de page ---------- */
.pied-page { background: var(--vert-900); color: rgba(255,255,255,.75); padding: 4.5rem 0 1.5rem; margin-top: auto; }
.pied-page .grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .pied-page .grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-page .grille { grid-template-columns: 1fr; } }
.pied-page .marque img { height: 54px; width: auto; background: #fff; border-radius: var(--rayon-s); padding: 6px 10px; margin-bottom: 1rem; }
.pied-page h4 { color: #fff; font-family: var(--texte); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.pied-page ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .94rem; }
.pied-page a { color: rgba(255,255,255,.75); }
.pied-page a:hover { color: var(--lime); }
.pied-page .bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.lien-discret { color: rgba(255,255,255,.35) !important; }

/* ---------- Notifications (toast) ---------- */
.toasts { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1000; display: grid; gap: .6rem; width: min(420px, calc(100% - 2rem)); }
.toast {
  display: flex; align-items: center; gap: .8rem;
  background: var(--vert-900); color: #fff; padding: .9rem 1.1rem; border-radius: var(--rayon);
  box-shadow: var(--ombre-forte); font-size: .95rem;
  animation: toast-entre .35s cubic-bezier(.34,1.56,.64,1);
}
.toast.erreur { background: var(--danger); }
.toast a { color: var(--lime); font-weight: 600; margin-left: auto; white-space: nowrap; }
.toast.sort { animation: toast-sort .25s forwards; }
@keyframes toast-entre { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toast-sort { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.revele.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revele { opacity: 1; transform: none; }
}

/* =========================================================
   Espace administrateur
   ========================================================= */
.page-admin { background: #f3f1ec; }
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(circle at 20% 10%, rgba(93,184,46,.18), transparent 50%), var(--creme); }
.connexion .boite { width: min(420px, 100%); box-shadow: var(--ombre-forte); padding: 2.4rem; }
.connexion img { height: 56px; width: auto; margin: 0 auto 1.6rem; }

.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-menu { background: var(--vert-900); color: #fff; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .3rem; position: sticky; top: 0; height: 100vh; }
.admin-menu .logo-admin { background: #fff; border-radius: var(--rayon); padding: 8px 12px; margin-bottom: 1.8rem; }
.admin-menu .logo-admin img { height: 38px; width: auto; }
.admin-menu button, .admin-menu a { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .8rem 1rem; border-radius: var(--rayon); border: 0; background: none; color: rgba(255,255,255,.75); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.admin-menu button svg, .admin-menu a svg { width: 19px; height: 19px; }
.admin-menu button:hover, .admin-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu button.actif { background: var(--lime); color: var(--vert-900); }
.admin-menu .espace { flex: 1; }
.admin-contenu { padding: clamp(1.2rem, 3vw, 2.5rem); min-width: 0; }
.admin-contenu h1 { font-size: 1.8rem; }
.admin-entete { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #fff; border-radius: var(--rayon); padding: 1.3rem 1.4rem; border: 1px solid var(--ligne); }
.stat small { color: var(--gris); font-weight: 500; font-size: .86rem; }
.stat strong { display: block; font-family: var(--titre); font-size: 1.9rem; color: var(--vert-900); margin-top: .2rem; }
.tableau-conteneur { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tableau th { text-align: left; font-weight: 600; color: var(--gris); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: .8rem; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: .85rem .8rem; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--sable); }
.statut { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.statut.actif { background: var(--lime-clair); color: var(--vert-700); }
.statut.inactif { background: #eee; color: #777; }
.statut.attente { background: #fff3e0; color: #b35c00; }
.groupe-boutons { display: flex; gap: .4rem; flex-wrap: wrap; }
.modale { position: fixed; inset: 0; background: rgba(13,59,46,.45); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 500; padding: 1rem; }
.modale.ouverte { display: grid; }
.modale .boite { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--ombre-forte); }
@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .admin-menu { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: .8rem; }
  .admin-menu .logo-admin { display: none; }
  .admin-menu .espace { display: none; }
  .admin-menu button, .admin-menu a { width: auto; padding: .6rem .8rem; font-size: .9rem; }
}

/* =========================================================
   Ajouts BIOKA 2026 : rabais, panier latéral, compte, blog
   ========================================================= */
.prix-barre { font-size: .85rem; color: var(--gris); text-decoration: line-through; font-weight: 500; margin-left: .35rem; }
.badge-remise { position: absolute; top: .8rem; right: .8rem; z-index: 1; background: var(--miel); color: #fff; font-weight: 600; font-size: .75rem; padding: .3rem .55rem; border-radius: 3px; }
.etiquette.rupture { background: rgba(21,36,30,.85); color: #fff; }
.carte-produit.epuise .visuel img { filter: grayscale(.7); opacity: .7; }
.bandeau-promo { background: var(--vert-900); color: rgba(255,255,255,.9); text-align: center; padding: .5rem 1rem; font-size: .85rem; letter-spacing: .02em; }
.bandeau-promo a { color: #fff; text-decoration: underline; }

/* Filtres du catalogue */
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; }
.filtre { border: 1px solid var(--ligne); background: #fff; color: var(--encre); border-radius: 999px; padding: .55rem 1rem; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.filtre:hover { border-color: var(--lime); }
.filtre.actif { background: var(--vert-700); border-color: var(--vert-700); color: #fff; }

/* Panier latéral */
.voile { position: fixed; inset: 0; background: rgba(13,59,46,.4); backdrop-filter: blur(3px); z-index: 400; opacity: 0; pointer-events: none; transition: opacity .25s; }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--creme); z-index: 410; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 50px rgba(13,59,46,.18); visibility: hidden; }
.tiroir.ouvert { transform: none; visibility: visible; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--ligne); }
.tiroir-tete h2 { font-size: 1.25rem; margin: 0; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.tiroir-pied { border-top: 1px solid var(--ligne); padding: 1.2rem 1.4rem; background: #fff; }
.tiroir-pied .ligne { display: flex; justify-content: space-between; margin-bottom: .4rem; color: var(--gris); }
.tiroir-pied .total { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--encre); margin-bottom: 1rem; }
.fermer { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--vert-900); box-shadow: var(--ombre); }
.fermer svg { width: 20px; height: 20px; }
.tiroir .ligne-panier { grid-template-columns: 64px 1fr auto; }
.tiroir .ligne-panier img { width: 64px; height: 64px; }
.avertissement { background: #fff3e0; color: #8a4b00; border: 1px solid #f6d9a8; border-radius: var(--rayon-s); padding: .7rem .9rem; font-size: .9rem; margin-bottom: 1rem; }

/* Compte client */
.onglets { display: flex; gap: .3rem; background: var(--sable); padding: .3rem; border-radius: 999px; margin-bottom: 1.5rem; }
.onglets button { flex: 1; border: 0; background: none; padding: .7rem 1rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--gris); }
.onglets button.actif { background: #fff; color: var(--vert-900); box-shadow: var(--ombre); }
.commande-carte { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: #fff; }
.commande-carte .tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.statut.payee, .statut.livree { background: var(--lime-clair); color: var(--vert-700); }
.statut.preparation { background: #e3f2fd; color: #1565c0; }
.statut.annulee { background: #fdecea; color: #8e1f15; }

/* Blog */
.grille-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 3rem 2rem; }
.carte-article { display: flex; flex-direction: column; color: var(--encre); }
.carte-article:hover { color: var(--vert-900); }
.carte-article .visuel { aspect-ratio: 3/2; background: var(--sable); overflow: hidden; border-radius: var(--rayon); }
.carte-article .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.carte-article:hover .visuel img { transform: scale(1.04); }
.carte-article .corps { padding: 1.1rem 0 0; }
.carte-article time { font-size: .82rem; color: var(--gris); }
.carte-article h3 { margin: .3rem 0 .5rem; font-size: 1.45rem; }
.carte-article p { color: var(--gris); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-complet { max-width: 760px; margin: 0 auto; padding-bottom: 5rem; }
.article-complet .couverture { border-radius: var(--rayon); overflow: hidden; margin: 1.5rem 0 2rem; aspect-ratio: 16/9; background: var(--sable); }
.article-complet .couverture img { width: 100%; height: 100%; object-fit: cover; }
.article-complet .texte { font-size: 1.08rem; line-height: 1.8; white-space: pre-line; }

/* Champ piège anti-robots */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Tableau de bord : compléments
   ========================================================= */
.admin-menu .compteur { margin-left: auto; background: var(--miel); color: #fff; border-radius: 999px; font-size: .72rem; padding: .1rem .5rem; font-weight: 700; }
.stat .evolution { font-size: .8rem; color: var(--gris); margin-top: .2rem; }
.stat.accent { background: var(--vert-900); border-color: var(--vert-900); }
.stat.accent small, .stat.accent .evolution { color: rgba(255,255,255,.7); }
.stat.accent strong { color: #fff; }
.grille-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (max-width: 1100px) { .grille-2 { grid-template-columns: 1fr; } }
.graphique { width: 100%; height: 220px; display: block; }
.graphique .barre { fill: var(--vert-700); transition: fill .15s; }
.graphique .barre:hover { fill: var(--lime); }
.graphique .ligne-visites { fill: none; stroke: var(--miel); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.graphique text { font-size: 11px; fill: var(--gris); font-family: var(--texte); }
.graphique .grille-axe { stroke: var(--ligne); stroke-width: 1; }
.legende { display: flex; gap: 1.2rem; font-size: .82rem; color: var(--gris); margin-bottom: .6rem; flex-wrap: wrap; }
.legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; background: var(--vert-700); }
.legende span.visites::before { background: var(--miel); border-radius: 50%; }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--ligne); font-size: .93rem; }
.liste-simple li:last-child { border-bottom: 0; }
.barre-filtres { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.barre-filtres input, .barre-filtres select { padding: .65rem .9rem; border: 1px solid var(--ligne); border-radius: var(--rayon-s); font: inherit; background: #fff; }
.barre-filtres input { min-width: 240px; flex: 1; max-width: 360px; }
.tableau tr.cliquable { cursor: pointer; }
.tableau tr.cliquable:hover td { background: var(--creme); }
.tableau tr.non-lu td { font-weight: 600; }
.case { display: flex; align-items: center; gap: .6rem; font-weight: 500; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--vert-700); }
.apercu-image { width: 96px; height: 96px; border-radius: var(--rayon); object-fit: cover; background: var(--sable); border: 1px solid var(--ligne); }
.vide-petit { color: var(--gris); padding: 1.5rem 0; text-align: center; font-size: .95rem; }
.texte-message { white-space: pre-line; background: var(--creme); border-radius: var(--rayon-s); padding: 1rem; margin: 1rem 0; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c4bf; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.modale .boite { width: min(640px, 100%); }
.entete-modale { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.entete-modale h2 { margin: 0; }

/* ---------- Ajustements mobiles ---------- */
.pleine-photo > img { object-position: 50% 30%; }
.burger { background: var(--vert-900); }
@media (max-width: 600px) {
  .grille-produits { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .carte-produit .corps { grid-template-columns: 1fr; }
  .carte-produit .pied > span:first-child { grid-row: auto; grid-column: 1; text-align: left; }
  .carte-produit h3 { font-size: 1.05rem; }
  .bouton-ajout { width: 100%; justify-content: center; padding: .55rem .5rem; }
  .bouton-ajout::after { content: "Ajouter"; }
  .bouton-ajout[disabled]::after { content: "Épuisé"; }
}

/* ---------- Bouton « Haut de page » du pied de page ---------- */
.pied-page .bas { align-items: center; }
.haut-page {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--rayon-s);
  padding: .55rem .95rem; font: inherit; font-size: .85rem; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.haut-page svg { width: 16px; height: 16px; transition: transform .25s; }
.haut-page:hover { background: #fff; color: var(--vert-900); border-color: #fff; }
.haut-page:hover svg { transform: translateY(-3px); }
