/**
 * Pilates & Moi — campagnes promo de l'abonnement annuel
 * -------------------------------------------------------
 * Chargé par le plugin « MOI — Habillages du site », sur tout le site.
 *
 * Les règles d'affichage (quel élément apparaît pendant quelle campagne)
 * sont générées par le plugin à partir de la table des campagnes et ajoutées
 * à la suite de ce fichier. Ici : le bandeau d'annonce (imprimé par le
 * plugin) et ce que le schéma de style d'Elementor v4 ne sait pas décrire
 * dans les éléments promo (prix barré dans un paragraphe, dégradé et motif
 * de la popup, coches de liste, ombre douce). Les éléments sont visés par
 * leur identifiant (`data-id`) : promobf… = Black Friday, promonl… = Noël.
 */

/* =====================================================================
   Bandeau d'annonce (au-dessus du header)
   ===================================================================== */

.moi-promo-bandeau {
	position: relative;
	z-index: 20;
	font-family: var(--moiBody, "DM Sans"), "DM Sans", sans-serif;
	font-size: 14px;
	line-height: 1.35;
}

.moi-promo-bandeau--black {
	background: var(--moiInk, #333);
	color: var(--moiCream, #fff8ee);
}

.moi-promo-bandeau--noel {
	background: var(--moiCream, #fff8ee);
	color: var(--moiInk, #333);
	border-bottom: 1px solid var(--moiBlush, #e8cfc1);
}

body .moi-promo-bandeau a.moi-promo-bandeau__lien {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 40px;
	padding: 6px 56px;
	color: inherit;
	text-decoration: none;
}

.moi-promo-bandeau strong {
	font-weight: 700;
}

.moi-promo-bandeau sup {
	font-size: .7em;
	line-height: 0;
}

.moi-promo-bandeau .moi-promo-bandeau__point {
	width: 7px;
	height: 7px;
	padding: 0;
	border-radius: 50%;
	flex-shrink: 0;
}

.moi-promo-bandeau--black .moi-promo-bandeau__point {
	background: var(--moiTerracotta, #ce6857);
}

.moi-promo-bandeau--noel .moi-promo-bandeau__point {
	background: var(--moiRose, #eb7f91);
}

.moi-promo-bandeau__etoile {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	fill: var(--moiRose, #eb7f91);
}

.moi-promo-bandeau__txt.is-moyen,
.moi-promo-bandeau__txt.is-court {
	display: none;
}

/* Petit bouton, comme moiBtn + moiBtnSm */
.moi-promo-bandeau__btn {
	flex-shrink: 0;
	margin-left: 4px;
	padding: 3px 11px;
	border: 2px solid currentColor;
	border-radius: 40px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .25s, color .25s, border-color .25s;
}

.moi-promo-bandeau--black .moi-promo-bandeau__btn {
	background: var(--moiCream, #fff8ee);
	border-color: var(--moiCream, #fff8ee);
	color: var(--moiTerracotta, #ce6857);
}

.moi-promo-bandeau--black a:hover .moi-promo-bandeau__btn,
.moi-promo-bandeau--black a:focus-visible .moi-promo-bandeau__btn {
	background: var(--moiBlush, #e8cfc1);
	border-color: var(--moiBlush, #e8cfc1);
	color: var(--moiTerracottaDark, #a95547);
}

.moi-promo-bandeau--noel .moi-promo-bandeau__btn {
	background: var(--moiTerracotta, #ce6857);
	border-color: var(--moiTerracotta, #ce6857);
	color: var(--moiBlushLight, #fff9f5);
}

.moi-promo-bandeau--noel a:hover .moi-promo-bandeau__btn,
.moi-promo-bandeau--noel a:focus-visible .moi-promo-bandeau__btn {
	background: var(--moiTerracottaDark, #a95547);
	border-color: var(--moiTerracottaDark, #a95547);
}

.moi-promo-bandeau a.moi-promo-bandeau__lien:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

body .moi-promo-bandeau button.moi-promo-bandeau__fermer {
	position: absolute;
	top: 50%;
	right: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: .8;
	cursor: pointer;
	transform: translateY(-50%);
}

body .moi-promo-bandeau button.moi-promo-bandeau__fermer:hover,
body .moi-promo-bandeau button.moi-promo-bandeau__fermer:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, .14);
	color: inherit;
}

.moi-promo-bandeau--noel button.moi-promo-bandeau__fermer:hover,
.moi-promo-bandeau--noel button.moi-promo-bandeau__fermer:focus-visible {
	background: rgba(206, 104, 87, .1);
}

.moi-promo-bandeau__fermer svg {
	width: 14px;
	height: 14px;
}

@media (max-width: 1100px) {
	.moi-promo-bandeau__txt.is-long {
		display: none;
	}

	.moi-promo-bandeau__txt.is-moyen {
		display: inline;
	}
}

/* Mobile : une ligne courte, tout le bandeau est le lien. */
@media (max-width: 767px) {
	.moi-promo-bandeau {
		font-size: 12.5px;
	}

	body .moi-promo-bandeau a.moi-promo-bandeau__lien {
		justify-content: flex-start;
		gap: 8px;
		min-height: 38px;
		padding: 8px 40px 8px 16px;
		white-space: nowrap;
	}

	.moi-promo-bandeau__txt.is-moyen,
	.moi-promo-bandeau__btn,
	.moi-promo-bandeau__etoile {
		display: none;
	}

	.moi-promo-bandeau__txt.is-court {
		display: inline;
	}

	body .moi-promo-bandeau button.moi-promo-bandeau__fermer {
		right: 4px;
	}
}

@media (max-width: 409px) {
	.moi-promo-bandeau--black .moi-promo-bandeau__pfx {
		display: none;
	}
}

@media (max-width: 359px) {
	.moi-promo-bandeau--noel .moi-promo-bandeau__pfx {
		display: none;
	}

	.moi-promo-bandeau {
		font-size: 11.5px;
	}
}

/* =====================================================================
   Prix barrés dans les paragraphes (carte 81, encart 400, popup)
   ===================================================================== */

[data-id^="promo"] s {
	text-decoration-thickness: 1.5px;
}

[data-id$="81tarifs"] s,
[data-id$="400texte"] s {
	color: var(--moiInkSoft, #6b5f58);
}

[data-id$="81tarifs"] strong {
	color: var(--moiTerracotta, #ce6857);
}

[data-id="promobf400texte"] s {
	color: inherit;
	opacity: .8;
}

/* Prix de la carte 81 : « 250 € » barré, « 199 € » en grand */
[data-id$="81prix"] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	line-height: 1;
}

[data-id$="81prix"] s {
	font-size: 20px;
	font-weight: 500;
	color: var(--moiInkSoft, #6b5f58);
}

[data-id$="81prix"] strong {
	font-size: 40px;
	font-weight: 700;
	color: var(--moiTerracotta, #ce6857);
}

[data-id="promobf81prix"] strong {
	color: var(--moiTerracottaDark, #a95547);
}

@media (max-width: 767px) {
	[data-id$="81prix"] strong {
		font-size: 34px;
	}
}

/* Ligne de l'Annuel sur « Choisir mon abonnement » (filtre pmpro_level_cost_text) */
.moi-promo-prix s {
	color: var(--moiInkSoft, #6b5f58);
}

.moi-promo-prix strong {
	color: var(--moiTerracotta, #ce6857);
}

.moi-promo-prix__pastille {
	display: inline-block;
	margin: 0 6px 4px 0;
	padding: 4px 9px;
	border-radius: 40px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
}

.moi-promo-prix--black .moi-promo-prix__pastille {
	background: var(--moiInk, #333);
	color: var(--moiCream, #fff8ee);
}

.moi-promo-prix--noel .moi-promo-prix__pastille {
	background: #fce7ea;
	color: var(--moiTerracottaDark, #a95547);
}

/* Ombre douce de la carte et de l'encart */
[data-id$="81carte"],
[data-id="promonl400encart"] {
	box-shadow: 0 10px 30px rgba(206, 104, 87, .1), 0 2px 6px rgba(206, 104, 87, .06);
}

/* Bandeau de la carte de Noël : un simple filet sous le texte (la bordure
   par côté n'est pas reprise par le style local d'Elementor). */
body [data-id="promonl81bandeau"] {
	border-width: 0 0 1px !important;
}

/* Encart de Noël : liseré rose à gauche */
[data-id="promonl400encart"] {
	border-left: 5px solid var(--moiRose, #eb7f91) !important;
}

/* =====================================================================
   Popup de la campagne
   ===================================================================== */

[data-id="promobfpopcontenu"] {
	background: linear-gradient(160deg, var(--moiTerracottaDark, #a95547) 0%, #b65c4d 60%, var(--moiTerracotta, #ce6857) 100%);
}

[data-id="promonlpopcontenu"] {
	background-color: var(--moiCream, #fff8ee);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23EB7F91'%3E%3Cpath opacity='.22' d='M30 14c1.1 7.2 4.5 10.6 11.7 11.7-7.2 1.1-10.6 4.5-11.7 11.7-1.1-7.2-4.5-10.6-11.7-11.7C25.5 24.6 28.9 21.2 30 14z'/%3E%3Cpath opacity='.16' d='M140 112c.8 5 3.2 7.4 8.2 8.2-5 .8-7.4 3.2-8.2 8.2-.8-5-3.2-7.4-8.2-8.2 5-.8 7.4-3.2 8.2-8.2z'/%3E%3Ccircle opacity='.25' cx='110' cy='30' r='1.8'/%3E%3Ccircle opacity='.2' cx='50' cy='150' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Prix : « 250 € » barré, « 199 € » très grand, mention à côté */
[data-id$="popprix"] {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 4px 16px;
	margin: 2px 0 0;
	line-height: 1;
}

[data-id$="popprix"] s {
	font-size: 26px;
	font-weight: 600;
	text-decoration-thickness: 3px;
	opacity: .75;
}

[data-id$="popprix"] strong {
	font-size: 76px;
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.03em;
}

[data-id$="popprix"] span {
	padding-bottom: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

[data-id="promonlpopprix"] strong {
	color: var(--moiRoseDark, #c16877);
}

[data-id="promonlpopprix"] s {
	color: var(--moiInkSoft, #6b5f58);
}

@media (max-width: 767px) {
	[data-id$="popprix"] strong {
		font-size: 56px;
	}

	[data-id$="popprix"] s {
		font-size: 20px;
	}
}

/* Liste à coches */
[data-id^="promo"][data-id*="popli"] {
	position: relative;
	padding-left: 30px;
}

[data-id^="promo"][data-id*="popli"]::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%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 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-id^="promonl"][data-id*="popli"]::before {
	background: var(--moiRose, #eb7f91);
}

/* Compte à rebours : chiffres à chasse fixe le dernier jour */
[data-id$="comptej"] {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* Liens « Non merci » et « ou au mois » */
body [data-id="promobfpoprefus"] a {
	color: var(--moiCream, #fff8ee);
}

body [data-id="promonlpoprefus"] a {
	color: var(--moiInkSoft, #6b5f58);
}

[data-id$="poprefus"] a,
[data-id$="81lienmois"] a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =====================================================================
   Mouvement réduit
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
	.moi-promo-bandeau__btn {
		transition: none;
	}
}
