/*
 * Legato Audio : dictée du client du 3 décembre 2026 (inc/retours-3-decembre.php).
 */

/* ------------------------------------------------------------------------------------------------------------------
 * 1. Carte « Actualités » de L'entreprise : la revue des vrais articles, centrée dans le cadre, photos entières, une
 *    page tournée toutes les 7,5 s (11 s dans l'ancien bandeau). Les règles de placement du bandeau (passe 40) sont
 *    neutralisées.
 * ------------------------------------------------------------------------------------------------------------------ */
.carte-page__image:has(> .gazette-carte) {
	display: grid;
	place-items: center;
	background: radial-gradient(ellipse 60% 55% at 50% 46%, rgb(230 177 12 / 0.16), transparent 72%), #0E0E0F;
}

.carte-page__image > .motif-gazette40.gazette-carte {
	position: relative;
	inset: auto;
	display: block;
	width: 92%;
	height: auto;
	aspect-ratio: 1.55;
	translate: none;
	opacity: 1;
	perspective: 60rem;
}

.gazette-carte .gazette-page {
	gap: 3%;
	padding: 6% 6% 5%;
}

.gazette-carte .gazette-page__photo {
	flex: 0 0 46%;
	background-color: #0E0D0B;
	background-size: contain;
	filter: none;
}

.gazette-carte .gazette-page__titre {
	font-size: 7.4cqw;
}

@media (prefers-reduced-motion: no-preference) {
	.gazette-carte .motif-gazette40__feuille {
		animation: legato40-page 7.5s cubic-bezier(0.45, 0.05, 0.35, 1) infinite paused;
	}

	.gazette-carte .motif-gazette40__voile {
		animation: legato40-voile 7.5s cubic-bezier(0.45, 0.05, 0.35, 1) infinite paused;
	}

	.gazette-carte .motif-gazette40__face--verso .motif-gazette40__voile {
		animation-name: legato40-voile-verso;
	}

	.gazette-carte.est-visible :is(.motif-gazette40__feuille, .motif-gazette40__voile) {
		animation-play-state: running;
	}
}

/* ------------------------------------------------------------------------------------------------------------------
 * 2. Paiements rapides (page de commande). Le logo dessiné sous chaque bouton prend la hauteur du vrai bouton (40 px,
 *    centré) : plus de trait qui dépasse. Tant que les boutons ne sont pas là (classe express-attente, posée par
 *    assets/js/commande-express.js), le cadre garde les trois logos, comme pendant le chargement. Un peu plus d'air,
 *    et la ligne « Ou passez une commande classique ci-dessous » en ivoire, plus lisible.
 * ------------------------------------------------------------------------------------------------------------------ */
body.woocommerce-checkout .wc-block-components-express-payment__event-buttons > li {
	background-position: center;
	background-size: 100% 40px;
}

body.woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content {
	padding: 1.35rem 1.35rem 1rem;
}

body.woocommerce-checkout .wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons {
	gap: 0.875rem;
}

body.woocommerce-checkout .wc-block-components-express-payment-continue-rule {
	margin: 1.6rem auto 0.5rem !important;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	color: #F6F1E6;
}

html.express-attente body.woocommerce-checkout .wc-block-checkout:not(.is-loading) .wp-block-woocommerce-checkout-express-payment-block:not(:has(.wc-block-components-express-payment__event-buttons > li)) {
	position: relative;
	box-sizing: border-box;
	max-width: 40rem;
	min-height: 7.5rem;
	margin: 0.5rem auto 2.75rem;
	border: 1px solid rgb(230 177 12 / 0.28);
	border-radius: 4px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 48'%3E%3Crect width='166' height='48' rx='4' fill='%23000'/%3E%3Ctext x='83' y='31' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='19' font-weight='500' fill='%23fff'%3EApple Pay%3C/text%3E%3Crect x='177' width='166' height='48' rx='4' fill='%23FFC439'/%3E%3Ctext x='260' y='30' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='15' font-weight='700' font-style='italic' fill='%23003087'%3EPayPal%3C/text%3E%3Crect x='354.5' y='.5' width='165' height='47' rx='4' fill='%23000' stroke='%233c4043'/%3E%3Ctext x='437' y='31' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='19' font-weight='500' fill='%23fff'%3EG Pay%3C/text%3E%3C/svg%3E") center 2.4rem / calc(100% - 2.2rem) auto no-repeat,
		rgb(20 19 18 / 0.6);
}

html.express-attente body.woocommerce-checkout .wc-block-checkout:not(.is-loading) .wp-block-woocommerce-checkout-express-payment-block:not(:has(.wc-block-components-express-payment__event-buttons > li))::before {
	content: "Validation de commande express";
	position: absolute;
	top: 0;
	left: 50%;
	padding: 0 0.9rem;
	translate: -50% -50%;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wp--preset--color--or);
	background: var(--wp--preset--color--fond, #0E0E0F);
}

/* ------------------------------------------------------------------------------------------------------------------
 * 3. Actualités : une seule barre, la rubrique à gauche du mot cherché, séparées par un filet d'or. Sur téléphone, la
 *    rubrique passe au-dessus, sur toute la largeur.
 * ------------------------------------------------------------------------------------------------------------------ */
.recherche-actualites__ligne {
	gap: 0;
}

@media (min-width: 782px) {
	.recherche-actualites:has(.recherche-actualites__rubrique) {
		max-width: 52rem;
	}
}

.recherche-actualites .recherche-actualites__rubrique {
	flex: 0 0 auto;
	max-width: 17.5rem;
	min-height: 3.25rem;
	padding: 0.75em 2.4rem 0.75em 1.15em;
	border: 1px solid rgb(230 177 12 / 0.38);
	border-right: 0;
	border-radius: var(--legato-rayon-bouton) 0 0 var(--legato-rayon-bouton);
	appearance: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23E6B10C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center / 0.75rem,
		linear-gradient(180deg, #1C1D21, #141518);
	color: #F2C94C;
	font-family: var(--wp--preset--font-family--josefin-sans, sans-serif);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.recherche-actualites .recherche-actualites__rubrique:hover,
.recherche-actualites .recherche-actualites__rubrique:focus-visible {
	border-color: rgb(230 177 12 / 0.6);
}

.recherche-actualites .recherche-actualites__rubrique option {
	background: #141518;
	color: #F6F1E6;
	text-transform: none;
	letter-spacing: normal;
}

.recherche-actualites .recherche-actualites__rubrique + input[type="search"] {
	border-radius: 0 var(--legato-rayon-bouton) var(--legato-rayon-bouton) 0;
	border-left-color: rgb(230 177 12 / 0.22);
}

.recherche-actualites__ligne > .wp-element-button {
	margin-left: 0.6rem;
}

@media (max-width: 781.98px) {
	.recherche-actualites .recherche-actualites__rubrique {
		max-width: none;
		border-right: 1px solid rgb(230 177 12 / 0.38);
		border-bottom: 0;
		border-radius: var(--legato-rayon-bouton) var(--legato-rayon-bouton) 0 0;
	}

	.recherche-actualites .recherche-actualites__rubrique + input[type="search"] {
		border-left-color: rgb(230 177 12 / 0.38);
		border-top-color: rgb(230 177 12 / 0.22);
		border-radius: 0 0 var(--legato-rayon-bouton) var(--legato-rayon-bouton);
	}

	.recherche-actualites__ligne > .wp-element-button {
		margin: 0.6rem 0 0;
	}
}

/* ------------------------------------------------------------------------------------------------------------------
 * 5. Maillage : « Pour bien choisir » sous l'introduction des catégories de la boutique ; lien vers Notre technologie
 *    des fiches électroniques ; renvoi vers Distinctions et presse des fiches primées.
 * ------------------------------------------------------------------------------------------------------------------ */
.pour-bien-choisir {
	max-width: 46rem;
	margin: 0 auto 2rem;
	text-align: center;
}

.pour-bien-choisir__titre {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--josefin-sans, sans-serif);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--or, #E6B10C);
}

.pour-bien-choisir ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pour-bien-choisir a {
	color: #F6F1E6;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-decoration-color: rgb(230 177 12 / 0.5);
	text-underline-offset: 0.25em;
}

.pour-bien-choisir a:hover,
.pour-bien-choisir a:focus-visible {
	color: #F2C94C;
	text-decoration-color: currentColor;
}

.lien-distinctions {
	margin-top: 1rem;
	font-size: 0.9375rem;
	color: #F2C94C;
}

.lien-distinctions a {
	color: #F6F1E6;
	text-decoration: underline;
	text-decoration-color: rgb(230 177 12 / 0.5);
	text-underline-offset: 0.25em;
}
