/*
Theme Name: Candylia
Description: Thème sur mesure de Candylia, bonbons en vrac pour tout le monde (bordeaux, festons, panneaux dentelés).
Version: 1.0.0
Text Domain: candylia
*/
/* Candylia, version « confiserie » : festons, titres manuscrits sur filigrane, panneaux dentelés, cartes sur fond à motif. Bordeaux + crème. */
:root {
  --creme: #FAF4EF;
  --blanc: #FFFFFF;
  --bordeaux: #BD0301;
  --bordeaux-fonce: #7E0201;
  --framboise: #9E0201;
  --encre: #2B1D1F;
  --doux: #7C6B6E;
  --titre: "Amatic SC", "Comic Sans MS", cursive;
  --texte: "Poppins", system-ui, sans-serif;
  --marge: clamp(16px, 5vw, 72px);
  --large: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 15px/1.8 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--framboise); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
h3 { font-size: 2rem; }
p { margin: 0 0 1em; }

/* Boutons arrondis */
.bouton { display: inline-block; background: var(--bordeaux); color: #fff; text-decoration: none; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 1rem 2rem; border-radius: 999px; transition: background .2s, transform .2s; }
.bouton:hover { background: var(--framboise); transform: translateY(-2px); }
.bouton-clair { background: #fff; color: var(--bordeaux); }
.bouton-clair:hover { background: var(--creme); }

/* Festons (bord dentelé en demi-cercles) */
.feston { height: 22px; background: var(--bordeaux-fonce); }
.feston-haut { -webkit-mask: radial-gradient(11px at 50% 100%, transparent 98%, #000) 0 0 / 22px 22px repeat-x; mask: radial-gradient(11px at 50% 100%, transparent 98%, #000) 0 0 / 22px 22px repeat-x; }
.feston-pied { background: var(--blanc); margin: 0 calc(-1 * var(--marge)); -webkit-mask: radial-gradient(11px at 50% 100%, transparent 98%, #000) 0 0 / 22px 22px repeat-x; mask: radial-gradient(11px at 50% 100%, transparent 98%, #000) 0 0 / 22px 22px repeat-x; }

/* Filigrane : un grand mot pâle derrière le titre */
.section-filigrane { position: relative; }
.section-filigrane::before {
  content: attr(data-filigrane); position: absolute; left: 50%; transform: translateX(-50%);
  top: clamp(1rem, 3vw, 2.5rem); white-space: nowrap; pointer-events: none;
  font-family: var(--titre); font-weight: 400; font-size: clamp(6rem, 14vw, 11rem); line-height: 1;
  color: var(--encre); opacity: .06;
}
.section-filigrane > * { position: relative; }

/* En-tête : menu à gauche, logo centré, panier rond */
.entete { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.4rem var(--marge); max-width: calc(var(--large) + 2 * 72px); margin: 0 auto; }
.menu { justify-self: start; display: flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .4rem 0; font: 600 .82rem var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--encre); cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.menu:hover { color: var(--bordeaux); }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-couleur { display: block; width: 230px; height: auto; }
.entete .logo-encre { display: none; }
.logo-encre { display: block; width: 200px; aspect-ratio: 1200 / 390; background: var(--bordeaux); -webkit-mask: url(img/logo-alpha.png) center / contain no-repeat; mask: url(img/logo-alpha.png) center / contain no-repeat; }
.baseline { font-family: var(--titre); font-size: 1.15rem; font-weight: 700; color: var(--doux); margin-top: -.3rem; }
.entete-droite { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.icone-compte { width: 44px; height: 44px; display: grid; place-items: center; color: var(--encre); }
.icone-compte svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }
.icone-compte:hover { color: var(--bordeaux); }
body.menu-ouvert .entete .icone-compte { color: #fff; }
.panier { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--encre); border-radius: 50%; color: var(--encre); }
.panier svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.compte { position: absolute; top: -6px; right: -8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--framboise); color: #fff; font-size: .72rem; font-weight: 600; }
.panier:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

/* Hero : trois volets photo */
.hero { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 3px; height: clamp(460px, 64vh, 620px); }
.volet { position: relative; overflow: hidden; }
.volet img { filter: saturate(.75) brightness(1.05); }
.volet::after { content: ""; position: absolute; inset: 0; background: rgba(250, 244, 239, .45); }
.volet-centre::after { background: linear-gradient(rgba(126, 2, 1, .25), rgba(126, 2, 1, .55)); }
.hero-texte { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: #fff; }
.volet-centre > img.photo-mobile { display: none; }
.hero-sur { font-size: .8rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2.6rem, min(5vw, 8vh), 5.4rem); max-width: 11ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); margin-bottom: 1.4rem; }

/* Bienvenue : le sachet kraft */
.bienvenue { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: var(--large); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--marge); }
.bienvenue::before { left: 75%; }
.sac svg { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.bienvenue-texte { text-align: center; padding-top: 3rem; }
.bienvenue-texte p { color: var(--doux); max-width: 46ch; margin: 0 auto 2rem; }

/* Bandeau photo encadré */
.bandeau {
  max-width: var(--large); margin: 0 auto clamp(4rem, 8vw, 6rem); width: calc(100% - 2 * var(--marge));
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(90deg, rgba(43, 29, 31, .78), rgba(189, 3, 1, .55)), var(--photo) center / cover;
  color: #fff;
}
.bandeau-titre { font-family: var(--titre); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 0; max-width: 22ch; }

/* Panneau sombre aux bords dentelés, entre deux photos */
.panneau { display: grid; grid-template-columns: 1fr minmax(0, 640px) 1fr; min-height: 520px; }
.panneau-photo { overflow: hidden; }
.panneau-centre {
  background: var(--bordeaux-fonce); color: #fff; text-align: center;
  padding: clamp(4rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  margin: 0 -10px; z-index: 1;
  --dent: radial-gradient(7px at 0 50%, transparent 97%, #000) left / 51% 14px repeat-y, radial-gradient(7px at 100% 50%, transparent 97%, #000) right / 51% 14px repeat-y;
  -webkit-mask: var(--dent); mask: var(--dent);
}
.panneau-centre::before { color: #fff; opacity: .07; }
.panneau-centre p { color: #E2C9CF; max-width: 46ch; margin-left: auto; margin-right: auto; font-size: .92rem; }
.panneau-centre .bouton { margin-top: 1.4rem; background: #fff; color: var(--bordeaux); }
.panneau-centre .bouton:hover { background: var(--creme); }
.histoire { text-align: left; }
.panneau-centre .signature { font-family: var(--titre); font-weight: 700; font-size: 2.6rem; color: #fff !important; margin-top: .5rem; }

/* Pictos ronds */
.pictos { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 1rem; }
.pictos li, .pictos a { display: flex; flex-direction: column; align-items: center; gap: .7rem; width: 86px; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.pictos-4 li { width: 104px; }
.rond { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--creme); color: var(--bordeaux); box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); transition: transform .25s; }
.rond svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rond-texte { font: 600 1.35rem/1 "Noto Naskh Arabic", "Geeza Pro", serif; }
.pictos a:hover .rond { transform: translateY(-4px) rotate(-6deg); }

/* Fond crème à motif de sucettes */
.motif {
  background-color: var(--creme);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%23E9DCD2' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M40 52a12 12 0 1 1-12-12 8 8 0 1 1 8 8 4 4 0 1 1-4-4'/%3E%3Cpath d='M40 64v34'/%3E%3Cpath d='M130 120a10 10 0 1 1-10-10 6 6 0 1 1 6 6 3 3 0 1 1-3-3'/%3E%3Cpath d='M130 130v30'/%3E%3Cpath d='M120 30q8-8 16 0t16 0'/%3E%3Cpath d='M20 150q8-8 16 0t16 0'/%3E%3C/svg%3E");
}

/* Produits */
.produits { padding: clamp(5rem, 10vw, 8rem) var(--marge); text-align: center; }
.produits h2 { margin-bottom: 2.5rem; }
.cartes { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.carte { background: #fff; padding: 1.4rem 1.4rem 2rem; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px -22px rgba(43, 29, 31, .35); transition: transform .3s; }
.carte:hover { transform: translateY(-6px); }
.carte figure { width: 100%; aspect-ratio: 1; margin-bottom: 1.2rem; overflow: hidden; border-radius: 50%; }
.carte h3 { font-size: 1.9rem; margin-bottom: .1rem; }
.regime { font-size: .8rem; color: var(--doux); margin-bottom: .4rem; }
.prix { font-weight: 600; font-size: 1.05rem; margin-bottom: 1.2rem; }
.prix > span:not(.amount) { display: block; font-weight: 400; font-size: .76rem; color: var(--doux); }
.prix .amount { white-space: nowrap; }
.carte .bouton { margin-top: auto; padding: .85rem 1.4rem; }
.lien-tout { display: inline-block; margin-top: 2.6rem; font-family: var(--titre); font-weight: 700; font-size: 1.8rem; color: var(--bordeaux); text-underline-offset: 6px; }

/* Une fête à préparer ? */
.fete { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: var(--large); margin: 0 auto; padding: clamp(5rem, 9vw, 7rem) var(--marge); }
.fete::before { left: 25%; }
.fete-texte { text-align: center; padding-top: 2rem; }
.fete-texte p { color: var(--doux); max-width: 46ch; margin: 0 auto 2rem; }
.fete-photo { aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 12px var(--creme); }

/* Retrait et livraison : blocs alternés */
.livraison { padding: clamp(5rem, 10vw, 8rem) var(--marge); text-align: center; }
.livraison h2 { margin-bottom: 2.5rem; }
.bloc { max-width: var(--large); margin: 0 auto 1.6rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #fff; text-align: left; }
.bloc figure { aspect-ratio: 16 / 10; overflow: hidden; }
.bloc > div { padding: clamp(2rem, 4vw, 3.5rem); }
.bloc p { color: var(--doux); max-width: 44ch; margin-bottom: 1.6rem; }
.bloc-inverse figure { order: 2; }

/* Pied */
.pied { background: var(--encre); color: #D9CBCD; padding: 0 var(--marge) 2rem; margin-top: clamp(4rem, 8vw, 6rem); }
.pied-grille { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2rem; padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem; }
.logo-clair { background: #fff; width: 170px; margin-bottom: 1rem; }
.pied h3 { color: #fff; font-size: 1.8rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }
.credits-photos { max-width: var(--large); margin: 0 auto; padding: 1rem 1.2rem 2rem; font-size: .72rem; color: #8a7b7c; text-align: center; }
.pied-villes { max-width: var(--large); margin: 0 auto 1.2rem; font-size: .8rem; text-align: center; line-height: 1.9; opacity: .85; }
.pied-villes a { white-space: nowrap; }
.pied-bas { max-width: var(--large); margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem; font-size: .8rem; text-align: center; }

/* Mobile */
@media (max-width: 960px) {
  .logo-encre, .logo-couleur { width: 150px; }
  .baseline { display: none; }
  .menu { font-size: 0; gap: 0; }
  .panier { width: 44px; height: 44px; }
  /* 22/11 : sur téléphone le bandeau grandit avec son texte (avant : hauteur fixe, titre sur 6 lignes, bouton coupé) */
  .hero { grid-template-columns: 1fr; height: auto; }
  .volet-centre { min-height: 420px; }
  .volet-centre > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-texte { position: relative; min-height: 420px; padding: 3rem 1.4rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); max-width: 15ch; line-height: 1.05; }
  .volet:not(.volet-centre) { display: none; }
  .bienvenue, .fete { grid-template-columns: 1fr; }
  .bienvenue::before, .fete::before { left: 50%; }
  .bienvenue-texte, .fete-texte { padding-top: 0; }
  .sac svg { max-width: 260px; }
  .panneau { grid-template-columns: 1fr; }
  .panneau-photo { display: none; }
  /* 22/11 : pages location, candy bar, villes : les photos (barbe à papa…) restent visibles sur téléphone */
  .panneau-mobile { grid-template-columns: 1fr 1fr; }
  .panneau-mobile .panneau-photo { display: block; height: 220px; }
  .panneau-mobile .panneau-photo img { width: 100%; height: 100%; object-fit: cover; }
  .panneau-mobile .panneau-centre { grid-column: 1 / -1; grid-row: 2; }
  .volet-centre > img.photo-mobile { display: block; }
  .panneau-centre { margin: 0; -webkit-mask: none; mask: none; }
  .cartes { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .carte { padding: 1rem 1rem 1.4rem; }
  .carte h3 { font-size: 1.55rem; }
  .carte .bouton { font-size: .68rem; padding: .75rem 1rem; }
  .bloc, .bloc-inverse { grid-template-columns: 1fr; }
  .bloc-inverse figure { order: 0; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page « Composer mon sachet » ---------- */
.page-sachet .menu { text-decoration: none; }
.sachet-intro { text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--marge) 2.5rem; }
.sachet-intro h1 { font-size: clamp(3rem, 6vw, 4.6rem); color: var(--bordeaux); }
.sachet-intro p { color: var(--doux); max-width: 58ch; margin: 0 auto; }

.composer { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; padding: 2.5rem var(--marge) 5rem; }

.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; background: #fff; padding: 1.1rem 1.4rem; box-shadow: 0 10px 30px -24px rgba(43, 29, 31, .4); }
.filtres-titre { margin: 0; font-family: var(--titre); font-weight: 700; font-size: 1.6rem; color: var(--bordeaux); }
.contraintes { display: flex; flex-wrap: wrap; gap: .5rem; }
.contraintes label { cursor: pointer; }
.contraintes input { position: absolute; opacity: 0; pointer-events: none; }
.contraintes span { display: inline-block; padding: .45rem 1rem; border: 2px solid #E6D6CC; border-radius: 999px; font-size: .82rem; font-weight: 500; transition: all .15s; }
.contraintes input:checked + span { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.contraintes input:checked + span::before { content: "✓ "; }
.contraintes input:focus-visible + span { outline: 3px solid var(--framboise); outline-offset: 2px; }
.recherche { flex: 1; min-width: 200px; font: inherit; font-size: .88rem; padding: .6rem 1rem; border: 2px solid #E6D6CC; border-radius: 999px; background: var(--creme); }
.recherche:focus { outline: none; border-color: var(--bordeaux); }
.resultat { margin: 1.2rem 0 1rem; font-size: .85rem; color: var(--doux); }

.grille-bonbons { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.bonbon { background: #fff; padding: 1rem .9rem 1.1rem; text-align: center; display: flex; flex-direction: column; align-items: center; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.bonbon:hover { transform: translateY(-3px); }
.bonbon.choisi { border-color: var(--bordeaux); }
.bonbon figure { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin-bottom: .7rem; background: var(--creme); }
.bonbon h3 { font-size: 1.45rem; line-height: 1; margin: 0 0 .15rem; }
.bonbon-marque { font-size: .72rem; color: var(--doux); margin: 0; }
.bonbon-tags { margin: .35rem 0 .2rem; line-height: 1.5; min-height: 1.1rem; }
.bonbon-tags i { font-style: normal; font-size: .66rem; font-weight: 600; margin: 0 .2rem; white-space: nowrap; }
.t-halal { color: #1F7A3A; } .t-vegan { color: #C25A14; } .t-sans-gluten { color: #9A4A0E; } .t-sans-sucres { color: #5B2A9E; }
.bonbon-prix { font-size: .8rem; font-weight: 600; margin: 0 0 .7rem; }
.dosage { margin-top: auto; display: flex; align-items: center; gap: .5rem; }
.dosage button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bordeaux); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.dosage button:hover:not(:disabled) { background: var(--framboise); }
.dosage button:disabled { background: #E6D6CC; cursor: not-allowed; }
.dosage span { min-width: 58px; font-size: .82rem; font-weight: 600; }

.mon-sachet { position: sticky; top: 1rem; background: #fff; padding: 1.6rem 1.5rem; box-shadow: 0 14px 40px -26px rgba(43, 29, 31, .45); text-align: center; }
.mon-sachet h2 { font-size: 2.4rem; margin-bottom: .6rem; }
.choix-poids { margin: 0 0 1rem; }
.choix-poids label { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; font-weight: 500; color: var(--encre); margin-bottom: .5rem; }
.choix-poids label strong { font-family: var(--titre); font-size: 1.9rem; line-height: 1; color: var(--bordeaux); }
#curseur-poids { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--bordeaux) var(--rempli, 37.5%), #EADBD1 var(--rempli, 37.5%)); outline: none; cursor: pointer; margin: .3rem 0; }
#curseur-poids::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--bordeaux); box-shadow: 0 2px 8px rgba(43,29,31,.25); }
#curseur-poids::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--bordeaux); box-shadow: 0 2px 8px rgba(43,29,31,.25); }
.graduations { display: flex; justify-content: space-between; font-size: .68rem; color: var(--doux); margin-top: .2rem; }
.sachet-visuel { width: 185px; display: block; margin: 0 auto .6rem; transition: width .25s; }
.sachet-visuel image { transition: y .3s, height .3s; }
.jauge { height: 8px; border-radius: 999px; background: #F0E4DC; overflow: hidden; }
.jauge-barre { height: 100%; width: 0; background: var(--bordeaux); transition: width .3s; }
.poids { font-size: .82rem; color: var(--doux); margin: .5rem 0 .2rem; }
.statut { font-size: .85rem; margin: 0 0 .6rem; min-height: 1.2rem; }
.statut b { color: var(--bordeaux); }
.contenu { list-style: none; margin: 0 0 .8rem; padding: 0; text-align: left; max-height: 240px; overflow-y: auto; }
.contenu li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid #F0E4DC; }
.contenu img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.ligne-nom { flex: 1; font-size: .82rem; font-weight: 500; line-height: 1.3; }
.ligne-nom small { display: block; font-weight: 400; color: var(--doux); }
.contenu button { border: 0; background: none; font-size: 1.2rem; color: var(--doux); cursor: pointer; padding: 0 .3rem; }
.contenu button:hover { color: var(--bordeaux); }
.hors-critere { opacity: .55; }
.hors-critere .ligne-nom::after { content: "Hors critères"; display: block; font-size: .7rem; color: var(--framboise); font-weight: 600; }
.alerte { font-size: .78rem; background: #FBEAEE; color: var(--bordeaux); padding: .6rem .8rem; text-align: left; }
.alerte button { border: 0; background: none; color: var(--bordeaux); font: 600 .78rem var(--texte); text-decoration: underline; cursor: pointer; padding: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--encre); padding-top: .8rem; margin-bottom: 1rem; }
.total span { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; }
.total strong { font-size: 1.3rem; }
.bouton-large { width: 100%; border: 0; cursor: pointer; font-family: var(--texte); }
.bouton-large:disabled { background: #D9C7CB; cursor: not-allowed; transform: none; }
.aide { font-size: .76rem; color: var(--doux); margin: .7rem 0 0; }

.barre-mobile { display: none; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 50; background: var(--encre); color: #fff; padding: .9rem 1.4rem; border-radius: 999px; font-size: .85rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.page-sachet .pied { margin-top: 0; }

@media (max-width: 960px) {
  .composer { grid-template-columns: 1fr; padding-bottom: 6rem; }
  .mon-sachet { position: static; }
  .grille-bonbons { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .bonbon figure { width: 88px; height: 88px; }
  .barre-mobile { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--marge); background: #fff; box-shadow: 0 -8px 24px -12px rgba(43, 29, 31, .35); font-weight: 600; font-size: .88rem; }
  .barre-mobile .bouton { padding: .75rem 1.2rem; font-size: .7rem; }
  .barre-mobile { gap: .7rem; }
  .barre-mobile #barre-texte { flex: 1; white-space: nowrap; font-size: .82rem; }
  .sachet-mini { width: 54px; height: 63px; flex: none; margin: -22px 0 -4px; transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(43, 29, 31, .25)); }
  .sachet-mini.rebond { animation: rebond-sachet .45s ease-out; }
  @keyframes rebond-sachet { 0% { transform: scale(1); } 35% { transform: scale(1.18, .9); } 70% { transform: scale(.95, 1.06); } 100% { transform: scale(1); } }
  .toast { bottom: 5rem; width: max-content; max-width: calc(100% - 32px); border-radius: 18px; }
}

/* ---------- Trouvez vos bonbons en 30 secondes ---------- */
.trouver-section { padding: clamp(5rem, 9vw, 7rem) var(--marge); text-align: center; background: #fff; }
.trouver-intro { color: var(--doux); max-width: 52ch; margin: 0 auto 2.5rem; }
.quiz { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 470px; background: var(--bordeaux-fonce); color: #fff; text-align: left; overflow: hidden; }
.quiz-question { padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; }
.quiz-barres { display: flex; gap: 6px; margin-bottom: 2rem; }
.quiz-barres span { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.quiz-barres .faite { background: #fff; }
.quiz h3 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin-bottom: .3rem; }
.quiz-aide { color: #E2C9CF; font-size: .9rem; margin-bottom: 1.6rem; }
.quiz-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.puce { font: 500 .88rem var(--texte); padding: .65rem 1.1rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; transition: all .15s; }
.puce:hover { border-color: #fff; }
.puce.choisie { background: #fff; color: var(--bordeaux); border-color: #fff; }
.puce.choisie::before { content: "✓ "; }
.quiz-nav { margin-top: auto; padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quiz .bouton { background: #fff; color: var(--bordeaux); border: 0; cursor: pointer; font-family: var(--texte); }
.quiz .bouton:hover { background: var(--creme); }
.quiz .bouton:disabled { opacity: .8; cursor: default; transform: none; }
.quiz-retour { background: none; border: 0; color: #E2C9CF; font: 500 .85rem var(--texte); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 0; }
.lien-modifier { color: #fff; font-weight: 600; font-size: .85rem; text-underline-offset: 4px; }
.quiz-photo { position: relative; overflow: hidden; }
.quiz-photo img { transition: transform .6s; }
.quiz-rappel { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.quiz-rappel i { font-style: normal; font-size: .78rem; font-weight: 500; background: rgba(255, 255, 255, .92); color: var(--bordeaux); padding: .35rem .8rem; border-radius: 999px; }
.quiz-promesse { color: #E2C9CF; margin-bottom: 1rem; }
.quiz-promesse b { color: #fff; }
.quiz-liste { list-style: none; margin: 0; padding: 0; }
.quiz-liste li { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.quiz-liste img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.quiz-liste span { flex: 1; line-height: 1.3; }
.quiz-liste small { display: block; color: #E2C9CF; font-size: .74rem; }
.quiz-total { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem 0 0; }
.quiz-total span { font-family: var(--titre); font-weight: 700; font-size: 1.8rem; }
.quiz-total strong { font-size: 1.3rem; }
@media (max-width: 960px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz-photo { order: -1; height: 180px; }
}

.quiz-conseil { font-size: .82rem; color: #E2C9CF; margin: .8rem 0 0; }
.quiz-resultat .quiz-options { margin-bottom: .5rem; }

/* ---------- WordPress : menu, pages, WooCommerce ---------- */
.menu-principal { position: fixed; inset: 0; z-index: 900; background: var(--bordeaux-fonce); color: #fff; display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 5rem var(--marge) calc(3rem + env(safe-area-inset-bottom)); }
.menu-principal ul { list-style: none; margin: auto; padding: 0; text-align: center; }
.menu-principal li { margin: .3rem 0; }
.menu-principal a { font-family: var(--titre); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); text-decoration: none; color: #fff; }
.menu-principal a:hover { color: #F3C9D3; }
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .entete { position: relative; z-index: 950; }
body.menu-ouvert .entete .menu, body.menu-ouvert .entete .panier { color: #fff; border-color: #fff; }
body.menu-ouvert .entete .logo-encre { display: block; background: #fff; }
body.menu-ouvert .entete .logo-couleur { display: none; }
body.menu-ouvert .baseline { color: #E2C9CF; }
.menu { color: var(--encre); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1000; background: var(--encre); color: #fff; padding: .9rem 1.4rem; border-radius: 999px; font-size: .85rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }
.toast a { color: #F3C9D3; font-weight: 600; margin-left: .3rem; }
.toast[hidden], [hidden] { display: none !important; }
.carte h3 a { text-decoration: none; }
.carte figure img { width: 100%; height: 100%; object-fit: cover; }
.carte .bouton.added { display: none; }
.carte .added_to_cart { margin-top: .6rem; font-size: .8rem; color: var(--bordeaux); font-weight: 600; }

.page-simple { max-width: 820px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--marge) clamp(4rem, 8vw, 6rem); }
.page-simple h1 { font-size: clamp(3rem, 6vw, 4.4rem); color: var(--bordeaux); text-align: center; margin-bottom: 2rem; }
.contenu-page { color: var(--encre); }
.contenu-page h2 { font-size: 2.4rem; color: var(--bordeaux); margin-top: 2rem; }
.contenu-page h3 { font-size: 1.8rem; margin-top: 1.4rem; }
.contenu-page p, .contenu-page li { color: #4E4043; }
.contenu-page a { color: var(--bordeaux); font-weight: 500; }
.contenu-page img { height: auto; }
.page-commerce { max-width: var(--large); }
.actu { padding: 1.4rem 0; border-bottom: 1px solid #F0E4DC; }
.actu-date { font-size: .8rem; color: var(--doux); }

/* Boutique */
.page-wc { padding: 2.5rem var(--marge) 5rem; }
.page-wc-cadre { max-width: var(--large); margin: 0 auto; }
.woocommerce-breadcrumb { font-size: .8rem; color: var(--doux); margin-bottom: 1rem !important; }
.woocommerce-breadcrumb a { color: var(--doux); }
.woocommerce-products-header__title, .page-wc h1.page-title { font-size: clamp(3rem, 6vw, 4.4rem); color: var(--bordeaux); text-align: center; }
.filtres-boutique { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1rem 0 1.6rem; }
.filtres-boutique a { padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid #E6D6CC; background: #fff; text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--encre); }
.filtres-boutique a.actif, .filtres-boutique a:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.woocommerce-result-count { font-size: .82rem; color: var(--doux); }
.woocommerce-ordering select { font: inherit; font-size: .85rem; padding: .45rem .8rem; border: 2px solid #E6D6CC; border-radius: 999px; background: #fff; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; padding: 1.2rem 1.2rem 1.6rem !important; text-align: center; box-shadow: 0 10px 30px -22px rgba(43, 29, 31, .35); display: flex; flex-direction: column; align-items: center; transition: transform .3s; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); }
.woocommerce ul.products li.product a img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1rem !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--titre); font-weight: 700; font-size: 1.7rem !important; line-height: 1.05; color: var(--encre); padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--encre) !important; font-weight: 600; font-size: 1rem !important; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button, .woocommerce .single_add_to_cart_button, .woocommerce #respond input#submit, .woocommerce input.button {
  background: var(--bordeaux) !important; color: #fff !important; border-radius: 999px !important; font: 600 .76rem var(--texte) !important; letter-spacing: .08em; text-transform: uppercase; padding: .9rem 1.5rem !important; border: 0; margin-top: auto; }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--framboise) !important; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; margin: 0 .2rem !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 50%; width: 40px; height: 40px; display: grid !important; place-items: center; background: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--bordeaux) !important; color: #fff !important; }

/* Fiche produit */
.woocommerce div.product { background: #fff; padding: clamp(1.5rem, 4vw, 3rem); }
.woocommerce div.product div.images img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.woocommerce div.product .product_title { font-size: clamp(2.8rem, 5vw, 3.8rem); color: var(--bordeaux); }
.woocommerce div.product p.price { color: var(--encre) !important; font-size: 1.6rem !important; font-weight: 600; }
.fiche-regimes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.fiche-regimes span { font-size: .78rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; background: var(--creme); }
.fiche-regimes .t-halal { color: #1F7A3A; } .fiche-regimes .t-vegan { color: #C25A14; } .fiche-regimes .t-sans-gluten { color: #9A4A0E; } .fiche-regimes .t-sans-sucres { color: #5B2A9E; }
.fiche-kilo { font-size: .85rem; color: var(--doux); }
.fiche-allergenes { font-size: .85rem; background: #FFF6E5; border-left: 3px solid #E0A23B; padding: .7rem .9rem; margin: 1rem 0; }
.fiche-allergenes strong { display: block; color: var(--encre); }
.fiche-sachet { font-size: .88rem; }
.fiche-sachet a { color: var(--bordeaux); font-weight: 600; }
.woocommerce div.product form.cart .quantity input { border: 2px solid #E6D6CC; border-radius: 999px; padding: .6rem; width: 4.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 999px 999px 0 0 !important; }
.woocommerce div.product .woocommerce-tabs .panel { font-size: .9rem; color: #4E4043; }
.related.products > h2, .upsells > h2 { font-size: 2.6rem; text-align: center; color: var(--bordeaux); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--bordeaux) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--bordeaux) !important; }

@media (max-width: 960px) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.4rem !important; }
  .woocommerce ul.products li.product .button { font-size: .66rem !important; padding: .75rem 1rem !important; }
}

/* ---------- Panier ---------- */
.page-commerce { max-width: 1180px; }
.panier-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.panier-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.article { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 90px 28px; align-items: center; gap: 1.1rem; background: #fff; padding: 1rem 1.2rem; box-shadow: 0 10px 30px -24px rgba(43, 29, 31, .45); }
.article-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--creme); }
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-infos h3 { font-size: 1.7rem; margin: 0 0 .15rem; line-height: 1; }
.article-infos h3 a { text-decoration: none; color: var(--encre); }
.article-infos h3 a:hover { color: var(--bordeaux); }
.article-unite { font-size: .8rem; color: var(--doux); margin: 0; }
.article-compo { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .78rem; color: var(--doux); columns: 2; column-gap: 1.2rem; }
.article-compo span { color: var(--bordeaux); font-weight: 600; }
.article-quantite { display: flex; align-items: center; border: 2px solid #EADBD1; border-radius: 999px; overflow: hidden; }
.article-quantite button { width: 34px; height: 36px; border: 0; background: transparent; font-size: 1.1rem; color: var(--bordeaux); cursor: pointer; }
.article-quantite button:hover { background: var(--creme); }
.article-quantite .quantity input.qty { width: 2.6rem; border: 0; text-align: center; font: 600 .9rem var(--texte); -moz-appearance: textfield; background: transparent; padding: 0; }
.article-quantite input::-webkit-outer-spin-button, .article-quantite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.article-total { margin: 0; text-align: right; font-weight: 600; }
.article-retirer { font-size: 1.4rem; line-height: 1; color: var(--doux) !important; text-decoration: none; text-align: center; }
.article-retirer:hover { color: var(--bordeaux) !important; }
.panier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.2rem; }
.panier-continuer { font-size: .85rem; font-weight: 600; color: var(--bordeaux); text-underline-offset: 4px; }
.panier-actions .coupon { display: flex; gap: .4rem; margin-left: auto; }
.panier-actions .coupon input { font: inherit; font-size: .85rem; border: 2px solid #EADBD1; border-radius: 999px; padding: .55rem 1rem; width: 150px; background: #fff; }
.panier-actions .coupon .button { background: var(--encre) !important; padding: .6rem 1.1rem !important; }
.woocommerce .panier-actions .panier-maj { display: none !important; }

.panier-resume { position: sticky; top: 1.5rem; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; float: none; background: #fff; padding: 1.6rem 1.5rem; box-shadow: 0 14px 40px -26px rgba(43, 29, 31, .5); }
.cart_totals h2, #order_review_heading { font-size: 2.4rem; margin: 0 0 .8rem; }
.cart_totals table.shop_table, .woocommerce-checkout-review-order-table { border: 0 !important; margin: 0 0 1rem !important; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td, .woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { border: 0 !important; border-bottom: 1px solid #F0E4DC !important; padding: .75rem 0 !important; font-size: .88rem; vertical-align: top; background: none !important; }
.cart_totals table.shop_table th { font-weight: 500; color: var(--doux); width: 34%; }
.cart_totals .order-total th, .cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0 !important; border-top: 2px solid var(--encre) !important; font-size: 1.15rem !important; color: var(--encre) !important; font-weight: 600; }
#shipping_method { list-style: none; margin: 0 !important; padding: 0 !important; }
#shipping_method li { margin: 0 0 .5rem !important; padding: 0 !important; display: flex; gap: .45rem; align-items: flex-start; line-height: 1.35; text-align: left; }
#shipping_method li input { margin: .2rem 0 0 !important; accent-color: var(--bordeaux); }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: .76rem; color: var(--doux); }
.shipping-calculator-button { color: var(--bordeaux) !important; }
.wc-proceed-to-checkout { padding: 0 !important; }
.wc-proceed-to-checkout .checkout-button, #place_order { display: block !important; width: 100%; text-align: center; font-size: .85rem !important; padding: 1.1rem !important; margin: 0 !important; float: none !important; }
.reassurance { clear: both; width: 100%; list-style: none; margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px dashed #E6D6CC; font-size: .78rem; color: var(--doux); display: grid; gap: .45rem; }
.reassurance li { padding-left: 1.2em; text-indent: -1.2em; }
.reassurance li::before { content: "✓"; display: inline-block; width: 1.2em; text-indent: 0; color: var(--bordeaux); font-weight: 700; }
.reassurance strong { color: var(--encre); font-weight: 600; }
.reassurance a { color: var(--bordeaux); white-space: nowrap; }
.cart-empty.woocommerce-info { text-align: center; }
.return-to-shop { text-align: center; }

/* ---------- Commande ---------- */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 2rem; align-items: start; }
.woocommerce-checkout form.checkout > *:not(#customer_details):not(#order_review_heading):not(#order_review) { grid-column: 1 / -1; }
#customer_details { grid-column: 1; grid-row: 1 / span 2; background: #fff; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 10px 30px -24px rgba(43, 29, 31, .45); }
#customer_details.col2-set .col-1, #customer_details.col2-set .col-2 { float: none; width: 100%; }
#customer_details h3 { font-size: 2.2rem; margin: 0 0 1rem; }
#customer_details .col-2 { margin-top: 1.4rem; }
#order_review_heading { grid-column: 2; grid-row: 1; background: #fff; padding: 1.6rem 1.5rem 0; margin: 0 !important; }
#order_review { grid-column: 2; grid-row: 2; background: #fff; padding: 0 1.5rem 1.6rem; box-shadow: 0 14px 40px -26px rgba(43, 29, 31, .5); position: sticky; top: 1.5rem; }
.woocommerce form .form-row { padding: 0 !important; margin: 0 0 1rem !important; }
.woocommerce form .form-row label { font-size: .8rem; font-weight: 500; color: var(--encre); margin-bottom: .3rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { font: inherit; font-size: .9rem; border: 2px solid #EADBD1 !important; border-radius: 12px !important; padding: .75rem .9rem; background: var(--creme); min-height: 48px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--bordeaux) !important; background: #fff; }
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5% !important; }
.woocommerce-checkout-review-order-table thead th { font-size: .74rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.woocommerce-checkout-review-order-table .product-name { font-size: .85rem; }
.woocommerce-checkout-review-order-table .product-name dl.variation { font-size: .74rem; color: var(--doux); margin: .3rem 0 0; }
.woocommerce-checkout-review-order-table .product-name dl.variation dt, .woocommerce-checkout-review-order-table .product-name dl.variation dd { display: inline; margin: 0; }
.woocommerce-checkout-review-order-table .product-name dl.variation dd::after { content: ""; display: block; }
.woocommerce-checkout #payment { background: var(--creme) !important; border-radius: 0 !important; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #EADBD1 !important; }
.woocommerce-checkout #payment div.payment_box { background: #fff !important; font-size: .82rem; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff !important; }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { font-size: .76rem; color: var(--doux); }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { background: #fff; font-size: .85rem; }

@media (max-width: 960px) {
  .panier-grille, .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .panier-resume, #order_review { position: static; }
  #customer_details, #order_review_heading, #order_review { grid-column: 1; grid-row: auto; }
  .article { grid-template-columns: 64px minmax(0, 1fr) 24px; grid-template-areas: "photo infos retirer" "photo qte total"; row-gap: .6rem; }
  .article-photo { grid-area: photo; width: 64px; height: 64px; }
  .article-infos { grid-area: infos; } .article-quantite { grid-area: qte; justify-self: start; }
  .article-total { grid-area: total; } .article-retirer { grid-area: retirer; align-self: start; }
  .article-compo { columns: 1; }
  .panier-actions .coupon { margin-left: 0; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100% !important; }
}

/* Suggestions d'adresses (Base Adresse Nationale) */
.avec-suggestions { position: relative; display: block; }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; list-style: none; margin: 0; padding: .3rem 0; background: #fff; border: 2px solid #EADBD1; border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(43, 29, 31, .35); max-height: 280px; overflow-y: auto; }
.suggestions li { padding: .55rem .9rem; cursor: pointer; line-height: 1.3; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--creme); }
.suggestions strong { display: block; font-size: .9rem; font-weight: 600; color: var(--encre); }
.suggestions span { font-size: .74rem; color: var(--doux); }
.quiz-precaution { display: block; margin-top: .4rem; font-size: .76rem; color: #E2C9CF; }

/* ---------- Espace client ---------- */
.woocommerce-account .page-simple { max-width: 1100px; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-MyAccount-navigation { width: auto !important; float: none !important; background: var(--bordeaux-fonce); padding: 1rem; position: sticky; top: 1.5rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: .7rem .9rem; color: #E2C9CF; text-decoration: none; font-size: .88rem; font-weight: 500; border-radius: 10px; }
.woocommerce-MyAccount-navigation li a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.woocommerce-MyAccount-navigation li.is-active a { background: #fff; color: var(--bordeaux); }
.woocommerce-MyAccount-navigation-link--customer-logout a { margin-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 !important; }
.woocommerce-MyAccount-content { width: auto !important; float: none !important; background: #fff; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 10px 30px -24px rgba(43, 29, 31, .45); font-size: .92rem; }
.woocommerce-MyAccount-content > p:first-child { color: var(--doux); }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3, .woocommerce-column__title { font-size: 2rem; margin-top: 1.2rem; }
.compte-accueil { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.compte-tuile { display: flex; flex-direction: column; gap: .15rem; padding: 1.2rem 1.3rem; background: var(--creme); text-decoration: none; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.compte-tuile:hover { border-color: var(--bordeaux); transform: translateY(-2px); }
.compte-tuile span { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.compte-tuile strong { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--bordeaux); }
.compte-tuile em { font-style: normal; font-size: .82rem; color: var(--doux); }
.compte-intro, .compte-vide { color: var(--doux); }
.compte-vide a { color: var(--bordeaux); font-weight: 600; }

.woocommerce-orders-table { border: 0 !important; }
.woocommerce-orders-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); border: 0 !important; }
.woocommerce-orders-table td { border: 0 !important; border-top: 1px solid #F0E4DC !important; padding: .9rem .6rem !important; }
.woocommerce-orders-table .button { padding: .55rem 1rem !important; font-size: .68rem !important; margin: 0 .2rem .2rem 0 !important; }
.woocommerce-order-details .order-again .button { margin-top: .8rem; }
mark.order-status, mark.order-number, mark.order-date { background: none; font-weight: 600; color: var(--bordeaux); }

.frise { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.frise::before { content: ""; position: absolute; top: 9px; left: 16%; right: 16%; height: 3px; background: #EFE3DB; }
.frise li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.frise .point { width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 3px solid #E2D2C8; position: relative; z-index: 1; }
.frise .frise-nom { font-size: .78rem; font-weight: 500; color: var(--doux); }
.frise .fait .point { background: var(--bordeaux); border-color: var(--bordeaux); }
.frise .fait .point::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 700; }
.frise .fait .frise-nom { color: var(--encre); }
.frise .actif .point { border-color: var(--bordeaux); box-shadow: 0 0 0 6px rgba(189, 3, 1, .15); }
.frise .actif .frise-nom { color: var(--bordeaux); font-weight: 600; }

.mes-sachets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.compte-sachet { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.2rem 1.3rem; background: var(--creme); }
.compte-sachet h3 { margin: 0 !important; font-size: 1.8rem !important; }
.compte-sachet-date { font-size: .76rem; color: var(--doux); margin: 0 0 .5rem; }
.compte-sachet ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; columns: 2; column-gap: 1.4rem; }
.compte-sachet ul span { color: var(--bordeaux); font-weight: 600; }
.compte-sachet-action { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex: none; }
.compte-sachet-action strong { font-size: 1.2rem; }
.compte-sachet-action .bouton { border: 0; cursor: pointer; font-family: var(--texte); }

.preferences fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.preferences legend { font-family: var(--titre); font-weight: 700; font-size: 1.8rem; margin-bottom: .6rem; width: 100%; }
.case input { position: absolute; opacity: 0; pointer-events: none; }
.case span { display: inline-block; padding: .55rem 1.1rem; border: 2px solid #E6D6CC; border-radius: 999px; font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.case input:checked + span { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.case input:checked + span::before { content: "✓ "; }
.case input:focus-visible + span { outline: 3px solid var(--framboise); outline-offset: 2px; }
.preferences-note { width: 100%; font-size: .78rem; color: var(--doux); margin: .4rem 0 0; }
.preferences .bouton { border: 0; cursor: pointer; font-family: var(--texte); }
.filtres-prefs { width: 100%; margin: 0; font-size: .8rem; color: var(--bordeaux); }
.filtres-prefs a { font-weight: 600; color: var(--bordeaux); }

/* Connexion / inscription */
.woocommerce-account:not(.logged-in) #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
#customer_login .u-column1, #customer_login .u-column2 { float: none; width: auto; background: #fff; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 10px 30px -24px rgba(43, 29, 31, .45); }
#customer_login h2 { font-size: 2.2rem; }
#customer_login form.login, #customer_login form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-privacy-policy-text p { font-size: .76rem; color: var(--doux); }
.woocommerce-form-login__rememberme { font-size: .82rem; }
.woocommerce-LostPassword a { color: var(--bordeaux); font-size: .82rem; }

@media (max-width: 960px) {
  .woocommerce-account .woocommerce, .woocommerce-account:not(.logged-in) #customer_login { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: .3rem; }
  .compte-accueil { grid-template-columns: 1fr; }
  .compte-sachet { flex-direction: column; align-items: stretch; }
  .compte-sachet-action { align-items: stretch; }
  .compte-sachet ul { columns: 1; }
}
#customer_login::before, #customer_login::after, .woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none !important; }

/* Formulaire de devis (page Contact) */
.devis { margin-top: 2.5rem; background: #fff; border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 20px 50px rgba(43, 29, 31, .08); }
.devis h2, .devis-merci h2 { margin-top: 0; }
.devis-intro { margin-top: -.6rem; }
.devis fieldset { border: 0; padding: 0; margin: 1.6rem 0 0; }
.devis legend { font-family: var(--titre); font-weight: 700; font-size: 1.9rem; color: var(--encre); margin-bottom: .8rem; }
.devis label { display: block; font-size: .8rem; font-weight: 500; color: var(--encre); margin-bottom: 1rem; }
.devis input[type=text], .devis input[type=email], .devis input[type=tel], .devis input[type=date], .devis input[type=number], .devis select, .devis textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: .9rem; border: 2px solid #EADBD1; border-radius: 12px; padding: .75rem .9rem; background: var(--creme); min-height: 48px; color: var(--encre); box-sizing: border-box; }
.devis input:focus, .devis select:focus, .devis textarea:focus { outline: none; border-color: var(--bordeaux); background: #fff; }
.devis-grille { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.devis-large { grid-column: 1 / -1; }
.devis-question { font-size: .8rem; font-weight: 500; color: var(--encre) !important; margin: 1.2rem 0 .5rem; }
.devis-choix { display: grid; gap: .5rem; margin-bottom: 1rem; }
.devis-choix-ligne { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.devis .devis-case { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 400; font-size: .88rem; color: #4E4043; background: var(--creme); border: 2px solid #EADBD1; border-radius: 12px; padding: .7rem .9rem; cursor: pointer; }
.devis .devis-case:has(input:checked) { border-color: var(--bordeaux); background: #fff; color: var(--encre); }
.devis-case input { accent-color: var(--bordeaux); width: 18px; height: 18px; flex: none; margin: 0; }
.devis-rgpd { font-size: .78rem; color: var(--doux) !important; margin: 1.2rem 0; }
.devis .bouton { border: 0; cursor: pointer; width: 100%; font-family: var(--texte); }
.devis-erreur { background: #FBE9E7; color: var(--bordeaux-fonce) !important; border-radius: 12px; padding: .8rem 1rem; font-weight: 500; }
.devis-piege { position: absolute; left: -9999px; }
.devis-merci { margin-top: 2.5rem; background: #fff; border-radius: 24px; padding: 2rem; text-align: center; box-shadow: 0 20px 50px rgba(43, 29, 31, .08); }
@media (max-width: 640px) { .devis-grille { grid-template-columns: 1fr; } }
.devis-choix-materiel { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .devis-choix-materiel { grid-template-columns: 1fr; } }
/* bloc carte Stripe : le fieldset garde sinon son cadre gris et rétrécit le formulaire */
.woocommerce-checkout #payment fieldset { border: 0; padding: 0; margin: 0; min-width: 0; width: 100%; }
.woocommerce-checkout #payment .wc-stripe-upe-element { width: 100%; }

/* Bandeau de consentement (mesure d'audience) */
.bandeau-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 560px; margin: 0 auto; background: #fff; color: var(--encre); border: 1px solid #E6D6CC; border-radius: 10px; box-shadow: 0 8px 30px rgba(43, 29, 31, .18); padding: 1rem 1.1rem; display: flex; gap: 1rem; align-items: center; font-size: .86rem; line-height: 1.5; }
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { margin: 0; flex: 1; }
.bandeau-cookies a { color: var(--bordeaux); }
.bandeau-cookies div { display: flex; gap: .5rem; flex: none; }
.bandeau-cookies button { font: 600 .82rem var(--texte); border-radius: 8px; padding: .6rem .9rem; cursor: pointer; border: 1px solid #E6D6CC; background: #fff; color: var(--encre); }
.bandeau-cookies button[data-mesure="oui"] { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
@media (max-width: 600px) { .bandeau-cookies { flex-direction: column; align-items: stretch; bottom: 80px; } .bandeau-cookies div button { flex: 1; } }

/* Pages créneaux (candy bar, régimes) : variantes à une colonne. */
.intro-creneau { grid-template-columns: 1fr; }
.intro-creneau::before { left: 50%; }
.intro-creneau .bienvenue-texte { padding-top: 0; }
.bloc-texte { grid-template-columns: 1fr; margin-bottom: 1rem; }
.bloc-texte > div { padding: clamp(1.4rem, 3vw, 2.2rem) clamp(2rem, 4vw, 3.5rem); }
.bloc-texte h3 { margin-bottom: .5rem; }
.bloc-texte p { max-width: 70ch; }
.liste-materiel { list-style: none; padding: 0; margin: 0 auto 1.4rem; max-width: 40ch; color: #E2C9CF; font-size: .92rem; text-align: left; }
.liste-materiel li { padding: .35rem 0 .35rem 1.2rem; position: relative; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.liste-materiel li::before { content: ""; position: absolute; left: 0; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7; }

/* Menu plein écran : défilant et compact sur mobile pour que toutes les entrées restent atteignables. */
@media (max-height: 760px), (max-width: 600px) {
  .menu-principal { padding-top: 4.5rem; }
  .menu-principal a { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .menu-principal li { margin: .1rem 0; }
}

/* Boutique : barre de recherche avec loupe. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.recherche-boutique { display: flex; max-width: 420px; margin: 0 auto 1.1rem; border: 2px solid #E6D6CC; border-radius: 999px; background: #fff; overflow: hidden; }
.recherche-boutique input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; padding: .6rem 1.1rem; font: 400 .9rem var(--texte); color: var(--encre); }
.recherche-boutique input[type="search"]:focus { outline: none; }
.recherche-boutique input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.recherche-boutique button { flex: none; border: 0; background: var(--bordeaux); color: #fff; padding: 0 1.1rem; cursor: pointer; display: flex; align-items: center; }
.recherche-boutique button:hover { background: var(--bordeaux-fonce); }
.recherche-boutique svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* 22/11 : menu en 4 catégories. Téléphone : accordéon (une catégorie ouverte à la fois, js/site.js). Ordinateur : 4 colonnes ouvertes. */
.menu-principal { padding-top: 8.5rem; }
.menu-cadre { margin: auto; width: 100%; max-width: 1040px; }
.menu-groupe { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.menu-groupe summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; font-family: var(--titre); font-weight: 700; font-size: clamp(1.9rem, 7vw, 2.5rem); line-height: 1.1; color: #fff; }
.menu-groupe summary::-webkit-details-marker { display: none; }
.menu-groupe summary::after { content: "+"; font: 300 2rem/1 var(--texte); transition: transform .2s; }
.menu-groupe[open] summary::after { transform: rotate(45deg); }
.menu-principal .menu-groupe ul { margin: 0 0 1.1rem; padding: 0; text-align: left; }
.menu-principal .menu-groupe li { margin: 0; }
.menu-principal .menu-groupe a { display: block; padding: .5rem 0; font: 500 1.05rem var(--texte); color: #F1DDE2; }
.menu-principal .menu-groupe a:hover { color: #fff; }
.menu-principal a.menu-sachet { display: block; width: fit-content; margin: 2rem auto 0; font: 600 .85rem var(--texte); letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--bordeaux); }
@media (min-width: 961px) {
  .menu-cadre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; align-items: start; }
  .menu-groupe { border: 0; }
  .menu-groupe summary { cursor: default; font-size: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .16); margin-bottom: .6rem; }
  .menu-groupe summary::after { display: none; }
  .menu-sachet { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .menu-principal { padding-top: 7.5rem; }
  .icone-compte { width: 38px; height: 38px; }
  .entete-droite { gap: .3rem; }
}

/* Dates courtes : puce rouge, phrase d'introduction, pastille promo */
.filtres-boutique a.puce-promo { border-color: var(--bordeaux); color: var(--bordeaux); font-weight: 600; }
.filtres-boutique a.puce-promo.actif, .filtres-boutique a.puce-promo:hover { color: #fff; }
.intro-dates { max-width: 560px; margin: -.6rem auto 1.8rem; text-align: center; font-size: .92rem; color: var(--doux); }
.woocommerce span.onsale { min-width: 0; min-height: 0; padding: .35rem .8rem; border-radius: 999px; background: var(--bordeaux); font: 600 .72rem/1.2 var(--texte); letter-spacing: .04em; text-transform: uppercase; }
.woocommerce ul.products li.product .price del { opacity: .55; font-weight: 400; margin-right: .3rem; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins { text-decoration: none; color: var(--bordeaux); }
