/**
 * Charte CBB v2 — présentation d'un houblon ou d'un cépage (Catalogue\Presentation, « Houblons et cépages », 23/10/2026)
 * Partie de la charte chargée à la demande (Charte\Module::satellite('presentation'), pour ne pas alourdir le premier
 * affichage des autres pages) : listes et pages des Vins et des Bières, pages /houblons/… et /cepage/…, fiches des vins et
 * des bières ; toujours présente dans les cadres d'aperçu de l'Espace boutique (Boutique\Coquille::apercu_site).
 *
 * Composants du site repris : encart « L'essentiel » (fond sauge pâle, filet vert à gauche, rayon des tuiles), pastille de
 * la charte (.cbb-pastille) pour les arômes, pastille d'accès rapide (.cbb-acces__pastille) pour « essayez », titres en
 * Young Serif. Jauges : teinte « houblonnée » pour les houblons, robe des vins pour les cépages (--cbb-presentation-teinte).
 * Variables de la charte seulement ; focus visible au contour sauge ; zones d'appui de 44 px sur téléphone.
 */

/* --------------------------------------------------------------------------------------------
 * Teinte des jauges.
 * ------------------------------------------------------------------------------------------ */

.cbb-presentation, .cbb-presentation-carte, .cbb-presentation-bulle { --cbb-presentation-teinte: var(--cbb-vert); }
.cbb-presentation--houblon { --cbb-presentation-teinte: var(--cbb-teinte-houblonnee, #9aaa3c); }
.cbb-presentation--rouge { --cbb-presentation-teinte: var(--cbb-robe-rouge, #5a1424); }
.cbb-presentation--rose { --cbb-presentation-teinte: var(--cbb-robe-rose, #e8a9a2); }
.cbb-presentation--blanc { --cbb-presentation-teinte: var(--cbb-robe-blanc-doux, #cf9a36); }

/* --------------------------------------------------------------------------------------------
 * Zone de la grille (sous la barre des filtres actifs, juste au-dessus des bouteilles) et ligne d'aide.
 * ------------------------------------------------------------------------------------------ */

.cbb-presentation-zone { margin-top: var(--cbb-esp-4, 16px); }
.cbb-presentation-zone:empty { display: none; }
.cbb-presentation-aide { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--cbb-rayon-md, 10px); background: var(--cbb-sauge-brume, #f1f4ee); font-family: var(--cbb-police-texte); font-size: var(--cbb-fs-petit, 13.5px); line-height: 1.4; color: var(--cbb-texte); }

/* --------------------------------------------------------------------------------------------
 * L'encart (grille : 1 terme coché ; page du terme : déplié, sous le titre ; aperçu de l'Espace boutique).
 * ------------------------------------------------------------------------------------------ */

.cbb-presentation { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--cbb-esp-4, 16px) var(--cbb-esp-6, 32px); width: 100%; margin: 0; padding: 24px 28px; border-radius: var(--cbb-rayon-lg, 12px); border-left: 4px solid var(--cbb-vert); background: var(--cbb-sauge-pale, #e6ede3); font-family: var(--cbb-police-texte); color: var(--cbb-texte); }
.cbb-presentation__principal { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.cbb-presentation__lieu { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--cbb-fs-mini, 12px); font-weight: var(--cbb-fw-gras, 700); letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; color: var(--cbb-vert); }
.cbb-presentation__icone { flex-shrink: 0; color: var(--cbb-vert); }
.cbb-presentation__icone--plein { fill: currentColor; }
.cbb-presentation__nom { margin: 0; font-family: var(--cbb-police-titre); font-size: var(--cbb-ft-bloc, 22px); font-weight: var(--cbb-fw-regulier, 400); line-height: 1.15; color: var(--cbb-encre); }
.cbb-presentation__portrait { max-width: 62ch; margin: 0; font-size: var(--cbb-fs-base, 16px); line-height: 1.55; color: var(--cbb-texte); }
.cbb-presentation__aromes { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
/* Pastille de la charte, en blanc sur le fond sauge de l'encart (sauge pâle sur les cartes blanches, plus bas). */
.cbb-presentation__aromes .cbb-presentation__arome { height: auto; min-height: 26px; padding: 4px 11px; background: var(--cbb-blanc); color: var(--cbb-encre); font-size: 13px; font-weight: var(--cbb-fw-demi, 600); line-height: 1.2; white-space: normal; }
.cbb-presentation__proches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; font-size: var(--cbb-fs-petit, 13.5px); line-height: 1.4; color: var(--cbb-texte-doux); }
.cbb-presentation__proches > span { flex-basis: 100%; }
.cbb-presentation__proches .cbb-presentation__proche { min-height: 36px; padding: 0 14px; font-size: 13.5px; text-decoration: none; }
.cbb-presentation__proches .cbb-presentation__proche:hover { border-color: var(--cbb-vert); color: var(--cbb-vert); }

/* Jauges et faits (colonne de droite). */
.cbb-presentation__details { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: start; }
.cbb-presentation__jauge { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cbb-presentation__jauge-tete { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 13.5px; line-height: 1.3; color: var(--cbb-texte-doux); }
.cbb-presentation__jauge-tete b { font-weight: var(--cbb-fw-demi, 600); color: var(--cbb-encre); }
.cbb-presentation__segments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cbb-presentation__segments > span { height: 8px; border-radius: 4px; background: var(--cbb-blanc); box-shadow: inset 0 0 0 1px var(--cbb-trait-doux, #ece6da); }
.cbb-presentation__segments > .est-plein { background: var(--cbb-presentation-teinte); box-shadow: none; }
.cbb-presentation__faits { display: grid; gap: 6px; margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; }
.cbb-presentation__faits > div { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 10px; }
.cbb-presentation__faits dt { color: var(--cbb-texte-doux); }
.cbb-presentation__faits dd { margin: 0; font-weight: var(--cbb-fw-demi, 600); color: var(--cbb-encre); }

/* Texte long, mot du caviste, bas de l'encart (toute la largeur). */
.cbb-presentation__plus, .cbb-presentation__mot, .cbb-presentation__bas { grid-column: 1 / -1; }
.cbb-presentation--grille:not(.est-deplie) .cbb-presentation__plus { display: none; }
.cbb-presentation__plus { display: flex; flex-direction: column; gap: 14px; }
.cbb-presentation__texte { max-width: 72ch; font-size: var(--cbb-fs-texte, 15px); line-height: 1.65; color: var(--cbb-texte); }
.cbb-presentation__texte > * { margin: 0 0 10px; }
.cbb-presentation__texte > :last-child { margin-bottom: 0; }
.cbb-presentation__texte :is(h2, h3) { margin-top: 16px; font-family: var(--cbb-police-titre); font-size: 19px; font-weight: var(--cbb-fw-regulier, 400); line-height: 1.25; color: var(--cbb-encre); }
.cbb-presentation__texte a { color: var(--cbb-vert); text-underline-offset: 3px; }
.cbb-presentation__mot { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--cbb-sauge, #7f9a80); font-size: var(--cbb-fs-texte, 15px); font-style: italic; line-height: 1.5; color: var(--cbb-encre); }
.cbb-presentation__mot p { margin: 0; }
.cbb-presentation__mot footer { margin-top: 4px; font-size: var(--cbb-fs-mini, 12px); font-style: normal; color: var(--cbb-texte-doux); }
.cbb-presentation__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin: 0; padding-top: 4px; border-top: 1px solid var(--cbb-sauge-clair, #b9ccb5); }
.cbb-presentation__bouton, .cbb-presentation__lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--cbb-police-texte); font-size: 14.5px; font-weight: var(--cbb-fw-demi, 600); line-height: 1.2; color: var(--cbb-vert); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.cbb-presentation__bouton:hover, .cbb-presentation__lien:hover { color: var(--cbb-vert-fonce); text-decoration-thickness: 2px; }
:is(.cbb-presentation__bouton, .cbb-presentation__lien, .cbb-presentation__proche, .cbb-presentation-info, .cbb-presentation-bulle__fermer, .cbb-presentation-bulle__voir):focus-visible { outline: 2px solid var(--cbb-sauge, #7f9a80); outline-offset: 2px; border-radius: 3px; }
/* Ordinateur : rien d'autre à déplier que le texte long ; sans lui, pas de bouton. */
.cbb-presentation--sans-plus .cbb-presentation__bouton { display: none; }

/* Page du terme : sous le titre et le texte sous le titre ; le tri reste en haut à droite. */
.cbb-catalogue-titre > .cbb-presentation { align-self: stretch; margin-top: var(--cbb-esp-2, 8px); }
.cbb-liste__tete:has(.cbb-presentation--page) { align-items: flex-start; }

/* --------------------------------------------------------------------------------------------
 * Comparaison (2 ou 3 termes cochés) : petites cartes blanches côte à côte.
 * ------------------------------------------------------------------------------------------ */

.cbb-presentation-comparer { display: flex; flex-direction: column; gap: 12px; }
.cbb-presentation-comparer__titre { margin: 0; font-family: var(--cbb-police-titre); font-size: var(--cbb-ft-carte, 19px); font-weight: var(--cbb-fw-regulier, 400); line-height: 1.2; color: var(--cbb-encre); }
.cbb-presentation-comparer__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cbb-presentation-carte { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 16px 18px 4px; border: 1px solid var(--cbb-trait-doux, #ece6da); border-radius: var(--cbb-rayon-md, 10px); background: var(--cbb-blanc); }
.cbb-presentation-carte .cbb-presentation__nom { font-size: var(--cbb-ft-carte, 19px); }
.cbb-presentation-carte .cbb-presentation__jauge { align-self: stretch; }
.cbb-presentation-carte .cbb-presentation__lien { margin-top: auto; }
:is(.cbb-presentation-carte, .cbb-presentation-bulle) .cbb-presentation__aromes .cbb-presentation__arome { background: var(--cbb-sauge-pale, #e6ede3); color: var(--cbb-vert); }
:is(.cbb-presentation-carte, .cbb-presentation-bulle) .cbb-presentation__segments > span:not(.est-plein) { background: var(--cbb-sauge-brume, #f1f4ee); }

/* --------------------------------------------------------------------------------------------
 * Fiche produit : bouton « i » après un houblon ou un cépage de la fiche technique, et sa bulle (sous la ligne).
 * ------------------------------------------------------------------------------------------ */

.cbb-presentation-info { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 22px; height: 22px; margin: 0 2px 0 6px; padding: 0; vertical-align: middle; border: 1.5px solid var(--cbb-vert); border-radius: 50%; background: var(--cbb-blanc); color: var(--cbb-vert); font-family: var(--cbb-police-titre); font-size: 13px; font-weight: var(--cbb-fw-regulier, 400); line-height: 1; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.cbb-presentation-info::after { content: ""; position: absolute; inset: -11px; } /* zone d'appui de 44 px, rond inchangé */
.cbb-presentation-info:hover, .cbb-presentation-info[aria-expanded="true"] { background: var(--cbb-vert); color: var(--cbb-blanc); }
.cbb-presentation-bulle { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 460px; margin: 12px 0 4px; padding: 16px 18px; border: 1px solid var(--cbb-trait-doux, #ece6da); border-radius: var(--cbb-rayon-lg, 12px); background: var(--cbb-blanc); box-shadow: var(--cbb-ombre-survol, 0 10px 28px -14px rgba(31, 59, 53, .35)); font-family: var(--cbb-police-texte); font-size: var(--cbb-fs-texte, 15px); font-weight: var(--cbb-fw-regulier, 400); line-height: 1.5; color: var(--cbb-texte); white-space: normal; }
.cbb-presentation-bulle[hidden] { display: none; }
.cbb-presentation-bulle__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; align-self: stretch; }
.cbb-presentation-bulle__tete > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cbb-presentation-bulle .cbb-presentation__nom { font-size: var(--cbb-ft-carte, 19px); }
.cbb-presentation-bulle .cbb-presentation__portrait { font-size: 14.5px; }
.cbb-presentation-bulle .cbb-presentation__jauge { align-self: stretch; }
.cbb-presentation-bulle__fermer { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--cbb-sauge-brume, #f1f4ee); color: var(--cbb-encre); cursor: pointer; }
.cbb-presentation-bulle__fermer:hover { background: var(--cbb-sauge-pale, #e6ede3); }
/* Le lien de la bulle garde le style des liens de la fiche technique (souligné pointillé, chevron « › », charte.css). */
.cbb-fiche-technique dd .cbb-presentation-bulle__voir { font-size: 14.5px; font-weight: var(--cbb-fw-demi, 600); }

/* --------------------------------------------------------------------------------------------
 * Téléphone : encart de la grille replié (nom, portrait, arômes, « En savoir plus » qui déplie jauges, faits, proches et
 * texte), pour ne pas repousser les bouteilles ; cartes de comparaison en rangée qui défile.
 * ------------------------------------------------------------------------------------------ */

@media (max-width: 767px) {
	.cbb-presentation-zone { margin-top: var(--cbb-esp-3, 12px); }
	.cbb-presentation { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px 6px; border-left-width: 3px; }
	.cbb-presentation--page { padding-bottom: 18px; }
	.cbb-presentation__nom { font-size: 21px; }
	.cbb-presentation__portrait { font-size: 15px; }
	.cbb-presentation--grille:not(.est-deplie) :is(.cbb-presentation__details, .cbb-presentation__proches) { display: none; }
	.cbb-presentation--sans-plus .cbb-presentation__bouton { display: inline-flex; }
	.cbb-presentation__proches .cbb-presentation__proche { min-height: 44px; }
	.cbb-presentation-comparer__liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
	.cbb-presentation-comparer__liste::-webkit-scrollbar { display: none; }
	.cbb-presentation-carte { scroll-snap-align: start; }
	.cbb-presentation-bulle { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cbb-presentation-info { transition: none; }
}
