/*
 * Passe 51 (26/11/2026) : retours du client.
 * 1. Lignée de l'Ubiquita (inc/retours-26-novembre.php) : trois étapes, Elettronico, Anniversario, Ubiquita, reliées
 *    par un filet or ; chaque étape garde la place d'une photo (cadre au nom du modèle, remplacé par l'image quand le
 *    client l'enverra).
 * 2. Paiements rapides de la page de commande : PayPal reprend ses couleurs d'origine (p6) ; au survol, au clavier et
 *    à l'appui, le bouton s'élève légèrement sous un halo or, et s'enfonce à la validation.
 */

/* 1. Lignée de l'Ubiquita */
.lignee-ubiquita {
	--lignee-or: var(--wp--preset--color--or, #e6b10c);
	--lignee-or-clair: var(--wp--preset--color--or-clair, #f2c94c);
	--lignee-texte: var(--wp--preset--color--texte, #c7c7c7);
	--lignee-blanc: var(--wp--preset--color--blanc, #fff);
	margin: clamp(2.5rem, 6vw, 4.5rem) 0;
	padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
	border-top: 1px solid rgb(230 177 12 / 0.35);
	border-bottom: 1px solid rgb(230 177 12 / 0.35);
	background: radial-gradient(70% 60% at 50% 0%, rgb(230 177 12 / 0.05), rgb(230 177 12 / 0) 70%);
	text-align: center;
}

.lignee-ubiquita .lignee-ubiquita__surtitre {
	margin: 0;
	color: var(--lignee-or);
	font-size: 0.75rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.lignee-ubiquita .lignee-ubiquita__titre {
	margin: 0.7rem 0 0.9rem;
	color: var(--lignee-blanc);
	font-family: var(--wp--preset--font-family--josefin-sans, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
	font-weight: 300;
	line-height: 1.15;
	text-transform: none;
}

.lignee-ubiquita .lignee-ubiquita__titre::after {
	content: none;
}

.lignee-ubiquita .lignee-ubiquita__intro {
	max-width: 38rem;
	margin: 0 auto;
	color: var(--lignee-texte);
	line-height: 1.6;
}

.lignee-ubiquita .lignee-ubiquita__etapes {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: lignee;
}

/* Filet qui relie les trois étapes, à mi-hauteur des cadres */
.lignee-ubiquita .lignee-ubiquita__etapes::before {
	content: "";
	position: absolute;
	top: 4.5rem;
	right: 16%;
	left: 16%;
	height: 1px;
	background: linear-gradient(to right, rgb(230 177 12 / 0.15), rgb(230 177 12 / 0.7), rgb(230 177 12 / 0.15));
}

.lignee-ubiquita .lignee-ubiquita__etapes > li.lignee-ubiquita__etape {
	position: relative;
	margin: 0;
	padding: 0;
	counter-increment: lignee;
}

.lignee-ubiquita .lignee-ubiquita__photo {
	position: relative;
	display: grid;
	width: min(100%, 13rem);
	height: 9rem;
	margin: 0 auto;
	border: 1px solid rgb(230 177 12 / 0.35);
	border-radius: 2px;
	background:
		radial-gradient(60% 55% at 50% 45%, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0) 70%),
		linear-gradient(160deg, #1b1c1f, #121315);
	place-items: center;
	overflow: hidden;
}

.lignee-ubiquita .lignee-ubiquita__photo::before {
	content: counter(lignee, upper-roman);
	position: absolute;
	top: 0.6rem;
	left: 0.75rem;
	color: rgb(230 177 12 / 0.6);
	font-family: var(--wp--preset--font-family--josefin-sans, "Helvetica Neue", Arial, sans-serif);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
}

.lignee-ubiquita .lignee-ubiquita__photo span {
	color: rgb(242 201 76 / 0.55);
	font-family: var(--wp--preset--font-family--josefin-sans, "Helvetica Neue", Arial, sans-serif);
	max-width: 100%;
	padding: 0 0.6rem;
	font-size: 0.875rem;
	font-weight: 300;
	letter-spacing: 0.2em;
	overflow-wrap: anywhere;
	text-align: center;
	text-transform: uppercase;
}

.lignee-ubiquita .lignee-ubiquita__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lignee-ubiquita .lignee-ubiquita__etape:last-child .lignee-ubiquita__photo {
	border-color: rgb(230 177 12 / 0.75);
	box-shadow: 0 0 0 4px rgb(230 177 12 / 0.08), 0 18px 40px -24px rgb(230 177 12 / 0.45);
}

.lignee-ubiquita .lignee-ubiquita__rang {
	margin: 1.1rem 0 0;
	color: var(--lignee-or);
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.lignee-ubiquita .lignee-ubiquita__nom {
	margin: 0.35rem 0 0.5rem;
	color: var(--lignee-blanc);
	font-family: var(--wp--preset--font-family--josefin-sans, "Helvetica Neue", Arial, sans-serif);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
}

.lignee-ubiquita .lignee-ubiquita__nom::after {
	content: none;
}

.lignee-ubiquita .lignee-ubiquita__nom a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--lignee-or);
}

.lignee-ubiquita .lignee-ubiquita__nom a:hover,
.lignee-ubiquita .lignee-ubiquita__nom a:focus-visible {
	color: var(--lignee-or-clair);
}

.lignee-ubiquita .lignee-ubiquita__texte {
	max-width: 18rem;
	margin: 0 auto;
	color: var(--lignee-texte);
	font-size: 0.9375rem;
	line-height: 1.55;
}

@media (max-width: 781px) {
	.lignee-ubiquita .lignee-ubiquita__etapes {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	/* Sur téléphone, les étapes se suivent : pas de filet horizontal */
	.lignee-ubiquita .lignee-ubiquita__etapes::before {
		content: none;
	}
}

/* 2. Paiements rapides : élévation et halo or au survol, enfoncement à la validation */
.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li {
	border-radius: 5px;
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li:hover,
.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgb(230 177 12 / 0.55), 0 10px 22px -10px rgb(230 177 12 / 0.55);
	filter: brightness(1.06);
}

.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li:active {
	transform: translateY(0) scale(0.98);
	box-shadow: 0 0 0 1px rgb(230 177 12 / 0.8), 0 4px 10px -6px rgb(230 177 12 / 0.6);
	transition-duration: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
	.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li,
	.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li:hover,
	.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li:focus-within,
	.wc-block-components-express-payment--checkout ul.wc-block-components-express-payment__event-buttons > li:active {
		transform: none;
		transition: box-shadow 0.2s ease;
	}
}

/*
 * 3. Bandeau des cookies (Complianz), demande du 26/11/2026 : « la taille des boutons par rapport au texte n'est pas
 *    cohérente […] réduire un tout petit peu la taille du bandeau ; que ce soit luxe, pas un gros pâté, mais bien
 *    visible ». Les boutons prenaient toute la hauteur du texte (77 px pour 14 px de lettres) : ils ont désormais leur
 *    propre hauteur, centrée. Grand écran : bandeau centré, 80 rem au plus (171 px de haut au lieu de 205 à 1440 px).
 *    Téléphone : Accepter et Refuser côte à côte, de même taille et même style (CNIL), Personnaliser en dessous
 *    (328 px de haut au lieu de 432 à 375 px).
 */
@media (min-width: 1024px) {
	body .cmplz-cookiebanner.cmplz-cookiebanner.cmplz-bottom {
		right: 0 !important;
		left: 0 !important;
		width: min(80rem, calc(100% - 2rem)) !important;
		margin: 0 auto 0.75rem !important;
		padding: 1rem 1.75rem 0.85rem !important;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
		column-gap: 2.5rem !important;
		row-gap: 0.35rem !important;
	}

	body .cmplz-cookiebanner .cmplz-buttons {
		align-self: center !important;
		gap: 0.625rem !important;
	}

	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
		height: auto !important;
		min-width: 10.5rem;
		min-height: 3rem;
		padding: 0.8rem 1.25rem !important;
		font-size: 0.875rem !important;
		letter-spacing: 0.14em;
		line-height: 1.2 !important;
		white-space: nowrap;
	}

	body .cmplz-cookiebanner .cmplz-message {
		font-size: 0.9375rem !important;
		line-height: 1.55 !important;
	}

	body .cmplz-cookiebanner .cmplz-links,
	body .cmplz-cookiebanner .cmplz-documents {
		font-size: 0.8125rem !important;
		line-height: 1.4 !important;
	}

	body .cmplz-cookiebanner .cmplz-header {
		min-height: 0 !important;
	}
}

@media (max-width: 767.98px) {
	body .cmplz-cookiebanner.cmplz-cookiebanner {
		padding: 0.9rem 1rem 0.8rem !important;
		row-gap: 0.5rem !important;
	}

	body .cmplz-cookiebanner .cmplz-message {
		font-size: 0.875rem !important;
		line-height: 1.5 !important;
	}

	body .cmplz-cookiebanner .cmplz-buttons {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem !important;
	}

	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
		height: auto !important;
		min-height: 2.75rem;
		margin: 0 !important;
		padding: 0.6rem 0.5rem !important;
		font-size: 0.8125rem !important;
		letter-spacing: 0.1em;
		line-height: 1.2 !important;
		white-space: nowrap;
	}

	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:is(.cmplz-view-preferences, .cmplz-save-preferences) {
		grid-column: 1 / -1;
	}

	body .cmplz-cookiebanner .cmplz-links,
	body .cmplz-cookiebanner .cmplz-documents {
		font-size: 0.8125rem !important;
		line-height: 1.4 !important;
	}
}
