/* ==================================================================================================================
 * Passe 55 : retours du client du 1er décembre 2026 (inc/retours-1er-decembre.php).
 * ================================================================================================================== */

/* ------------------------------------------------------------------------------------------------------------------
 * 1. Paiements rapides de la page de commande : Apple Pay, PayPal, Google Pay, de gauche à droite (PayPal au milieu).
 *    Sur un appareil sans Apple Pay, PayPal puis Google Pay.
 * ------------------------------------------------------------------------------------------------------------------ */
.wc-block-components-express-payment ul.wc-block-components-express-payment__event-buttons > li[id$="_applePay"] {
	order: 1;
}

.wc-block-components-express-payment ul.wc-block-components-express-payment__event-buttons > li[id^="express-payment-method-ppcp"] {
	order: 2;
}

.wc-block-components-express-payment ul.wc-block-components-express-payment__event-buttons > li[id$="_googlePay"] {
	order: 3;
}

/* ------------------------------------------------------------------------------------------------------------------
 * 2. Filet d'or vertical du manifeste (Notre technologie) : il touchait le texte. Le retrait passe sur les enfants
 *    (la mise en page « constrained » du groupe annulait celui du groupe).
 * ------------------------------------------------------------------------------------------------------------------ */
body .techno-manifeste.has-global-padding > * {
	padding-left: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
	box-sizing: border-box;
}

/* ------------------------------------------------------------------------------------------------------------------
 * 3. Systèmes clients : l'écrin d'introduction devient une composition typographique, sans cadre ni fond : deux
 *    filets d'or courts encadrent l'invitation et la phrase ; moins de vide autour, largeur de lecture resserrée.
 * ------------------------------------------------------------------------------------------------------------------ */
body.page-systemes-clients main .wp-block-post-content {
	gap: 0.9rem;
	max-width: 38rem;
	margin: 0 auto clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	padding: clamp(1.4rem, 1.1rem + 1vw, 2rem) clamp(0.5rem, 0.25rem + 1vw, 1.25rem);
	border: 0;
	border-radius: 0;
	background:
		linear-gradient(90deg, rgb(230 177 12 / 0), rgb(230 177 12 / 0.55) 50%, rgb(230 177 12 / 0)) top center / 9rem 1px no-repeat,
		linear-gradient(90deg, rgb(230 177 12 / 0), rgb(230 177 12 / 0.55) 50%, rgb(230 177 12 / 0)) bottom center / 9rem 1px no-repeat;
}

body.page-systemes-clients .recherche-systemes:has(+ .wp-block-post-content) {
	margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

body.page-systemes-clients main .wp-block-post-content > p.systemes-invitation {
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	line-height: 1.9;
	color: var(--wp--preset--color--or);
}

body.page-systemes-clients main .wp-block-post-content > p.systemes-invitation::after {
	width: 0.36rem;
	height: 0.36rem;
	margin-top: 0.85rem;
}

body.page-systemes-clients main .wp-block-post-content > p.chapeau-page {
	max-width: 32rem;
	font-weight: 300;
	font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
	line-height: 1.65;
	letter-spacing: 0.01em;
	color: rgb(246 241 230 / 0.92);
}

/* ------------------------------------------------------------------------------------------------------------------
 * 4. Mention de la prise Schuko sous le bouton d'achat (câbles secteur et câbles électroniques).
 * ------------------------------------------------------------------------------------------------------------------ */
.mention-schuko {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: rgb(246 241 230 / 0.7);
}

.mention-schuko::before {
	content: "";
	display: inline-block;
	width: 0.32rem;
	height: 0.32rem;
	margin-right: 0.55rem;
	vertical-align: 0.15em;
	background: var(--wp--preset--color--or);
	transform: rotate(45deg);
}

/* ------------------------------------------------------------------------------------------------------------------
 * 5. Carte « Actualités » de L'entreprise : une gazette Legato ouverte, vue en perspective, dont la page de droite
 *    se tourne lentement puis revient (cycle de 9 s) ; la gazette oscille à peine. Papier anthracite, filets et
 *    titres en or, image en dégradé chaud. Mouvement réduit : gazette immobile, page à demi tournée.
 * ------------------------------------------------------------------------------------------------------------------ */
.carte-page__image:has(> .gazette) {
	display: grid;
	place-items: center;
	perspective: 900px;
	background: radial-gradient(ellipse 60% 55% at 50% 46%, rgb(230 177 12 / 0.2), transparent 72%), #0E0E0F;
}

.gazette {
	display: block;
	width: 64%;
	aspect-ratio: 1.45;
	transform-style: preserve-3d;
	transform: rotateX(28deg) rotateY(-10deg) rotateZ(-2deg);
	filter: drop-shadow(0 1.4rem 1.2rem rgb(0 0 0 / 0.6));
}

.gazette__scene {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
}

.gazette__feuille,
.gazette__recto,
.gazette__verso {
	position: absolute;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 5.5%;
	width: 50%;
	height: 100%;
	padding: 6% 5.5%;
	box-sizing: border-box;
	background: linear-gradient(180deg, #2A2925, #1C1B19);
	border: 1px solid rgb(230 177 12 / 0.28);
}

.gazette__feuille--gauche {
	left: 0;
	border-radius: 2px 0 0 2px;
	background: linear-gradient(90deg, #1E1D1A, #2A2925 88%, #1A1917);
}

.gazette__feuille--droite {
	left: 50%;
	border-radius: 0 2px 2px 0;
	background: linear-gradient(90deg, #1A1917, #2A2925 12%, #24231F);
}

.gazette__feuille--tourne {
	left: 50%;
	padding: 0;
	border: 0;
	background: none;
	transform-origin: left center;
	transform-style: preserve-3d;
}

.gazette__recto,
.gazette__verso {
	left: 0;
	width: 100%;
	backface-visibility: hidden;
	border-radius: 0 2px 2px 0;
}

.gazette__verso {
	transform: rotateY(180deg);
	border-radius: 2px 0 0 2px;
	background: linear-gradient(270deg, #1E1D1A, #2B2A26 85%, #1A1917);
}

.gazette__titre {
	display: block;
	height: 9%;
	border-bottom: 1px solid rgb(230 177 12 / 0.75);
	background: linear-gradient(90deg, rgb(230 177 12 / 0.9) 0 46%, transparent 46%) left 30% / 100% 34% no-repeat;
}

.gazette__photo {
	display: block;
	height: 30%;
	border: 1px solid rgb(230 177 12 / 0.35);
	background: radial-gradient(ellipse at 40% 35%, rgb(242 201 76 / 0.55), rgb(120 84 10 / 0.35) 45%, #191816 80%);
}

.gazette__ligne {
	display: block;
	height: 2.2%;
	border-radius: 1px;
	background: rgb(230 225 210 / 0.22);
}

.gazette__ligne:nth-child(odd) {
	width: 86%;
}

.gazette__verso .gazette__ligne:first-child {
	height: 4%;
	width: 60%;
	background: rgb(230 177 12 / 0.7);
}

@media (prefers-reduced-motion: no-preference) {
	.gazette {
		animation: gazette-balancement 9s ease-in-out infinite;
	}

	.gazette__feuille--tourne {
		animation: gazette-page 9s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
	}

	.carte-page:is(:hover, :focus-visible) .gazette__feuille--tourne {
		animation-duration: 6s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gazette__feuille--tourne {
		transform: rotateY(-62deg);
	}
}

@keyframes gazette-balancement {
	0%, 100% { transform: rotateX(28deg) rotateY(-10deg) rotateZ(-2deg); }
	50% { transform: rotateX(25deg) rotateY(-4deg) rotateZ(-1deg); }
}

@keyframes gazette-page {
	0%, 12% { transform: rotateY(0deg); }
	46%, 58% { transform: rotateY(-178deg); }
	92%, 100% { transform: rotateY(0deg); }
}

/* ------------------------------------------------------------------------------------------------------------------
 * 6. Panier et commande : mention de livraison (France 20 €, autres pays sur devis), globe or devant les autres pays.
 * ------------------------------------------------------------------------------------------------------------------ */
.mention-livraison--monde::before {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 0.95em;
	margin-right: 0.4em;
	vertical-align: -0.14em;
	background-color: var(--wp--preset--color--or);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.7 3.9 5.7 3.9 9s-1.3 6.3-3.9 9c-2.6-2.7-3.9-5.7-3.9-9S9.4 5.7 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.7 3.9 5.7 3.9 9s-1.3 6.3-3.9 9c-2.6-2.7-3.9-5.7-3.9-9S9.4 5.7 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------------------------------------------------------------
 * 7. Rappel des CGV sous les paiements rapides ; mention « occasion » des Bonnes affaires (même style que Schuko).
 * ------------------------------------------------------------------------------------------------------------------ */
.mention-express {
	order: 4;
	flex-basis: 100%;
	margin: 0.85rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	text-align: center;
	color: rgb(246 241 230 / 0.66);
}

.mention-express a,
.mention-occasion a {
	color: var(--wp--preset--color--or-clair);
}

/* ------------------------------------------------------------------------------------------------------------------
 * 8. Comparatifs des câbles (catégories) plus lisibles : une fiche par modèle au lieu d'un tableau dense. Sur
 *    ordinateur, chaque modèle est une carte en grille : à gauche le nom, les versions, le prix et la distinction ;
 *    à droite trois rubriques titrées (Principe, À l'écoute, Pour quel système). Groupes (passifs, électroniques)
 *    annoncés par un filet d'or à losange. Sur téléphone : mêmes cartes, rubriques empilées.
 * ------------------------------------------------------------------------------------------------------------------ */
.comparatif table,
.comparatif tbody {
	display: block;
	width: 100%;
}

.comparatif thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.comparatif tbody tr {
	display: grid;
	grid-template-columns: minmax(11rem, 15rem) repeat(3, minmax(0, 1fr));
	grid-template-areas: "modele principe ecoute systeme" "prix principe ecoute systeme";
	grid-template-rows: auto 1fr;
	column-gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
	margin: 0 0 1rem;
	padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem) clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem);
	border: 1px solid rgb(230 177 12 / 0.16);
	border-radius: var(--legato-rayon, 2px);
	background:
		radial-gradient(70% 120% at 0% 0%, rgb(230 177 12 / 0.06), transparent 60%),
		linear-gradient(180deg, #19191B, #131315);
	transition: border-color 0.35s ease, box-shadow 0.45s ease;
}

.comparatif tbody tr:hover {
	border-color: rgb(230 177 12 / 0.42);
	box-shadow: 0 1.25rem 2.5rem -1.75rem rgb(0 0 0 / 0.9), 0 0 2rem -1rem rgb(230 177 12 / 0.25);
}

.comparatif tbody tr:hover td {
	background: none;
}

.comparatif td {
	display: block;
	padding: 0;
	border: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #D9D8D5;
}

.comparatif td.comparatif__modele {
	grid-area: modele;
	min-width: 0;
}

.comparatif td.comparatif__prix {
	grid-area: prix;
	margin-top: 0.65rem;
	font-family: var(--wp--preset--font-family--josefin-sans);
	font-size: 1.125rem;
	letter-spacing: 0.02em;
}

.comparatif td.comparatif__prix::before {
	content: "À partir de";
	display: block;
	margin-bottom: 0.1rem;
	color: #8F8E8A;
	font-family: var(--wp--preset--font-family--interface);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.comparatif td:nth-child(3) {
	grid-area: principe;
}

.comparatif td:nth-child(4) {
	grid-area: ecoute;
}

.comparatif td:nth-child(5) {
	grid-area: systeme;
}

.comparatif td:nth-child(n + 3)::before {
	content: attr(data-label);
	display: block;
	margin-bottom: 0.45rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgb(230 177 12 / 0.22);
	color: var(--wp--preset--color--or);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.comparatif__modele > a {
	font-size: 1.375rem;
	letter-spacing: 0.02em;
}

.comparatif__variantes {
	margin-top: 0.45rem;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
}

.comparatif__distinction {
	display: inline-block;
	margin-top: 0.7rem;
	padding: 0.22rem 0.6rem;
	border: 1px solid rgb(230 177 12 / 0.45);
	border-radius: 999px;
	font-size: 0.625rem;
}

/* Groupes : « Passifs », « Électroniques » entre deux filets, losange au centre. */
.comparatif tbody tr.comparatif__groupe {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0 1rem;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.comparatif tbody tr.comparatif__groupe::before,
.comparatif tbody tr.comparatif__groupe::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgb(230 177 12 / 0.5));
}

.comparatif tbody tr.comparatif__groupe::after {
	background: linear-gradient(90deg, rgb(230 177 12 / 0.5), transparent);
}

.comparatif .comparatif__groupe th {
	display: block;
	padding: 0;
	border: 0;
	color: var(--wp--preset--color--or);
	font-size: 0.75rem;
	letter-spacing: 0.24em;
	white-space: nowrap;
}

@media (max-width: 899.98px) {
	.comparatif tbody tr {
		grid-template-columns: 1fr auto;
		grid-template-areas: "modele prix" "principe principe" "ecoute ecoute" "systeme systeme";
		grid-template-rows: auto;
		row-gap: 1rem;
	}

	.comparatif td.comparatif__prix {
		margin-top: 0;
		text-align: right;
	}

	.comparatif td[data-label]::before {
		font-size: 0.625rem;
	}
}

/* ------------------------------------------------------------------------------------------------------------------
 * 9. Comparatif des approches dites actives (inc/comparatif-actifs.php) : tableau sobre, ligne Legato en écrin or.
 * ------------------------------------------------------------------------------------------------------------------ */
.comparatif-actifs {
	max-width: 68rem;
	margin: clamp(2rem, 1.5rem + 2vw, 3.25rem) auto clamp(1.5rem, 1rem + 2vw, 2.5rem);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
	border: 1px solid rgb(230 177 12 / 0.22);
	border-radius: var(--legato-rayon, 2px);
	background: radial-gradient(80% 60% at 50% 0%, rgb(230 177 12 / 0.06), transparent 70%), linear-gradient(180deg, #17171A, #111113);
}

.comparatif-actifs__surtitre {
	margin: 0;
	color: var(--wp--preset--color--or);
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-align: center;
	text-transform: uppercase;
}

.comparatif-actifs__titre {
	margin: 0.5rem 0 1.5rem;
	color: var(--wp--preset--color--blanc);
	font-family: var(--wp--preset--font-family--josefin-sans);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
	font-weight: 300;
	letter-spacing: 0.03em;
	text-align: center;
}

.comparatif-actifs table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.comparatif-actifs thead th {
	padding: 0 1rem 0.75rem;
	border-bottom: 1px solid rgb(230 177 12 / 0.4);
	color: var(--wp--preset--color--or);
	font-size: 0.625rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-align: left;
	text-transform: uppercase;
}

.comparatif-actifs tbody th,
.comparatif-actifs tbody td {
	padding: 1rem;
	border-bottom: 1px solid #2B2C30;
	color: #CFCECA;
	text-align: left;
	vertical-align: top;
}

.comparatif-actifs tbody th {
	width: 22%;
	text-transform: none;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--blanc);
	font-family: var(--wp--preset--font-family--josefin-sans);
	font-weight: 400;
	font-size: 1rem;
}

.comparatif-actifs tbody td:nth-child(3),
.comparatif-actifs tbody td:nth-child(4) {
	width: 17%;
	color: #A9A8A4;
}

.comparatif-actifs__legato th,
.comparatif-actifs__legato td {
	background: linear-gradient(90deg, rgb(230 177 12 / 0.1), rgb(230 177 12 / 0.03));
	border-top: 1px solid rgb(230 177 12 / 0.55);
	border-bottom: 1px solid rgb(230 177 12 / 0.55) !important;
	color: #EDEBE6 !important;
}

.comparatif-actifs__legato th {
	color: var(--wp--preset--color--or) !important;
	font-size: 1.125rem !important;
}

.comparatif-actifs__legato th span {
	display: block;
	text-transform: none;
	margin-top: 0.25rem;
	color: #B9B7B1;
	font-family: var(--wp--preset--font-family--interface);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

.comparatif-actifs__note {
	margin: 1.25rem auto 0;
	max-width: 44rem;
	color: #B9B7B1;
	font-size: 0.9375rem;
	font-style: italic;
	text-align: center;
}

@media (max-width: 781.98px) {
	.comparatif-actifs thead {
		display: none;
	}

	.comparatif-actifs table,
	.comparatif-actifs tbody,
	.comparatif-actifs tr,
	.comparatif-actifs th,
	.comparatif-actifs td {
		display: block;
		width: auto !important;
	}

	.comparatif-actifs tbody tr {
		margin-bottom: 0.9rem;
		border: 1px solid #2B2C30;
		border-radius: var(--legato-rayon, 2px);
	}

	.comparatif-actifs tbody th,
	.comparatif-actifs tbody td {
		padding: 0.6rem 0.9rem;
		border-bottom: 0;
	}

	.comparatif-actifs tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		color: var(--wp--preset--color--or);
		font-size: 0.5625rem;
		letter-spacing: 0.16em;
		text-transform: uppercase;
	}

	.comparatif-actifs__legato {
		border-color: rgb(230 177 12 / 0.55) !important;
	}
}
