/* Fiche bière « Le Comptoir » (lot/fiche-comptoir, maquette A) : gabarit/fiche-comptoir.php, chargée sur les fiches seulement.
   Couleurs et polices du design system (css/design-2026.css). Version AMP : style_amp_fiche_comptoir() (fonctions/fiche-comptoir.php). */

/* La fiche se pose sur le fond de page : le contenu n'est plus enfermé dans la carte blanche, et le vote peut rester visible (overflow) */
.site-main:has(.fc) {padding: 0; background: none; border: 0; box-shadow: none; overflow: visible;}
.site-main:has(.fc) .site-encart {padding-bottom: 0; border-bottom: 0;}

/* Formulaire de recherche, replié au-dessus de la fiche */
.fc-recherche {margin: 0 0 16px; padding: 0; background: var(--c-creme-clair); border: 1px solid var(--c-bordure); border-radius: 12px;}
.site-main:has(.fc) .fc-recherche {border-bottom: 1px solid var(--c-bordure);}
.fc-recherche summary {display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-weight: 700; color: var(--c-ambre-fonce); cursor: pointer;}
.fc-recherche .site-encart--recherche {margin: 0; border: 0; border-top: 1px solid var(--c-bordure); border-radius: 0 0 12px 12px;}

.fc {margin: 0;}

/* ----- En-tête sombre ----- */
.fc-heros {
	overflow: hidden;
	color: var(--c-sur-sombre);
	background:
		radial-gradient(ellipse 42% 80% at 82% 44%, color-mix(in srgb, var(--fc-halo, #d6802c) 62%, transparent), transparent 72%),
		radial-gradient(ellipse 90% 90% at 50% 50%, transparent 55%, rgba(10, 6, 3, .6)),
		var(--c-espresso);
	border-radius: 18px;
}
.fc-heros__haut {display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 26px 40px 0;}
.fc-heros__texte {flex: 1 1 420px; min-width: 0;}
.fc-heros__visuel {flex: 0 1 280px; display: flex; align-items: flex-end; justify-content: center; min-width: 0; margin: 0;}
.fc-heros__visuel img {display: block; max-width: 100%; max-height: 412px; width: auto; height: auto; border-radius: 10px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55));}
.fc-verre {flex: none; max-width: 100%;}
.fc-heros__visuel .fc-verre {height: auto; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55));}

.fc-ariane ol {display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #e6d6bb;}
.fc-ariane li + li::before {content: "›"; margin-right: 8px;}
.fc-ariane a:link, .fc-ariane a:visited {color: #e6d6bb; text-decoration: underline; text-underline-offset: 3px;}
.fc-ariane a:hover {color: #ffd27a;}
.fc-ariane [aria-current] {color: #ffd27a; font-weight: 600;}

.fc-surtitre {margin: 34px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ambre);}
.site-v2 .fc-heros h1 {margin: 0; font-family: var(--police-titre); font-size: clamp(44px, 6vw, 84px); line-height: 1.02; text-align: left; color: var(--c-creme-clair); overflow-wrap: anywhere;}
.fc-heros .fc-origine {margin: 10px 0 0; font-size: 18px; color: #e6d6bb;}
.site-v2 .fc-heros .fiche-saison {margin: 14px 0 0; color: var(--c-creme-clair);}

.fc-note {display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px;}
.fc-note__valeur {font-family: var(--police-titre); font-size: 26px; font-weight: 700; color: var(--c-creme-clair);}
.fc-note__avis {font-size: 16px; color: #e6d6bb;}
.fc-note__avis a:link, .fc-note__avis a:visited {color: #ffd27a; text-underline-offset: 3px;}
.fc-moyenne {position: relative; display: inline-block; flex: none; width: 148px; height: 28px;}
.fc-moyenne__fond, .fc-moyenne__plein {position: absolute; top: 0; left: 0; display: flex; gap: 2px; height: 28px; overflow: hidden;}
.fc-moyenne svg {flex: none;}
.fc-moyenne__fond path {fill: rgba(243, 230, 207, .2);}
.fc-moyenne__plein path {fill: #ffc35a;}

.fc-heros a.fc-bouton {
	display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; padding: 0 24px;
	border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
	color: #2a1206; background: linear-gradient(#ffd27a, #f0a23a 55%, #c96a1c); box-shadow: 0 3px 0 #6e3510;
	transition: transform .12s ease, filter .12s ease;
}
.fc-heros a.fc-bouton:hover {color: #2a1206; transform: translateY(-1px); filter: brightness(1.06);}
.fc-heros a.fc-bouton[hidden] {display: none;}

.fc-chiffres {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 0; padding: 0 40px; border-top: 1px solid rgba(243, 230, 207, .16); background: rgba(10, 6, 3, .34);}
.fc-chiffres div {min-width: 0; padding: 16px 0 16px 20px; border-left: 1px solid rgba(243, 230, 207, .16);}
.fc-chiffres div:first-child {padding-left: 0; border-left: 0;}
.fc-chiffres dt {font-size: 13px; color: #d9c6a6;}
.fc-chiffres dd {display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-family: var(--police-titre); font-size: 24px; font-weight: 700; color: var(--c-creme-clair); overflow-wrap: anywhere;}
.fc-chiffres .cmp-nr {font-size: 17px; font-weight: 400; color: #d9c6a6;}
.fc-pastille {flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(243, 230, 207, .5);}

/* ----- Partage contextuel (lot/partage-contextuel) : sous l'en-tête à partir de 1100 px, après les observations dessous ----- */
.fc .partage-ctx--haut {margin-top: 16px;}
@media (min-width: 1100px) {.fc .partage-ctx--haut + .fc-corps {margin-top: 24px;}}
.fc .partage-ctx--bas {margin-top: 22px;}

/* ----- Lecture et vote ----- */
.fc-corps {display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; margin-top: 36px;}
.fc-lecture {flex: 999 1 480px; min-width: 0;}
.fc-lecture__tete {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;}
.site-v2 .fc-lecture h2 {margin: 0; font-family: var(--police-titre); font-size: 32px; color: var(--c-espresso);}
.fc a.fc-signaler {font-size: 14px;}
.fc-texte {max-width: 62ch; margin: 16px 0 0; font-family: var(--police-titre); font-size: 21px; line-height: 1.65; color: var(--c-texte); overflow-wrap: anywhere;}
.fc-texte::first-letter {float: left; padding: 7px 10px 0 0; font-size: 3.5em; font-weight: 700; line-height: .82; color: var(--c-ambre-fonce);}
.fc-texte--vide {font-size: 18px; font-style: italic; color: var(--c-texte-doux);}
.fc-texte--vide::first-letter {float: none; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;}

.fc-groupes {display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 28px; margin-top: 30px;}
.site-v2 .fc-groupes h3 {margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--c-ambre); font-family: var(--police-texte); font-size: 16px; color: var(--c-texte);}
.fc-groupes dl {margin: 0; font-size: 15px;}
.fc-groupes dl div {display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--c-bordure);}
.fc-groupes dl div:last-child {border-bottom: 0;}
.fc-groupes dt {color: var(--c-texte-doux);}
.fc-groupes dd {margin: 0; font-weight: 600; text-align: right;}

.fc-vote {
	flex: 1 1 300px; min-width: 0; box-sizing: border-box; position: sticky; top: calc(var(--hauteur-nav) + 16px);
	padding: 22px; background: var(--c-surface); border: 1px solid #e3c58c; border-radius: 16px; box-shadow: var(--ombre);
	scroll-margin-top: calc(var(--hauteur-nav) + 16px);
}
.fc-vote--fait {background: var(--c-creme-clair); border-color: var(--c-bordure);}
.site-v2 .fc-vote h2 {margin: 0; font-family: var(--police-titre); font-size: 24px; color: var(--c-espresso);}
.fc-vote__sur {margin: 0 0 2px; font-size: 14px; color: var(--c-texte-doux);}
.fc-vote [hidden] {display: none;}
.fc-vote__etoiles {display: flex; justify-content: space-between; margin-top: 14px;}
.fc-etoile {display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; transition: transform .12s ease;}
.fc-etoile:hover {transform: scale(1.12);}
.fc-etoile:focus-visible {outline: 3px solid var(--c-ambre-fonce); outline-offset: 2px;}
.fc-etoile path, .fc-vote__fixes path {fill: var(--c-creme-clair); stroke: #b9a586; stroke-width: 1.4; stroke-linejoin: round;}
/* Étoiles allumées jusqu'à celle survolée ou sélectionnée au clavier : sans JavaScript */
.fc-vote__etoiles:hover .fc-etoile path, .fc-vote__etoiles:has(.fc-etoile:focus-visible) .fc-etoile path {fill: var(--c-ambre); stroke: var(--c-ambre-fonce);}
.fc-vote__etoiles .fc-etoile:hover ~ .fc-etoile path, .fc-vote__etoiles .fc-etoile:focus-visible ~ .fc-etoile path {fill: var(--c-creme-clair); stroke: #b9a586;}
.fc-vote__fixes .fc-allumee path, .fc-vote__fixes svg.fc-allumee path {fill: var(--c-ambre); stroke: var(--c-ambre-fonce);}
.fc-vote__bornes {display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--c-texte-doux);}
.fc-vote p.fc-vote__choix {min-height: 26px; margin: 12px 0 0; font-size: 18px; font-weight: 700; color: #7a4608;}
.fc-vote p.fc-vote__regle {margin: 8px 0 0; padding-top: 10px; border-top: 1px solid #efe5d3; font-size: 14px; line-height: 1.5; color: var(--c-texte-doux);}
.fc-vote p.fc-vote__resume {margin: 10px 0 0; font-size: 20px; font-weight: 700; color: #7a4608;}
.fc-vote p.fc-vote__ta-note {margin: 14px 0 0; font-size: 17px; font-weight: 700; color: #7a4608;}
.fc-vote__fixes {display: flex; gap: 2px; margin-top: 10px;}
.fc-vote__fixes span {display: flex;}
.fc-vote__attente {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 15px; color: var(--c-texte-doux);}
.fc-vote__action {min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--c-ambre-fonce); border-radius: 10px; font: inherit; font-weight: 700; color: #7a4608; cursor: pointer;}
.fc-vote__action:hover {background: var(--c-creme);}
.fc-vote__barre {height: 6px; margin-top: 12px; overflow: hidden; background: #efe5d3; border-radius: 3px;}
.fc-vote__barre span {display: block; width: 100%; height: 100%; background: #c96a1c; transition: width 1s linear;}
.fc-vote__merci {display: flex; align-items: center; gap: 10px;}
.fc-vote__coche {flex: none; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #1e5a14;}
.fc-vote [data-panneau="echec"] h2 {color: #8a1712;}
.fc-vote [data-panneau="echec"] .fc-vote__action {margin-top: 12px; border-color: #8a1712; color: #8a1712;}

/* ----- Bières liées ----- */
.site-v2 .fc-liees h2, .site-v2 .fc-commentaires > h2 {margin: 30px 0 14px; padding: 0; border: 0; font-family: var(--police-titre); font-size: 28px; color: var(--c-espresso);}
.site-v2 .fc-liees .fiche-liees__sous-titre {margin: -10px 0 14px; font-size: 15px; color: var(--c-texte-doux);}
.site-v2 .fc-liees .fc-liees__tout {margin: 14px 0 0; font-size: 16px; font-weight: 700;}	/* lot/toutes-textes (SEO-7 3) */
.site-v2 .fc-liees__tout a::after {content: " \2192";}
.fc-cartes {display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none;}
.fc a.fc-carte, a.fc-carte:link, a.fc-carte:visited {
	display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 14px 16px;
	background: var(--c-surface); border: 1px solid var(--c-bordure); border-radius: 14px; color: var(--c-texte); text-decoration: none;
	transition: transform .16s ease, box-shadow .16s ease;
}
a.fc-carte:hover {color: var(--c-texte); transform: translateY(-3px); box-shadow: 0 2px 4px rgba(36, 23, 15, .08), 0 14px 28px rgba(36, 23, 15, .14);}
.fc-carte__texte {flex: 1 1 auto; min-width: 0;}
.fc-carte__nom {display: block; font-size: 17px; font-weight: 700; color: #7a4608;}
.fc-carte__details {display: block; font-size: 14px; color: var(--c-texte-doux);}
.fc-carte__note {display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 14px; font-weight: 600;}
.fc-carte__note path {fill: #c96a1c;}

/* ----- Commentaires ----- */
.fc-commentaires .fiche-commentaires {display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px;}
.fc-commentaires .fiche-commentaire {margin: 0; padding: 16px 18px; border-radius: 14px;}
.fc-commentaires .fiche-commentaire__texte {font-size: 16px; line-height: 1.55; overflow-wrap: anywhere;}

/* ----- Écrans étroits : le vote passe avant le texte, comme sur la version AMP ----- */
@media (max-width: 899px) {
	.fc-heros__haut {flex-wrap: nowrap; padding: 18px 20px 0;}
	.fc-heros__texte {flex: 1 1 0;}
	.fc-heros__visuel {flex: 0 0 170px;}
	.fc-heros__visuel .fc-verre {width: 160px;}
	.fc-chiffres {grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px;}
	.fc-chiffres div:nth-child(3) {padding-left: 0; border-left: 0;}
	.fc-chiffres div:nth-child(n+3) {border-top: 1px solid rgba(243, 230, 207, .16);}
	.fc-vote {order: -1; flex-basis: 100%; position: static;}
	.fc-corps {gap: 24px; margin-top: 20px;}
}
@media (max-width: 640px) {
	.fc-heros {border-radius: 14px;}
	.fc-surtitre {margin-top: 20px;}
	.fc-heros__visuel {flex-basis: 88px;}
	.fc-heros__visuel .fc-verre {width: 84px;}
	.fc-heros__visuel img {max-height: 240px;}
	.site-v2 .fc-heros h1 {font-size: clamp(32px, 11vw, 44px);}
	.fc-heros .fc-origine {font-size: 15px;}
	.fc-texte {font-size: 19px; line-height: 1.62;}
	.fc-commentaires .fiche-commentaires {grid-template-columns: minmax(0, 1fr);}
}
@media (prefers-reduced-motion: reduce) {
	.fc-etoile, a.fc-carte, .fc-heros a.fc-bouton, .fc-vote__barre span {transition: none;}
}

/*----- lot/toutes-textes (P-FICHE) : liens de filtre du haut de la fiche (brasserie, ville, pays, type), recopiés de css/brasserie-2026.css (à modifier
	ensemble) : cette feuille-là n'est plus chargée dans <head> sur la fiche, mais juste avant le bloc brasserie -----*/
a.lien-filtre {color: inherit; text-decoration: none; transition: color .15s ease;}
.fc-heros a.lien-filtre {color: inherit;}
.fc-heros a.lien-filtre:hover, .fc-heros a.lien-filtre:focus-visible {color: #ffc477;}
.fc-groupes a.lien-filtre, .fiche a.lien-filtre {color: inherit;}
.fc-groupes a.lien-filtre:hover, .fc-groupes a.lien-filtre:focus-visible {color: #b8650f;}
