/*
Theme Name: Le Vivier
Author: Philippe Verlain
Version: 1.1.0
Description: Theme personnalise pour l'epicerie fine locale Le Vivier, Matane, Quebec. Refonte 2026 (design system bouquet + univers Lofts sarcelle).
*/

/* Police Montserrat chargée via functions.php (wp_enqueue_style + preconnect),
   et non par @import qui bloquait le rendu en cascade. */

@font-face {
  font-family: "Professor";
  src: url("assets/fonts/Professor.woff2") format("woff2"),
       url("assets/fonts/Professor.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ------------------------------------------------------------------ TOKENS */
:root {
  /* Blanc chic / neutres — un seul blanc cassé, chaud mais discret,
     pour que les sections s'enchaînent sans coupure crème/blanc visible */
  --creme:        #f8f6f2;
  --sable:        #f0eadf;
  --blanc:        #ffffff;

  /* Sauge */
  --sauge:        #4d6040;
  --sauge-fonce:  #38492d;
  --pied-fond:    #212a1b;
  --sauge-moyen:  #5c6e4f;
  --sauge-pale:   #dde8d9;
  --olive:        #7c8c5e;

  /* Terracotta */
  --terra:        #b85c50;
  --terra-fonce:  #a04738;
  --terra-pale:   #f5ddd5;

  /* Ocre (récupéré du magasin) */
  --ocre:         #d99a36;
  --ocre-pale:    #f3dcab;

  /* Encre / texte */
  --encre:        #2a2622;
  --texte:        #36412c;
  --texte-corps:  #585c50;
  --texte-doux:   #8a8d80;
  --bordure:      #e4ddd0;

  /* Typo */
  --f-script: "Professor", cursive;
  --f-titre:  "Montserrat", sans-serif;
  --f-corps:  "Montserrat", sans-serif;

  /* Échelle fluide (clamp = responsive sans casse) */
  --t-eyebrow: clamp(.72rem, .68rem + .2vw, .8rem);
  --t-h1: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --t-h2: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  --t-h3: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --t-corps: clamp(.95rem, .92rem + .2vw, 1.05rem);

  /* Rythme / formes */
  --max:        clamp(1200px, 85vw, 1632px);
  --gouttiere:  clamp(1.2rem, .6rem + 3vw, 3rem);
  --rayon:      18px;
  --rayon-l:    26px;
  --ombre:      0 18px 40px -24px rgba(56, 73, 45, .35);
  --ombre-douce:0 10px 30px -22px rgba(56, 73, 45, .4);
  --transi:     .35s cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------- RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: clamp(80px, 9vw, 140px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-corps);
  font-size: var(--t-corps);
  line-height: 1.7;
  text-wrap: pretty;
  color: var(--texte-corps);
  background: var(--creme);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible { outline: 3px solid var(--sauge-moyen); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--texte); line-height: 1.12; font-weight: 700; text-wrap: balance; }

/* Accent script (rôle de Professor) */
.script { font-family: var(--f-script); font-weight: 400; line-height: 1; }

.eyebrow {
  font-size: var(--t-eyebrow);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra-fonce);
}

/* ----------------------------------------------------------------- LAYOUT */
.conteneur { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gouttiere); }
/* Rythme vertical resserré (18 juillet) : l'ancien clamp montait à 7rem par
   section, soit jusqu'à 14rem de vide entre deux contenus. Aligné sur la
   densité du bon Prêt à manger : on accède au contenu sans scroller pour rien. */
.section { padding-block: clamp(2.25rem, 1.5rem + 2.2vw, 4rem); }
.section-titre { text-align: center; max-width: 640px; margin: 0 auto clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.section-titre--large { max-width: 900px; }
.section-titre--large h2 { text-wrap: balance; }
/* Titre seul, en gros (sans eyebrow ni sous-titre) — section Engagements
   de l'accueil, demande de Philippe : « juste la phrase Nos Engagements en
   gros » plutôt que le duo eyebrow + h2 générique. */
.section-titre--grand h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
.section-titre h2 { font-size: var(--t-h2); margin-bottom: .6rem; }
/* texte-corps plutôt que texte-doux : le gris doux ne passait pas le
   contraste WCAG AA (3.1:1) sur fond crème pour du texte courant */
.section-titre p { color: var(--texte-corps); }
/* La règle ci-dessus (plus spécifique que .eyebrow) écrasait aussi le
   terracotta des surtitres placés dans un titre de section */
.section-titre .eyebrow { color: var(--terra-fonce); }

/* ---------------------------------------------------------------- BOUTONS */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-titre); font-weight: 600; font-size: .92rem;
  padding: .95rem 1.7rem; border-radius: 50px;
  transition: transform var(--transi), box-shadow var(--transi), background var(--transi), color var(--transi);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn-primaire { background: var(--sauge); color: var(--blanc); box-shadow: var(--ombre-douce); }
.btn-primaire:hover { background: var(--sauge-fonce); box-shadow: var(--ombre); }
.btn-ligne { background: transparent; color: var(--terra-fonce); border: 1.5px solid #d8a99f; }
.btn-ligne:hover { background: var(--terra); color: var(--blanc); border-color: var(--terra); }
.btn-fantome { color: var(--sauge); border: 1.5px solid var(--bordure); }
.btn-fantome:hover { border-color: var(--sauge); background: var(--sauge-pale); }

/* ----------------------------------------------------------------- HEADER */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--transi), box-shadow var(--transi), padding var(--transi);
  padding-block: .75rem;
}
.entete.colle { background: rgba(249, 245, 240, .96); box-shadow: 0 1px 0 var(--bordure); padding-block: .55rem; }
.entete-barre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { font-family: var(--f-script); font-size: 2rem; color: var(--sauge); line-height: 1; }
.logo-img { line-height: 0; }
/* Logo compact : l'ancien plafond de 124px gonflait la barre fixe jusqu'à
   ~156px sur grand écran (espace perdu + recouvrait l'eyebrow des en-têtes
   de page, ex. Épicerie Africaine). */
.logo-img img.custom-logo { height: clamp(52px, 6vw, 84px); width: auto; display: block; transition: height var(--transi); }
/* Le logo rétrécit quand l'en-tête devient collant au scroll → header compact */
.entete.colle .logo-img img.custom-logo { height: clamp(46px, 4.5vw, 66px); }
.nav-principale { display: flex; align-items: center; gap: 1rem; }
.nav-principale > a { font-size: .88rem; font-weight: 500; color: var(--texte); position: relative; padding-block: .3rem; white-space: nowrap; }
.nav-principale > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--terra); transition: width var(--transi);
}
.nav-principale > a:hover::after { width: 100%; }
.nav-principale .btn { padding: .6rem 1.3rem; }
.nav-principale > a.btn-primaire { color: var(--blanc); }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; width: 26px; background: var(--sauge); border-radius: 2px; transition: var(--transi); }
.burger.actif span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.actif span:nth-child(2) { opacity: 0; }
.burger.actif span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Cachés en desktop : n'apparaissent que dans le menu burger mobile */
.nav-fermer { display: none; }
.nav-overlay { display: none; }

/* Bloc droit du header (nav + recherche + burger) */
.entete-droite { display: flex; align-items: center; gap: clamp(.6rem, .3rem + 1vw, 2rem); }

/* Recherche : icône loupe + panneau déroulant */
.recherche-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; background: none; color: var(--sauge); border-radius: 50%; cursor: pointer; transition: background var(--transi); }
.recherche-toggle:hover { background: var(--sauge-pale); }
.recherche-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.recherche-panneau { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; background: var(--creme); border-top: 1px solid var(--bordure); box-shadow: 0 22px 34px -24px rgba(0,0,0,.35); padding: 1.2rem 0; transform: translateY(-14px); opacity: 0; visibility: hidden; transition: transform var(--transi), opacity var(--transi), visibility var(--transi); }
.recherche-panneau.ouvert { transform: none; opacity: 1; visibility: visible; }
.formulaire-recherche { display: flex; gap: .6rem; max-width: 640px; margin: 0 auto; flex-wrap: wrap; }
.formulaire-recherche input[type="search"] { flex: 1; min-width: 0; padding: .8rem 1.1rem; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); font: inherit; color: var(--texte); }
.formulaire-recherche input[type="search"]:focus-visible { outline: 2px solid var(--sauge); outline-offset: 1px; }
.formulaire-recherche button { padding: .8rem 1.5rem; border-radius: 999px; background: var(--sauge); color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: background var(--transi); }
.formulaire-recherche button:hover { background: var(--sauge-fonce); }
body.univers-lofts .recherche-toggle { color: #1d5055; }
body.univers-africaine .recherche-toggle { color: var(--afr-rouille); }

/* Bouton fermer (X) du panneau de recherche */
.recherche-panneau { padding-top: 2.6rem; }
.recherche-fermer { position: absolute; top: .7rem; right: clamp(1rem, 3vw, 2rem); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: 50%; transition: background var(--transi); }
.recherche-fermer:hover { background: var(--sauge-pale); }
.recherche-fermer span { position: absolute; width: 20px; height: 2px; background: var(--sauge); border-radius: 2px; }
.recherche-fermer span:nth-child(1) { transform: rotate(45deg); }
.recherche-fermer span:nth-child(2) { transform: rotate(-45deg); }

/* Suggestions en direct */
.recherche-conteneur { position: relative; }
.recherche-suggestions { list-style: none; margin: .6rem auto 0; padding: 0; max-width: 640px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); }
.recherche-suggestions li { margin: 0; }
.recherche-suggestions a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; color: var(--texte); }
.recherche-suggestions li + li a { border-top: 1px solid var(--bordure); }
.recherche-suggestions a:hover,
.recherche-suggestions li.actif a { background: var(--sauge-pale); }
.sugg-titre { font-weight: 500; }
.sugg-type { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--terra-fonce); font-weight: 600; flex: none; }

/* ------------------------------------------------------------------- HERO */
/* Plein écran desktop (28 juillet, retour Philippe) : le plafond à 88vh
   (choisi le 18 juillet pour éviter un écran entier de vide) laissait la
   section suivante apparaître en filet au bas du premier écran, ce qui se
   lisait comme un espace vide mal coupé plutôt qu'une vraie transition.
   Mobile reste en hauteur auto (voir media query plus bas). */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blanc) 0%, var(--creme) 100%); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(6rem, 11vh, 8.5rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
/* La barre d'admin WP (32px) decale la page : sans ca, le bas du hero (indicateur de scroll anime) passe sous le pli */
.admin-bar .hero { min-height: calc(100vh - 32px); }
.hero-grille { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; min-height: 0; width: 100%; }
.hero-texte { position: relative; z-index: 3; max-width: 30rem; }
.hero h1 { font-size: var(--t-h1); margin: 1.1rem 0 1.3rem; color: var(--sauge-fonce); }
.hero h1 .script { color: var(--terra); font-size: 1.32em; display: inline-block; }
.hero-texte-sub { font-size: 1.1rem; color: var(--texte-corps); max-width: 42ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Arches de couleur (façon mural) */
.arche { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.arche-terra { width: 46vw; max-width: 620px; aspect-ratio: 1; background: var(--terra); left: -16vw; bottom: -22vw; opacity: .3; }
.arche-olive { width: 30vw; max-width: 420px; aspect-ratio: 1; background: var(--olive); right: -12vw; bottom: -16vw; opacity: .9; }

/* Logo du hero (remplace les fleurs animées, demande de Philippe 21 juillet :
   reconnaissance immédiate de la marque plutôt qu'une illustration décorative) */
/* Logo agrandi (22 juillet) : à 460px max il laissait trop de vide autour
   de lui dans la colonne droite du hero, qui semblait « ne plus remplir
   l'écran » une fois les fleurs animées retirées. */
.hero-logo { position: relative; z-index: 2; justify-self: center; display: flex; align-items: center; justify-content: center; }
.hero-logo img { width: 100%; max-width: clamp(340px, 40vw, 600px); height: auto; filter: drop-shadow(0 18px 34px rgba(56,73,45,.18)); }
.hero-cta-mobile { display: none; }
.hero-cta-m-btn, .hero-cta-m-ligne { display: block; text-align: center; padding: .75rem 1.25rem; border-radius: 6px; font-size: 1rem; font-weight: 500; text-decoration: none; }
.hero-cta-m-btn { background: var(--terra); color: var(--blanc); }
.hero-cta-m-ligne { border: 1.5px solid rgba(249,245,240,.5); color: var(--creme); }

.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--texte-doux); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll .souris { width: 22px; height: 34px; border: 2px solid var(--texte-doux); border-radius: 12px; position: relative; }
.hero-scroll .souris::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--texte-doux); border-radius: 2px; transform: translateX(-50%); animation: molette 1.5s ease infinite; }
@keyframes molette { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }
/* Mobile : la souris (métaphore desktop) devient un chevron qui rebondit */
@media (max-width: 720px) {
  .hero-scroll .souris { display: none; }
  .hero-scroll::after {
    content: ""; width: 12px; height: 12px;
    border-right: 2px solid var(--texte-doux);
    border-bottom: 2px solid var(--texte-doux);
    transform: rotate(45deg); position: relative;
    animation: rebond-chevron 1.5s ease-in-out infinite;
  }
}
@keyframes rebond-chevron { 0%, 100% { top: 0; } 50% { top: 6px; } }

/* -------------------------------------------------------------- INTRO SPLIT */
.intro { background: var(--creme); }
/* Boutons Découvrir sous le carrousel (déplacés du hero) */
.intro-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: clamp(2rem, 1.2rem + 2vw, 3rem); }
@media (max-width: 720px) {
  .intro-actions { justify-content: flex-start; }
  .intro-actions .btn,
  .intro-actions .btn:last-child { flex: 0 0 auto; max-width: 100%; margin-inline: 0; }
}

/* Pastilles de valeurs réutilisées (ex-accueil) : version centrée pour un
   en-tête de page (page-entete) plutôt qu'une colonne de texte alignée. */
.intro-liste { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.intro-liste li { display: inline-flex; align-items: center; gap: .5rem; background: var(--sauge-pale); color: var(--sauge-fonce); font-size: .85rem; font-weight: 600; padding: .5rem 1rem; border-radius: 50px; }
.intro-liste svg { width: 18px; height: 18px; }
.intro-liste--centree { justify-content: center; }

/* ----------------------------------------------------------- ENGAGEMENTS */
.engagements { background: var(--blanc); }
.engagements-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, .5rem + 2vw, 2.5rem); }
.engagement { text-align: center; padding: 0 .5rem; display: flex; flex-direction: column; align-items: center; }
.engagement .ico { width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--sauge-pale); flex: none; }
.engagement .ico svg { width: 30px; height: 30px; fill: none; stroke: var(--sauge); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Plafond de 3 lignes : équilibre visuellement les cartes quand les textes
   sont de longueurs inégales dans la grille (sinon mur de 4-5 lignes vs 2). */
.engagement p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.engagement h3 { font-size: 1.1rem; color: var(--sauge); margin-bottom: .4rem; }
.engagement p { font-size: .9rem; color: var(--texte-corps); }

/* --------------------------------------------------------------- PRODUITS */
.produits { background: var(--creme); position: relative; }
.grille-cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 1.8rem); }
.carte {
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre-douce); transition: transform var(--transi), box-shadow var(--transi);
  display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-img { aspect-ratio: 1; overflow: hidden; background: var(--sauge-pale); position: relative; }
.carte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--transi); }
.carte:hover .carte-img img { transform: scale(1.06); }
.carte-vide { display: grid; place-items: center; height: 100%; }
.carte-vide svg { width: 54px; height: 54px; opacity: .5; }
.carte-cat { position: absolute; top: .8rem; left: .8rem; background: rgba(249,245,240,.92); color: var(--sauge-fonce); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 50px; }
.carte-corps { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.carte-corps h3 { font-size: 1.02rem; color: var(--texte); margin-bottom: .3rem; }
.carte-prix { margin-top: auto; font-weight: 700; color: var(--terra-fonce); }
.section-cta { text-align: center; margin-top: clamp(2rem, 1rem + 2vw, 3rem); }

/* ----------------------------------------------------------- PRODUCTEURS */
.producteurs { background: var(--sable); }
.producteurs-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); flex-wrap: wrap; }
.producteurs-entete h2 { font-size: var(--t-h2); }
.producteurs-entete .script-accent { font-family: var(--f-script); color: var(--olive); font-size: 1.5rem; display: block; margin-bottom: -.3rem; }
.producteurs-entete p { color: var(--texte-doux); margin-top: .3rem; }
.grille-prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 1.8rem); }
.carte-prod { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); transition: transform var(--transi), box-shadow var(--transi); display: flex; flex-direction: column; }
.carte-prod:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-prod .photo { aspect-ratio: 16/10; overflow: hidden; background: var(--sauge-pale); }
.carte-prod .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--transi); }
.carte-prod:hover .photo img { transform: scale(1.05); }
/* Logo producteur : jamais recadré (contain + fond blanc + marge) */
.carte-prod .photo.photo-logo { background: #fff; display: grid; place-items: center; padding: clamp(1rem, .6rem + 1.5vw, 1.6rem); }
.carte-prod .photo.photo-logo img { width: 100%; height: 100%; object-fit: contain; }
.carte-prod:hover .photo.photo-logo img { transform: scale(1.03); }
.carte-prod .corps { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.carte-prod h3 { color: var(--sauge); font-size: 1.18rem; margin: .35rem 0 0; }
.carte-prod .lieu { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--terra-fonce); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.carte-prod .lieu svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.carte-prod-desc { font-size: .9rem; line-height: 1.55; color: var(--texte-corps); margin: .6rem 0 0; }
.carte-prod-cta { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--sauge); }

/* --------------------------------------------------------------- LOFTS */
/* (Bande Lofts retirée de l'accueil, 7 juillet 2026) */

/* ------------------------------------------------------------- NEWSLETTER */
/* Le bas de la section reprend le fond du footer : la carte blanche chevauche
   la limite crème/vert foncé et la transition vers le pied est continue. */
.newsletter { background: linear-gradient(180deg, var(--creme) 0%, var(--creme) 55%, var(--pied-fond) 55%, var(--pied-fond) 100%); }
.newsletter-carte { position: relative; overflow: hidden; max-width: 720px; margin: 0 auto; background: var(--blanc); border-radius: var(--rayon-l); padding: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); text-align: center; box-shadow: var(--ombre); }
.newsletter-carte h2 { color: var(--sauge); font-size: var(--t-h2); margin-bottom: .6rem; }
.newsletter-carte > p { color: var(--texte-corps); max-width: 46ch; margin: 0 auto 1.8rem; }
.newsletter-carte .eyebrow { display: block; margin-bottom: .7rem; }
.newsletter-form { display: flex; gap: .6rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; position: relative; }
.newsletter-form input { flex: 1; min-width: 220px; padding: .9rem 1.2rem; border-radius: 50px; border: 1.5px solid var(--bordure); font-family: inherit; font-size: .95rem; background: var(--creme); color: var(--texte); }
.newsletter-form input::placeholder { color: var(--texte-doux); }
.newsletter-form button { background: var(--terra); color: var(--blanc); padding: .9rem 1.8rem; border-radius: 50px; font-weight: 600; transition: background var(--transi), transform var(--transi); }
.newsletter-form button:hover { background: var(--terra-fonce); transform: translateY(-2px); }

/* ----------------------------------------------------------------- FOOTER */
.pied { position: relative; overflow: hidden; background: var(--pied-fond); color: #b6c0a4; padding-block: clamp(2.5rem, 2rem + 1.8vw, 3.5rem) 0; }
.pied .conteneur { position: relative; z-index: 1; }
.pied::after { content: ""; position: absolute; z-index: 0; right: -2%; bottom: -2%; width: clamp(160px, 17vw, 260px); aspect-ratio: .72; background: url("assets/images/illustrations/fleur 01.svg") no-repeat center / contain; filter: brightness(0) invert(1); opacity: .07; pointer-events: none; }
.pied::before { content: ""; position: absolute; z-index: 0; left: -3%; top: -2%; width: clamp(120px, 12vw, 180px); aspect-ratio: .7; background: url("assets/images/illustrations/fleur 06.svg") no-repeat center / contain; filter: brightness(0) invert(1); opacity: .05; pointer-events: none; }
/* Répartition plus équitable des 3 blocs de texte (marque / navigation /
   horaires) : le ratio 1.6/1/1 laissait la marque trop large et la
   navigation (qui contient pourtant 2 sous-colonnes de liens, le double
   de contenu) relativement à l'étroit. */
.pied-grille { display: grid; grid-template-columns: 1.3fr 1.9fr 1fr; gap: 2.5rem; }
.pied .logo { color: #f4efe4; margin-bottom: 1.1rem; font-size: 2.3rem; }
.pied h4 { color: #e6dcc7; font-size: .76rem; font-weight: 600; letter-spacing: .18em; margin-bottom: 1.1rem; text-transform: uppercase; }
.pied a { transition: color var(--transi); }
.pied a:hover { color: var(--ocre); }
.pied li { margin-bottom: .55rem; font-size: .92rem; }
/* Navigation du footer : 2 colonnes explicites (univers boutique/épicerie
   à gauche, pages utilitaires à droite) plutôt que des colonnes CSS
   auto-balancées par hauteur, pour un découpage garanti. */
.pied-nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.pied-nav-cols li { white-space: nowrap; }
.pied-marque p { font-size: .92rem; margin-bottom: .85rem; max-width: 34ch; color: #a4ad92; }
/* Copyright à gauche, Politique de confidentialité à droite (22 juillet) :
   séparée des pages du site plutôt que noyée dans la liste Navigation. */
.pied-bas { margin-top: clamp(1.8rem, 1.2rem + 1.5vw, 2.5rem); border-top: 1px solid rgba(255,255,255,.09); padding-block: 1.2rem; display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: #889378; letter-spacing: .02em; text-align: center; }
.pied-bas a { color: #889378; text-decoration: underline; text-underline-offset: 3px; }
.pied-bas a:hover { color: var(--ocre); }

/* ------------------------------------------------- LIGHTBOX BON PM */
.pm-lightbox-trigger { cursor: zoom-in; }
.pm-lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 20, 18, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.pm-lightbox[hidden] { display: none; }
.pm-lightbox img { max-width: min(90vw, 900px); max-height: 86vh; width: auto; height: auto; border-radius: var(--rayon); box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.pm-lightbox-fermer {
  position: fixed; top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blanc); border: 0; cursor: pointer;
}
.pm-lightbox-fermer span { position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; background: var(--encre); border-radius: 2px; }
.pm-lightbox-fermer span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.pm-lightbox-fermer span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
body.pm-lightbox-ouvert { overflow: hidden; }

/* ------------------------------------------------------------ COOKIES */
.cookie-bandeau {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--sauge-fonce); color: #e7eee0;
  padding-block: 1rem;
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,.25);
  transform: translateY(100%); opacity: 0;
  transition: transform var(--transi), opacity var(--transi);
}
.cookie-bandeau.visible { transform: translateY(0); opacity: 1; }
.cookie-bandeau-inner { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; text-align: center; }
.cookie-bandeau p { margin: 0; font-size: .88rem; line-height: 1.5; max-width: 60ch; }
.cookie-bandeau p a { color: var(--ocre-pale); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bandeau p a:hover { color: #fff; }
.cookie-bandeau-btn { flex: none; padding: .6rem 1.4rem; font-size: .85rem; }
@media (max-width: 560px) { .cookie-bandeau-inner { flex-direction: column; gap: .8rem; } }

/* --------------------------------------------------------------- REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delai-1 { transition-delay: .08s; }
.reveal-delai-2 { transition-delay: .16s; }
.reveal-delai-3 { transition-delay: .24s; }

/* --------------------------------------------------------------- RESPONSIVE */
@media (max-width: 960px) {
  .hero-grille { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero-texte { max-width: none; margin-inline: auto; }
  .hero-texte p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  /* Arches de couleur réservées au desktop (mobile : simplement le logo
     centré sous le titre, pas de décor derrière). */
  .arche { display: none; }
  .hero-logo img { max-width: clamp(230px, 58vw, 360px); }
  .hero { min-height: auto; padding-bottom: clamp(4rem, 9vh, 5.5rem); }
  .hero h1 { text-wrap: balance; }
  .hero-scroll { display: none; }
  .hero-avec-bg {
    min-height: 65dvh;
    background-color: var(--sauge) !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .hero-avec-bg .hero-logo { display: none; }
  .hero-avec-bg h1 { color: var(--creme); }
  .hero-avec-bg h1 .script { color: #f5ddd5; }
  .hero-avec-bg .hero-texte-sub { color: rgba(249,245,240,.82); }
  .hero-avec-bg .hero-cta-mobile { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
  .engagements-grille { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .grille-cartes { grid-template-columns: repeat(2, 1fr); }
  .grille-prod { grid-template-columns: 1fr 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}

/* ===== Menu burger mobile (panneau à droite, opposé au logo) ===== */
@media (max-width: 900px) {
  .burger { display: flex; z-index: 80; position: relative; }

  /* Voile assombri derrière le panneau */
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(33, 42, 27, .5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 60; }
  .nav-overlay.actif { opacity: 1; visibility: visible; }

  /* Panneau */
  .nav-principale {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; background: var(--creme); padding: 5.5rem 1.7rem 2rem;
    box-shadow: -24px 0 60px -28px rgba(0, 0, 0, .45);
    transform: translateX(100%); visibility: hidden;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility .32s;
    z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-principale.ouvert { transform: none; visibility: visible; }

  /* Bouton fermer (X) en haut à droite du panneau */
  /* Pas de second X : le burger se transforme déjà en X pour fermer */
  .nav-fermer { display: none; }
  .nav-fermer span { position: absolute; width: 22px; height: 2px; background: var(--sauge); border-radius: 2px; }
  .nav-fermer span:nth-child(1) { transform: rotate(45deg); }
  .nav-fermer span:nth-child(2) { transform: rotate(-45deg); }

  /* Liste des liens : pleine largeur, séparateurs, touch targets confortables */
  .nav-principale ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-principale ul li { width: 100%; border-bottom: 1px solid var(--bordure); }
  .nav-principale ul a { display: block; width: 100%; font-size: 1.05rem; padding: 1rem 1.2rem; text-align: left; }
  .nav-principale ul a::after { display: none; }

  /* Lien Contactez-nous (ajouté par header.php hors du menu WP) : même
     traitement que les liens de la liste dans le panneau mobile */
  .nav-principale > a.nav-contact,
  .nav-principale > a.nav-pam { display: block; width: 100%; font-size: 1.05rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--bordure); text-align: left; white-space: normal; }
  .nav-principale > a.nav-contact::after,
  .nav-principale > a.nav-pam::after { display: none; }

  /* CTA en bas, pleine largeur */
  .nav-principale .nav-cta { margin-top: 1.6rem; width: 100%; justify-content: center; padding: .95rem 1rem; font-size: 1rem; }

  /* Verrou de défilement du fond quand le menu est ouvert */
  body.menu-ouvert { overflow: hidden; }
}

@media (max-width: 720px) {
  .grille-prod { grid-template-columns: 1fr; }
}

/* Mobile : on retire les décors botaniques du footer (encombrants / débordent). */
@media (max-width: 640px) {
  .pied::before,
  .pied::after { display: none; }

  /* Texte de cartes → gauche sur mobile.
     Le texte centré sur 3+ lignes crée des "dents de scie" (début de ligne
     variable) qui fatiguent l'oeil. Titres courts (1-2 lignes) restent centrés. */
  .engagement { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: start; text-align: left; }
  .engagement .ico { grid-row: 1 / 3; align-self: center; margin: 0; }
  .engagement h3 { grid-column: 2; margin-bottom: .15rem; }
  .engagement p { grid-column: 2; }
  .section-titre p { text-align: left; }
}

@media (max-width: 520px) {
  .engagements-grille { grid-template-columns: 1fr; gap: 1.6rem; }
  .grille-cartes { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .pied-grille { grid-template-columns: 1fr; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .grille-vide { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ======================================================
   PAGES INTERNES
====================================================== */
body.interne .entete { background: rgba(249, 245, 240, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--bordure); }
.nav-principale > a.actif { color: var(--terra-fonce); }
.nav-principale > a.actif::after { width: 100%; }

/* En-tête de page */
.page-entete { position: relative; overflow: hidden; background: var(--creme); padding-top: clamp(6.5rem, 5.5rem + 1.5vw, 7.5rem); padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); text-align: center; }
.page-entete .conteneur { position: relative; z-index: 1; }
.page-entete .eyebrow { display: block; margin-bottom: .8rem; }
@media (min-width: 768px) { .page-entete .eyebrow { white-space: nowrap; letter-spacing: .18em; } }
.page-entete h1 { font-size: var(--t-h1); color: var(--sauge-fonce); margin-bottom: .9rem; }
.page-entete h1 .script { color: var(--terra); font-size: 1.25em; }
/* Titre en Professor pour Épicerie / Boutique / Produits Maison / Épicerie Africaine,
   demandé par Marie (7 juillet) : la police n'est plus exclusive à la sous-marque Lofts. */
.page-entete h1.page-entete-titre-script { font-family: var(--f-script); font-weight: 400; }
@media (max-width: 640px) {
  .page-entete h1.page-entete-titre-script { font-size: clamp(2rem, 1.5rem + 3.5vw, 2.6rem); }
}
.page-entete > .conteneur > p { max-width: 85%; margin: 0 auto; color: var(--texte-corps); text-wrap: pretty; }
@media (max-width: 480px) {
  .page-entete > .conteneur > p { max-width: 100%; }
}

/* Bons de commande : espace resserré sous l'intro, la section suivante enchaîne tout de suite */
.page-template-template-bon-pam .page-entete,
.page-template-template-bon-pm .page-entete,
.page-template-template-bon-vrac .page-entete { padding-bottom: 1rem; }

/* Fil d'Ariane */
.fil { margin-bottom: 1.3rem; }
.fil a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  color: var(--sauge);
  padding: .5rem 1rem .5rem .85rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  box-shadow: var(--ombre-douce);
  transition: var(--transi);
}
.fil a:hover { border-color: var(--sauge); background: var(--sauge-pale); color: var(--sauge-fonce); transform: translateX(-2px); }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.filtre { font-size: .85rem; font-weight: 600; color: var(--texte-corps); background: var(--blanc); border: 1.5px solid var(--bordure); padding: .5rem 1.1rem; border-radius: 50px; cursor: pointer; transition: all var(--transi); }
.filtre:hover { border-color: var(--sauge); color: var(--sauge); }
.filtre.actif { background: var(--sauge); color: #fff; border-color: var(--sauge); }

/* À propos */
.apropos-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.apropos-split h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.apropos-split .script-accent { font-family: var(--f-script); color: var(--terra); font-size: 1.7rem; }
.apropos-media { position: relative; }
.apropos-media .cadre { border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 5; }
.apropos-media .cadre img { width: 100%; height: 100%; object-fit: cover; }

/* À propos : l'image épouse la hauteur du texte (colonnes de même hauteur) */
.apropos-split--histoire { align-items: stretch; }
.apropos-split--histoire .apropos-media { min-height: 340px; }
.apropos-split--histoire .apropos-media .cadre { position: absolute; inset: 0; aspect-ratio: auto; }
@media (max-width: 860px) {
  .apropos-split--histoire .apropos-media { min-height: 0; }
  .apropos-split--histoire .apropos-media .cadre { position: static; aspect-ratio: 4 / 3; }
}
.valeur { background: var(--blanc); border-radius: var(--rayon); padding: 1.8rem; box-shadow: var(--ombre-douce); }
.valeur .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--sauge-pale); display: grid; place-items: center; margin-bottom: 1rem; }
.valeur .ico svg { width: 26px; height: 26px; fill: none; stroke: var(--sauge); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.valeur h3 { color: var(--sauge); margin-bottom: .4rem; font-size: 1.15rem; }
.valeur p { font-size: .92rem; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); }

/* Page À propos : coordonnées en carte + carte large (disposition pro) */
.contact-grille--carte { grid-template-columns: minmax(0, 350px) 1fr; align-items: start; gap: clamp(1.5rem, 1rem + 2vw, 2.8rem); }
.contact-grille--carte .contact-info { margin: 0; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon-l); box-shadow: var(--ombre-douce); padding: .3rem 1.6rem; }
.contact-grille--carte .contact-info li { padding: 1.15rem 0; margin: 0; border-bottom: 1px solid var(--bordure); }
.contact-grille--carte .contact-info li:last-child { border-bottom: 0; }
.contact-grille--carte .carte-map { margin-top: 0; aspect-ratio: 4 / 3; }

.contact-info li { display: flex; gap: .9rem; margin-bottom: 1.3rem; align-items: flex-start; }
.contact-info .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sauge-pale); display: grid; place-items: center; flex: none; }
.contact-info .ico svg { width: 20px; height: 20px; fill: none; stroke: var(--sauge); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-info h4 { color: var(--texte); font-size: .95rem; margin-bottom: .15rem; }
.contact-info p { font-size: .92rem; margin: 0; }
.contact-form { background: var(--blanc); border-radius: var(--rayon-l); padding: clamp(1.6rem, 1rem + 2vw, 2.4rem); box-shadow: var(--ombre); }
.champ { margin-bottom: 1rem; }
.champ label { display: block; font-size: .85rem; font-weight: 600; color: var(--texte); margin-bottom: .35rem; }
.champ input, .champ textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--bordure); border-radius: 12px; font-family: inherit; font-size: .95rem; background: var(--creme); color: var(--texte); }
.champ textarea { min-height: 120px; resize: vertical; }
.carte-map { border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--bordure); aspect-ratio: 16/10; background: var(--sauge-pale); display: grid; place-items: center; color: var(--texte-doux); font-size: .9rem; margin-top: 1.5rem; }

/* Fiche produit */
.single-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.single-media { border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre); background: var(--sauge-pale); aspect-ratio: 1; display: grid; place-items: center; }
.single-media img { width: 68%; opacity: .85; }
.single-info .cat { color: var(--terra-fonce); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.single-info h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin: .5rem 0; color: var(--texte); }
.single-prix { font-size: 1.6rem; font-weight: 700; color: var(--terra-fonce); margin: .6rem 0 1.2rem; }
.single-info .desc { margin-bottom: 1.4rem; }
.produit-resa { margin-top: 1.6rem; padding: 1.1rem 1.3rem; background: var(--sauge-pale); border-radius: var(--rayon); }
.produit-resa .btn { margin-bottom: .55rem; }
.produit-resa-note { margin: 0; font-size: .82rem; color: var(--sauge-fonce); }

/* Fiche producteur */
/* === Fiche producteur : hero unifie (une carte sobre et pro) === */
.prod-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
  overflow: hidden;
}
.prod-hero--solo { grid-template-columns: 1fr; }
.prod-hero > * { position: relative; z-index: 1; }

/* filigrane botanique : discret, en bas a droite de la carte */
.prod-hero-deco {
  position: absolute;
  right: -2%;
  bottom: -16%;
  width: clamp(190px, 32%, 340px);
  aspect-ratio: 1;
  background: url("assets/images/illustrations/branche%2002.svg") no-repeat center / contain;
  opacity: .07;
  z-index: 0;
  pointer-events: none;
}

/* tuile logo : compacte, blanche, filet fin (les logos sur fond blanc s'y fondent,
   ceux sur fond fonce sont encadres proprement), logo jamais recadre */
.prod-hero .prod-logo {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 200px;
  display: grid;
  place-items: center;
  padding: clamp(.85rem, .5rem + 1.2vw, 1.4rem);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
}
.prod-hero .prod-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* repli photo (producteur sans logo) : portrait recadre, meme esprit */
.prod-hero .prod-photo {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre-douce);
  aspect-ratio: 4 / 5;
  max-width: 240px;
}
.prod-hero .prod-photo img { width: 100%; height: 100%; object-fit: cover; }

/* hierarchie texte */
.prod-hero .lieu { display: inline-block; color: var(--terra-fonce); font-weight: 600; letter-spacing: .09em; font-size: .76rem; text-transform: uppercase; }
.prod-hero h1 { font-size: var(--t-h2); color: var(--sauge); margin: .4rem 0 .9rem; }

/* Promotions */
.promo-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 1.8rem); }
.promo-carte { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); position: relative; transition: transform var(--transi), box-shadow var(--transi); }
.promo-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.promo-rabais { position: absolute; top: 1rem; right: 1rem; background: var(--terra); color: #fff; font-weight: 700; font-size: .85rem; padding: .4rem .85rem; border-radius: 50px; z-index: 2; }
.promo-img { aspect-ratio: 4/3; background: var(--sauge-pale); display: grid; place-items: center; }
.promo-img img { width: 46%; opacity: .85; }
.promo-corps { padding: 1.2rem 1.3rem 1.4rem; }
.promo-corps h3 { color: var(--texte); margin-bottom: .5rem; font-size: 1.05rem; }
.promo-prix { display: flex; align-items: baseline; gap: .6rem; }
.promo-prix .ancien { text-decoration: line-through; color: var(--texte-doux); font-size: .9rem; }
.promo-prix .neuf { color: var(--terra-fonce); font-weight: 700; font-size: 1.25rem; }

/* Lofts (charte sarcelle) */
/* Nacre froide dédiée à l'univers Lofts : le crème chaud du reste du site
   jure contre le sarcelle (teinte froide) → un blanc cassé légèrement bleuté
   à la place, plus chic et cohérent avec la couleur signature */
:root { --lofts-perle: #f3f6f5; }

body.univers-lofts { background: var(--lofts-perle); }
body.univers-lofts .page-entete { background: linear-gradient(160deg, #1d5055 0%, #123638 100%); }
body.univers-lofts .page-entete h1 { color: #fff; }
body.univers-lofts .page-entete h1 .script { color: #e7c9a0; }
body.univers-lofts .page-entete > .conteneur > p { color: #cdddd9; }
body.univers-lofts .page-entete .eyebrow { color: #e7c9a0; }
.loft-carte { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); transition: transform var(--transi), box-shadow var(--transi); }
.loft-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.loft-carte .photo { aspect-ratio: 4/3; overflow: hidden; background: #cfe0dc; }
.loft-carte .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--transi); }
.loft-carte:hover .photo img { transform: scale(1.05); }
.loft-carte .corps { padding: 1.2rem 1.3rem 1.4rem; }
.loft-carte h3 { color: #1d5055; font-size: 1.2rem; margin-bottom: .3rem; }
.loft-carte .meta { font-size: .85rem; color: var(--texte-doux); margin-bottom: .7rem; }
.loft-carte .prix { font-weight: 700; color: #1d5055; }
.loft-carte .prix span { font-weight: 400; color: var(--texte-doux); font-size: .85rem; }

/* ======================================================
   PAGE LOFTS (listing /lofts/) — charte sarcelle, premium
====================================================== */
/* En-tete compact, centre */
.lofts-entete { background: var(--lofts-perle); text-align: center; padding-top: clamp(5.5rem, 4rem + 4vw, 7rem); padding-bottom: clamp(1.2rem, .8rem + 1.5vw, 2rem); }
.lofts-eyebrow { color: #b07d3c; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .8rem; }
.lofts-entete-titre { font-family: var(--f-script); color: #1d5055; font-size: clamp(2.6rem, 1.8rem + 4vw, 4.8rem); line-height: 1.02; margin-bottom: 1.1rem; text-align: center; }
br.br-mobile { display: none; }
@media (max-width: 640px) { br.br-mobile { display: block; } }
.lofts-entete-lead { max-width: 56ch; margin: 0 auto 1.1rem; color: var(--texte-doux); font-size: 1.08rem; }
.lofts-entete-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; font-size: .9rem; color: #41615f; }
.lofts-entete-meta span, .lofts-entete-meta a { display: inline-flex; align-items: center; gap: .45rem; }
.lofts-entete-meta a { color: #1d5055; font-weight: 600; }
.lofts-entete-meta a:hover { color: #16403f; }
.lofts-entete-meta svg { width: 17px; height: 17px; fill: none; stroke: #6a8a86; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Grille des lofts */
.lofts-liste-section { padding-block: clamp(.4rem, .2rem + 1vw, 1.1rem) clamp(2rem, 1.5rem + 1.5vw, 3rem); }
/* Les cartes s'étirent sur toute la largeur du conteneur (avec 2 lofts,
   l'ancien plafond de 440px laissait ~40% de vide de chaque côté) */
.lofts-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); justify-content: center; }
.lofts-vide { text-align: center; color: var(--texte-doux); max-width: 52ch; margin-inline: auto; }
.lofts-grille > .reveal:nth-child(2) { transition-delay: .09s; }
.lofts-grille > .reveal:nth-child(3) { transition-delay: .18s; }
.lofts-grille > .reveal:nth-child(4) { transition-delay: .27s; }

/* Carte loft (reutilise .loft-carte : fond blanc, rayon, ombre, hover) */
.loft-carte { display: flex; flex-direction: column; }
.loft-carte-image { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #dce9e6, #c4dad5); }
.loft-carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--transi); }
.loft-carte:hover .loft-carte-image img { transform: scale(1.06); }
.loft-carte-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.loft-carte-placeholder svg { width: 60px; height: 60px; fill: none; stroke: #1d5055; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.loft-carte-badge { position: absolute; top: .9rem; left: .9rem; background: #1d5055; color: #e7c9a0; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; }
.loft-carte-corps { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.loft-carte-titre { margin-bottom: .35rem; font-size: 1.3rem; }
.loft-carte-titre a { color: #1d5055; }
.loft-carte-titre a:hover { color: #16403f; }
.loft-carte-meta { font-size: .85rem; color: var(--texte-doux); margin-bottom: .7rem; }
.loft-carte-desc { font-size: .94rem; color: var(--texte-corps); margin-bottom: 1.1rem; }
.loft-carte-bas { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.loft-carte-prix-montant { font-size: 1.4rem; font-weight: 700; color: #1d5055; }
.loft-carte-prix-nuit { font-size: .85rem; color: var(--texte-doux); margin-left: .2rem; }
.loft-carte-actions { display: flex; gap: .5rem; }
.loft-btn-primaire, .loft-btn-secondaire { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; transition: var(--transi); }
.loft-btn-primaire { background: #1d5055; color: #fff; }
.loft-btn-primaire:hover { background: #16403f; transform: translateY(-2px); }
.loft-btn-secondaire { background: transparent; color: #1d5055; border: 1.5px solid #b9cfca; }
.loft-btn-secondaire:hover { border-color: #1d5055; background: #eef4f2; }

/* Bande "Pourquoi sejourner" (sarcelle) */
/* Trois blocs sarcelle empilés (réassurance / CTA / pied) fondaient en une
   seule masse sombre sans rythme. Cette section repasse au clair (nacre
   Lofts) : elle respire entre la grille de lofts et le crescendo sombre de
   la CTA + du pied, au lieu de l'alourdir encore. */
.lofts-reassurance { background: var(--lofts-perle); color: var(--texte-corps); padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.lofts-section-titre { text-align: center; font-family: var(--f-script); font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); color: #1d5055; }
.lofts-reassurance-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.lofts-atout { text-align: center; }
.lofts-atout-icone { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 1rem; border-radius: 50%; background: rgba(29, 80, 85, .08); }
.lofts-atout-icone svg { width: 28px; height: 28px; fill: none; stroke: #1d5055; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lofts-atout h3 { color: #1d3d3f; font-size: 1.1rem; margin-bottom: .5rem; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; }
.lofts-atout p { font-size: .92rem; color: var(--texte-corps); }
@media (max-width: 640px) {
  .lofts-atout { display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: start; text-align: left; }
  .lofts-atout-icone { grid-row: 1 / 3; align-self: center; margin-bottom: 0; }
  .lofts-atout h3 { grid-column: 2; min-height: unset; justify-content: flex-start; margin-bottom: .15rem; }
  .lofts-atout p { grid-column: 2; }
}

/* CTA finale — bande pleine largeur (pas une carte flottante dans le vide) */
/* Bas de bande resserré : le padding-bottom géant laissait un grand vide
   sarcelle sous la ligne de copyright (retour Philippe, 19 juillet) */
.lofts-cta-finale { position: relative; overflow: hidden; background: linear-gradient(160deg, #1d5055, #16403f); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.lofts-cta-finale::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -6%; top: 50%; transform: translateY(-50%);
  width: clamp(340px, 40vw, 600px); aspect-ratio: 1;
  background: url("assets/images/illustrations/fleur 05.svg") no-repeat center / contain;
  filter: brightness(0) invert(1); opacity: .1;
}
.lofts-cta-interieur { position: relative; z-index: 1; max-width: 560px; text-align: left; }
.lofts-cta-interieur h2 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.2); font-family: var(--f-script); font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.6rem); line-height: 1.05; margin-bottom: .9rem; }
.lofts-cta-interieur p { color: #b9cfca; max-width: 46ch; line-height: 1.7; margin-bottom: 1.8rem; }
.lofts-cta { display: inline-flex; align-items: center; justify-content: center; background: #e7c9a0; color: #1d3d3f; font-weight: 700; padding: .95rem 2.2rem; border-radius: 999px; font-size: 1.02rem; transition: var(--transi); }
.lofts-cta:hover { background: #f0d8b4; transform: translateY(-3px); }
.lofts-contact-ligne { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .86rem; color: #9fbab5; }
.lofts-contact-ligne a { color: #e7c9a0; }
.lofts-contact-ligne a:hover { color: #f0d8b4; }
/* Barre de copyright : cette bande tient lieu de pied de page sur /lofts/,
   même traitement que .pied-bas (liseré + petit texte discret) mais dans
   les tons sarcelle/or de l'univers Lofts. */
.lofts-cta-bas { position: relative; z-index: 1; margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); border-top: 1px solid rgba(231,201,160,.2); padding-block: 1.2rem; text-align: center; font-size: .8rem; color: #8aa6a2; letter-spacing: .02em; }
@media (max-width: 720px) {
  .lofts-cta-finale::after { width: clamp(260px, 68vw, 420px); opacity: .08; }
}

@media (max-width: 860px) {
  .lofts-reassurance-grille { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lofts-reassurance-grille { grid-template-columns: 1fr; }
  .lofts-entete-meta { gap: .5rem 1.2rem; }
  .loft-carte-actions { width: 100%; }
  .loft-btn-primaire, .loft-btn-secondaire { flex: 1; }
}

/* Responsive pages internes */
@media (max-width: 860px) {
  .apropos-split, .contact-grille, .single-grille, .prod-hero { grid-template-columns: 1fr; }
  .apropos-media, .single-media { max-width: 460px; margin-inline: auto; }
  .promo-grille { grid-template-columns: 1fr 1fr; }
  .prod-hero { text-align: center; }
  .prod-hero .prod-logo, .prod-hero .prod-photo { margin-inline: auto; }
  .prod-hero .lieu { letter-spacing: .07em; }
}
@media (max-width: 560px) {
  .promo-grille { grid-template-columns: 1fr; }
}

/* ======================================================
   DÉCOR BOTANIQUE
   Vraies illustrations du magasin (assets/img/illustrations)
   intégrées en grand, en filigrane d'encre, derrière le contenu.
====================================================== */
.section { position: relative; }
.section > .conteneur { position: relative; z-index: 1; }
.engagements, .producteurs, .produits { overflow: hidden; }

/* (Filigranes botaniques des sections retirés le 7 juillet 2026 :
   seuls le hero de l'accueil et le footer gardent leurs décors.) */
body.univers-lofts .entete .logo { color: #1d5055; }
body.univers-lofts .burger span { background: #1d5055; }
body.univers-lofts .nav-principale > a.actif { color: #1d5055; }
body.univers-lofts .nav-principale > a::after { background: #1d5055; }
body.univers-lofts .nav-principale .btn-primaire { background: #1d5055; }
body.univers-lofts .nav-principale .btn-primaire:hover { background: #16403f; }
body.univers-lofts .btn-fantome { color: #1d5055; }
body.univers-lofts .btn-fantome:hover { background: #d9e6e3; border-color: #1d5055; }
/* Le pied réutilisait une variante de sarcelle : collé à la CTA (elle-même
   sarcelle), les deux se confondaient en un seul bloc mal raccordé. Le
   reste du site règle ce même problème ailleurs (bandeau sauge → pied
   presque noir ; bandeau rouille → pied cacao) : jamais deux nuances
   proches l'une sous l'autre, toujours une couleur vive suivie d'un neutre
   quasi noir. Le pied Lofts suit la même règle : encre neutre, plus
   la sarcelle, avec un liseré or net qui marque franchement la charnière. */
body.univers-lofts .pied { background: #12191a; border-top: 2px solid rgba(231,201,160,.35); color: #9db0ac; }
body.univers-lofts .pied .logo { color: #eef3f0; }
body.univers-lofts .pied h4 { color: #e7c9a0; }
body.univers-lofts .pied a:hover { color: #e7c9a0; }

/* ======================================================
   PONT MENU WORDPRESS (structure <ul><li><a> dans la nav)
====================================================== */
.nav-principale ul { display: flex; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-principale ul li { margin: 0; }
.nav-principale ul a { font-size: .88rem; font-weight: 500; color: var(--texte); position: relative; padding-block: .3rem; white-space: nowrap; }
.nav-principale ul a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--terra); transition: width var(--transi); }
.nav-principale ul a:hover::after,
.nav-principale ul .current-menu-item > a::after,
.nav-principale ul .current_page_item > a::after { width: 100%; }
.nav-principale ul .current-menu-item > a,
.nav-principale ul .current_page_item > a { color: var(--terra-fonce); }
.univers-lofts .nav-principale ul .current-menu-item > a,
.univers-lofts .nav-principale ul .current_page_item > a { color: #1d5055; }
.univers-lofts .nav-principale ul a::after { background: #1d5055; }

/* ======================================================
   UNIVERS ÉPICERIE AFRICAINE (sous-marque « Okavi »)
   Charte marché aux épices : rouille brûlée / or / cacao
====================================================== */
/* Palette « marché aux épices » : avant, ces tons reprenaient presque les
   mêmes teintes que la charte principale (terra/ocre) + un brun de pied
   choisi sans lien avec le reste → l'univers ne se distinguait pas et
   semblait improvisé. Ici : une rouille plus brûlée (distincte du terra
   sauge/terracotta), un or plus profond, et un cacao qui appartient à la
   même famille chaude que la rouille au lieu d'un brun isolé. */
:root {
  --afr-rouille:    #9c4326;
  --afr-rouille-f:  #7a331d;
  --afr-or:         #c68a34;
  --afr-or-pale:    #f1ddb0;
  --afr-nuit:       #3c2a1e;
  --afr-fond:       #fbf4ea;
  --afr-texte:      #6b5443;
}

/* Le corps de page (et pas seulement le bandeau) passe à l'ivoire chaud
   dédié : évite que le fond crème générique du site (autre nuance) touche
   la rouille et casse la cohérence de l'univers. */
body.univers-africaine { background: var(--afr-fond); }

/* En-tête de page : même structure claire que Produits Maison, mais
   déclinée épices (aucun vert sur cette page) : titre cacao, surtitre
   rouille, et l'arc or comme signature discrète sous le titre. */
/* Le fond ivoire est continu entre l'en-tête et la 1re section : sans
   rupture visuelle, les deux paddings s'additionnent en un grand vide.
   On resserre donc le bas de l'en-tête sur cette page. */
body.univers-africaine .page-entete { background: var(--afr-fond); padding-bottom: clamp(1.25rem, .75rem + 1.5vw, 2rem); }
body.univers-africaine .page-entete .eyebrow { color: var(--afr-rouille); }
body.univers-africaine .page-entete h1 { color: var(--afr-nuit); }
body.univers-africaine .page-entete h1 .script { color: var(--afr-rouille); }
body.univers-africaine .page-entete .hero-texte p { color: var(--afr-texte); }
body.univers-africaine .page-entete > .conteneur::after {
  content: "";
  display: block;
  height: 4px;
  width: clamp(90px, 14vw, 140px);
  margin: 1.4rem auto 0;
  background: var(--afr-or);
  border-radius: 2px;
}

/* En-tête : logo Okavi à côté du texte (réutilise .hero-grille/.hero-texte/
   .hero-logo du hero d'accueil plutôt qu'un système de grille dédié).
   Le logo Okavi est un emblème carré, pas le lockup large du logo Le
   Vivier : taille propre à cette page, sans toucher .hero-logo ailleurs.
   Alignement à gauche réservé au bureau (>960px) : sous ce seuil, la
   règle générale .hero-grille { text-align:center } du hero d'accueil
   s'applique déjà (mêmes classes), pas besoin de la dupliquer ici. */
body.univers-africaine .page-entete .hero-logo img { max-width: clamp(150px, 22vw, 320px); filter: drop-shadow(0 6px 12px rgba(60, 42, 30, .12)); }
/* Le h1 script partage la rangée avec le logo (au lieu d'occuper toute la
   largeur, centré, comme le reste du site) : taille réduite pour tenir
   sur une seule ligne au bureau plutôt que de se briser en 2 lignes. */
body.univers-africaine .page-entete h1.page-entete-titre-script { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); }
@media (min-width: 961px) {
  body.univers-africaine .page-entete .hero-texte { text-align: left; }
  body.univers-africaine .page-entete h1.page-entete-titre-script { white-space: nowrap; }
  body.univers-africaine .page-entete .hero-logo img { max-width: clamp(200px, 22vw, 320px); }
}

/* En-tête : fond ivoire épices opaque sur cette page. */
body.univers-africaine .entete { background: var(--afr-fond); box-shadow: 0 1px 0 var(--bordure); }
body.univers-africaine .entete .logo { color: var(--afr-rouille); }
body.univers-africaine .burger span { background: var(--afr-rouille); }
body.univers-africaine .nav-principale .btn-primaire { background: var(--afr-rouille); }
body.univers-africaine .nav-principale .btn-primaire:hover { background: var(--afr-rouille-f); }
body.univers-africaine .btn-fantome { color: var(--afr-rouille); }
body.univers-africaine .btn-fantome:hover { background: #f3ddd2; border-color: var(--afr-rouille); }
.univers-africaine .nav-principale ul .current-menu-item > a,
.univers-africaine .nav-principale ul .current_page_item > a { color: var(--afr-rouille); }
.univers-africaine .nav-principale ul a::after { background: var(--afr-rouille); }

/* Pied de page chaleureux : cacao de la même famille que la rouille,
   plutôt qu'un brun choisi indépendamment du reste de la charte. */
body.univers-africaine .pied { background: var(--afr-nuit); }
body.univers-africaine .pied a:hover { color: var(--afr-or-pale); }

/* Corps de page : plus aucun vert — titres et prose en cacao/rouille */
body.univers-africaine .section-titre h2 { color: var(--afr-nuit); }
body.univers-africaine .section-titre p { color: var(--afr-texte); }
body.univers-africaine .page-prose h2,
body.univers-africaine .page-prose h3 { color: var(--afr-rouille); }
body.univers-africaine .apropos-split h2 { color: var(--afr-nuit); }
body.univers-africaine .apropos-split .script-accent { color: var(--afr-rouille); }

/* La section spécialités garde le fond ivoire épices (pas le crème
   générique de .produits) */
body.univers-africaine .produits { background: transparent; }

/* Présentation : cadre or décalé derrière la photo (signature épices) */
@media (min-width: 861px) {
  body.univers-africaine .apropos-media::before {
    content: "";
    position: absolute;
    inset: 1.4rem -1.1rem -1.4rem 1.1rem;
    border: 2px solid var(--afr-or);
    border-radius: var(--rayon-l);
    opacity: .5;
    pointer-events: none;
  }
}

/* Portrait de Viviane : fond du cadre visible tant qu'aucune photo n'est
   téléversée (le médaillon "V" script s'affiche alors dedans). Le cadre
   par défaut (.apropos-media, aspect-ratio 4/5) est pensé pour une photo
   pleine page comme À propos : ici, à côté d'un court paragraphe, il
   dominait largement le texte (colonne 1fr 1fr + portrait très haut).
   Colonne image réduite + cadre plus carré pour un équilibre texte/image
   plus confortable à lire. */
body.univers-africaine .apropos-media .cadre { background: var(--afr-or-pale); aspect-ratio: 1 / 1; }
@media (min-width: 861px) {
  body.univers-africaine .apropos-split { grid-template-columns: 1.3fr 1fr; }
  /* Plafond de taille indépendant de la largeur de colonne : sans ça, le
     portrait grandit avec l'écran bien plus vite qu'un court paragraphe,
     et finit toujours par le dominer. */
  body.univers-africaine .apropos-media { width: min(320px, 100%); margin-left: auto; }
}
@media (max-width: 860px) {
  /* width (pas max-width) : évite un bug de rétrécissement (l'élément
     s'effondre à ~28px) quand max-width se combine à margin-inline:auto
     sur un enfant lui-même en width:auto (.cadre). */
  body.univers-africaine .apropos-media { width: min(320px, 100%); max-width: none; }
}
body.univers-africaine .afr-portrait-lien { color: var(--afr-rouille); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.univers-africaine .afr-portrait-lien:hover { color: var(--afr-rouille-f); }

/* Spécialités : cartes numérotées façon comptoir d'épices (vs cartes
   génériques) — filet or sous le numéro, titres rouille, photo 4/3.
   stretch : avec de vraies photos, les cartes doivent finir à la même
   hauteur (le start laissait des bas de cartes en escalier). 4 cartes
   (Beauté & soins ajoutée le 22 juillet) : 4 colonnes au bureau, les
   seuils existants de .grille-prod (2 col ≤960px, 1 col ≤720px) donnent
   déjà un 2x2 puis 1 colonne propres, sans carte orpheline. */
/* auto-fit : s'adapte au nombre réel de cartes (3 ou 4 photos fournies).
   Avec repeat(4,1fr) et seulement 3 cartes, la 4e colonne vide rétrécissait
   chaque carte à ~270px, forçant 5-6 lignes de texte. */
body.univers-africaine .grille-prod { counter-reset: spec; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.univers-africaine .carte-prod .corps p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.univers-africaine .carte-prod {
  counter-increment: spec;
  border: 1px solid #ecdfc8;
  box-shadow: 0 10px 30px -18px rgba(60, 42, 30, .25);
}
body.univers-africaine .carte-prod:hover { box-shadow: 0 20px 44px -20px rgba(122, 51, 29, .4); }
body.univers-africaine .carte-prod .photo { aspect-ratio: 4/3; background: var(--afr-or-pale); }
body.univers-africaine .carte-prod .corps { padding: 1.5rem 1.5rem 1.7rem; }
body.univers-africaine .carte-prod .corps::before {
  content: "0" counter(spec);
  display: block;
  width: max-content;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--afr-rouille);
  padding-bottom: .5rem;
  margin-bottom: .95rem;
  border-bottom: 2px solid var(--afr-or);
}
body.univers-africaine .carte-prod h3 { color: var(--afr-rouille); margin: 0 0 .45rem; }
body.univers-africaine .carte-prod .corps p { color: var(--afr-texte); }

/* (Décalage de la carte centrale retiré le 19 juillet : avec de vraies
   photos dans les cartes, l'escalier lisait comme un défaut d'alignement.) */
@media (min-width: 961px) {
  body.univers-africaine .produits { padding-bottom: clamp(3rem, 2.5rem + 1.5vw, 4rem); }
}

/* Mise en page alignée sur la page Épicerie (retours Philippe, 19 juillet) :
   trio d'atouts à icônes + bande blanche de présentation, charte épices. */
body.univers-africaine .engagement .ico { background: var(--afr-or-pale); }
body.univers-africaine .engagement .ico svg { stroke: var(--afr-rouille); }
body.univers-africaine .engagement h3 { color: var(--afr-rouille); }
body.univers-africaine .engagement p { color: var(--afr-texte); }
body.univers-africaine .bande-blanche { background: var(--blanc); border-top: 1px solid #ecdfc8; }
body.univers-africaine .apropos-split h2 { color: var(--afr-nuit); }
/* Bande de filtres (dormante tant qu'aucune catégorie « Épicerie africaine »
   n'existe) : même gabarit que Produits Maison, accents rouille au lieu du
   vert (aucun vert sur cette page, règle du 7 juillet) */
body.univers-africaine .pm-filtres-wrap { border-color: #ecdfc8; }
body.univers-africaine .pm-filtre:hover,
body.univers-africaine .pm-filtre.actif { background: var(--afr-rouille); border-color: var(--afr-rouille); color: var(--blanc); }

/* ======================================================
   PAGES INTERNES — compléments de migration
   (épicerie / boutique / promotions vers le design system bouquet)
====================================================== */
/* Grille d'engagements à 3 éléments : centrée (sinon 4e colonne vide = effet décalé) */
.engagements-grille.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
@media (max-width: 720px) { .engagements-grille.cols-3 { grid-template-columns: 1fr; max-width: 420px; } }

/* Section au rythme resserré (départements, valeurs) */
.section-compacte { padding-block: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }

/* Épicerie : bande blanche pleine largeur — donne le rythme de la page
   sans bloc crème/sable (les cartes y prennent un liseré, l'ombre seule
   ne suffit pas sur fond blanc) */
.bande-blanche { background: var(--blanc); border-top: 1px solid var(--bordure); }
.bande-blanche .prod-groupe { border: 1px solid var(--bordure); box-shadow: none; }

/* Filtres façon Produits Maison utilisés comme liens (page Épicerie) */
a.pm-filtre { display: inline-flex; align-items: center; background: var(--blanc); }
.section-compacte .section-titre { margin-bottom: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }

/* Page À propos : prose lisible, carte Google plein cadre, duo de champs */
.page-prose { max-width: 70ch; margin-inline: auto; }
.page-prose p { margin-bottom: 1rem; }
.page-prose h2, .page-prose h3 { color: var(--sauge); margin: 1.6rem 0 .6rem; }
.page-prose ul, .page-prose ol { margin: .25rem 0 1rem 1.5rem; }
.page-prose li { margin-bottom: .35rem; line-height: 1.65; }
.page-prose a { color: var(--terracotta-texte); text-decoration: underline; text-underline-offset: 2px; }
.page-prose a:hover { color: var(--sauge); }

/* ================================================
   PAGE POLITIQUE — layout + typographie
================================================ */
.pol-page {
    padding-block: clamp(2.5rem, 4vw, 5rem);
}
.pol-grille {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(2rem, 4vw, 5rem);
    align-items: start;
}

/* — Sidebar TOC — */
.pol-sidebar-inner {
    position: sticky;
    top: calc(88px + 1.5rem);
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: .75rem;
    padding: 1.25rem 1.25rem 1.5rem;
}
.pol-sidebar-titre {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--texte-moyen);
    margin: 0 0 .9rem;
}
.pol-toc { list-style: none; margin: 0; padding: 0; }
.pol-toc li + li { margin-top: .1rem; }
.pol-toc-lien {
    display: block;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--texte-moyen);
    text-decoration: none;
    padding: .3rem .5rem .3rem .75rem;
    border-left: 2px solid transparent;
    border-radius: 0 .25rem .25rem 0;
    transition: color .15s, border-color .15s, background .15s;
}
.pol-toc-lien:hover { color: var(--sauge); background: var(--sauge-pale); border-left-color: var(--sauge); }
.pol-toc-lien--actif { color: var(--sauge); font-weight: 700; border-left-color: var(--terracotta); background: var(--sauge-pale); }

/* — Prose content — */
.pol-prose {
    font-size: 1.05rem;
    line-height: 1.82;
    color: var(--texte);
}
/* Date + intro : note discrète */
.pol-prose > p:first-of-type {
    font-size: .875rem;
    color: var(--texte-moyen);
    background: var(--sauge-pale);
    border-left: 3px solid var(--sauge);
    padding: .75rem 1rem;
    border-radius: 0 .4rem .4rem 0;
    margin-bottom: 2.5rem;
}
.pol-prose p { margin-bottom: 1.1rem; }

/* Sections */
.pol-prose h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--sauge);
    margin: 3.25rem 0 .9rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--bordure);
    scroll-margin-top: 110px;
}
.pol-prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.pol-prose h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--texte-moyen);
    margin: 2rem 0 .6rem;
}

/* Listes */
.pol-prose ul,
.pol-prose ol { margin: .5rem 0 1.5rem; padding: 0; list-style: none; }
.pol-prose li { position: relative; padding-left: 1.25rem; margin-bottom: .65rem; line-height: 1.7; }
.pol-prose ul > li::before {
    content: '';
    position: absolute;
    left: .1rem; top: .68em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--terracotta);
    opacity: .75;
}

/* Liens, emphase */
.pol-prose a { color: var(--terracotta-texte); text-decoration: underline; text-underline-offset: 3px; }
.pol-prose a:hover { color: var(--sauge); }
.pol-prose em  { font-style: italic; color: var(--texte-moyen); }
.pol-prose strong { font-weight: 700; }

/* Mobile */
@media (max-width: 860px) {
    .pol-grille { grid-template-columns: 1fr; }
    .pol-sidebar { display: none; }
    .pol-prose { font-size: 1rem; }
    .pol-prose h2 { scroll-margin-top: 80px; }
}
.carte-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .champ-duo { grid-template-columns: 1fr; } }

/* Page Commander : étapes numérotées */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, .6rem + 2vw, 2.2rem); }
.etape { text-align: center; }
.etape-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--terra); color: #fff; font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; margin-bottom: .9rem; }
.etape h3 { font-size: 1.05rem; color: var(--sauge); margin-bottom: .4rem; }
.etape p { font-size: .9rem; color: var(--texte-corps); }

/* Page Commander : cartes « bon de commande » */
/* Pleine largeur du conteneur (ancien plafond 880px = vide sur les côtés) */
.cmd-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, .8rem + 1.5vw, 2rem); }
.cmd-carte { background: var(--blanc); border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre-douce); display: flex; flex-direction: column; transition: transform var(--transi), box-shadow var(--transi); }
.cmd-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.cmd-carte-haut { aspect-ratio: 16 / 9; background: var(--sauge-pale); display: grid; place-items: center; position: relative; overflow: hidden; }
.cmd-carte-haut img { width: 100%; height: 100%; object-fit: cover; }
.cmd-carte-haut svg { width: 54px; height: 54px; fill: none; stroke: var(--sauge); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cmd-carte-icone { font-size: 3rem; line-height: 1; }
.cmd-carte-corps { padding: 1.9rem 1.9rem 2rem; display: flex; flex-direction: column; flex: 1; }
.cmd-carte-corps h3 { color: var(--sauge); font-size: 1.35rem; margin-bottom: .7rem; }
.cmd-carte-corps p { color: var(--texte-corps); line-height: 1.7; margin-bottom: 1.5rem; }
.cmd-liste { margin: .2rem 0 1.6rem; display: grid; gap: .55rem; }
.cmd-liste li { position: relative; padding-left: 1.5rem; font-size: .92rem; line-height: 1.5; }
.cmd-liste li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.cmd-carte .btn { margin-top: auto; align-self: flex-start; }
.cmd-cta-bientot { pointer-events: none; opacity: .55; }
.cmd-badge-bientot { position: absolute; top: .8rem; left: .8rem; background: var(--encre); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 50px; }
/* Titre carte en overlay au-dessus de la photo */
.cmd-carte-titre-photo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,.15) 65%, transparent 100%);
  color: #fff; text-align: center; text-transform: uppercase;
  letter-spacing: .07em; font-size: 1.05rem; font-weight: 700;
  padding: .85rem 1rem .7rem; margin: 0;
}
/* Reduire l'espace entre "Nos bons de commande" et les cartes */
#bons-de-commande .section-titre { margin-bottom: clamp(.75rem, .5rem + 1vw, 1.25rem); }

/* Panneau CTA (relance bas de page) */
.cta-panel { max-width: 780px; margin-inline: auto; text-align: center; background: linear-gradient(160deg, var(--sauge), var(--sauge-fonce)); color: #e7eee0; border-radius: var(--rayon-l); padding: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); box-shadow: var(--ombre); }
.cta-panel h2 { color: #fff; font-size: var(--t-h2); margin-bottom: .7rem; }
.cta-panel p { color: #cdd8c2; max-width: 48ch; margin: 0 auto 1.6rem; line-height: 1.6; text-wrap: balance; }
.cta-panel p a { color: #fff; text-decoration: underline; }
.cta-panel .cta-tel { white-space: nowrap; }
.cta-panel-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.cta-panel .btn-clair { background: #fff; color: var(--sauge); }
.cta-panel .btn-clair:hover { background: var(--ocre-pale); }

@media (max-width: 1080px) { .cmd-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .etapes { grid-template-columns: repeat(2, 1fr); } .cmd-grille { grid-template-columns: 1fr; max-width: 460px; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

/* Pages de détail (fiche produit / producteur) — dégagent l'en-tête fixe */
.section-detail { padding-top: clamp(7rem, 5rem + 3vw, 9rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.single-media--photo { aspect-ratio: 1; padding: 0; }
.single-media--photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.single-badge { display: inline-block; background: var(--ocre-pale); color: var(--terra-fonce); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 50px; margin-bottom: .6rem; }
.prod-region-ligne { display: inline-flex; align-items: center; gap: .45rem; color: var(--terra-fonce); font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.prod-region-ligne svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prod-reseaux { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Page 404 */
.erreur-404-code { font-family: var(--f-script); font-size: clamp(4rem, 3rem + 6vw, 8rem); color: var(--terra); line-height: 1; margin-bottom: .3rem; }

/* Résultats de recherche */
.recherche-liste { max-width: 760px; margin-inline: auto; display: grid; gap: 1rem; list-style: none; }
.recherche-item { background: var(--blanc); border-radius: var(--rayon); padding: 1.3rem 1.5rem; box-shadow: var(--ombre-douce); transition: transform var(--transi), box-shadow var(--transi); }
.recherche-item:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.recherche-titre { font-family: var(--f-titre); font-weight: 700; color: var(--sauge); font-size: 1.1rem; }
.recherche-titre:hover { color: var(--terra-fonce); }
.recherche-item p { color: var(--texte-corps); font-size: .92rem; margin-top: .3rem; }

/* Message « grille vide » */
.grille-vide { grid-column: 1 / -1; text-align: center; color: var(--texte-doux); white-space: nowrap; margin: 1rem auto 0; }

/* Carte boutique : marque sous le titre */
.carte-marque { font-size: .82rem; color: var(--texte-doux); margin-top: .15rem; }

/* Producteurs groupés par type (page Épicerie) — échantillon : 3 cartes
   égales, max 4 noms, lien « + N autres » ancré au bas de la carte */
.prod-groupes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 2rem); align-items: stretch; }
.prod-groupe { background: var(--blanc); border-radius: var(--rayon); padding: 1.5rem 1.6rem; box-shadow: var(--ombre-douce); display: flex; flex-direction: column; }
.prod-groupe-plus { margin-top: auto; padding-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--sauge); transition: color var(--transi); }
.prod-groupe-plus:hover { color: var(--terra-fonce); text-decoration: underline; text-underline-offset: 3px; }
.prod-groupe-titre { color: var(--sauge); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--bordure); }
.prod-liste li { padding: .4rem 0; }
.prod-liste li + li { border-top: 1px solid var(--sable); }
.prod-nom { font-weight: 600; color: var(--texte); transition: color var(--transi); }
.prod-nom:hover { color: var(--terra-fonce); }
.prod-region { display: block; font-size: .8rem; color: var(--texte-doux); }

/* Cartes promotion : photo plein cadre + textes */
.promo-img--photo { display: block; }
.promo-img--photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.promo-desc { font-size: .88rem; color: var(--texte-corps); margin: .5rem 0 .8rem; }
.promo-validite { font-size: .78rem; color: var(--texte-doux); margin-top: .7rem; }

/* État vide générique (promos, etc.) */
.etat-vide { text-align: center; max-width: 460px; margin: 0 auto; padding: 2rem 1rem; }
.etat-vide-icone { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sauge-pale); margin-bottom: 1rem; }
.etat-vide-icone svg { width: 32px; height: 32px; fill: none; stroke: var(--sauge); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.etat-vide h3 { color: var(--sauge); font-size: 1.2rem; margin-bottom: .5rem; }
.etat-vide p { color: var(--texte-corps); }

@media (max-width: 860px) { .prod-groupes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prod-groupes { grid-template-columns: 1fr; } }

/* ======================================================
   PAGE DÉTAIL D'UN LOFT — mise en page style Airbnb (charte sarcelle)
   Migré depuis style.css.bak-refonte vers les tokens actifs.
====================================================== */
/* Tokens locaux à l'univers Lofts (scopés sur le wrapper de la fiche) */
.loft-detail {
  --sarcelle: #1d5055;
  --lofts-txt: #1d3d3f;
  --lofts-terra: var(--terra);
  --lofts-creme: var(--lofts-perle);
}

.loft-d-conteneur {
  padding-top: clamp(6.5rem, 5.5rem + 1.5vw, 7.5rem);
  padding-bottom: 2.5rem;
}

.loft-d-retour {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-titre);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sarcelle);
  background: var(--blanc);
  border: 1.5px solid rgba(29, 80, 85, 0.3);
  padding: 0.6em 1.25em;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.loft-d-retour:hover {
  background: var(--sarcelle);
  color: var(--blanc);
  border-color: var(--sarcelle);
  transform: translateX(-2px);
}

.loft-d-titre-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.loft-d-titre {
  font-family: var(--f-script);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--sarcelle);
  margin: 0;
}

.loft-d-voir-airbnb {
  font-family: var(--f-titre);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sarcelle);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.loft-d-voir-airbnb:hover { color: var(--lofts-terra); }

/* Galerie mosaïque */
.loft-d-galerie {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.loft-d-photo {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background-color: var(--sarcelle);
  background-size: cover;
  background-position: center;
  transition: filter 0.25s, transform 0.6s;
}
.loft-d-photo:hover { filter: brightness(0.9); }

.loft-d-photo-big {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.loft-d-voir-photos {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  background: var(--blanc);
  color: var(--lofts-txt);
  border: 1px solid var(--lofts-txt);
  border-radius: 10px;
  padding: 0.6em 1.1em;
  font-family: var(--f-titre);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}
.loft-d-voir-photos:hover { transform: scale(1.04); }

.loft-d-galerie-vide {
  height: 360px;
  border-radius: 20px;
  background: var(--sarcelle);
  color: var(--lofts-creme);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Corps : 2 colonnes */
.loft-d-corps {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
  align-items: start;
}

.loft-d-soustitre {
  font-family: var(--f-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lofts-txt);
  margin: 0 0 0.35rem;
}

.loft-d-meta {
  font-size: 0.98rem;
  color: var(--texte-corps);
  margin: 0 0 1.75rem;
}

/* Points forts */
.loft-d-highlights {
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.loft-d-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.loft-d-hl-icone {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--lofts-terra);
}
.loft-d-hl-icone .lv-icone {
  width: 30px;
  height: 30px;
}
.loft-d-hl-texte { display: flex; flex-direction: column; gap: 0.15rem; }
.loft-d-hl-texte strong {
  font-family: var(--f-titre);
  font-size: 1rem;
  color: var(--lofts-txt);
}
.loft-d-hl-desc {
  font-size: 0.9rem;
  color: var(--texte-corps);
  line-height: 1.5;
}

/* Description */
.loft-d-desc-bloc {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bordure);
  margin-bottom: 2rem;
}
.loft-d-desc {
  position: relative;
  max-height: 10rem;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--lofts-txt);
}
.loft-d-desc.is-open { max-height: none; }
.loft-d-desc:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: linear-gradient(transparent, var(--creme));
}
.loft-d-desc p { margin: 0 0 1rem; }
.loft-d-desc-plus {
  margin-top: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--f-titre);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sarcelle);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.loft-d-desc-plus:hover { color: var(--lofts-terra); }

/* Commodités */
.loft-d-h2 {
  font-family: var(--f-titre);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lofts-txt);
  margin: 0 0 1.5rem;
}
.loft-d-amenites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2rem;
}
.loft-d-amenites li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--lofts-txt);
}
.loft-d-am-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.7rem;
  color: var(--lofts-terra);
}
.loft-d-am-icone .lv-icone { width: 22px; height: 22px; }

.loft-d-am-cache { display: none; }
.loft-d-amenites.is-open .loft-d-am-cache { display: flex; }

.loft-d-am-plus {
  margin-top: 1.5rem;
  background: none;
  border: 1.5px solid var(--lofts-txt);
  color: var(--lofts-txt);
  font-family: var(--f-titre);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.loft-d-am-plus:hover {
  background: var(--lofts-txt);
  color: var(--blanc);
}

/* Carte de réservation (collante) */
.loft-d-resa-col { position: sticky; top: 100px; }
.loft-d-resa-carte {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 6px 26px rgba(29, 80, 85, 0.12);
}
.loft-d-resa-prix {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}
.loft-d-resa-montant {
  font-family: var(--f-titre);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--lofts-txt);
}
.loft-d-resa-nuit { font-size: 0.95rem; color: var(--texte-corps); }
.loft-d-resa-sub {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lofts-terra);
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.loft-d-resa-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--lofts-terra);
  color: var(--blanc);
  font-family: var(--f-titre);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95em 1em;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
}
.loft-d-resa-btn:hover {
  background: #a85843;
  color: var(--blanc);
  transform: translateY(-1px);
}
.loft-d-resa-btn + .loft-d-resa-btn { margin-top: 0.6rem; }
.loft-d-resa-btn--secondaire {
  background: transparent;
  color: var(--sarcelle);
  border: 1.5px solid var(--sarcelle);
}
.loft-d-resa-btn--secondaire:hover {
  background: var(--sarcelle);
  color: var(--blanc);
}
.loft-d-resa-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--texte-corps);
  margin: 0.9rem 0 0;
}
.loft-d-resa-tel {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-family: var(--f-titre);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sarcelle);
  text-decoration: none;
}
.loft-d-resa-tel:hover { color: var(--lofts-terra); }

/* Localisation */
.loft-d-loc {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--bordure);
}
.loft-d-loc-adresse {
  font-size: 1rem;
  color: var(--texte-corps);
  margin: 0 0 1.5rem;
}
.loft-d-loc-carte {
  position: relative;
  padding-top: 52%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bordure);
}
.loft-d-loc-carte iframe,
.loft-d-loc-carte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.loft-d-loc-lien {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--f-titre);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sarcelle);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.loft-d-loc-lien:hover { color: var(--lofts-terra); }

/* Overlay galerie plein écran */
.loft-d-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 30, 31, 0.97);
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 4.5rem 1rem 3rem;
}
.loft-d-overlay[hidden] { display: none; }
.loft-d-overlay-inner {
  max-width: 840px;
  margin: 0 auto;
}
.loft-d-overlay-titre {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 2.6rem;
  color: var(--lofts-creme);
  text-align: center;
  margin: 0 0 1.25rem;
}
.loft-d-overlay-nav {
  position: sticky;
  top: -0.5rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0 1.25rem;
  margin-bottom: 0.5rem;
  background: rgba(20, 30, 31, 0.97);
}
.loft-d-overlay-nav a {
  font-family: var(--f-titre);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(250, 240, 238, 0.85);
  text-decoration: none;
  padding: 0.45em 0.95em;
  border-radius: 50px;
  border: 1px solid rgba(250, 240, 238, 0.25);
  transition: background-color 0.2s, color 0.2s;
}
.loft-d-overlay-nav a:hover {
  background: rgba(250, 240, 238, 0.14);
  color: #ffffff;
}
.loft-d-overlay-nav a span { opacity: 0.55; margin-left: 0.2rem; }
.loft-d-overlay-cat {
  scroll-margin-top: 80px;
  margin-bottom: 2.5rem;
}
.loft-d-overlay-cat h3 {
  font-family: var(--f-titre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lofts-creme);
  margin: 0 0 1rem;
}
.loft-d-overlay-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.loft-d-overlay-grille img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.loft-d-overlay-grille img:first-child { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .loft-d-overlay-grille { grid-template-columns: 1fr; }
}
.loft-d-overlay-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blanc);
  color: var(--lofts-txt);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Barre de réservation mobile (cachée sur desktop) */
.loft-d-barre-mobile { display: none; }

@media (max-width: 900px) {
  .loft-d-corps { grid-template-columns: 1fr; gap: 2.5rem; }
  .loft-d-resa-col { display: none; }

  .loft-d-galerie {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .loft-d-galerie .loft-d-photo { height: 240px; }
  .loft-d-photo-big { grid-column: auto; grid-row: auto; height: 300px !important; }
  .loft-d-galerie .loft-d-photo:nth-child(n + 4) { display: none; }

  .loft-d-amenites { grid-template-columns: 1fr; }

  .loft-d-barre-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: var(--blanc);
    border-top: 1px solid var(--bordure);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.1);
  }
  .loft-d-barre-mobile .loft-d-resa-btn { width: auto; padding: 0.8em 1.6em; }
  .loft-d-barre-prix {
    font-family: var(--f-titre);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--lofts-txt);
  }
  .loft-d-barre-prix small { font-weight: 500; color: var(--texte-corps); }
}

/* Fiche loft en mobile : une seule photo + bouton « Afficher toutes les photos » */
@media (max-width: 768px) {
  .loft-d-galerie .loft-d-photo:not(.loft-d-photo-big) { display: none; }
  .loft-d-photo-big { height: clamp(280px, 62vw, 400px) !important; }
  .loft-d-voir-photos { bottom: 1rem; right: 1rem; }
}

/* ======================================================
   FICHE PRODUCTEUR — Disponibles au Vivier
====================================================== */
.prod-dispo {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bordure);
}
.prod-dispo h2 {
  color: var(--sauge);
}
.prod-dispo-liste {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.8rem;
}
.prod-dispo-liste li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.4;
  color: var(--texte-corps);
}
.prod-dispo-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--terra);
}
@media (max-width: 640px) {
  .prod-dispo-liste { grid-template-columns: 1fr; }
}

/* ======================================================
   PAM — Bon de commande prêt à manger
====================================================== */

/* Disposition en une colonne : produits d'abord, coordonnées ensuite */
.pam-form {
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 5vw, 3.4rem);
  width: 100%;
  min-width: 0;
}
.pam-produits-col,
.pam-infos-client {
  min-width: 0;
  max-width: 100%;
}

/* Grille de champs 2 colonnes (coordonnées PAM/PM + formulaire vrac) */
.pam-grille-form {
  display: grid;
  gap: 0 1.25rem;
  width: 100%;
  min-width: 0;
}
.pam-grille-form > * { min-width: 0; }
@media (min-width: 580px) {
  .pam-grille-form { grid-template-columns: 1fr 1fr; }
  .pam-grille-form > .pam-champ--pleine { grid-column: 1 / -1; }
}

/* Carte coordonnées : pleine largeur, les 4 champs sur une rangée en desktop.
   Bon PAM : 6 champs depuis l'ajout de la date et de l'heure de récupération,
   3 colonnes = 2 rangées pleines (4 colonnes laissait la 2e rangée à moitié
   vide, ce qui donnait l'impression d'un bloc plus étroit que la commande). */
.pam-bloc-coordonnees {
  background: var(--creme);
  border-radius: var(--rayon);
  padding: clamp(1.2rem, 1.5vw, 1.6rem);
}
@media (min-width: 1000px) {
  .pam-bloc-coordonnees .pam-grille-form { grid-template-columns: repeat(4, 1fr); }
  .page-template-template-bon-pam .pam-bloc-coordonnees .pam-grille-form { grid-template-columns: repeat(3, 1fr); }
}

/* Pastille d'étape numérotée */
.pam-etape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-right: .65rem;
  border-radius: 50%;
  background: var(--sauge);
  color: var(--blanc);
  font-size: .9rem;
  font-weight: 700;
}

/* Champ générique */
.pam-section-titre {
  display: flex;
  align-items: center;
  font-size: var(--t-h3);
  color: var(--sauge);
  margin-bottom: 1.4rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sauge-pale);
}
.pam-champ { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.pam-champ label { font-size: .88rem; font-weight: 600; color: var(--texte); }
.pam-champ abbr { text-decoration: none; color: var(--terra); }
.pam-champ input,
.pam-champ select,
.pam-champ textarea {
  font-family: var(--f-corps);
  font-size: var(--t-corps);
  color: var(--texte);
  background: var(--blanc);
  border: 1.5px solid var(--bordure);
  border-radius: 10px;
  padding: .65rem .9rem;
  width: 100%;
  transition: border-color var(--transi);
}
.pam-champ input:focus,
.pam-champ select:focus,
.pam-champ textarea:focus { outline: none; border-color: var(--sauge); }
.pam-champ textarea { resize: vertical; min-height: 80px; }

/* Champ invalide */
.pam-invalide {
  border-color: var(--terra) !important;
  background: var(--terra-pale) !important;
}
.pam-invalide:focus { border-color: var(--terra-fonce) !important; }
.pam-hint-erreur {
  font-size: .8rem;
  color: var(--terra-fonce);
  font-weight: 600;
}
.pam-msg-aucun-produit--global {
  margin-top: .75rem;
  padding: .6rem .85rem;
  background: var(--terra-pale);
  border-left: 3px solid var(--terra);
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
}
/* Légère animation d'attention sur le label du champ en erreur */
.pam-champ--erreur label { color: var(--terra-fonce); }

/* Filtre par jour */
.pam-filtre-jours {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.pam-filtre-label {
  width: 100%;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: .2rem;
}
.pam-filtre-option { display: flex; }
.pam-filtre-option input[type="radio"] { display: none; }
.pam-filtre-option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .42rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--bordure);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--blanc);
  color: var(--texte-corps);
  transition: background var(--transi), border-color var(--transi), color var(--transi);
}
.pam-filtre-option input[type="radio"]:checked + span {
  background: var(--sauge);
  border-color: var(--sauge);
  color: var(--blanc);
}
.pam-filtre-option span:hover {
  border-color: var(--sauge-moyen);
  color: var(--sauge);
}

/* Messages informatifs par jour */
.pam-messages-jours { margin-bottom: 1.6rem; }
.pam-msg-jour {
  background: var(--blanc);
  border-top: 3px solid var(--sauge);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  box-shadow: var(--ombre-douce);
}
.pam-msg-jour[hidden] { display: none; }
/* display:flex sur .pam-msg-corps écrase le masquage natif du <details> fermé */
.pam-msg-jour:not([open]) > .pam-msg-corps,
.pam-msg-jour:not([open]) > .pam-msg-image { display: none; }
.pam-msg-jour--avec-image {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
}
/* Message concentré sur un produit précis (ex: "Un shish taouk au
   poulet" dans Sandwichs) : intégré directement dans sa carte plutôt
   qu'en bandeau pleine largeur, donc plus compact. Toujours en colonne
   même avec une image (la carte est trop étroite pour une rangée). */
.pam-msg-jour--carte {
  background: var(--sauge-pale);
  border-top: 2px solid var(--sauge);
  padding: .9rem 1rem;
  gap: .5rem;
  margin: .3rem 0 .7rem;
  font-size: .92rem;
}
.pam-msg-jour--carte.pam-msg-jour--avec-image { flex-direction: column; }
.pam-msg-jour--carte .pam-msg-titre { font-size: 1rem; }
.pam-msg-jour--carte .pam-msg-desc { font-size: .86rem; }
.pam-msg-jour--carte .pam-msg-cta { font-size: .82rem; padding: .6rem .9rem; }
.pam-msg-jour--carte .pam-msg-image { width: clamp(48px, 20%, 64px); }
.pam-msg-image {
  flex: none;
  width: clamp(64px, 8vw, 84px);
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--blanc);
  border: 1px solid rgba(77, 96, 64, .18);
  border-radius: 12px;
  padding: .4rem;
}
.pam-msg-corps { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.pam-msg-titre {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--sauge);
  margin: 0;
  line-height: 1.3;
  list-style: none;       /* retire le triangle natif <summary> */
}
.pam-msg-titre::-webkit-details-marker { display: none; }

/* Desktop : <details> toujours ouvert, titre non-cliquable */
@media (min-width: 641px) {
  .pam-msg-jour > summary.pam-msg-titre {
    pointer-events: none;
    cursor: default;
  }
}

/* Mobile : titre comme bouton accordéon avec chevron */
@media (max-width: 640px) {
  .pam-msg-jour > summary.pam-msg-titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: .5rem;
  }
  .pam-msg-jour > summary.pam-msg-titre::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--sauge);
    border-bottom: 2px solid var(--sauge);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform .2s;
    margin-top: -4px;
  }
  .pam-msg-jour[open] > summary.pam-msg-titre::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }
  .pam-msg-jour > .pam-msg-corps { margin-top: .7rem; }
}
.pam-msg-desc {
  font-size: .93rem;
  color: var(--texte);
  line-height: 1.7;
  margin: 0;
}
.pam-msg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .6rem;
  background: var(--terra-pale);
  color: var(--terra-fonce);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.pam-msg-cta svg {
  flex: none;
  width: 16px;
  height: 16px;
  stroke: var(--terra-fonce);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pam-msg-note {
  background: var(--blanc);
  border-top: 3px solid var(--terra);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  box-shadow: var(--ombre-douce);
}
.pam-msg-note-titre {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .98rem;
  color: var(--terra-fonce);
  margin: 0 0 .45rem;
  line-height: 1.3;
}
.pam-msg-note-texte {
  font-size: .88rem;
  color: var(--texte);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 560px) {
  .pam-msg-jour--avec-image { flex-direction: column; }
  .pam-msg-image { width: 56px; }
}

/* Onglets catégorie */
.pam-filtre-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.pam-cat-tab {
  min-height: 44px;
  padding: .4rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--bordure);
  background: var(--blanc);
  font-family: var(--f-titre);
  font-size: .9rem;
  font-weight: 600;
  color: var(--texte-corps);
  cursor: pointer;
  transition: background var(--transi), border-color var(--transi), color var(--transi);
}
.pam-cat-tab:hover {
  border-color: var(--terra);
  color: var(--terra);
}
.pam-cat-tab--active,
.pam-cat-tab--active:hover {
  background: var(--sauge);
  border-color: var(--sauge);
  color: var(--blanc);
}
.pam-cat-tab[hidden] { display: none; }

/* Sous-onglets (2e niveau, sous une catégorie principale ayant des enfants) */
.pam-filtre-souscats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.3rem;
}
.pam-filtre-souscats[hidden] { display: none; }
.pam-souscat-tab {
  min-height: 36px;
  padding: .3rem .9rem;
  border-radius: 8px;
  border: 1.5px solid var(--bordure);
  background: var(--blanc);
  font-family: var(--f-titre);
  font-size: .82rem;
  font-weight: 600;
  color: var(--texte-corps);
  cursor: pointer;
  transition: background var(--transi), border-color var(--transi), color var(--transi);
}
.pam-souscat-tab:hover { border-color: var(--sauge); color: var(--sauge); }
.pam-souscat-tab--actif,
.pam-souscat-tab--actif:hover {
  background: var(--sauge);
  border-color: var(--sauge);
  color: var(--blanc);
}

/* Filtre visuel de sous-catégorie : masque sans toucher `hidden` (le total
   et le récapitulatif ne doivent pas être affectés par ce filtre d'affichage) */
.pam-produit-item.pam-produit-item--filtre-masque { display: none; }

/* Section catégorie */
.pam-categorie { margin-bottom: 0; }
.pam-categorie-titre {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra-fonce);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--bordure);
}

/* Grille de produits statique (plusieurs rangées, aucun défilement).
   Cartes compactes : 4-5 par rangée sur écran standard, la description
   est repliée dans un accordéon pour garder les cartes courtes. */
.pam-produits-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

/* Entrée des cartes après changement de filtre */
@keyframes pam-entree {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Carte produit */
.pam-produit-item {
  background: var(--blanc);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transi), border-color var(--transi), transform var(--transi);
  animation: pam-entree .4s ease both;
}
.pam-produit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre);
  border-color: var(--sauge-pale);
}
.pam-produit-item[hidden] { display: none; }
.pam-produit-item:has(.pam-qty-input:not([value="0"])) {
  border-color: var(--sauge-moyen);
  box-shadow: var(--ombre-douce);
}
.pam-produit-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.pam-produit-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--sable);
}

/* Deux photos par produit (angles différents) : alternance en fondu, sans JS. */
.pam-produit-photos { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.pam-produit-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: pam-photo-alterne 9s ease-in-out infinite;
}
.pam-produit-photo--2 { animation-delay: -4.5s; }
@keyframes pam-photo-alterne {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: 0; }
  100%     { opacity: 1; }
}
.pam-produit-corps {
  padding: .85rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .3rem;
}
.pam-produit-nom {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .95rem;
  color: var(--texte);
  line-height: 1.3;
}
.pam-produit-desc {
  font-size: .88rem;
  color: var(--texte-doux);
  line-height: 1.5;
}
.pam-produit-poids {
  font-size: .8rem;
  color: var(--texte-doux);
  margin-top: -.15rem;
}

/* Description repliée dans un accordéon natif */
.pam-produit-details summary {
  cursor: pointer;
  list-style: none;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sauge);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.pam-produit-details summary::-webkit-details-marker { display: none; }
.pam-produit-details summary::after {
  content: '';
  width: .45em;
  height: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.1em);
  transition: transform var(--transi);
}
.pam-produit-details[open] summary::after {
  transform: rotate(225deg) translateY(-.1em);
}
.pam-produit-details summary:hover { color: var(--sauge-fonce, var(--sauge)); text-decoration: underline; }
.pam-produit-details .pam-produit-desc { margin-top: .35rem; }

.pam-produit-prix {
  font-weight: 700;
  color: var(--sauge);
  font-size: .95rem;
  margin-top: auto;
  padding-top: .4rem;
}
.pam-produit-taxes {
  font-weight: 600;
  color: var(--texte-doux);
  font-size: .74rem;
  margin-left: .15rem;
}

/* Instructions de commande propres au produit */
.pam-produit-instructions {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--terra-fonce);
  background: var(--terra-pale);
  border-left: 3px solid var(--terra);
  border-radius: 0 8px 8px 0;
  padding: .5rem .7rem;
}
.pam-produit-instructions svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: .1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contrôle quantité +/- */
.pam-qty-controle {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
}
/* Option réchauffage : pied de carte intégré */
.pam-option-chaud {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  margin: .45rem -.9rem -1rem;
  border-top: 1px solid var(--bordure);
  border-radius: 0 0 var(--rayon) var(--rayon);
  font-size: .84rem;
  color: var(--texte-moyen);
  cursor: pointer;
  user-select: none;
  transition: background .18s, color .18s, border-top-color .18s;
}
.pam-option-chaud:hover { background: var(--creme); }
.pam-option-chaud:has(input:checked) {
  background: var(--sauge-pale);
  color: var(--sauge);
  border-top-color: var(--sauge-pale);
}
.pam-chaud-icone {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
  opacity: .65;
  transition: opacity .18s;
}
.pam-option-chaud:has(input:checked) .pam-chaud-icone { opacity: 1; }
/* Coche personnalisée à gauche */
.pam-option-chaud::before {
  content: '';
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--bordure);
  flex-shrink: 0;
  background: var(--blanc);
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
  transition: border-color .18s, background-color .18s;
}
.pam-option-chaud:has(input:checked)::before {
  border-color: var(--sauge);
  background-color: var(--sauge);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
/* Checkbox natif masqué */
.pam-option-chaud input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* Rappel réchauffage dans les coordonnées */
.pam-rechauffage-info {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .75rem;
  padding: .7rem .9rem;
  background: var(--sauge-pale);
  border-radius: 7px;
  font-size: .88rem;
  color: var(--sauge);
}
.pam-rechauffage-info[hidden] { display: none; }
.pam-rechauffage-info svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
  opacity: .8;
}
.pam-qty-moins,
.pam-qty-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background: var(--creme);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sauge);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transi), border-color var(--transi);
  flex-shrink: 0;
}
.pam-qty-moins:hover,
.pam-qty-plus:hover { background: var(--sauge-pale); border-color: var(--sauge); }
.pam-qty-input {
  width: 46px;
  text-align: center;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .95rem;
  color: var(--texte);
  border: 1.5px solid var(--bordure);
  border-radius: 8px;
  padding: .3rem .4rem;
  background: var(--blanc);
}
.pam-qty-input:focus { outline: none; border-color: var(--sauge); }
.pam-qty-input::-webkit-outer-spin-button,
.pam-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pam-qty-input[type=number] { -moz-appearance: textfield; }

/* Barre de total sticky */
.pam-barre-total {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--blanc);
  border-top: 2px solid var(--sauge-pale);
  padding: .9rem 0;
  padding-bottom: calc(.9rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px -10px rgba(56, 73, 45, .2);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.pam-barre-total--active { transform: translateY(0); }
/* Retrait quand le bloc Envoyer de fin de formulaire est à l'écran (classe
   posée par pam-commande.js / pm-commande.js). Après --active pour l'emporter
   à spécificité égale. */
.pam-barre-total--retrait { transform: translateY(100%); }
.pam-barre-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pam-total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
}
.pam-total-label strong { color: var(--sauge); font-size: 1.15rem; }

/* Bloc Envoyer en fin de formulaire (demande de Marie, 2 nov. 2026) : le
   bouton vit là où le client finit de remplir ses coordonnées, au lieu de
   dépendre seulement de la barre fixe du bas, qui passait pour un bandeau
   sous le pied de page. */
.pam-soumission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: .75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--sauge-pale);
}
.pam-soumission .pam-total-label strong { font-size: 1.3rem; }
.pam-soumission .btn { font-size: 1rem; padding: 1.05rem 2.1rem; }
@media (max-width: 480px) {
  .pam-soumission { flex-direction: column; align-items: stretch; }
  .pam-soumission .btn { justify-content: center; }
}

/* ─── Toast de suggestion ─────────────────────────────────────────────────── */
/* Desktop : coin bas-droit, comme une notification (ne masque pas le centre
   de l'écran ni la barre de total). Repositionné en bas-centre sur mobile
   (≤640px, voir plus bas) où un coin dédié laisserait trop peu de place. */
.pam-sugg-toast {
  position: fixed;
  bottom: calc(var(--pam-barre-h, 68px) + 1.25rem);
  right: 1.5rem;
  left: auto;
  width: min(400px, calc(100vw - 3rem));
  background: #fdfaf6;
  border: 1px solid rgba(184,92,80,.12);
  border-radius: 18px;
  box-shadow:
    0 2px 4px rgba(0,0,0,.04),
    0 8px 24px rgba(0,0,0,.09),
    0 24px 52px rgba(0,0,0,.05);
  overflow: hidden;
  z-index: 200;
  padding: .9rem 1rem .8rem;
  animation: pam-sugg-entrer .45s cubic-bezier(.32,1.2,.5,1) forwards;
}
.pam-sugg-toast--sortir {
  animation: pam-sugg-sortir .22s cubic-bezier(.4,0,1,1) forwards !important;
}
@keyframes pam-sugg-entrer {
  0%   { opacity: 0; transform: translateY(26px) scale(.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes pam-sugg-sortir {
  to { opacity: 0; transform: translateY(14px) scale(.97); }
}
/* En-tête: eyebrow Professor + bouton fermer */
.pam-sugg-entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.pam-sugg-eyebrow {
  margin: 0;
  font-family: var(--police-accent);
  font-size: 1.05rem;
  color: var(--terracotta-texte);
  line-height: 1;
}
.pam-sugg-fermer {
  background: none;
  border: none;
  font-size: .9rem;
  color: var(--texte-moyen);
  cursor: pointer;
  padding: .1rem .3rem;
  border-radius: 4px;
  opacity: .4;
  line-height: 1;
  transition: opacity var(--transi);
}
.pam-sugg-fermer:hover { opacity: 1; }
/* Corps: photo + infos (nom, prix, bouton) */
.pam-sugg-carte {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.pam-sugg-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.pam-sugg-photo--vide {
  background: var(--sauge-pale);
  border: 1px solid var(--bordure);
}
.pam-sugg-infos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.pam-sugg-nom {
  background: none;
  border: none;
  padding: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--texte);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  transition: color var(--transi);
}
.pam-sugg-nom:hover { color: var(--terracotta-texte); }
.pam-sugg-prix {
  font-size: .82rem;
  font-weight: 600;
  color: var(--terracotta-texte);
}
.pam-sugg-btn {
  align-self: flex-start;
  margin-top: .35rem;
  border: none;
  background: var(--terra);
  color: var(--blanc);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .42rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transi), transform .1s ease;
}
.pam-sugg-btn:hover  { background: var(--terra-fonce); }
.pam-sugg-btn:active { transform: scale(.95); }
/* Barre de progression au bas de la carte */
.pam-sugg-barre {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--terracotta);
  transform-origin: left;
  opacity: .35;
  animation-name: pam-sugg-prog;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: 6s; /* repli, écrasé en ligne par SUGG_DUREE via JS */
}
@keyframes pam-sugg-prog {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pam-sugg-toast, .pam-sugg-barre { animation: none; }
}

/* Bouton compteur d'articles (ouvre le récapitulatif) */
.pam-recap-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--sauge);
  background: var(--blanc);
  color: var(--sauge);
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background var(--transi);
}
.pam-recap-toggle:hover { background: var(--sauge-pale); }
.pam-recap-toggle[hidden] { display: none; }
.pam-recap-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.pam-barre-total--ouverte .pam-recap-toggle svg { transform: rotate(180deg); }

/* Panneau récapitulatif : se déplie au-dessus de la barre (ancrée en bas,
   elle grandit vers le haut) */
.pam-recap {
  padding-top: .9rem;
  padding-bottom: .9rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--sauge-pale);
  max-height: 45vh;
  overflow-y: auto;
}
.pam-recap[hidden] { display: none; }
.pam-recap-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pam-recap-liste li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--bordure);
}
.pam-recap-liste li:last-child { border-bottom: none; }
.pam-recap-nom {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--texte);
  cursor: pointer;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.pam-recap-nom:hover { color: var(--sauge); text-decoration: underline; }
.pam-recap-detail {
  font-weight: 700;
  font-size: .92rem;
  color: var(--sauge);
  white-space: nowrap;
}
.pam-recap-suppr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background: var(--blanc);
  color: var(--terra-fonce);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transi), border-color var(--transi);
}
.pam-recap-suppr:hover { background: var(--terra-pale); border-color: var(--terra); }

/* Halo de repérage quand on revient à un produit depuis le récap.
   Transition (pas d'animation) pour ne pas écraser pam-entree. */
.pam-produit-item--focus {
  box-shadow: 0 0 0 5px var(--sauge-pale);
  border-color: var(--sauge) !important;
}

/* Messages succès / erreur */
.pam-msg-succes,
.pam-msg-erreur {
  padding: 1rem 1.4rem;
  border-radius: var(--rayon);
  margin-top: 1.5rem;
  font-weight: 600;
}
.pam-msg-succes { background: var(--sauge-pale); color: var(--sauge-fonce); }
.pam-msg-erreur { background: var(--terra-pale); color: var(--terra-fonce); }

/* Padding bas pour éviter que la sticky bar masque le contenu
   Le sélecteur ~ ne fonctionne pas ici car la section est AVANT la barre dans le DOM.
   On utilise :has() pour cibler la section parente. */
body:has(.pam-barre-total--active) main,
body:has(.pam-barre-total--active) .section:last-of-type {
  padding-bottom: 100px;
}

/* Barre inner : colonne sur mobile (plus haute, dégagement accru) */
@media (max-width: 480px) {
  .pam-barre-inner { flex-direction: column; align-items: stretch; gap: .6rem; }
  .pam-barre-inner .btn { text-align: center; }
  .pam-recap-toggle { justify-content: center; }
  .pam-recap { max-height: 38vh; }
  body:has(.pam-barre-total--active) main,
  body:has(.pam-barre-total--active) .section:last-of-type {
    padding-bottom: 160px;
  }
}

/* ------------------------------------------------------
   Mobile : rangées uniformes (vignette gauche, texte droite)
   Hauteur fixe pour que toutes les cartes soient identiques.
------------------------------------------------------ */
@media (max-width: 640px) {
  /* Toast de suggestion : un coin bas-droit serait trop à l'étroit sur un
     petit écran, on garde le centrage plein-largeur d'origine. */
  .pam-sugg-toast {
    left: 50%;
    right: auto;
    transform: translateX(-50%); /* repli si l'animation est coupée (mouvement réduit) */
    width: min(420px, calc(100vw - 1.5rem));
    animation-name: pam-sugg-entrer-centre;
  }
  .pam-sugg-toast--sortir { animation-name: pam-sugg-sortir-centre; }
  @keyframes pam-sugg-entrer-centre {
    0%   { opacity: 0; transform: translateX(-50%) translateY(22px) scale(.96); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1);   }
  }
  @keyframes pam-sugg-sortir-centre {
    to { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.97); }
  }

  .pam-produits-grille {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .pam-produit-item {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  /* Photo : ratio 4/3 pleine largeur — même rendu que desktop, rognage minimal */
  .pam-produit-item > img,
  .pam-produit-item > .pam-produit-placeholder,
  .pam-produit-item > .pam-produit-photos {
    width: 100%;
    aspect-ratio: 4/3;
    flex-shrink: 0;
    object-fit: cover;
  }
  .pam-produit-item > .pam-produit-photos img {
    width: 100%;
    height: 100%;
  }
  /* Corps : colonne, nom en haut, pied collé en bas */
  .pam-produit-corps {
    padding: .6rem .7rem .6rem .6rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: .3rem;
  }
  .pam-produit-nom {
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  .pam-produit-details { font-size: .78rem; }
  .pam-produit-desc {
    font-size: .76rem;
    line-height: 1.3;
  }
  /* Pied : prix et quantité côte à côte */
  .pam-produit-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: .4rem;
  }
  .pam-produit-prix {
    font-size: .9rem;
    margin-top: 0;
    padding-top: 0;
    white-space: nowrap;
  }
  .pam-produit-taxes { font-size: .7rem; }
  .pam-qty-controle { margin-top: 0; gap: .25rem; }
  .pam-qty-moins,
  .pam-qty-plus { width: 30px; height: 30px; font-size: 1.1rem; }
  .pam-qty-input { width: 36px; padding: .2rem .15rem; }
  .pam-produit-item:hover { transform: none; }
  /* Instructions : compactes en mobile (toujours visibles, pas cachées) */
  .pam-produit-instructions { font-size: .75rem; padding: .35rem .55rem; }
  .pam-produit-poids { font-size: .74rem; margin-top: 0; }
}

/* Espacements réduits sur très petits écrans */
@media (max-width: 480px) {
  .pam-section-titre { font-size: 1.05rem; margin-bottom: 1rem; }
  .pam-filtre-jours  { margin-bottom: 1.2rem; }
  .pam-categorie     { margin-bottom: 1.8rem; }
}

/* ======================================================
   VRAC — Bon de commande en vrac
====================================================== */

/* Fond distinct + formulaire centré en carte (demande de Marie, 7 juillet) */
.vrac-form-section { background: var(--sable); }
.vrac-form-carte {
  max-width: 1040px;
  margin-inline: auto;
  background: var(--blanc);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}

/* Bandeau escompte */
.vrac-bandeau-escompte { padding-block: clamp(1.5rem, 2vw, 2.5rem); background: var(--sauge-pale); }
.vrac-bandeau-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.vrac-bandeau-inner p { color: var(--sauge-fonce); font-weight: 500; }

/* Note de sélection */
.vrac-selection-note {
  font-size: .88rem;
  color: var(--texte-doux);
  margin-bottom: 1.8rem;
  margin-top: -.5rem;
}

/* Grille produits vrac */
.vrac-produits-grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) { .vrac-produits-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .vrac-produits-grille { grid-template-columns: 1fr; } }

/* Carte produit vrac */
.vrac-produit-item {
  background: var(--blanc);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--transi), border-color var(--transi);
}
.vrac-produit-item.selectionne {
  border-color: var(--sauge);
  box-shadow: var(--ombre-douce);
}
.vrac-produit-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Checkbox de sélection */
.vrac-produit-select {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  cursor: pointer;
}
.vrac-produit-select input[type="checkbox"] { display: none; }
.vrac-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blanc);
  border: 2px solid var(--bordure);
  transition: background var(--transi), border-color var(--transi);
}
.vrac-check-icon::after {
  content: '';
  display: none;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blanc);
  border-bottom: 2px solid var(--blanc);
  transform: rotate(-45deg) translateY(-1px);
}
.vrac-produit-select input[type="checkbox"]:checked + .vrac-check-icon {
  background: var(--sauge);
  border-color: var(--sauge);
}
.vrac-produit-select input[type="checkbox"]:checked + .vrac-check-icon::after { display: block; }

.vrac-produit-corps { padding: .9rem; }
.vrac-produit-code {
  font-size: .78rem;
  color: var(--texte-doux);
  margin-top: .15rem;
}

/* Tableau des formats */
.vrac-formats-tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  border-top: 1px solid var(--bordure);
}
.vrac-formats-tableau th {
  background: var(--sauge-pale);
  color: var(--sauge-fonce);
  font-weight: 600;
  padding: .45rem .7rem;
  text-align: left;
  font-size: .78rem;
  letter-spacing: .04em;
}
.vrac-formats-tableau td {
  padding: .45rem .7rem;
  border-top: 1px solid var(--bordure);
  color: var(--texte-corps);
  vertical-align: middle;
}
.vrac-formats-tableau tr:last-child td { border-bottom: none; }
.vrac-ligne-total { font-weight: 600; color: var(--sauge); text-align: right; }
.vrac-qty-input {
  width: 60px;
  text-align: center;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .9rem;
  border: 1.5px solid var(--bordure);
  border-radius: 8px;
  padding: .3rem .4rem;
  background: var(--blanc);
  color: var(--texte);
}
.vrac-qty-input:focus { outline: none; border-color: var(--sauge); }
.vrac-qty-input::-webkit-outer-spin-button,
.vrac-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.vrac-qty-input[type=number] { -moz-appearance: textfield; }

/* Barre sticky vrac */
.vrac-barre-total {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--blanc);
  border-top: 2px solid var(--sauge-pale);
  padding: .9rem 0;
  box-shadow: 0 -8px 24px -10px rgba(56, 73, 45, .2);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.vrac-barre-total--active { transform: translateY(0); }
.vrac-barre-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.vrac-totaux {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.vrac-total-ligne { font-size: .9rem; color: var(--texte-corps); }
.vrac-total-ligne strong { color: var(--texte); }
.vrac-escompte-info {
  font-size: .88rem;
  font-weight: 600;
  color: var(--sauge);
  background: var(--sauge-pale);
  padding: .15rem .6rem;
  border-radius: 999px;
  width: fit-content;
}
.vrac-total-final-ligne { font-size: 1rem; font-weight: 700; color: var(--texte); }
.vrac-total-final-ligne strong { color: var(--sauge); font-size: 1.15rem; }

/* Infos client vrac (pas de grille 2 col, section pleine) */
.vrac-infos-client { margin-bottom: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
@media (max-width: 480px) { .vrac-barre-inner { flex-direction: column; align-items: stretch; } }

/* ============================================================
   PRODUITS MAISON — layout éditorial (famille_maison CPT)
   ============================================================ */

/* Filtres catégorie */
.pm-filtres-wrap {
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  background: var(--blanc);
}
.pm-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 0;
}
/* Mobile : la bande de catégories (jusqu'à 16 pilules sur l'Épicerie) devenait
   un mur de 4-5 rangées. Une seule rangée défilable au doigt, pilules plus
   hautes (cible tactile), la pilule coupée au bord invite à faire défiler. */
@media (max-width: 720px) {
  .pm-filtres-wrap .conteneur { padding-inline: 0; }
  .pm-filtres {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: .7rem var(--gouttiere);
  }
  .pm-filtres::-webkit-scrollbar { display: none; }
  .pm-filtres .pm-filtre {
    flex: none;
    scroll-snap-align: start;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: .45rem 1.05rem;
    font-size: .82rem;
    white-space: nowrap;
  }
}
/* PAM : onglets catégorie + sous-catégorie scrollables sur mobile,
   même comportement que les .pm-filtres ci-dessus. */
/* Dropdown mobile catégories PAM — masqué sur desktop */
.pam-cat-select-wrap { display: none; position: relative; margin-bottom: 1.5rem; }
.pam-cat-select {
  width: 100%; padding: .7rem 3rem .7rem 1.1rem;
  border: 1.5px solid var(--terra); border-radius: 2rem;
  background: var(--blanc); color: var(--texte);
  font-size: 1rem; font-family: inherit;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.pam-cat-select:focus { outline: 2px solid var(--terra); outline-offset: 2px; }
.pam-cat-select-arrow {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.1rem; height: 1.1rem; stroke: var(--terra); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}

@media (max-width: 720px) {
  .pam-filtre-cats { display: none; }
  .pam-cat-select-wrap { display: block; }
  .pam-filtre-souscats { flex-wrap: wrap; gap: .4rem; }
  .pam-souscat-tab { min-height: 40px; white-space: nowrap; }
}
.pm-filtre {
  background: none;
  border: 1px solid var(--bordure);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--texte-corps); /* --texte-moyen n'existe pas dans ce fichier */
  cursor: pointer;
  transition: background var(--transi), color var(--transi), border-color var(--transi);
}
.pm-filtre:hover,
.pm-filtre.actif {
  background: var(--sauge);
  color: var(--blanc);
  border-color: var(--sauge);
}

/* Section alternée */
.pm-article-section { padding-top: 0; padding-bottom: 0; }
.pm-section-pair { background: var(--creme); }

/* Layout split image / texte */
.pm-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 2.6vw, 3.25rem) 0;
}
.pm-article-inverse { direction: rtl; }
.pm-article-inverse > * { direction: ltr; }

/* Visuel */
.pm-article-visuel {
  border-radius: var(--rayon-l);
  overflow: hidden;
  box-shadow: var(--ombre);
  aspect-ratio: 4/3;
}
.pm-article-visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-article-placeholder {
  width: 100%;
  height: 100%;
  background: var(--sauge-pale);
}

/* Corps texte */
.pm-article-corps { display: flex; flex-direction: column; gap: .8rem; }
.pm-article-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra-fonce); /* --terracotta-texte n'existe pas dans ce fichier */
}
.pm-article-titre {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--texte);
  margin: 0;
}
.pm-article-texte {
  font-size: .95rem;
  color: var(--texte-corps); /* --texte-moyen n'existe pas dans ce fichier */
  line-height: 1.7;
}
.pm-article-texte p { margin: 0 0 .6rem; }
.pm-article-cta { margin-top: .4rem; align-self: flex-start; }

/* Responsive */
@media (max-width: 760px) {
  .pm-article,
  .pm-article-inverse { grid-template-columns: 1fr; direction: ltr; }
  .pm-article-visuel { aspect-ratio: 16/9; }
}

/* ============================================================
   CORRECTIONS — audit 6 juillet 2026
   ============================================================ */

/* Bug 6-A: .prod-hero-info — info texte dans le héro producteur */
.prod-hero-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.5rem, 2vw, 2.5rem) 0;
}

/* Bug 6-B: .page-entete-intro — intro wysiwyg dans l'en-tête vrac */
.page-entete-intro {
  max-width: 60ch;
  margin: .8rem auto 0;
  font-size: clamp(.88rem, .8rem + .3vw, 1rem);
  color: var(--texte-corps); /* --texte-moyen n'existe pas dans ce fichier */
  line-height: 1.65;
}
.page-entete-intro p { margin: 0 0 .5rem; }

/* Bug 6-C: .cmd-carte--bientot — carte bon de commande non disponible */
.cmd-carte--bientot {
  opacity: .6;
  pointer-events: none;
}
.cmd-carte--bientot .cmd-carte-haut {
  filter: grayscale(1);
}

/* ======================================================
   BANDE HORAIRES — page Contact, visible en premier
   (demande de Philippe, 21 juillet : « plus visuel »)
====================================================== */
.ct-bande-horaires { background: var(--sauge); padding-block: clamp(1rem, .8rem + .8vw, 1.4rem); }
.ct-bande-horaires-inner { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, .6rem + 1.5vw, 2rem); flex-wrap: wrap; }
.ct-bande-horaires-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.ct-bande-horaires-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-bande-horaires-liste { display: flex; gap: clamp(1.2rem, .8rem + 1.5vw, 2.5rem); flex-wrap: wrap; justify-content: center; }
.ct-bande-horaires-liste li { display: flex; align-items: baseline; gap: .5rem; color: #fff; }
.ct-bande-horaires-liste li span:first-child { font-family: var(--f-titre); font-weight: 700; font-size: 1rem; }
.ct-bande-horaires-liste li span:last-child { font-size: .95rem; color: var(--sauge-pale); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .ct-bande-horaires-inner { flex-direction: column; gap: 1rem; }
  .ct-bande-horaires-liste { display: flex; flex-direction: row; flex-wrap: nowrap; width: 100%; gap: 0; align-items: stretch; }
  .ct-bande-horaires-liste li { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: .3rem; padding: .4rem .2rem; border-right: 1px solid rgba(255,255,255,.18); }
  .ct-bande-horaires-liste li:last-child { border-right: none; }
  .ct-bande-horaires-liste li span:first-child { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .05em; text-transform: uppercase; }
  .ct-bande-horaires-liste li span:last-child { font-size: clamp(.78rem, 2.2vw, .9rem); color: #fff; font-weight: 700; white-space: nowrap; }
}

/* ======================================================
   PAGE CONTACTEZ-NOUS v2 (retours Philippe, 19 juillet)
   Une seule carte blanche : formulaire + volet coordonnées
   crème, puis la carte Google en bande pleine largeur.
====================================================== */
.ct2-carte {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: stretch;
  background: var(--blanc);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
  overflow: hidden;
}
/* Formulaire resserré (22 juillet, 4e passe : encore jugé trop long) :
   padding, marges de champ ET hauteur des champs réduits. Règles propres
   à cette carte (.champ est une classe partagée par tout le site, ne pas
   la resserrer globalement). */
.ct2-form { padding: clamp(.75rem, .5rem + .7vw, 1.2rem); }
.ct2-form h2 { color: var(--sauge-fonce); font-size: 1.2rem; margin-bottom: .15rem; }
.ct2-form > p { color: var(--texte-corps); font-size: .86rem; margin-bottom: .5rem; }
.ct2-form .champ-duo { gap: 0 .8rem; }
.ct2-form .champ { margin-bottom: .3rem; }
.ct2-form .champ label { margin-bottom: .1rem; font-size: .9rem; }
.ct2-form .champ input,
.ct2-form .champ textarea { padding: .42rem .75rem; }
.ct2-form .champ textarea { min-height: 50px; }
.ct2-form .btn { margin-top: 0; padding-block: .65rem; }

/* Volet coordonnées : crème, liseré, icônes sauge (grammaire bouquet).
   Aligné en haut (padding-top identique à .ct2-form) pour que "Venez
   nous voir" démarre à la même hauteur que "Écrivez-nous" (retour
   Philippe, 22 juillet, revient sur le centrage vertical d'une passe
   précédente). Le vide qui en résulte en bas de carte est comblé par
   une fleur décorative plutôt que laissé vide (::after ci-dessous). */
.ct2-aside {
  background: var(--creme);
  border-left: 1px solid var(--bordure);
  padding: clamp(.75rem, .5rem + .7vw, 1.2rem) clamp(1.4rem, 1rem + 1.5vw, 2.2rem) clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ct2-aside::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -8%;
  bottom: -6%;
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: .72;
  background: url("assets/images/illustrations/fleur 01.svg") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}
.ct2-aside > * { position: relative; z-index: 1; }
.ct2-aside h2 { color: var(--sauge-fonce); font-size: 1.2rem; margin-bottom: 1.1rem; }
.ct2-aside ul { display: grid; gap: 1.1rem; }
.ct2-aside li { display: flex; gap: .85rem; align-items: flex-start; }
.ct2-aside .ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: var(--sauge-pale);
  display: grid; place-items: center;
}
.ct2-aside .ico svg { width: 20px; height: 20px; fill: none; stroke: var(--sauge); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct2-aside h4 { color: var(--texte); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }
.ct2-aside p { font-size: .92rem; color: var(--texte-corps); margin: 0; line-height: 1.55; }
/* Le bloc texte prend toute la largeur restante : nécessaire pour que les
   lignes d'horaires puissent aligner heures à droite */
.ct2-aside li > div { flex: 1; min-width: 0; }
.ct2-aside a { color: var(--terra-fonce); font-weight: 600; transition: color var(--transi); }
.ct2-aside a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Carte Google : bande large sous la carte principale */
.ct2-map {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-radius: var(--rayon-l);
  overflow: hidden;
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre-douce);
  aspect-ratio: 21 / 8;
  min-height: 280px;
  background: var(--sauge-pale);
}
.ct2-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Anti-pourriel : champ leurre invisible pour les humains */
.ct-champ-leurre { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Retour d'envoi (succès / erreur) */
.ct-retour {
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}
.ct-retour[hidden] { display: none; }
.ct-retour--succes { background: var(--sauge-pale); color: var(--sauge-fonce); border-left: 3px solid var(--sauge); }
.ct-retour--erreur { background: var(--terra-pale); color: var(--terra-fonce); border-left: 3px solid var(--terra); }

/* Bouton en cours d'envoi */
.ct2-form .btn[disabled] { opacity: .6; pointer-events: none; }

@media (max-width: 900px) {
  .ct2-carte { grid-template-columns: 1fr; }
  .ct2-aside { border-left: 0; border-top: 1px solid var(--bordure); }
  .ct2-map { aspect-ratio: 4 / 3; }
  .ct2-form .btn { width: 100%; justify-content: center; }
}

/* ======================================================
   CARROUSEL PHOTOS — générique (utilisé sur Boutique, réutilisable
   ailleurs : voir assets/scripts/carrousel.js). Fondu enchaîné +
   léger zoom (Ken Burns) sur la photo active, autoplay géré en JS.
====================================================== */
.carrousel {
  position: relative;
  max-width: 1000px;
  margin-inline: auto;
  border-radius: var(--rayon-l);
  overflow: hidden;
  box-shadow: var(--ombre);
  outline: none;
}
.carrousel-piste { position: relative; aspect-ratio: 16 / 9; background: var(--sauge-pale); }
.carrousel-slide { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; overflow: hidden; }
.carrousel-slide.actif { opacity: 1; z-index: 1; }
.carrousel-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 7s ease-out; }
.carrousel-slide.actif img { transform: scale(1.08); }

.carrousel-fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(249, 245, 240, .85); color: var(--sauge-fonce);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--transi), transform var(--transi);
}
.carrousel-fleche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carrousel-fleche:hover { background: var(--blanc); transform: translateY(-50%) scale(1.06); }
.carrousel-precedent { left: 1rem; }
.carrousel-suivant { right: 1rem; }

.carrousel-dots { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2; display: flex; gap: .5rem; }
.carrousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(249, 245, 240, .6); cursor: pointer; padding: 0; transition: background var(--transi), transform var(--transi); }
.carrousel-dot.actif { background: var(--blanc); transform: scale(1.25); }

@media (max-width: 700px) {
  .carrousel-piste { aspect-ratio: 4 / 3; }
  .carrousel-fleche { width: 38px; height: 38px; }
  .carrousel-precedent { left: .6rem; }
  .carrousel-suivant { right: .6rem; }
}

/* Diapo cliquable (accueil : chaque photo mène à sa section) + légende
   en bas à gauche, façon étiquette discrète plutôt qu'un bandeau plein. */
.carrousel-slide a { display: block; width: 100%; height: 100%; }
.carrousel-legende {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  background: rgba(31, 41, 34, .55);
  color: #fff;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}
/* Moins arrondi que le carrousel de la Boutique (demande de Philippe) */
.carrousel--sobre { border-radius: 10px; }
.carrousel--sobre .carrousel-slide img { border-radius: 0; }

@media (max-width: 700px) {
  .carrousel-legende { left: .7rem; bottom: .7rem; font-size: .85rem; padding: .4rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel-slide { transition: opacity .3s linear; }
  .carrousel-slide img { transition: none; }
  .carrousel-slide.actif img { transform: none; }
}

/* ================================================================
   RESPONSIVE TEXTE — TABLETTE ET MOBILE
   Règles placées en fin de fichier pour garantir la victoire
   en cascade (même spécificité que les règles desktop, mais
   positionnées après elles).
================================================================ */

/* ------ ≤768px : paragraphes longs dans les en-têtes de page ---------- */
@media (max-width: 768px) {
  /* Paragraphes intro (the_content / ACF) dans .page-entete → gauche.
     Ces textes wrap à 5-12 lignes sur mobile/tablette ; centré = dents de scie. */
  .page-entete .conteneur > p:not(.eyebrow) { text-align: left; font-size: .9rem; }
  .page-entete .conteneur > div { text-align: left; }
  .page-entete .conteneur > div p { text-align: left; }
  /* H1 reste centré même si imbriqué dans un div (ex: .hero-grille Africaine) */
  .page-entete h1,
  .page-entete .page-entete-titre-script { text-align: center; }
  /* Évite les coupures inélégantes sur les titres courts (ex: ": Viviane" seul) */
  h1, h2, h3 { text-wrap: balance; }

  /* Lofts : lead paragraph + atouts → gauche jusqu'à tablette */
  .lofts-entete-lead { text-align: left; }
  .lofts-atout { text-align: left; }
  .lofts-atout h3 { min-height: unset; justify-content: flex-start; }

  /* Africaine : masquer le logo pour éviter 150-180px de hauteur inutile.
     Le logo est une confirmation visuelle moins prioritaire que le texte. */
  body.univers-africaine .page-entete .hero-logo { display: none; }
  body.univers-africaine .page-entete .hero-grille { display: block; }
  body.univers-africaine .page-entete .hero-texte p { text-align: left; }
}

/* ------ ≤640px : corrections supplémentaires mobile seulement ---------- */
@media (max-width: 640px) {
  /* Padding en-tête : nav fixe = 76px ; 82px donne 6px de dégagement */
  .page-entete { padding-top: 82px; }

  /* Pilules de tags/filtres dans l'en-tête (ex : Épicerie) → alignées à gauche */
  .intro-liste { justify-content: flex-start; }

  /* Titres de section : sur mobile un h2 de 2+ lignes centré crée
     des lignes de longueurs très inégales et fatigue la lecture */
  .section-titre h2,
  .section-titre h3 { text-align: left; }

  /* Hero accueil : sous-titre court en desktop devient long sur mobile */
  .hero-texte-sub { text-align: left; }

  /* Infolettre */
  .infolettre h2,
  .infolettre p { text-align: left; }

  /* Lofts : en-tête complète + section-titre → gauche sur mobile, eyebrow centré */
  .lofts-entete { text-align: left; }
  .lofts-eyebrow { text-align: center; }
  .lofts-entete-meta { justify-content: flex-start; }
  .lofts-section-titre { text-align: left; }

  /* Étapes (page Commander) → gauche */
  .etape { text-align: left; }

  /* CTA panel sauge (bas de page Commander) : paragraphe gauche */
  .cta-panel h2 { text-align: left; }
  .cta-panel p { text-align: left; margin-inline: 0; max-width: 100%; }
  .cta-panel-actions { justify-content: flex-start; }
}

/* ------ ≤900px : footer liens tap — couvre téléphone ET tablette ---- */
/* Hamburger nav s'active à 900px, donc tout ≤900px est tactile.       */
@media (max-width: 900px) {
  /* Footer nav : pleine ligne tap */
  .pied li { margin-bottom: 0; }
  .pied li a { display: block; padding-block: .6rem; }

  /* Footer marque : liens tel/email */
  .pied-marque a { display: flex; align-items: center; min-height: 44px; }
}

/* ------ ≤900px : cibles tactiles minimum 44px (iOS HIG) ---------- */
/* Nav burger à 900px = tout ≤900px est tactile (téléphone + tablette) */
@media (max-width: 900px) {

  /* Bandeau cookies : bouton J'accepte (35px → 44px) */
  .cookie-bandeau-btn { min-height: 44px; }

  /* Contact : champs resserrés → min 44px */
  .ct2-form .champ input { min-height: 44px; }

  /* PAM + PM : boutons +/- et input numérique (32px/28px → 44px) */
  .pam-qty-moins,
  .pam-qty-plus { width: 44px; height: 44px; }
  .pam-qty-input { height: 44px; }

  /* Épicerie — noms producteurs (liens, 19px) et lien "+ N autre" (38px) */
  .prod-nom { display: flex; align-items: center; min-height: 44px; }
  .prod-groupe-plus { min-height: 44px; display: flex; align-items: center; }

  /* Contact — liens coordonnées (tel/email/Facebook, 18px) et bouton Envoyer (39px) */
  .ct2-aside a { display: flex; align-items: center; min-height: 44px; }
  .ct2-form .btn { min-height: 44px; }

  /* Lofts — en-tête méta, titres cartes et ligne contact dans le CTA */
  .lofts-entete-meta a { min-height: 44px; }
  .loft-carte-titre a { display: flex; align-items: center; min-height: 44px; }
  .lofts-contact-ligne a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Fiche loft individuelle — boutons et liens d'action */
  .loft-d-retour,
  .loft-d-voir-airbnb,
  .loft-d-voir-photos,
  .loft-d-desc-plus,
  .loft-d-am-plus,
  .loft-d-loc-lien { min-height: 44px; }
  .loft-d-voir-airbnb { display: flex; align-items: center; }
  .loft-d-desc-plus,
  .loft-d-loc-lien { display: inline-flex; align-items: center; }

  /* Pied-bas — lien Politique de confidentialité */
  .pied-bas a { display: flex; align-items: center; min-height: 44px; }
}

/* ------ ≤480px : Politique de confidentialité tap area ------------ */
@media (max-width: 480px) {
  .pied-bas a { display: flex; align-items: center; min-height: 44px; }
}

/* ------ ≤480px : pied-bas empilé --------------------------------- */
@media (max-width: 480px) {
  /* Barre du bas : copyright + "Politique de confidentialité" sur une même
     ligne dépasse 375px → empilés verticalement, séparateur "·" masqué */
  .pied-bas { flex-direction: column; gap: .25rem; }
  .pied-bas > span[aria-hidden] { display: none; }
}

/* ------ ≤900px : nav burger — source-order fix ------ */
/* Les règles globales "PONT MENU WP" (sans @media) viennent APRÈS le bloc
   mobile ~473 et écrasent gap + font-size + padding + white-space.
   Ces règles placées en dernier rétablissent l'apparence du panneau. */
@media (max-width: 900px) {
  .nav-principale ul { gap: 0; align-items: stretch; width: 100%; }
  .nav-principale ul a { padding: 1rem 1.2rem; font-size: 1.05rem; text-align: left; white-space: normal; }
}
@media (min-width: 901px) {
  .nav-principale > a.nav-pam { display: none; }
}


/* ======================================================
   BOÎTES À LUNCH
   ====================================================== */

.bx-main {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* Service inactif */
.bx-inactif {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
}
.bx-inactif-titre {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--texte);
  margin: 0 0 .75rem;
}
.bx-inactif-note {
  color: var(--texte-moyen);
  margin: 0 0 1.75rem;
}

/* Note de service */
.bx-note-service {
  background: var(--sauge-pale);
  border-left: 3px solid var(--sauge);
  border-radius: 6px;
  padding: .85rem 1.1rem;
  color: var(--texte);
  font-size: .92rem;
  margin-bottom: 2rem;
}

/* Sections */
.bx-section {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.bx-section-titre {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--texte);
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--sauge-pale);
}
.bx-sous-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texte);
  margin: 1.75rem 0 1rem;
}
.bx-aide {
  font-size: .9rem;
  color: var(--texte-moyen);
  margin: -.75rem 0 1.25rem;
}

/* Grille de formules */
.bx-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Carte formule */
.bx-card {
  border: 1px solid var(--bordure);
  border-radius: 10px;
  overflow: hidden;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
}
.bx-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.bx-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bx-card-corps {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bx-card-entete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .5rem;
}
.bx-card-nom {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--texte);
}
.bx-card-prix {
  font-weight: 700;
  color: var(--terracotta-texte);
  white-space: nowrap;
  font-size: 1rem;
}
.bx-card-desc {
  font-size: .88rem;
  color: var(--texte-moyen);
  margin: 0 0 .6rem;
}
.bx-card-inclus {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .88rem;
  color: var(--texte-moyen);
}
.bx-card-inclus li {
  padding: .2rem 0 .2rem 1.2rem;
  position: relative;
}
.bx-card-inclus li::before {
  content: '·';
  position: absolute;
  left: .4rem;
  color: var(--sauge);
  font-weight: 700;
}

/* Contrôles quantité */
.bx-qty-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
}
.bx-qty-moins,
.bx-qty-plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background: var(--creme);
  color: var(--texte);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.bx-qty-moins:hover,
.bx-qty-plus:hover {
  background: var(--sauge-pale);
  border-color: var(--sauge);
}
.bx-qty-input {
  width: 3rem;
  text-align: center;
  border: 1.5px solid var(--bordure);
  border-radius: 6px;
  padding: .4rem .2rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--blanc);
  color: var(--texte);
}
.bx-qty-input:focus { outline: 2px solid var(--sauge); outline-offset: 2px; }

/* Carte formulaire */
.bx-form-carte {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* Grille de champs */
.bx-champs-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.bx-champ { display: flex; flex-direction: column; gap: .35rem; }
.bx-champ--large { grid-column: 1 / -1; }
.bx-champ--plein { grid-column: 1 / -1; }
.bx-champ label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--texte);
}
.bx-champ label span { color: var(--terracotta-texte); }
.bx-champ input,
.bx-champ select,
.bx-champ textarea {
  border: 1.5px solid var(--bordure);
  border-radius: 6px;
  padding: .55rem .75rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--texte);
  background: var(--blanc);
  transition: border-color .15s;
}
.bx-champ input:focus,
.bx-champ select:focus,
.bx-champ textarea:focus {
  outline: none;
  border-color: var(--sauge);
}
.bx-champ textarea { resize: vertical; }

/* Honeypot */
.bx-champ-leurre { position: absolute; left: -9999px; }

/* Messages */
.bx-msg-succes {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: .85rem 1rem;
  color: #166534;
  margin-bottom: 1rem;
}
.bx-msg-erreur {
  background: var(--terracotta-pale);
  border: 1px solid var(--terracotta);
  border-radius: 6px;
  padding: .85rem 1rem;
  color: var(--terracotta-texte);
  margin-bottom: 1rem;
}

/* Barre sticky de total */
.bx-barre {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sauge);
  color: var(--blanc);
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
  z-index: 200;
  padding: .9rem 0;
}
.bx-barre[hidden] { display: none; }
.bx-barre-conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bx-barre-info {
  font-size: .95rem;
  color: var(--blanc);
}
.bx-barre-info strong { font-weight: 700; font-size: 1.05rem; }
.bx-btn-soumettre {
  background: var(--blanc);
  color: var(--sauge);
  font-weight: 700;
  border: none;
  padding: .65rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  transition: opacity .15s;
  flex-shrink: 0;
}
.bx-btn-soumettre:hover { opacity: .88; }
.bx-btn-soumettre:disabled { opacity: .55; cursor: default; }

body:has(.bx-barre:not([hidden])) main,
body:has(.bx-barre:not([hidden])) .bx-main {
  padding-bottom: 80px;
}

@media (max-width: 580px) {
  .bx-champs-grille { grid-template-columns: 1fr; }
  .bx-champ--large { grid-column: 1; }
  .bx-barre-conteneur {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .bx-btn-soumettre { text-align: center; }
}

/* ======================================================
   BOUTIQUE — Grille de rayons (cartes overlay)
====================================================== */
.rayons-boutique-section { padding-block: clamp(2rem, 5vw, 4rem); }

.rayons-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.rayon-carte {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  transition: box-shadow .3s, transform .3s;
}
.rayon-carte:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
  transform: translateY(-4px);
}

.rayon-carte-visuel {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sauge);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rayon-carte-visuel img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.rayon-carte:hover .rayon-carte-visuel img { transform: scale(1.06); }
.rayon-carte-info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1rem;
  z-index: 1;
}
.rayon-carte-visuel:not(:has(img)) ~ .rayon-carte-info {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rayon-carte-titre {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
  color: var(--blanc);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

@media (max-width: 1024px) {
  .rayons-grille { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .rayons-grille { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
  .rayon-carte:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rayon-carte:last-child:nth-child(odd) .rayon-carte-visuel { aspect-ratio: 16 / 9; }
}

/* Sous-rayon boutique — carte légèrement différenciée */
.rayon-carte--sous .rayon-carte-visuel { aspect-ratio: 1/1; }
.rayon-carte-badge { font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sauge-pale); margin: 0 0 .25rem; opacity: .8; }
@media (max-width: 640px) { .rayon-carte--sous .rayon-carte-visuel { aspect-ratio: 4/5; } }

/* Boutique — carrousel bout_photos plein cadre, taille fixe 16/9 */
.carrousel--boutique { border-radius: 0; }
.carrousel--boutique .carrousel-piste { aspect-ratio: 16 / 9; }
