/* ==========================================================================
   GrosMinou — fiches produit (extension GrosMinou Blocs)
   Sélection, avis produit, plus / moins, offres, tableau comparatif,
   carte produit, « Notre choix », liste « Aussi comparés ».
   Chargé sur le site et dans l'éditeur.
   ========================================================================== */

.tone-blue { --tone-bg: var(--cat-blue-bg, #e3eef7); --tone-fg: var(--cat-blue-fg, #2f5d80); }

/* ---------- Éléments partagés ---------- */
.gmb-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--mustard);
	color: var(--on-mustard) !important;
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
a.gmb-cta:hover, .gmb-offer:hover .gmb-cta { transform: translateY(-2px); box-shadow: var(--shadow-cta-hover); filter: brightness(1.06); }
.gmb-cta--sm { padding: 7px 14px; font-size: 14px; }
.gmb-cta--block { align-self: stretch; }
.gmb-more {
	font-size: 14px;
	font-weight: 600;
	color: var(--terracotta) !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}
.gmb-score { display: inline-flex; align-items: baseline; gap: 5px; }
.gmb-score__value { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--tone-fg); }
.gmb-score__max { font-size: 13px; color: var(--ink-muted); }
.gmb-score--lg .gmb-score__value { font-size: 40px; }
.gmb-score--lg .gmb-score__max { font-size: 15px; }
.gmb-score--sm .gmb-score__value { font-size: 20px; }
.gmb-price { font-size: 14px; color: var(--ink-muted); }
.gmb-price strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--ink); }
.gmb-noimg { color: var(--tone-fg); }
.gmb-pill {
	display: inline-block;
	min-width: 44px;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--tone-bg);
	color: var(--tone-fg);
	font-family: var(--font-display);
	font-size: 16px;
	text-align: center;
}
.gmb-badge {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	background: var(--tone-bg);
	color: var(--tone-fg);
	font-size: 13px;
	font-weight: 700;
}

/* ---------- Le bon choix (sélection) ---------- */
.gmb-selection__title { margin: 0 0 8px; font-size: 30px; }
.gmb-selection__intro { margin: 0 0 28px !important; color: var(--ink-muted); }
.gmb-selection__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px 16px;
	align-items: stretch;
	padding-top: 16px;
}
.gmb-selection--wide { max-width: var(--content-width); margin: 0 auto; padding: 36px var(--gutter) 8px; }
.gmb-selection--wide .gmb-selection__title { font-size: 36px; }
.gmb-selection--wide .gmb-selection__intro { font-size: 19px; }
.gmb-pick {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 30px 18px 18px;
	border-radius: 24px;
	background: var(--surface);
	border: 2px solid var(--tone-bg);
	transition: border-color .2s ease;
}
.gmb-pick:hover { border-color: var(--tone-fg); }
.gmb-pick > * { margin: 0 !important; }
.gmb-pick__need {
	position: absolute;
	top: -16px;
	left: 16px;
	right: 16px;
	padding: 6px 10px;
	border-radius: var(--radius-pill);
	background: var(--tone-bg);
	border: 3px solid var(--surface);
	font-family: var(--font-display);
	font-size: 15px;
	line-height: 1.2;
	color: var(--tone-fg);
	text-align: center;
}
.gmb-pick__img {
	align-self: center;
	width: 96px;
	height: 96px;
	border-radius: var(--radius-photo);
	overflow: hidden;
	background: var(--tone-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gmb-pick__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.gmb-pick__name { font-family: var(--font-display); font-size: 18px; line-height: 1.25; text-align: center; }
.gmb-pick .gmb-score { justify-content: center; }
.gm-prose .gmb-pick__why, .gmb-pick__why { font-size: 15px; line-height: 1.45; color: var(--ink-soft); text-align: center; }
.gmb-pick__foot { margin-top: auto !important; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- Avis produit ---------- */
.gmb-review {
	margin-top: 40px !important;
	padding-top: 36px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 24px;
}
.gmb-review > * { margin: 0 !important; }
.gmb-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.gmb-rank {
	flex: 0 0 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background: var(--tone-bg);
	color: var(--tone-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 20px;
}
.gmb-review__title { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gmb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--tone-fg); }
.gm-prose .gmb-review__title h3, .gmb-review__title h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.gmb-review__facts { display: flex; flex-wrap: wrap; gap: 20px; }
.gmb-review__img {
	flex: 0 0 240px;
	height: 240px;
	border-radius: var(--radius-photo);
	overflow: hidden;
	background: var(--tone-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gmb-review__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.gmb-review__img .gmb-noimg { width: 64px; height: 64px; }
.gmb-review__crit { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gmb-bar { display: flex; flex-direction: column; gap: 4px; }
.gmb-bar__label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.gmb-bar__track { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.gmb-bar__fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--tone-fg); }
.gm-prose .gmb-forwho, .gmb-forwho { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.gmb-forwho strong { color: var(--ink); }
.gmb-review__body > * + * { margin-top: 18px; }
.gmb-review__body > :first-child { margin-top: 0; }

/* ---------- Les plus / les moins ---------- */
.gmb-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gmb-proscons > * { margin: 0 !important; }
.gm-prose .gmb-proscons__title, .gmb-proscons__title { margin: 0 0 10px; font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.gmb-proscons__col--pros { color: var(--cat-health-fg); }
.gmb-proscons__col--cons { color: var(--terracotta); }
.gm-prose .gmb-list, .gmb-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gm-prose .gmb-list > li, .gmb-list > li { display: flex; gap: 8px; padding: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.gmb-list > li::before { display: none !important; }
.gmb-list svg { flex: 0 0 auto; margin-top: 2px; }
.gmb-proscons__col--pros svg { color: var(--cat-health-fg); }
.gmb-proscons__col--cons svg { color: var(--terracotta); }
.gmb-proscons.is-style-encadre { padding: 20px 24px; border-radius: var(--radius-card-sm); border: 2px solid var(--line); }

/* ---------- Où l'acheter ---------- */
.gmb-offers { display: flex; flex-direction: column; gap: 10px; }
.gmb-offers > * { margin: 0 !important; }
.gm-prose .gmb-offers__title, .gmb-offers__title { font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.gm-prose .gmb-offers__list, .gmb-offers__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gm-prose .gmb-offers__list > li, .gmb-offers__list > li { margin: 0; padding: 0; }
.gmb-offers__list > li::before { display: none !important; }
.gmb-offer__link {
	display: grid;
	grid-template-columns: 132px 1fr auto;
	align-items: center;
	gap: 8px 18px;
	padding: 12px 12px 12px 18px;
	border-radius: 18px;
	border: 1.5px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink) !important;
	text-decoration: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gmb-offer__link:hover { border-color: var(--mustard); box-shadow: 0 6px 18px -10px rgba(168, 78, 28, .45); }
.gmb-offer.is-top .gmb-offer__link { border: 2px solid var(--mustard); background: #fffaf0; padding-top: 16px; padding-bottom: 16px; }
.gmb-offer__logo { display: flex; align-items: center; min-width: 0; }
.gmb-logo { display: inline-flex; align-items: center; }
.gmb-logo svg { display: block; height: 30px; width: 132px; }
.gmb-logo--text { font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.gmb-offer__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.gmb-offer__price { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--ink); }
.gmb-offer.is-top .gmb-offer__price { font-size: 28px; }
.gmb-offer__badge { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--cat-health-bg); color: var(--cat-health-fg); font-size: 12px; font-weight: 700; white-space: nowrap; }
.gmb-offer__note { flex-basis: 100%; font-size: 14px; color: var(--ink-muted); }
.gmb-offer__cta { padding: 13px 20px; font-size: 16px; gap: 8px; }
.gmb-offer:not(.is-top) .gmb-offer__cta { background: var(--surface); color: var(--terracotta) !important; box-shadow: inset 0 0 0 2px var(--mustard); }
.gmb-offer:not(.is-top) .gmb-offer__link:hover .gmb-offer__cta { background: var(--mustard); color: var(--on-mustard) !important; }
.gmb-offer__link:hover .gmb-offer__cta { transform: translateY(-1px); }
.gm-prose .gmb-offers__legal, .gmb-offers__legal { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.gmb-arrow { flex: 0 0 auto; transition: transform .18s ease; }
a:hover > .gmb-arrow, a:hover .gmb-cta .gmb-arrow, a:hover .gmb-buyimg__cta .gmb-arrow { transform: translateX(3px); }
.gmb-cta { gap: 6px; }

/* « chez [logo] » sous les boutons */
.gmb-at { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.gmb-at__logo svg { display: block; height: 16px; width: 68px; }
.gmb-at__logo--text { font-weight: 700; color: var(--ink-soft); }

/* Bandeau « Acheter » sur la photo de l'avis */
.gmb-buyimg { position: relative; color: var(--ink) !important; text-decoration: none !important; isolation: isolate; }
.gmb-buyimg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s ease; pointer-events: none; }
.gmb-buyimg:hover::after { box-shadow: inset 0 0 0 3px var(--mustard); }
.gmb-buyimg img { transition: transform .45s ease; }
.gmb-buyimg:hover img { transform: scale(1.04); }
.gmb-buyimg__bar {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 6px 16px -8px rgba(58, 42, 34, .5);
}
.gmb-buyimg__shop { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .96); font-size: 12px; color: var(--ink-muted); box-shadow: 0 4px 10px -6px rgba(58, 42, 34, .5); }
.gmb-buyimg__logo svg { display: block; height: 16px; width: 66px; }
.gmb-buyimg__logo--text { font-weight: 800; font-size: 13px; color: var(--ink); white-space: nowrap; }
.gmb-buyimg__bar { justify-content: space-between; }
.gmb-buyimg__price { font-family: var(--font-display); font-size: 17px; white-space: nowrap; }
.gmb-buyimg__cta { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; background: var(--mustard); color: var(--on-mustard); font-size: 14px; font-weight: 800; white-space: nowrap; }

/* ---------- Tableau comparatif ---------- */
.gmb-table__scroll { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.gmb-table table { width: 100%; min-width: 720px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.gmb-table th, .gmb-table td { border: 0; text-align: left; vertical-align: middle; }
.gmb-table thead th { padding: 12px 18px; background: var(--cat-food-bg); color: var(--cat-food-fg); font-weight: 700; font-size: 15px; }
.gmb-table tbody th, .gmb-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 400; }
.gmb-table tbody tr:last-child > * { border-bottom: 0; }
.gmb-table tbody th { font-weight: 700; }
.gmb-table tbody th a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.gmb-table tbody th a:hover { color: var(--terracotta); }
.gmb-table__need { font-size: 15px; color: var(--ink-soft); }
.gmb-table__buy { white-space: nowrap; }
.gm-prose .gmb-table__note, .gmb-table__note { margin: 8px 0 0; font-size: 15px; color: var(--ink-muted); }

/* ---------- Carte produit (dans un article) ---------- */
.gmb-card {
	padding: 14px;
	border-radius: var(--radius-card-sm);
	border: 2px solid var(--line);
	background: var(--surface);
	transition: border-color .2s ease;
}
.gmb-card:hover { border-color: var(--mustard); }
.gmb-card__main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.gmb-card__img {
	flex: 0 0 96px;
	height: 96px;
	border-radius: var(--radius-thumb);
	overflow: hidden;
	background: var(--tone-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gmb-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.gmb-card__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gmb-card__body > * { margin: 0 !important; }
.gm-prose .gmb-card__name, .gmb-card__name { font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.gm-prose .gmb-card__why, .gmb-card__why { font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.gmb-card__buy { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gmb-proscons--card { margin-top: 14px; padding: 16px 6px 2px; border-top: 1px solid var(--line); }

/* ---------- Notre choix (colonne de droite) ---------- */
.gmb-sidepick { padding: 20px; border-radius: var(--radius-card); border: 2px solid var(--cat-compare-bg); display: flex; flex-direction: column; gap: 12px; }
.gmb-sidepick__title { font-family: var(--font-display); font-size: 20px; }
.gmb-sidepick__row { display: flex; align-items: center; gap: 12px; }
.gmb-sidepick__img { flex: 0 0 64px; height: 64px; border-radius: var(--radius-thumb); overflow: hidden; background: var(--cat-compare-bg); display: flex; align-items: center; justify-content: center; --tone-fg: var(--cat-compare-fg); }
.gmb-sidepick__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gmb-sidepick__img .gmb-noimg { width: 32px; height: 32px; }
.gmb-sidepick__text { display: flex; flex-direction: column; gap: 2px; }
.gmb-sidepick__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.gmb-sidepick__meta { font-size: 14px; color: var(--ink-muted); }

/* ---------- Aussi comparés (style « Aussi comparés » du bloc Liste) ---------- */
.gm-prose ul.is-style-gm-aussi { gap: 0; border-top: 1px solid var(--line); }
.gm-prose ul.is-style-gm-aussi > li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.gm-prose ul.is-style-gm-aussi > li::before { display: none; }
.gm-prose ul.is-style-gm-aussi > li > strong:first-child { flex: 0 0 240px; color: var(--ink); }

/* ---------- En-tête comparatif ---------- */
.gm-disclosure {
	max-width: 720px;
	margin-top: 4px;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--surface-peach);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-muted);
}
.gm-byline__meta a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
	.gmb-selection--wide .gmb-selection__title { font-size: 28px; }
	.gmb-selection__grid { grid-template-columns: 1fr; }
	.gmb-review__img { flex-basis: 100%; height: 260px; }
	.gmb-offer__link { grid-template-columns: 1fr auto; padding: 12px 14px; }
	.gmb-offer__logo { grid-column: 1 / -1; }
	.gmb-offer__cta { padding: 12px 16px; }
	.gmb-offer__price, .gmb-offer.is-top .gmb-offer__price { font-size: 24px; }
	.gm-prose .gmb-review__title h3, .gmb-review__title h3 { font-size: 24px; }
	.gmb-score--lg .gmb-score__value { font-size: 32px; }
	.gmb-card__buy { flex-basis: 100%; flex-direction: row; justify-content: space-between; }
	.gm-prose ul.is-style-gm-aussi > li > strong:first-child { flex-basis: 100%; }
}

/* ---------- Correctifs de spécificité (règles du texte et des tableaux du thème) ---------- */
.gm-prose .gmb-table tbody th { background: transparent; color: var(--ink); font-size: 17px; }
.gm-prose .gmb-table tbody th a { color: var(--ink); }
.gm-prose .gmb-table tbody th a:hover { color: var(--terracotta); }
.gmb-table td { white-space: nowrap; }
.gmb-table td.gmb-table__need { white-space: normal; }
.gm-prose .gmb-list > li { padding-left: 0; }
.gm-prose ul.is-style-gm-aussi { margin-left: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.gmb-review__body a:not([class]) { color: var(--terracotta); }
.is-comparatif .is-style-gm-reponse-courte { background: var(--cat-compare-bg); }
.is-comparatif .is-style-gm-reponse-courte::before { color: var(--cat-compare-fg); }

/* ---------- Aussi comparés (bloc dédié) ---------- */
.gmb-also { margin-top: 36px !important; }
.gmb-also > * { margin: 0 !important; }
.gm-prose .gmb-also__title, .gmb-also__title { font-size: 22px; line-height: 1.25; }
.gm-prose .gmb-also__intro, .gmb-also__intro { margin-top: 6px !important; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.gm-prose .gmb-also__list, .gmb-also__list { margin-top: 14px !important; padding: 0; list-style: none; border-top: 1px solid var(--line); display: block; }
.gm-prose .gmb-also__list > li, .gmb-also__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.gmb-also__item::before { display: none !important; }
.gmb-also__name { flex: 0 0 240px; font-weight: 700; color: var(--ink); }
.gmb-also__why { flex: 1 1 280px; min-width: 0; color: var(--ink-soft); }
.gmb-also__link { flex: 0 0 auto; margin-left: auto; font-size: 14px; font-weight: 700; color: var(--terracotta) !important; text-decoration: underline !important; text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 760px) {
	.gmb-also__name { flex-basis: 100%; }
	.gmb-also__link { margin-left: 0; }
}
