/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* Sécurité anti-scroll horizontal */
html, body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
} 

/* =========================
   DESKTOP — "Tous nos rayons"
   Dropdown pleine largeur écran
   ========================= */

.tt5c-rayons { 
	position: relative;
	--tt5c-rayons-panel-gap: 20px;
	--tt5c-rayons-panel-top: 100px;
}

.tt5c-rayons__root,
.tt5c-rayons__panel,
.tt5c-rayons__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Bouton */
.tt5c-rayons__toggle { 
	position: relative; 
}

/*
Zone invisible survolable entre le bouton et le panneau.

Important :
- elle est portée par .tt5c-rayons__toggle, pas par le panneau ;
- elle couvre la zone entre le haut de l'écran et le panneau ;
- elle passe derrière le lien et derrière le panneau ;
- elle maintient donc le :hover quand la souris descend vers le menu.
*/
.tt5c-rayons__toggle::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: calc(var(--tt5c-rayons-panel-top) + var(--tt5c-rayons-panel-gap));
	background: transparent;
	z-index: 999;
	display: none;
	pointer-events: auto;
}

.tt5c-rayons__toggle:hover::before,
.tt5c-rayons__toggle:focus-within::before {
	display: block;
}

.tt5c-rayons__togglelink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
	position: relative;
	z-index: 1001;
}

.tt5c-rayons__togglelink::after {
	content: "▾";
	font-size: 0.85em;
	line-height: 1;
}

/* Panel pleine largeur viewport */
.tt5c-rayons__panel {
	position: fixed;
	top: var(--tt5c-rayons-panel-top); /* hauteur de ton header */
	left: 0;

	width: 95vw;
	
	margin-top: 0;
	padding: calc(16px + var(--tt5c-rayons-panel-gap)) 18px 16px;

	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);

	border-top: 1px solid rgba(0,0,0,.08);
	border-bottom: 1px solid rgba(0,0,0,.08);
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	box-shadow: 0 16px 40px rgba(0,0,0,.12);

	z-index: 1000;
	display: none;
}

/* Ouverture */
.tt5c-rayons__toggle:hover > .tt5c-rayons__panel,
.tt5c-rayons__toggle:focus-within > .tt5c-rayons__panel,
.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
	display: grid;
}

/* Grille : 8 colonnes par défaut */
.tt5c-rayons__toggle:hover > .tt5c-rayons__panel,
.tt5c-rayons__toggle:focus-within > .tt5c-rayons__panel,
.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 14px 12px;
	align-content: start;
}

/* Catégorie = colonne */
.tt5c-rayons__cat { min-width: 0; }

.tt5c-rayons__cat > .tt5c-rayons__link {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	background: rgba(0,0,0,.03);
}

.tt5c-rayons__cat > .tt5c-rayons__link:hover { background: rgba(0,0,0,.06); }

.tt5c-rayons__sub {
	margin-top: 0px;
	padding-left: 0;
	border-left: 0;
}

.tt5c-rayons__subcat > .tt5c-rayons__sublink {
	display: block;
	padding: 6px 10px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 1.1rem; /* réduit légèrement */
}

.tt5c-rayons__subcat > .tt5c-rayons__sublink:hover { background: rgba(0,0,0,.06); }


/* Dégradations colonnes si viewport plus petit */
@media (max-width: 1400px) {
	.tt5c-rayons__toggle:hover > .tt5c-rayons__panel,
	.tt5c-rayons__toggle:focus-within > .tt5c-rayons__panel,
	.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

@media (max-width: 1200px) {
	.tt5c-rayons__toggle:hover > .tt5c-rayons__panel,
	.tt5c-rayons__toggle:focus-within > .tt5c-rayons__panel,
	.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.tt5c-rayons__toggle:hover > .tt5c-rayons__panel,
	.tt5c-rayons__toggle:focus-within > .tt5c-rayons__panel,
	.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/*
Ajouts typographiques demandés :
- Catégories (niveau 2) en MAJUSCULES
- Sous-catégories (niveau 3) en "Première lettre en majuscule"
*/

/* Catégories en majuscules */
.tt5c-rayons__cat > .tt5c-rayons__link {
	text-transform: uppercase;
	letter-spacing: .02em;
}

/* Sous-catégories : première lettre en majuscule
   Note: CSS ne sait pas "Title Case" proprement (chaque mot).
   Ici on fait : tout en minuscules + 1ère lettre en majuscule.
*/
.tt5c-rayons__subcat > .tt5c-rayons__sublink {
	text-transform: lowercase;
}

.tt5c-rayons__subcat > .tt5c-rayons__sublink::first-letter {
	text-transform: uppercase;
}

/* Icône "≡" centrée : on neutralise toute contrainte typographique du lien */
.tt5c-rayons__togglelink {
	display: inline-flex;
	align-items: center;
	line-height: 1; /* évite que la line-height du thème pousse l’alignement */
}

/* Icône avec 3 barres identiques + centrage strict */
.tt5c-rayons__togglelink::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 14px;          /* hauteur fixe => centrage fiable */
	margin-left: 8px;
	flex: 0 0 auto;
	align-self: center;

	background-color: currentColor;
	border-radius: 1px;

	/* barre du haut (2px) + 2 copies */
	height: 2px;
	box-shadow:
		0 6px 0 0 currentColor,
		0 12px 0 0 currentColor;

	/* ajuste finement si besoin (valeur typique quand ça paraît plus bas) */
	position: relative;
	top: -6px;
}

/* Mobile: cacher complètement "TOUS NOS RAYONS" et ne garder que l'icône */
@media (max-width: 782px) {
	.tt5c-rayons__togglelink {
		font-size: 0 !important;     /* cache le texte */
		padding: 6px 8px;
	}

	.tt5c-rayons__togglelink::after {
		margin-left: 0;              /* pas d'espace réservé au texte */
	}
}

/* =========================
   Correction forte état figé
   ========================= */

/*
Quand le menu est figé, on force le panneau à reprendre exactement le rendu du hover.
Ces règles sont volontairement placées tout en bas pour écraser les styles éventuels du thème
ou d'une règle .is-pinned chargée avant.
*/
.tt5c-rayons .tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel,
.tt5c-rayons .tt5c-rayons__toggle.is-pinned .tt5c-rayons__panel {
	position: fixed !important;
	top: var(--tt5c-rayons-panel-top) !important;
	left: 0 !important;
	width: 95vw !important;
	max-width: none !important;
	margin-top: 0 !important;
	padding: calc(16px + var(--tt5c-rayons-panel-gap)) 18px 16px !important;

	display: grid !important;
	grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
	gap: 14px 12px !important;
	align-content: start !important;
	justify-content: stretch !important;
	align-items: start !important;
}

.tt5c-rayons .tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel > .tt5c-rayons__cat,
.tt5c-rayons .tt5c-rayons__toggle.is-pinned .tt5c-rayons__panel > .tt5c-rayons__cat {
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
}

@media (max-width: 1400px) {
	.tt5c-rayons .tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel,
	.tt5c-rayons .tt5c-rayons__toggle.is-pinned .tt5c-rayons__panel {
		grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1200px) {
	.tt5c-rayons .tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel,
	.tt5c-rayons .tt5c-rayons__toggle.is-pinned .tt5c-rayons__panel {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 980px) {
	.tt5c-rayons .tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel,
	.tt5c-rayons .tt5c-rayons__toggle.is-pinned .tt5c-rayons__panel {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Fix overflow horizontal du header (ligne sticky) sur très petits écrans (<400px)
   Contexte: .wc-blocks-header-pattern est en flex nowrap => ça déborde.
   On autorise le wrap + on réduit les écarts/paddings.
*/
@media (max-width: 400px) {
	/* Le conteneur header en question */
	.wc-blocks-header-pattern.is-layout-flex,
	.wc-blocks-pattern-header-minimal.is-layout-flex,
	.sticky-header.is-layout-flex {
		flex-wrap: wrap !important;               /* au lieu de nowrap */
		row-gap: 8px;
		column-gap: 8px;
	}

	/* Les groupes WP peuvent avoir un block-gap trop grand */
	.wc-blocks-header-pattern.wp-block-group,
	.wc-blocks-pattern-header-minimal.wp-block-group {
		gap: 8px !important;
	}

	/* Eviter que le titre prenne trop de place : autoriser la réduction */
	.wc-blocks-header-pattern .wp-block-site-title,
	.wc-blocks-pattern-header-minimal .wp-block-site-title {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* Notre bouton (icône seule sur mobile) : ne pas imposer une largeur */
	.tt5c-rayons {
		flex: 0 0 auto;
	}

	/* Navigation/icone groups: autoriser la casse */
	.wc-blocks-header-pattern .wp-block-navigation,
	.wc-blocks-pattern-header-minimal .wp-block-navigation {
		min-width: 0;
	}

	/* Sécurité anti-scroll horizontal */
	html, body {
		overflow-x: hidden;
	}
}

/* =========================
   MOBILE MODAL (<=782px)
   ========================= */

/* lock scroll */
html.tt5c-rayons--lock,
html.tt5c-rayons--lock body {
	overflow: hidden;
}

/* Par défaut, le modal est caché */
.tt5c-rayons-m {
	display: none;
}

/* Mobile: on utilise le modal, on cache le mega dropdown desktop */
@media (max-width: 782px) {
	.tt5c-rayons__panel { display: none !important; }

	.tt5c-rayons-m {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 10000;
	}

	/* Ouvert */
	.tt5c-rayons.tt5c-rayons--modal-open .tt5c-rayons-m {
		display: block;
	}

	.tt5c-rayons-m__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(0,0,0,.45);
	}

	.tt5c-rayons-m__sheet {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: 92vh;
		background: #fff;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -20px 60px rgba(0,0,0,.25);
		display: flex;
		flex-direction: column;
	}

	.tt5c-rayons-m__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 16px 10px;
		border-bottom: 1px solid rgba(0,0,0,.08);
	}

	.tt5c-rayons-m__title {
		font-weight: 800;
		font-size: 16px;
		letter-spacing: .02em;
		text-transform: uppercase;
	}

	.tt5c-rayons-m__close {
		border: 0;
		background: transparent;
		font-size: 28px;
		line-height: 1;
		padding: 6px 8px;
		cursor: pointer;
	}

	.tt5c-rayons-m__content {
		padding: 10px 16px 18px;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tt5c-rayons-m__list,
	.tt5c-rayons-m__sub {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	/* Catégories (niveau 2) */
	.tt5c-rayons-m__cat {
		border-bottom: 1px solid rgba(0,0,0,.06);
		padding: 6px 0;
	}

	.tt5c-rayons-m__catlink {
		display: block;
		padding: 12px 0;
		text-decoration: none;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: .02em;
		color: inherit;
	}

	/* Catégorie avec enfants : bouton accordéon */
	.tt5c-rayons-m__catbtn {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;

		padding: 12px 0;
		border: 0;
		background: transparent;
		cursor: pointer;

		font: inherit;
		color: inherit;
	}

	.tt5c-rayons-m__catlabel {
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: .02em;
		text-align: left;
	}

	.tt5c-rayons-m__chev::before {
		content: "▾";
		display: inline-block;
		transform: rotate(-90deg);
		opacity: .7;
		transition: transform .15s ease;
	}

	.tt5c-rayons-m__cat.is-open .tt5c-rayons-m__chev::before {
		transform: rotate(0deg);
	}

	/* Sous-catégories (niveau 3) cachées au départ */
	.tt5c-rayons-m__sub {
		display: none;
		padding: 0 0 8px 12px;
	}

	.tt5c-rayons-m__cat.is-open > .tt5c-rayons-m__sub {
		display: block;
	}

	.tt5c-rayons-m__sublink {
		display: block;
		padding: 10px 0;
		text-decoration: none;
		color: inherit;

		/* première lettre majuscule */
		text-transform: lowercase;
	}

	.tt5c-rayons-m__sublink::first-letter {
		text-transform: uppercase;
	}
}

/* =========================
   PATCH DESIGN MODAL MOBILE
   - Aligner les catégories à gauche (comme les sous-catégories)
   - Chevron plus visible + bien aligné à droite
   ========================= */
@media (max-width: 782px) {

	/* 1) Catégories: alignement gauche strict, pas de décalage lié au flex */
	.tt5c-rayons-m__catbtn {
		justify-content: flex-start; /* au lieu de space-between */
	}

	.tt5c-rayons-m__catlabel {
		flex: 1 1 auto;     /* prend toute la place */
		min-width: 0;
		text-align: left;
		padding-right: 12px; /* évite que le texte touche le chevron */
	}

	/* 2) Chevron: plus visible, taille stable, aligné à droite */
	.tt5c-rayons-m__chev {
		flex: 0 0 28px;           /* zone fixe à droite */
		width: 28px;
		display: inline-flex;
		align-items: center;
		justify-content: flex-end; /* calé à droite */
	}

	.tt5c-rayons-m__chev::before {
		content: "";
		display: inline-block;
		width: 10px;
		height: 10px;

		/* chevron "V" propre en CSS */
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;

		transform: rotate(-45deg); /* fermé */
		opacity: .95;
	}

	.tt5c-rayons-m__cat.is-open .tt5c-rayons-m__chev::before {
		transform: rotate(45deg); /* ouvert */
	}

	/* Optionnel : un peu plus de “click area” sur la ligne catégorie */
	.tt5c-rayons-m__catbtn {
		padding: 14px 0;
	}
}

/* Desktop: pin/unpin sans conflit avec hover/focus */

@media (min-width: 783px) {
	/* Quand pinned => panel forcé ouvert */
	.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
		display: grid !important;
	}

	/* Bouton encadré quand pinned (on évite outline pour ne pas se cumuler avec focus UA) */
	.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__togglelink {
		outline: none !important;
		box-shadow: 0 0 0 2px currentColor;
	}

	/* Neutraliser l’outline navigateur au clic/focus (sinon double bordure) */
	.tt5c-rayons__togglelink:focus,
	.tt5c-rayons__togglelink:focus-visible {
		outline: none !important;
	}

	/* IMPORTANT: au hover, on n'ouvre le panel QUE si pas pinned
	   (évite que le hover maintienne l'ouverture quand on essaie de "unpin") */
	.tt5c-rayons__toggle:not(.is-pinned):hover > .tt5c-rayons__panel,
	.tt5c-rayons__toggle:not(.is-pinned):focus-within > .tt5c-rayons__panel {
		display: grid;
	}

	/* Si pinned, on ne dépend plus du hover/focus */
	.tt5c-rayons__toggle.is-pinned:hover > .tt5c-rayons__panel,
	.tt5c-rayons__toggle.is-pinned:focus-within > .tt5c-rayons__panel {
		display: grid !important;
	}
}

/* Fix desktop pinned: garder la grille (colonnes) même hors hover */
@media (min-width: 783px) {
	/* Quand pinned, le panel doit être en grid ET avoir la même grille que sur hover */
	.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
		display: grid !important;
		grid-template-columns: repeat(9, minmax(0, 1fr));
		gap: 14px 12px;
		align-content: start;
	}

	/* Reprendre les breakpoints de colonnes aussi en mode pinned */
	@media (max-width: 1400px) {
		.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
			grid-template-columns: repeat(7, minmax(0, 1fr));
		}
	}
	@media (max-width: 1200px) {
		.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
			grid-template-columns: repeat(5, minmax(0, 1fr));
		}
	}
	@media (max-width: 980px) {
		.tt5c-rayons__toggle.is-pinned > .tt5c-rayons__panel {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}
	}
}

/* =========================
   FOOTER CUSTOM — ErgoShop (INVERT)
   Objectif: casser le style en inversant les couleurs
   - fond sombre / texte clair
   - cartes/liens plus contrastés
   ========================= */

/* Variables locales (faciles à ajuster) */
.custom-footer{
	--tt5c-f-bg: var(--wp--preset--color--contrast, #111);
	--tt5c-f-fg: var(--wp--preset--color--base, #fff);

	--tt5c-f-border: rgba(255,255,255,.16);
	--tt5c-f-muted: rgba(255,255,255,.82);

	--tt5c-f-card-bg: rgba(255,255,255,.06);
	--tt5c-f-card-bg-hover: rgba(255,255,255,.10);

	background: var(--tt5c-f-bg);
	color: var(--tt5c-f-fg);

	padding-top: var(--wp--preset--spacing--60, 48px);
	padding-bottom: var(--wp--preset--spacing--50, 40px);
}

.custom-footer a{ color: inherit; }

.custom-footer .footer-inner{
	max-width: var(--wp--style--global--content-size, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--style--root--padding-left, 24px);
	padding-right: var(--wp--style--root--padding-right, 24px);
}

.custom-footer .footer-topline{
	height: 1px;
	width: 100%;
	background: var(--tt5c-f-border);
	margin-bottom: var(--wp--preset--spacing--50, 40px);
}

/* Layout top */
.custom-footer .footer-top{
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--wp--preset--spacing--60, 48px);
	align-items: start;
}
@media (max-width: 900px){
	.custom-footer .footer-top{ grid-template-columns: 1fr; }
}

/* Navigation */
.custom-footer .footer-nav{
	display: grid;
	gap: 10px;
	align-content: start;
}

.custom-footer .footer-link{
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	padding: 12px 12px;
	border-radius: 14px;

	text-decoration: none;
	font-weight: 750;

	background: var(--tt5c-f-card-bg);
	border: 1px solid transparent;

	transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.custom-footer .footer-link:hover,
.custom-footer .footer-link:focus-visible{
	background: var(--tt5c-f-card-bg-hover);
	border-color: var(--tt5c-f-border);
	transform: translateY(-1px);
}

.custom-footer .footer-link:focus-visible{
	outline: 2px solid var(--tt5c-f-fg);
	outline-offset: 2px;
}

.custom-footer .f-ico{
	flex: 0 0 auto;
	opacity: .95;
}

.custom-footer .footer-link .f-ico{
	transition: transform .15s ease;
}

.custom-footer .footer-link:hover .f-ico,
.custom-footer .footer-link:focus-visible .f-ico{
	transform: translateX(2px);
}

/* Trust card (plus “premium”, plus dense) */
.custom-footer .footer-trust-card{
	border: 1px solid var(--tt5c-f-border);
	border-radius: 16px;
	padding: 16px 16px;

	background: rgba(255,255,255,.04);
	backdrop-filter: blur(6px);
}

.custom-footer .trust-header{
	display: inline-flex;
	align-items: center;
	gap: 10px;

	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;

	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--tt5c-f-border);
}

.custom-footer .payment-grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: center;
}

@media (max-width: 480px){
	.custom-footer .payment-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.custom-footer .payment-grid img{
	display: block;
	width: 100%;
	max-width: 110px;
	height: auto;

	/* si tes logos sont “black”, on les inverse pour fond sombre */
	filter: invert(1) grayscale(1) contrast(1.1);
	opacity: .95;
}

/* Accessibilité: texte masqué */
.custom-footer .sr-only{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Bottom */
.custom-footer .footer-bottom{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 16px;

	margin-top: var(--wp--preset--spacing--60, 48px);
	padding-top: var(--wp--preset--spacing--40, 28px);
	border-top: 1px solid var(--tt5c-f-border);
}

.custom-footer .footer-copy,
.custom-footer .expertise-tag{ margin: 0; }

.custom-footer .footer-copy{
	font-size: 14px;
	color: var(--tt5c-f-fg);
}

.custom-footer .expertise-tag{
	font-size: 13px;
	color: var(--tt5c-f-muted);
}

/* Optionnel: si le footer est dans un groupe WP qui a du fond clair,
   on force le "full bleed" sans dépendre du parent */
.custom-footer{
	position: relative;
	isolation: isolate;
}
.custom-footer::before{
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tt5c-f-bg);
	z-index: -1;
}

/* Le fil d’Ariane utilise les classes existantes fournies par toi :
   .breadcrumb, .breadcrumb-list, .breadcrumb-item, .breadcrumb-link, .breadcrumb-current, .breadcrumb-separator
   => NE PAS redéfinir ici si déjà présent dans ton thème. */

/* === Hero === */
.lp-hero{ margin:0 0 3rem 0; }
.lp-hero__title{
  font-size:clamp(2.25rem, 4vw, 3rem);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.02em;
  color:#0f172a;
  margin:0 0 1rem 0;
}
.lp-hero__lead{
  font-size:1.125rem;
  color:#475569;
  max-width:48rem;
  line-height:1.7;
  margin:0;
}

/* === Grid categories === */
.lp-grid{ display:grid; gap:1rem; }
.lp-grid--cats{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  margin:0 0 5rem 0;
}
@media (min-width:768px){
  .lp-grid--cats{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (min-width:1024px){
  .lp-grid--cats{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}

/* === Card category === */
.lp-card{
  background:#fff;
  border:1px solid #f1f5f9;
  border-radius:1.5rem;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  text-decoration:none;
  color:inherit;
}
.lp-card--cat{
  padding:1rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition:box-shadow .2s ease, transform .2s ease;
  cursor:pointer;
}
.lp-card--cat:hover{
  box-shadow:0 10px 25px rgba(15,23,42,.08);
  transform:translateY(-1px);
}
.lp-card__media{
  width:100%;
  aspect-ratio:1/1;
  background:#f8fafc;
  border:1px solid #f8fafc;
  border-radius:1rem;
  margin:0 0 1rem 0;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background-color .2s ease;
}
.lp-card--cat:hover .lp-card__media{ background:#eff6ff; }
.lp-card__emoji{
  font-size:2.25rem;
  transition:transform .2s ease;
}
.lp-card--cat:hover .lp-card__emoji{ transform:scale(1.1); }
.lp-card__title{
  font-weight:800;
  color:#1f2937;
  font-size:.875rem;
  margin:0 0 .25rem 0;
  text-transform:uppercase;
  letter-spacing:-.01em;
}
.lp-card__badge{
  display:inline-block;
  font-size:.625rem;
  font-weight:900;
  color:#3b82f6;
  background:#eff6ff;
  padding:.25rem .5rem;
  border-radius:999px;
  text-transform:uppercase;
}

/* === Article === */
.lp-article{
  width: 100%;           /* largeur 100% */
  margin: 0 auto;        /* centrer si besoin */
  background:#fff;
  border:1px solid #f1f5f9;
  border-radius:2.5rem;
  box-shadow:0 25px 50px rgba(15,23,42,.12);
  box-sizing: border-box;
  max-width: var(--wp--style--global--wide-size);
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
}

@media (min-width:768px){
  .lp-article{ padding:4rem; }
}
.lp-prose{ max-width:none; color:#0f172a; }

/* === Header block === */
.lp-header{ margin:0 0 3rem 0; text-align:center; }
.lp-header__kicker{
  display:inline-block;
  padding:.375rem 1rem;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-weight:900;
  font-size:.625rem;
  text-transform:uppercase;
  letter-spacing:.2em;
  margin:0 0 1.5rem 0;
}
.lp-header__title{
  font-size:clamp(2rem, 3vw, 2.25rem);
  font-weight:900;
  letter-spacing:-.02em;
  color:#0f172a;
  margin:0 0 1rem 0;
  line-height:1.15;
}
.lp-header__meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  font-size:.75rem;
  font-weight:800;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.lp-header__dot{
  width:.25rem;
  height:.25rem;
  border-radius:999px;
  background:#cbd5e1;
}

/* === Introduction quote === */
.lp-intro-quote{
  font-size:1.25rem;
  color:#475569;
  line-height:1.7;
  font-style:italic;
  border-left:4px solid #3b82f6;
  padding-left:1.5rem;
  margin:0 0 3rem 0;
}

/* === Risks === */
.lp-risk-grid{
  display:grid;
  gap:1.5rem;
  margin:0 0 4rem 0;
}
@media (min-width:768px){
  .lp-risk-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
.lp-risk{
  padding:1.5rem;
  border-radius:1.5rem;
  border:1px solid transparent;
}
.lp-risk__title{
  font-weight:900;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin:0 0 .5rem 0;
}
.lp-risk__text{
  font-size:.875rem;
  line-height:1.4;
  margin:0;
}
.lp-risk--red{ background:#fef2f2; border-color:#fee2e2; }
.lp-risk--red .lp-risk__title{ color:#dc2626; }
.lp-risk--red .lp-risk__text{ color:#7f1d1d; }

.lp-risk--orange{ background:#fff7ed; border-color:#ffedd5; }
.lp-risk--orange .lp-risk__title{ color:#ea580c; }
.lp-risk--orange .lp-risk__text{ color:#7c2d12; }

.lp-risk--amber{ background:#fffbeb; border-color:#fef3c7; }
.lp-risk--amber .lp-risk__title{ color:#d97706; }
.lp-risk--amber .lp-risk__text{ color:#78350f; }

/* === Section headings === */
.lp-h3{
  font-size:1.5rem;
  font-weight:900;
  color:#0f172a;
  margin:0 0 2rem 0;
  display:flex;
  align-items:center;
  gap:.75rem;
}
.lp-h3__num{
  width:2rem;
  height:2rem;
  border-radius:.75rem;
  background:#0f172a;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.875rem;
  font-weight:800;
}
.lp-h4{
  font-size:1.125rem;
  font-weight:900;
  color:#2563eb;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin:0 0 1.5rem 0;
}

/* === Orientation catalogue === */
.lp-orientation{
  display:flex;
  flex-direction:column;
  gap:3rem;
  margin:0 0 4rem 0;
}
.lp-orientation__grid{ display:grid; gap:1rem; }
.lp-item{
  display:flex;
  gap:1rem;
  padding:1rem;
  border-radius:1rem;
  background:#f8fafc;
  border:1px solid #f1f5f9;
}
.lp-item__icon{ font-size:1.5rem; line-height:1; }
.lp-item__title{ display:block; color:#0f172a; font-weight:800; }
.lp-item__text{ margin:.25rem 0 0 0; font-size:.875rem; color:#475569; line-height:1.6; }

/* === Table === */
.lp-table-wrap{ overflow-x:auto; margin:0 0 4rem 0; }
.lp-table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:.875rem;
}
.lp-table__head-row{ border-bottom:2px solid #f1f5f9; }
.lp-table__th{
  padding:1rem .5rem;
  font-weight:900;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.625rem;
}
.lp-table__body tr{ border-bottom:1px solid #f1f5f9; }
.lp-table__td{
  padding:1rem .5rem;
  color:#475569;
  vertical-align:top;
}
.lp-table__td--strong{ font-weight:800; color:#0f172a; }

/* === Pro box === */
.lp-pro-box{
  background:#2563eb;
  color:#fff;
  padding:2rem;
  border-radius:2rem;
  position:relative;
  overflow:hidden;
  margin:0 0 4rem 0;
}
.lp-pro-box__title{
  margin:0 0 .5rem 0;
  font-size:1.25rem;
  font-weight:900;
  font-style:italic;
  display:flex;
  gap:.5rem;
  align-items:center;
}
.lp-pro-box__text{
  margin:0;
  color:#dbeafe;
  font-weight:600;
  line-height:1.7;
}
.lp-pro-box__mark{
  position:absolute;
  right:-1rem;
  bottom:-1rem;
  opacity:.1;
  transform:scale(1.5);
}
.lp-pro-box__svg{ width:10rem; height:10rem; display:block; }

/* === FAQ === */
.lp-faq__title{
  font-size:1.5rem;
  font-weight:900;
  color:#0f172a;
  margin:0 0 2rem 0;
}
.lp-faq{
  display:flex;
  flex-direction:column;
  gap:1rem;
  margin:0 0 4rem 0;
}
.lp-faq__item{
  background:#f8fafc;
  border:1px solid #f1f5f9;
  border-radius:1rem;
  padding:1.5rem;
  cursor:pointer;
}
.lp-faq__summary{
  font-weight:800;
  color:#0f172a;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
}
.lp-faq__chev{
  color:#94a3b8;
  transition:transform .2s ease;
}
.lp-faq__item[open] .lp-faq__chev{ transform:rotate(180deg); }
.lp-faq__answer{
  margin:1rem 0 0 0;
  font-size:.875rem;
  color:#475569;
  line-height:1.7;
}

/* === Conclusion === */
.lp-conclusion{
  background:#0f172a;
  padding:2rem;
  border-radius:2rem;
  text-align:center;
  color:#fff;
}
.lp-conclusion__title{
  margin:0 0 1rem 0;
  font-size:1.25rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.lp-conclusion__lead{
  margin:0 auto 2rem auto;
  max-width:42rem;
  color:#94a3b8;
  line-height:1.7;
}
.lp-steps{
  display:flex;
  flex-direction:column;
  gap:1rem;
  justify-content:center;
}
@media (min-width:768px){
  .lp-steps{ flex-direction:row; }
}
.lp-step{
  background:#1e293b;
  padding:1rem 1.5rem;
  border-radius:1rem;
}
.lp-step__title{
  display:block;
  color:#60a5fa;
  font-weight:900;
  font-size:1.125rem;
  margin:0 0 .25rem 0;
}
.lp-step__label{
  display:block;
  font-size:.75rem;
  color:#64748b;
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:.12em;
}

/* ===========================
   Base helpers (no Tailwind)
   =========================== */

.lp-section{
  padding-left: 1rem;
  padding-right: 1rem;
}
   
.lp-text-sm{ font-size:.875rem; line-height:1.7; }
.lp-text-muted{ color:#475569; } /* slate-600 */
.lp-mb-4{ margin-bottom:1rem; }
.lp-mb-6{ margin-bottom:1.5rem; }

/* ===========================
   2) Grille des produits
   =========================== */
.lp-section--products{ margin-bottom:3rem; } /* mb-12 */
.lp-page-title{
  font-size:2.25rem; /* text-4xl */
  font-weight:900;
  color:#0f172a;
  letter-spacing:-.02em;
  margin:0 0 1rem 0;
  line-height:1.05;
}

@media (min-width:768px){
  .lp-page-title{ font-size:3rem; } /* md:text-5xl */
}
.lp-page-lead{
  font-size:1.125rem; /* text-lg */
  color:#475569; /* slate-600 */
  max-width:48rem; /* max-w-3xl */
  line-height:1.7; /* leading-relaxed */
  margin:0;
}

/* ===========================
   3) ARTICLE SECTION (carte)
   =========================== */
.lp-article-card{
  width: 100%;           /* largeur 100% */
  margin: 0 auto;        /* centrer si besoin */
  background:#fff;
  border:1px solid #f1f5f9; /* slate-100 */
  border-radius:2.5rem;
  box-sizing: border-box;
  max-width: var(--wp--style--global--wide-size);
}

/* "prose" replacement (keep simple + safe in WP) */
.lp-prose{ max-width:none; }
.lp-prose p{ margin:0 0 1rem 0; }

/* ===========================
   4) HEADER INTERNE
   =========================== */
.lp-inner-header{ margin-bottom:3rem; text-align:center; } /* mb-12 */
.lp-inner-header__title{
  font-size:2.25rem; /* text-4xl */
  font-weight:900;
  color:#0f172a;
  letter-spacing:-.02em;
  margin:0 0 1rem 0;
  line-height:1.15;
}
.lp-pill{
  display:inline-block;
  border-radius:999px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.2em;
}
.lp-pill--blue{
  background:#eff6ff; /* blue-50 */
  color:#2563eb; /* blue-600 */
  padding:.375rem 1rem; /* px-4 py-1.5 */
  font-size:.625rem; /* text-[10px] */
  margin-bottom:1.5rem; /* mb-6 */
}
.lp-meta-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  font-size:.75rem; /* text-xs */
  font-weight:800;
  color:#94a3b8; /* slate-400 */
  text-transform:uppercase;
  letter-spacing:.12em;
}
.lp-dot{
  width:.25rem;
  height:.25rem;
  background:#cbd5e1; /* slate-300 */
  border-radius:999px;
}

/* ===========================
   5) H2 sections
   =========================== */
.lp-h2{
  font-size:1.5rem; /* text-2xl */
  font-weight:900;
  color:#0f172a;
  margin:0 0 2rem 0; /* mb-8 */
}

/* ===========================
   6) H3 subtitles
   =========================== */
.lp-h3{
  font-size:1.125rem; /* text-lg */
  font-weight:900;
  color:#2563eb; /* blue-600 */
  text-transform:uppercase;
  letter-spacing:.12em;
  margin:0 0 1rem 0; /* mb-4 */
}
.lp-h3--no-margin{ margin:0; }

/* ===========================
   7) Intro quote + risks
   =========================== */
.lp-quote{
  font-size:1.25rem; /* text-xl */
  color:#475569; /* slate-600 */
  line-height:1.7;
  font-style:italic;
  border-left:4px solid #3b82f6; /* blue-500 */
  padding-left:1.5rem; /* pl-6 */
  margin:0 0 3rem 0; /* mb-12 */
}

.lp-risk-grid{
  display:grid;
  gap:1.5rem; /* gap-6 */
  margin:0 0 1.5rem 0; /* mb-16 */
}
@media (min-width:768px){
  .lp-risk-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
.lp-risk{
  padding:1.5rem; /* p-6 */
  border-radius:1.5rem; /* rounded-3xl */
  border:1px solid transparent;
}
.lp-risk--red{ background:#fef2f2; border-color:#fee2e2; }
.lp-risk--orange{ background:#fff7ed; border-color:#ffedd5; }
.lp-risk--amber{ background:#fffbeb; border-color:#fef3c7; }

.lp-risk__kicker{
  font-weight:900;
  font-size:.75rem; /* text-xs */
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:.5rem; /* mb-2 */
}
.lp-risk__text{
  font-size:.875rem; /* text-sm */
  line-height:1.35; /* leading-snug */
  margin:0;
}
.lp-risk__kicker--red{ color:#dc2626; }
.lp-risk__text--red{ color:#7f1d1d; }
.lp-risk__kicker--orange{ color:#ea580c; }
.lp-risk__text--orange{ color:#7c2d12; }
.lp-risk__kicker--amber{ color:#d97706; }
.lp-risk__text--amber{ color:#78350f; }

/* ===========================
   8) Checklist block
   =========================== */
.lp-panel{
  border:1px solid #f1f5f9; /* slate-100 */
  border-radius:2rem; /* rounded-[2rem] */
  padding:2rem; /* p-8 */
}
.lp-panel--muted{ background:#f8fafc; } /* slate-50 */
.lp-panel__kicker{
  font-size:.625rem; /* text-[10px] */
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#0f172a;
  margin-bottom:1rem;
}
.lp-bullets{
  display:grid;
  gap:.75rem; /* gap-3 */
  font-size:.875rem;
  color:#334155; /* slate-700 */
  list-style:none;
  margin:0;
  padding:0;
}
.lp-bullets--tight{ gap:.5rem; }
.lp-bullets__item{ display:flex; gap:.75rem; }
.lp-bullets__dot{ color:#2563eb; font-weight:900; }

/* ===========================
   9) Attributs & critères
   =========================== */
.lp-stack{ display:flex; flex-direction:column; gap:1.5rem; margin-bottom:1.5rem; } /* space-y-6 mb-16 */
.lp-stack--tight{ gap:1rem; }

.lp-card{
  background:#fff;
  border:1px solid #f1f5f9;
  border-radius:2rem;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
}
.lp-card--shadow{ box-shadow:0 1px 2px rgba(15,23,42,.06);margin-bottom:1.5rem; }

.lp-card__head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem;
  margin-bottom:1rem;
}
.lp-pill--slate{
  font-size:.625rem; /* text-[10px] */
  font-weight:900;
  color:#475569; /* slate-600 */
  background:#f1f5f9; /* slate-100 */
  padding:.375rem .75rem; /* px-3 py-1.5 */
  letter-spacing:.12em;
}

.lp-subcard{
  background:#f8fafc; /* slate-50 */
  border:1px solid #f1f5f9;
  border-radius:1rem;
  padding:1.25rem; /* p-5 */
}
.lp-subcard--white{ background:#fff; }
.lp-subcard__kicker{
  font-size:.625rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#0f172a;
  margin-bottom:.5rem;
}

/* ===========================
   10) Tableau comparatif
   =========================== */
.lp-table-wrap{ overflow-x:auto; margin-bottom:2.5rem; } /* mb-10 */
.lp-table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:.875rem;
}
.lp-table__head-row{ border-bottom:2px solid #f1f5f9; }
.lp-table__th{
  padding:1rem .5rem;
  font-weight:900;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.625rem;
}
.lp-table__body tr{ border-bottom:1px solid #f1f5f9; }
.lp-table__row--top{ vertical-align:top; }
.lp-table__td{ padding:1rem .5rem; color:#475569; vertical-align:top; }
.lp-table__td--strong{ font-weight:800; color:#0f172a; }

.lp-link{ color:inherit; text-decoration:none; }
.lp-link:hover{ color:#2563eb; }

.lp-tag-row{
  margin-top:.5rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.lp-pill--tiny{
  font-size:.625rem;
  letter-spacing:.12em;
  padding:.25rem .5rem;
  border-radius:999px;
}

/* ===========================
   11) Bloc expertise (blockquote)
   =========================== */
.lp-expert-quote{
  background:#2563eb;
  color:#fff;
  padding:2rem;
  border-radius:2rem;
  margin:0 0 4rem 0; /* mb-16 */
  position:relative;
  overflow:hidden;
}
.lp-expert-quote__cite{
  font-style:normal;
  color:#dbeafe;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.625rem;
}
.lp-expert-quote__text{
  margin:.75rem 0 0 0;
  color:#fff;
  font-weight:600;
  line-height:1.7;
}
.lp-expert-quote__mark{
  position:absolute;
  right:-1rem;
  bottom:-1rem;
  opacity:.1;
  transform:scale(1.5);
}
.lp-expert-quote__svg{ width:10rem; height:10rem; display:block; }

/* ===========================
   12) Scénarios d’usage
   =========================== */
.lp-scenario{ display:flex; align-items:flex-start; gap:1rem; }
.lp-scenario__badge{
  width:2.5rem;
  height:2.5rem;
  border-radius:1rem;
  background:#fff;
  border:1px solid #e2e8f0; /* slate-200 */
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#334155;
  flex:0 0 auto;
}
.lp-scenario__body{ flex:1 1 auto; }
.lp-scenario__kicker{
  font-size:.625rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#0f172a;
  margin-bottom:.5rem;
}
.lp-scenario__title{
  margin:0 0 .75rem 0;
  font-weight:900;
  color:#0f172a;
  font-size:1.125rem;
}

.lp-grid-2{ display:grid; gap:1rem; }
@media (min-width:768px){
  .lp-grid-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* ===========================
   13) Installation
   =========================== */
.lp-install{ display:flex; align-items:flex-start; gap:1rem; }
.lp-install__badge{
  width:2.5rem;
  height:2.5rem;
  border-radius:1rem;
  background:#0f172a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex:0 0 auto;
}
.lp-install__title{
  margin:0 0 .5rem 0;
  font-size:1.125rem;
  font-weight:900;
  color:#0f172a;
}

/* ===========================
   14) Entretien / durée / coût total
   =========================== */
.lp-line{ display:flex; align-items:flex-start; gap:1rem; }
.lp-line__icon{
  width:2.5rem;
  height:2.5rem;
  border-radius:1rem;
  background:#fff;
  border:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#334155;
  flex:0 0 auto;
}
.lp-line__kicker{
  font-size:.625rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#0f172a;
  margin-bottom:.5rem;
}

/* ===========================
   15) FAQ details
   =========================== */
.lp-faq{ margin:0 0 4rem 0; display:flex; flex-direction:column; gap:1rem; }
.lp-faq__item{
  background:#f8fafc;
  border:1px solid #f1f5f9;
  border-radius:1rem;
  padding:1.5rem;
  cursor:pointer;
}
.lp-faq__summary{
  font-weight:800;
  color:#0f172a;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
}
.lp-faq__chev{ color:#94a3b8; transition:transform .2s ease; }
.lp-faq__item[open] .lp-faq__chev{ transform:rotate(180deg); }
.lp-faq__answer{
  margin:1rem 0 0 0;
  font-size:.875rem;
  color:#475569;
  line-height:1.7;
}

/* ===========================
   16) Conclusion sombre + 3 étapes
   =========================== */
.lp-conclusion{
  background:#0f172a;
  padding:2rem;
  border-radius:2rem;
  text-align:center;
  color:#fff;
}
.lp-conclusion__title{
  margin:0 0 1rem 0;
  font-size:1.25rem; /* text-xl */
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.lp-conclusion__lead{
  margin:0 auto 2rem auto;
  max-width:42rem; /* max-w-2xl */
  color:#94a3b8; /* slate-400 */
  line-height:1.7;
}
.lp-steps{
  display:flex;
  flex-direction:column;
  gap:1rem;
  justify-content:center;
}
@media (min-width:768px){
  .lp-steps{ flex-direction:row; }
}
.lp-step{
  background:#1e293b; /* slate-800 */
  padding:1rem 1.5rem; /* px-6 py-4 */
  border-radius:1rem;
}
.lp-step__title{
  display:block;
  color:#60a5fa; /* blue-400 */
  font-weight:900;
  font-size:1.125rem;
  margin:0 0 .25rem 0;
}
.lp-step__label{
  display:block;
  font-size:.75rem;
  color:#64748b; /* slate-500 */
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:.12em;
}        


/*
  Mobile */
@media (max-width: 768px) {
  #custom-about-wrapper .ab-toc,  
  #custom-contactpage-wrapper .cb-toc,
  #custom-legal-wrapper .hb-toc {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

.lp-article-card {
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

/* Widget Amazon */
.sai-amz-widget,
.sai-amz-widget * {
  box-sizing: border-box;
}
	
.sai-amz-widget {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  border: 1px solid #f1f5f9;
  border-radius: 2.5rem;
  box-sizing: border-box;
  max-width: var(--wp--style--global--wide-size);
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

.sai-amz-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #111111;
}

.sai-amz-title {
  margin: 0;
  color: #000000;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sai-amz-intro {
  max-width: var(--wp--style--global--wide-size);
  margin: 0;
  color: #333333;
  font-size: 15px;
  line-height: 1.6;
}

.sai-amz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sai-amz-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #111111;
  overflow: hidden;
}

.sai-amz-image-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #111111;
}

.sai-amz-product-image {
  display: block;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sai-amz-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72%;
  height: 72%;
  border: 1px dashed #111111;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sai-amz-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  z-index: 1;
}

.sai-amz-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 14px;
}

.sai-amz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

.sai-amz-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.sai-amz-product-title {
  margin: 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.sai-amz-product-title-link {
  color: #000000;
  text-decoration: none;
}

.sai-amz-product-title-link:hover,
.sai-amz-product-title-link:focus {
  text-decoration: underline;
}

.sai-amz-rating {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
}

.sai-amz-price {
  color: #000000;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sai-amz-delivery {
  color: #444444;
  font-size: 12px;
  line-height: 1.35;
}

.sai-amz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 11px 12px;
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
}

.sai-amz-button:hover,
.sai-amz-button:focus {
  background: #ffffff;
  color: #111111;
}

.sai-amz-footer {
  margin: 16px 0 0 0;
  color: #555555;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .sai-amz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sai-amz-widget {
    border-radius: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .sai-amz-grid {
    grid-template-columns: 1fr;
  }

  .sai-amz-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .sai-amz-image-link {
    height: 100%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid #111111;
  }

  .sai-amz-card-content {
    padding: 12px;
  }
}

/* Uniformisation Woocommerce basé sur Widget Amazon*/
/* =========================
   Boutons produits WooCommerce
   Uniformisation style Amazon widget
   ========================= */

.wc-block-components-product-button__button,
.wc-block-grid__product-add-to-cart a,
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;

	padding: 11px 12px;

	background: #111111 !important;
	color: #ffffff !important;

	border: 1px solid #111111 !important;
	border-radius: 0;

	text-decoration: none;

	font-size: 13px;
	font-weight: 900;

	text-transform: uppercase;
	letter-spacing: 0.04em;

	line-height: 1.2;

	transition:
		background 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;

	box-sizing: border-box;
}

/* Hover / focus */

.wc-block-components-product-button__button:hover,
.wc-block-components-product-button__button:focus,
.wc-block-grid__product-add-to-cart a:hover,
.wc-block-grid__product-add-to-cart a:focus,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus,
.woocommerce a.button:hover,
.woocommerce a.button:focus,
.woocommerce button.button:hover,
.woocommerce button.button:focus,
.woocommerce input.button:hover,
.woocommerce input.button:focus {
	background: #ffffff !important;
	color: #111111 !important;
	border-color: #111111 !important;
}

/* Évite les tailles incohérentes Gutenberg */

.wc-block-components-product-button__button span {
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

/* =========================
   Badge rupture stock
   ========================= */

.wc-block-grid__product,
.wc-block-product,
.wc-block-components-product-image {
	position: relative;
}

.tt5c-out-of-stock-badge {
	background: #fff;
	border: 1px solid #43454b;
	border-radius: 4px;
	box-sizing: border-box;
	color: #43454b;

	display: inline-block;

	font-size: .875em;
	font-weight: 600;

	padding: .25em .75em;

	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 9;

	text-align: center;
	text-transform: uppercase;

	width: fit-content;

	line-height: 1;

	pointer-events: none;
}

/* Cache badge promo sur produits en rupture */

.outofstock .wc-block-components-product-sale-badge,
.outofstock .wc-block-components-product-sale-badge__wrapper,
.outofstock .wc-block-components-product-sale-badge__text {
	display: none !important;
}

/* Avis woocommerce */
.sai-amz-rating {
	color: #111111;
	font-size: 13px;
	font-weight: 700;

	display: flex;
	align-items: center;
	gap: 4px;
	margin: 6px 0 10px 0;
}

.sai-amz-rating span,
.sai-amz-rating {
	letter-spacing: 0.5px;
}