/* ===========================================================================
   Home Gym Petit Espace — patches CSS
   Chargé après main.css via wp_enqueue_style avec priorité supérieure.
   Versionné séparément pour itérations rapides.
   =========================================================================== */

/* ---------- Restyle des blocs Gutenberg wp:button pour matcher .hg-cta ---------- */

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 28px 0 36px;
	justify-content: flex-start;
}

.wp-block-button {
	margin: 0;
}

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--hg-accent);
	color: #fff !important;
	font-family: var(--hg-font-sans);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 14px 22px;
	border: 2px solid var(--hg-accent);
	border-radius: var(--hg-radius-md);
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	box-shadow: var(--hg-shadow-sm);
}

.wp-block-button .wp-block-button__link:hover {
	background: var(--hg-accent-dark);
	border-color: var(--hg-accent-dark);
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: var(--hg-shadow);
}

/* Variante outline (secondary) — fond transparent, texte sombre, bordure sombre */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--hg-text) !important;
	border: 2px solid var(--hg-text);
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.is-style-outline:hover {
	background: var(--hg-text);
	color: #fff !important;
	border-color: var(--hg-text);
	transform: translateY(-1px);
}

/* ---------- Badge marchand dans les CTAs marketplace ---------- */

.hg-cta-merchant-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.18);
	color: inherit;
	margin-left: 4px;
}

.wp-block-button.is-style-outline .hg-cta-merchant-badge,
.wp-block-button .wp-block-button__link.is-style-outline .hg-cta-merchant-badge {
	background: rgba(26, 35, 50, 0.08);
	color: var(--hg-text);
}

.hg-cta-arrow {
	display: inline-block;
	margin-left: 2px;
	font-size: 13px;
	opacity: 0.7;
}

/* ---------- Tableau comparatif éditorial ---------- */

.hg-comp-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--hg-font-sans);
	font-size: 14px;
	margin: 24px 0;
	background: var(--hg-surface);
	box-shadow: var(--hg-shadow-sm);
	border-radius: var(--hg-radius-md);
	overflow: hidden;
}

.hg-comp-table thead tr {
	background: var(--hg-primary);
	color: #fff;
}

.hg-comp-table th {
	padding: 14px 12px;
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hg-comp-table td {
	padding: 14px 12px;
	border-top: 1px solid var(--hg-border);
	vertical-align: top;
}

.hg-comp-table tbody tr:hover {
	background: rgba(26, 35, 50, 0.02);
}

.hg-comp-table tbody tr:last-child td {
	font-weight: 600;
}

.hg-comp-table a {
	color: var(--hg-text);
	text-decoration: underline;
	text-decoration-color: var(--hg-accent);
	text-underline-offset: 3px;
}

/* ---------- Layout single avec sidebar ---------- */

.hg-layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 60px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px;
}

.hg-layout-sidebar > .hg-article {
	min-width: 0;
}

@media (max-width: 960px) {
	.hg-layout-sidebar {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.hg-sidebar {
		order: 2;
		position: static !important;
	}
}

/* ---------- Sidebar éditoriale ---------- */

.hg-sidebar {
	position: sticky;
	top: 24px;
	align-self: start;
	font-family: var(--hg-font-sans);
}

.hg-sidebar-section {
	background: var(--hg-surface);
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-md);
	padding: 22px;
	margin-bottom: 20px;
	box-shadow: var(--hg-shadow-sm);
}

.hg-sidebar-label {
	font-family: var(--hg-font-display);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hg-accent);
	margin: 0 0 14px;
}

/* Sommaire */

.hg-toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: hg-toc-counter;
}

.hg-toc li {
	counter-increment: hg-toc-counter;
	position: relative;
	padding: 6px 0 6px 36px;
	border-bottom: 1px dashed var(--hg-border);
	font-size: 13px;
	line-height: 1.45;
}

.hg-toc li:last-child {
	border-bottom: none;
}

.hg-toc li::before {
	content: counter(hg-toc-counter, upper-roman);
	position: absolute;
	left: 0;
	top: 6px;
	font-family: var(--hg-font-display);
	font-style: italic;
	font-weight: 600;
	font-size: 14px;
	color: var(--hg-accent);
	width: 28px;
	text-align: right;
}

.hg-toc a {
	color: var(--hg-text);
	text-decoration: none;
	transition: color 0.18s ease;
}

.hg-toc a:hover {
	color: var(--hg-accent);
}

.hg-toc a.hg-toc-active {
	color: var(--hg-accent);
	font-weight: 600;
}

/* Card auteur sidebar */

.hg-sidebar-author {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.hg-sidebar-author img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.hg-sidebar-author-info {
	flex: 1;
	min-width: 0;
}

.hg-sidebar-author-name {
	font-family: var(--hg-font-display);
	font-weight: 600;
	font-size: 16px;
	color: var(--hg-text);
	margin: 0 0 2px;
}

.hg-sidebar-author-role {
	font-size: 12px;
	color: var(--hg-text-muted);
	margin: 0 0 8px;
	line-height: 1.4;
}

.hg-sidebar-author-link {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hg-accent);
	text-decoration: none;
	border-bottom: 1px solid var(--hg-accent);
	padding-bottom: 1px;
}

/* Bloc "produit retenu" */

.hg-sidebar-pick {
	text-align: center;
}

.hg-sidebar-pick img {
	max-width: 140px;
	height: auto;
	margin: 0 auto 12px;
	display: block;
}

.hg-sidebar-pick-name {
	font-family: var(--hg-font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--hg-text);
	margin: 0 0 4px;
	line-height: 1.3;
}

.hg-sidebar-pick-score {
	font-size: 12px;
	color: var(--hg-accent);
	font-weight: 600;
	margin: 0 0 10px;
}

.hg-sidebar-pick-cta {
	display: inline-block;
	background: var(--hg-accent);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: var(--hg-radius);
	text-decoration: none;
	margin-top: 8px;
}

.hg-sidebar-pick-cta:hover {
	background: var(--hg-accent-dark);
}

/* Liens cross-comparatif */

.hg-sidebar-related ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hg-sidebar-related li {
	padding: 10px 0;
	border-bottom: 1px solid var(--hg-border);
	font-size: 13px;
	line-height: 1.45;
}

.hg-sidebar-related li:last-child {
	border-bottom: none;
}

.hg-sidebar-related a {
	color: var(--hg-text);
	text-decoration: none;
	display: block;
	transition: color 0.18s ease;
}

.hg-sidebar-related a:hover {
	color: var(--hg-accent);
}

.hg-sidebar-related-arrow {
	color: var(--hg-accent);
	margin-right: 6px;
}

/* ---------- Sommaire mobile in-content (collapsible) ---------- */

.hg-toc-mobile {
	display: none;
	background: var(--hg-bg);
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-md);
	margin: 24px 0 32px;
	padding: 0;
	overflow: hidden;
}

@media (max-width: 960px) {
	.hg-toc-mobile {
		display: block;
	}
}

.hg-toc-mobile summary {
	cursor: pointer;
	padding: 16px 20px;
	font-family: var(--hg-font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hg-text);
	background: var(--hg-surface);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.hg-toc-mobile summary::after {
	content: '+';
	font-size: 20px;
	color: var(--hg-accent);
	transition: transform 0.2s ease;
}

.hg-toc-mobile[open] summary::after {
	transform: rotate(45deg);
}

.hg-toc-mobile summary::-webkit-details-marker {
	display: none;
}

.hg-toc-mobile .hg-toc {
	padding: 0 20px 16px;
}

/* ---------- Image vedette du single ---------- */

.hg-single-featured {
	width: 100%;
	aspect-ratio: 16/9;
	margin: 0 0 32px;
	border-radius: var(--hg-radius-md);
	overflow: hidden;
	background: var(--hg-border);
}

.hg-single-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Bloc anecdote auteur (humanisation EEAT) ---------- */
.wp-block-quote.hg-author-note {
	background: linear-gradient(135deg, rgba(255,107,53,0.04) 0%, rgba(255,107,53,0.02) 100%);
	border-left: 4px solid var(--hg-accent);
	border-radius: 0 var(--hg-radius) var(--hg-radius) 0;
	margin: 32px 0;
	padding: 24px 28px;
	font-family: var(--hg-font-sans);
	font-style: normal;
	position: relative;
}
.wp-block-quote.hg-author-note p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--hg-text);
}
.wp-block-quote.hg-author-note cite {
	display: inline-block;
	font-family: var(--hg-font-display);
	font-style: italic;
	font-weight: 600;
	font-size: 13px;
	color: var(--hg-accent);
	letter-spacing: 0.02em;
}
.wp-block-quote.hg-author-note cite::before {
	content: '— ';
	color: var(--hg-text-muted);
}
/* ===========================================================================
   Home Gym Petit Espace — patches.css ADDENDUM
   Card produit éditoriale + lien d'autorité
   À append au patches.css existant
   =========================================================================== */

/* ---------- Card produit éditoriale ---------- */

.hg-product-card {
	background: var(--hg-surface);
	border: 1px solid var(--hg-border);
	border-radius: var(--hg-radius-lg);
	margin: 40px 0;
	padding: 0;
	box-shadow: var(--hg-shadow);
	overflow: hidden;
	position: relative;
	transition: box-shadow 0.25s ease;
}

.hg-product-card:hover {
	box-shadow: var(--hg-shadow-lg);
}

/* Header card */

.hg-product-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 28px;
	background: linear-gradient(135deg, var(--hg-primary) 0%, var(--hg-primary-light) 100%);
	color: #fff;
}

.hg-product-card-rank {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.hg-rank-num {
	font-family: var(--hg-font-display);
	font-style: italic;
	font-weight: 700;
	font-size: 28px;
	color: var(--hg-accent);
	line-height: 1;
}

.hg-rank-tag {
	font-family: var(--hg-font-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
	background: rgba(255, 255, 255, 0.12);
	padding: 6px 12px;
	border-radius: 99px;
}

.hg-product-card-score {
	display: flex;
	align-items: baseline;
	gap: 2px;
	background: rgba(255, 255, 255, 0.1);
	padding: 8px 16px;
	border-radius: var(--hg-radius);
	font-family: var(--hg-font-display);
}

.hg-score-num {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.hg-score-max {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

/* Body card : image + infos */

.hg-product-card-body {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 28px;
	padding: 28px;
}

.hg-product-card-image {
	background: var(--hg-bg);
	border-radius: var(--hg-radius-md);
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
}

.hg-product-card-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.hg-product-card-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.hg-product-card-title {
	font-family: var(--hg-font-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--hg-text);
	margin: 0 0 8px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.hg-product-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.hg-product-card-title a:hover {
	color: var(--hg-accent);
}

.hg-product-card-verdict {
	font-size: 14px;
	line-height: 1.55;
	color: var(--hg-text-soft);
	margin: 0 0 18px;
	font-style: italic;
}

/* Specs en mini-fiche */

.hg-product-card-specs {
	margin: 0 0 20px;
	padding: 0;
	font-size: 13px;
	border-top: 1px solid var(--hg-border);
}

.hg-product-card-specs .hg-spec-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid var(--hg-border);
	gap: 16px;
}

.hg-product-card-specs dt {
	color: var(--hg-text-muted);
	font-weight: 500;
	flex-shrink: 0;
}

.hg-product-card-specs dd {
	margin: 0;
	color: var(--hg-text);
	font-weight: 600;
	text-align: right;
}

.hg-product-card-specs .hg-spec-row-price dd {
	color: var(--hg-accent);
	font-size: 16px;
	font-family: var(--hg-font-display);
}

/* CTAs card */

.hg-product-card-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
}

.hg-product-card-cta-primary,
.hg-product-card-cta-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 20px;
	border-radius: var(--hg-radius);
	font-family: var(--hg-font-sans);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 2px solid transparent;
	transition: all 0.18s ease;
	line-height: 1.2;
}

.hg-product-card-cta-primary {
	background: var(--hg-accent);
	color: #fff;
	border-color: var(--hg-accent);
}

.hg-product-card-cta-primary:hover {
	background: var(--hg-accent-dark);
	border-color: var(--hg-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.hg-product-card-cta-secondary {
	background: transparent;
	color: var(--hg-text);
	border-color: var(--hg-text);
}

.hg-product-card-cta-secondary:hover {
	background: var(--hg-text);
	color: #fff;
}

.hg-product-card-cta-secondary .hg-cta-merchant-badge {
	background: rgba(26, 35, 50, 0.08);
	color: var(--hg-text);
}

.hg-product-card-cta-secondary:hover .hg-cta-merchant-badge {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* Pros / cons en 2 colonnes */

.hg-product-card-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-top: 1px solid var(--hg-border);
	background: linear-gradient(180deg, var(--hg-bg) 0%, var(--hg-surface) 100%);
}

.hg-proscons-col {
	padding: 24px 28px;
}

.hg-proscons-col.hg-pros {
	border-right: 1px solid var(--hg-border);
}

.hg-proscons-title {
	font-family: var(--hg-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: var(--hg-text);
}

.hg-proscons-title span {
	color: var(--hg-accent);
	margin-right: 4px;
}

.hg-cons .hg-proscons-title span {
	color: var(--hg-danger);
}

.hg-proscons-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hg-proscons-col li {
	font-size: 14px;
	line-height: 1.55;
	color: var(--hg-text);
	padding: 7px 0 7px 22px;
	position: relative;
}

.hg-proscons-col li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex-shrink: 0;
}

.hg-pros li::before {
	background: var(--hg-success);
	box-shadow: 0 0 0 3px var(--hg-success-soft);
}

.hg-cons li::before {
	background: var(--hg-danger);
	box-shadow: 0 0 0 3px var(--hg-danger-soft);
}

/* Responsive */

@media (max-width: 720px) {
	.hg-product-card-head {
		padding: 14px 18px;
	}
	.hg-rank-num { font-size: 22px; }
	.hg-rank-tag { font-size: 9px; padding: 4px 8px; }
	.hg-score-num { font-size: 22px; }

	.hg-product-card-body {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px;
	}
	.hg-product-card-image {
		max-width: 280px;
		margin: 0 auto;
	}
	.hg-product-card-title { font-size: 18px; }
	.hg-product-card-ctas { flex-direction: column; }
	.hg-product-card-cta-primary,
	.hg-product-card-cta-secondary {
		width: 100%;
		justify-content: center;
	}
	.hg-product-card-proscons {
		grid-template-columns: 1fr;
	}
	.hg-proscons-col.hg-pros {
		border-right: none;
		border-bottom: 1px solid var(--hg-border);
	}
}

/* ---------- Lien d'autorité ---------- */

.hg-authority-link {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: var(--hg-text);
	text-decoration: underline;
	text-decoration-color: var(--hg-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.18s ease;
}

.hg-authority-link:hover {
	color: var(--hg-accent);
}

.hg-authority-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--hg-font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hg-text-muted);
	background: var(--hg-border);
	padding: 2px 8px;
	border-radius: 99px;
	vertical-align: middle;
	white-space: nowrap;
}

.hg-authority-type {
	color: var(--hg-accent);
	font-weight: 700;
}

.hg-authority-type::after {
	content: '·';
	margin-left: 4px;
	color: var(--hg-text-muted);
}

/* ===========================================================================
   OVERRIDE — Card produit : image en hero pleine largeur (top)
   Au lieu d'une mini-image en colonne gauche, l'image domine en haut de card.
   =========================================================================== */

.hg-product-card-body {
	display: block !important;
	padding: 0 !important;
	gap: 0 !important;
}

.hg-product-card-image {
	width: 100% !important;
	max-width: none !important;
	aspect-ratio: 16 / 9 !important;
	padding: 32px 48px !important;
	border-radius: 0 !important;
	margin: 0 !important;
	background: linear-gradient(135deg, var(--hg-bg) 0%, #F5F2EC 100%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative;
	overflow: hidden;
}

.hg-product-card-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(26,35,50,0.015) 0, rgba(26,35,50,0.015) 1px, transparent 1px, transparent 22px);
	pointer-events: none;
}

.hg-product-card-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
}

.hg-product-card-image img {
	height: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
	mix-blend-mode: multiply;
	transition: transform 0.4s ease;
}

.hg-product-card:hover .hg-product-card-image img {
	transform: scale(1.04);
}

.hg-product-card-info {
	padding: 32px 32px 28px !important;
	display: block !important;
}

@media (max-width: 720px) {
	.hg-product-card-image {
		aspect-ratio: 4 / 3 !important;
		padding: 24px 28px !important;
	}
	.hg-product-card-info {
		padding: 24px 20px !important;
	}
}

/* ===========================================================================
   FICHE PRODUIT — Image plus grande sur layout sidebar
   Sur sidebar layout, la col article fait ~750px → grid 2 col rend l'image
   trop petite. On stack verticalement : image pleine largeur en haut,
   scorebox en dessous.
   =========================================================================== */

.hg-layout-sidebar .hg-single-top {
	grid-template-columns: 1fr !important;
	gap: 24px;
}

.hg-layout-sidebar .hg-single-image {
	aspect-ratio: auto !important;
	min-height: 0 !important;
	max-height: 620px;
}

.hg-layout-sidebar .hg-single-image img {
	object-fit: contain !important;
	width: 100% !important;
	height: auto !important;
	max-height: 600px !important;
}

/* Si Fancybox / WP gallery rajoute des thumbnails sous l'image principale */
.hg-layout-sidebar .hg-single-image .wp-block-gallery,
.hg-layout-sidebar .hg-single-image .gallery {
	margin-top: 12px;
}

/* ===========================================================================
   ULTRA-SPECIFIC OVERRIDE pour battre le wp-custom-css du Customizer
   qui définit body.is-produit .hg-single-top avec !important.
   On utilise html body.is-produit .hg-layout-sidebar (spec 0,3,1) pour gagner.
   =========================================================================== */

html body.is-produit .hg-layout-sidebar .hg-single-top {
	display: block !important;
	grid-template-columns: none !important;
}

html body.is-produit .hg-layout-sidebar .hg-single-top .hg-single-image,
html body.is-produit .hg-layout-sidebar .hg-single-image {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 0 24px 0 !important;
	display: block !important;
}

html body.is-produit .hg-layout-sidebar .hg-single-image img,
html body.is-produit .hg-layout-sidebar .hg-single-image .hg-main-photo,
html body.is-produit .hg-layout-sidebar .hg-main-photo {
	width: 100% !important;
	max-width: 100% !important;
}

html body.is-produit .hg-layout-sidebar .hg-main-photo {
	aspect-ratio: 4 / 3 !important;
	max-height: 580px !important;
}

html body.is-produit .hg-layout-sidebar .hg-main-photo img {
	width: 100% !important;
	height: 100% !important;
	max-height: 580px !important;
	object-fit: contain !important;
}

/* Scorebox sous l'image, pleine largeur */
html body.is-produit .hg-layout-sidebar .hg-scorebox {
	width: 100% !important;
	max-width: 100% !important;
	margin-top: 0 !important;
}

/* ===========================================================================
   HERO SLIDESHOW PRODUITS — remplace l'ancien ::after placeholder noir
   =========================================================================== */

/* Désactiver l'ancien placeholder noir et la caption FIG. 01 du wp-custom-css */
html body .hg-hero::after,
html body .hg-hero::before {
	display: none !important;
	content: none !important;
}

/* Container du slideshow — prend la 2e colonne du grid .hg-hero .hg-container */
.hg-hero-slideshow {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 540px;
	background: var(--hg-dark, #1F1B16);
	overflow: hidden;
	border-radius: 2px;
}

@media (max-width: 900px) {
	.hg-hero-slideshow {
		max-height: 380px;
		margin-top: 24px;
	}
}

/* Chaque slide en absolute, opacity 0 au repos, cycle 24s */
.hg-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	opacity: 0;
	animation: hg-hero-slide-cycle 60s infinite;
	will-change: opacity;
}

.hg-hero-slide-image {
	flex: 1;
	background: linear-gradient(135deg, #2A251E 0%, #1F1B16 100%);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 22px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 0;
}

.hg-hero-slide-image img {
	max-width: 96%;
	max-height: 96%;
	object-fit: contain;
	filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
	transition: transform 0.4s ease;
}

.hg-hero-slide:hover .hg-hero-slide-image img {
	transform: scale(1.04);
}

/* Caption en bas avec fond beige éditorial */
.hg-hero-slide-caption {
	background: var(--hg-bg, #F5F1E8);
	color: var(--hg-ink, #1F1B16);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-top: 1px solid var(--hg-rule-soft, #C9C0AE);
}

.hg-hero-slide-name {
	font-family: var(--hg-font-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--hg-ink, #1F1B16);
	letter-spacing: -0.005em;
}

.hg-hero-slide-tag {
	font-family: var(--hg-font-mono, 'JetBrains Mono', monospace);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hg-ink-soft, #4A4239);
	display: flex;
	gap: 6px;
	align-items: center;
}

.hg-hero-slide-arrow {
	color: var(--hg-accent, #E85A2F);
	font-weight: 600;
}

@media (max-width: 600px) {
	.hg-hero-slide-name { font-size: 15px; }
	.hg-hero-slide-tag { font-size: 9px; }
}

/* Animation cycle : 4 slides × 6s = 24s.
   Chaque slide visible ~5s avec fade in/out 1s.
   Visible de 0% à 21% du cycle, fade in 0-4%, fade out 21-25%. */
@keyframes hg-hero-slide-cycle {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	21%  { opacity: 1; }
	25%  { opacity: 0; }
	100% { opacity: 0; }
}

/* Mini-indicateur de pagination (petits points en bas) */
.hg-hero-slideshow::after {
	content: '';
	position: absolute;
	bottom: 8px;
	right: 12px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hg-accent, #E85A2F);
	box-shadow: -16px 0 0 rgba(232,90,47,0.3), -32px 0 0 rgba(232,90,47,0.3), -48px 0 0 rgba(232,90,47,0.3);
	z-index: 5;
	opacity: 0.6;
	pointer-events: none;
}

/* Respect prefers-reduced-motion : pas d'animation, juste afficher le 1er slide */
@media (prefers-reduced-motion: reduce) {
	.hg-hero-slide {
		animation: none !important;
		opacity: 0 !important;
	}
	.hg-hero-slide[data-slide="0"] {
		opacity: 1 !important;
	}
}

/* ============================================================
   PAGE /guides/ — Grid des 4 piliers
   ============================================================ */

.hg-guides-intro {
	font-size: clamp(1.1rem, 1.6vw, 1.25rem);
	line-height: 1.6;
	color: #2a2a2a;
	max-width: 720px;
	margin: 0 0 2.5rem 0;
	font-family: var(--hg-serif, Georgia, 'Times New Roman', serif);
	font-style: italic;
}

.hg-pillars-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin: 2rem 0 3rem 0;
}

@media (max-width: 720px) {
	.hg-pillars-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.hg-pillar-card {
	display: block;
	background: #fff;
	border: 1px solid #e8e2d8;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	overflow: hidden;
}

.hg-pillar-card:hover,
.hg-pillar-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: var(--hg-accent, #E85A2F);
}

.hg-pillar-card-cover {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f5f0e7;
}

.hg-pillar-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.hg-pillar-card:hover .hg-pillar-card-cover img {
	transform: scale(1.04);
}

.hg-pillar-card-body {
	padding: 24px 28px 28px 28px;
}

.hg-pillar-card-kicker {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hg-accent, #E85A2F);
	font-weight: 600;
	margin-bottom: 8px;
}

.hg-pillar-card-title {
	font-family: var(--hg-serif, Georgia, 'Times New Roman', serif);
	font-size: clamp(1.4rem, 2vw, 1.7rem);
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 12px 0;
	line-height: 1.25;
}

.hg-pillar-card-text {
	font-size: 0.98rem;
	line-height: 1.55;
	color: #4a4a4a;
	margin: 0 0 16px 0;
}

.hg-pillar-card-cta {
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--hg-accent, #E85A2F);
	letter-spacing: 0.02em;
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: border-color 0.2s ease;
}

.hg-pillar-card:hover .hg-pillar-card-cta {
	border-bottom-color: var(--hg-accent, #E85A2F);
}

.hg-pillar-card-cta span[aria-hidden] {
	display: inline-block;
	margin-left: 4px;
	transition: transform 0.25s ease;
}

.hg-pillar-card:hover .hg-pillar-card-cta span[aria-hidden] {
	transform: translateX(4px);
}

/* ============================================================
   FOOTER — bottom bar (liens légaux inline avec copyright)
   ============================================================ */

.hg-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--hg-primary-light, rgba(255,255,255,0.08));
}

.hg-footer-copy {
	margin: 0 !important;
	font-size: 12px;
	color: var(--hg-text-muted);
}

.hg-footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	font-size: 12px;
}

.hg-footer-legal-links a {
	color: var(--hg-primary-soft);
	padding: 0 12px;
	border-right: 1px solid var(--hg-primary-light, rgba(255,255,255,0.15));
	text-decoration: none;
	transition: color 0.2s ease;
}

.hg-footer-legal-links a:first-child { padding-left: 0; }
.hg-footer-legal-links a:last-child {
	padding-right: 0;
	border-right: none;
}

.hg-footer-legal-links a:hover {
	color: var(--hg-accent, #E85A2F);
}

@media (max-width: 640px) {
	.hg-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.hg-footer-legal-links a {
		padding: 0 8px;
	}
}

/* ============================================================
   FOOTER v2 — disclaimer Amazon sous le bloc Brand
   ============================================================ */

/* Disclaimer Amazon affilié — discret, sous la tagline Brand */
.hg-footer-brand .hg-footer-disclaimer {
	font-size: 11px;
	line-height: 1.55;
	color: var(--hg-text-muted);
	margin: 16px 0 0;
	max-width: 360px;
	font-style: italic;
}

/* Bottom bar — retire la border-top doublon avec la border-bottom du grid */
.hg-footer-bottom {
	border-top: none !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* On garde un petit padding-top sur le wrapper legal pour aérer du grid */
.hg-footer-legal {
	padding-top: 20px !important;
}

/* FOOTER v3 — kill double border : override wp-custom-css spec */
html body .hg-footer-legal {
	border-top: 0 !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}


/* ===== Newsletter - Contact form ===== */

/* Fluent Forms contact form */
html body .fluentform .ff-el-form-control {
  border: 1px solid #d0ccc4;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
}
html body .fluentform .ff-btn-submit {
  background: #1A2332;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
html body .fluentform .ff-btn-submit:hover {
  background: #FF6B35;
}
html body .fluentform .ff-el-form-check-label a {
  color: #FF6B35;
}

/* ===== Newsletter inline (after article) ===== */

html body .hg-nl-inline {
  background: #F5F0E8;
  border-top: 2px solid #E8E0D0;
  padding: 2.5rem 0;
  margin: 2.5rem 0;
}
html body .hg-nl-inline-inner {
  max-width: 640px;
}
html body .hg-nl-inline-title {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: #1A2332;
  margin-bottom: 0.5rem;
}
html body .hg-nl-inline-desc {
  color: #555;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* ===== Newsletter footer ===== */

html body .hg-footer-newsletter {
  background: #F5F0E8;
  border-top: 2px solid #E8E0D0;
  padding: 2.5rem 0;
}
html body .hg-newsletter-title {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: #1A2332;
  margin-bottom: 0.5rem;
}
html body .hg-newsletter-desc {
  color: #555;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
html body .hg-newsletter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 480px;
}
html body .hg-nl-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid #d0ccc4;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 1rem;
  background: #fff;
}
html body .hg-nl-btn {
  background: #1A2332;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
html body .hg-nl-btn:hover {
  background: #FF6B35;
}
html body .hg-nl-rgpd {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.6rem;
}
html body .hg-nl-rgpd a {
  color: #888;
  text-decoration: underline;
}
html body .hg-nl-success {
  color: #2d8a4e;
  font-weight: 600;
}

/* ===== Newsletter popup ===== */

html body .hg-nl-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: #F5F0E8;
  border: 1px solid #d0ccc4;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(26,35,50,0.15);
  padding: 1.8rem;
  z-index: 9999;
}
html body .hg-nl-popup[hidden] {
  display: none;
}
html body .hg-nl-popup-inner {
  position: relative;
}
html body .hg-nl-popup-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #888;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}
html body .hg-nl-popup-close:hover {
  color: #1A2332;
}
html body .hg-nl-popup-title {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: #1A2332;
  margin-bottom: 0.4rem;
}
html body .hg-nl-popup-desc {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  html body .hg-nl-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 8px 8px 0 0;
  }
}
