/* Cartes d'animations [wtf_animations] (spec section 5.2)
   Carrousel : balisage de [lister_anims], stylé par le CSS existant .swiper_anims_home (style.css).
   Grille : même carte, mise en page et effet définis ici. */

/* ---------- Carrousel : compléments au CSS de la home ---------- */

.wtf-anims--carrousel {
	position: relative;
}

.wtf-anims--carrousel .wtf-anim-card__img {
	object-fit: cover;
	max-width: none;
}

.wtf-anims .wtf-anim-card__link:focus-visible {
	outline: 3px solid #0f0f0f;
	outline-offset: 6px;
}

.wtf-anims--carrousel .wtf-anim-card__link:focus-visible .img-container::before {
	top: 0;
	left: 0;
	right: 0;
	bottom: 8px;
}

.wtf-anims--carrousel .wtf-anim-card__link:focus-visible .line {
	width: 30px;
}

/* Carrousel dans le contenu d'un article ou d'une page Gutenberg : espacement vertical, contrôles recentrés */
.et_pb_post_content .wtf-anims.wtf-anims--carrousel {
	margin: 4rem 0;
}

.et_pb_post_content .wtf-anims--carrousel .wtf-anims__controls {
	width: 80%;
	max-width: 1000px;
	margin: auto;
}

/* Sans Swiper (script absent ou bloqué) : défilement natif */
.wtf-anims--carrousel .swiper-container:not(.swiper-container-initialized):not(.swiper-initialized) {
	overflow-x: auto;
}

/* Pagination et flèches alignées sur une même ligne, sous le carrousel */
.wtf-anims__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
}

.wtf-anims__controls .swiper-pagination.wtf-anims__pagination {display: flex;
    gap: 0.2rem;
	position: static;
	width: auto !important;
	bottom: auto;
	transform: none;
}

.wtf-anims__nav {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.wtf-anims__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #0f0f0f;
	border-radius: 0;
	background: #fff;
	color: #0f0f0f;
	cursor: pointer;
}

.wtf-anims__arrow:hover:not(:disabled):not(.swiper-button-disabled) {
	background: #0f0f0f;
	color: #fff;
}

.wtf-anims__arrow:focus-visible {
	outline: 3px solid #0f0f0f;
	outline-offset: 3px;
}

.wtf-anims__arrow:disabled,
.wtf-anims__arrow.swiper-button-disabled {
	opacity: .3;
	cursor: default;
}

/* Masquées par Swiper quand toutes les cartes tiennent à l'écran (watchOverflow) */
.wtf-anims__nav.is-locked,
.wtf-anims__arrow.swiper-button-lock {
	display: none;
}

/* ---------- Grille ---------- */

.wtf-anims--grille {
	--wtf-anims-cols: 5;
	--wtf-anims-gap: 50px;
	--wtf-anims-stagger: 40px;
	--wtf-anims-frame-offset: 20px;
}

.wtf-anims--grille ul.wtf-anims__list {
	display: grid;
	grid-template-columns: repeat(var(--wtf-anims-cols), minmax(0, 1fr));
	gap: var(--wtf-anims-gap);
	align-items: start;
	list-style: none;
	margin: 0;
	padding: 0 0 var(--wtf-anims-frame-offset) var(--wtf-anims-frame-offset);
	line-height: normal;
}

/* Cartes paires décalées vers le bas, comme le module actuel */
/* Paramètre colonnes du shortcode (grand écran) */
.wtf-anims--grille.wtf-anims--cols-4 { --wtf-anims-cols: 4; }
.wtf-anims--grille.wtf-anims--cols-3 { --wtf-anims-cols: 3; }

.wtf-anims--grille li.wtf-anim-card {
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 0;
}

/* Puce décorative Divi (.et_pb_post_content ul li::before, .et_pb_text_inner ul li::before) : retirée */
.wtf-anims--grille li.wtf-anim-card::before {
	content: none;
	display: none;
}

.wtf-anims--grille li.wtf-anim-card:nth-child(even) {
	margin-top: var(--wtf-anims-stagger);
}

.wtf-anims--grille .wtf-anim-card__link {
	display: block;
	color: #0f0f0f;
	text-decoration: none;
}

.wtf-anims--grille .wtf-anim-card__media {
	position: relative;
	aspect-ratio: 9 / 16;
}

.wtf-anims--grille .wtf-anim-card__media::before {
	content: "";
	position: absolute;
	top: var(--wtf-anims-frame-offset);
	right: var(--wtf-anims-frame-offset);
	bottom: calc(var(--wtf-anims-frame-offset) * -1);
	left: calc(var(--wtf-anims-frame-offset) * -1);
	z-index: -1;
	border: 2px dashed #000;
	transition: all .5s;
}

.wtf-anims--grille .wtf-anim-card--photo .wtf-anim-card__media::before { background: #F2D4D9; }
.wtf-anims--grille .wtf-anim-card--video .wtf-anim-card__media::before { background: #DCCBE6; }
.wtf-anims--grille .wtf-anim-card--gamification .wtf-anim-card__media::before { background: #CBE4E6; }

.wtf-anims--grille .wtf-anim-card__link:hover .wtf-anim-card__media::before,
.wtf-anims--grille .wtf-anim-card__link:focus-visible .wtf-anim-card__media::before {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.wtf-anims--grille .wtf-anim-card__img {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border: 10px solid #0f0f0f;
	background: #0f0f0f;
}

.wtf-anims--grille .wtf-anim-card__title {
	margin: 40px 0 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.1em;
	text-transform: uppercase;
}

.wtf-anims--grille .wtf-anim-card__excerpt {
	margin-top: 5px;
	font-family: 'Roboto_Regular', Georgia, serif;
	font-size: 16px;
	font-weight: 400;
}

/* Flèche sous la carte (style inline de [lister_anims], repris ici pour les deux formats) */
.wtf-anims .wtf-anim-card__arrow {
	display: flex;
	align-items: center;
	margin-top: 15px;
}

.wtf-anims--grille .wtf-anim-card__link:hover .line,
.wtf-anims--grille .wtf-anim-card__link:focus-visible .line {
	width: 30px;
}

@media (max-width: 1280px) {
	.wtf-anims--grille { --wtf-anims-gap: 40px; }
	.wtf-anims--grille.wtf-anims--cols-5 { --wtf-anims-cols: 4; }
}

@media (max-width: 980px) {
	/* Spécificité supérieure aux classes wtf-anims--cols-* : 2 colonnes quel que soit le paramètre */
	.wtf-anims.wtf-anims--grille.wtf-anims--grille {
		--wtf-anims-cols: 2;
		--wtf-anims-gap: 30px;
		--wtf-anims-stagger: 30px;
	}

	.wtf-anims--grille .wtf-anim-card__title { margin-top: 35px; }
	.wtf-anims--carrousel .wtf-anims__nav { display: none; }
	.wtf-anims__controls { justify-content: center; }
}

/* ---------- Sélection : bouton "Ajouter à ma sélection" (spec 5.2) ---------- */

.wtf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Bouton en surimpression dans le coin haut droit du visuel, à l'intérieur de la bordure de 10 px */
.wtf-anim-card {
	position: relative;
}

.wtf-anims .wtf-anim-card__select {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	max-width: calc(100% - 32px);
}

.wtf-select {
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid #0f0f0f;
	border-radius: 22px;
	background: #fff;
	color: #0f0f0f;
	font-family: 'Roboto_Bold', Georgia, serif;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, gap .2s;
}

.wtf-select__icon {
	flex: 0 0 20px;
}

.wtf-select__check,
.wtf-select[aria-pressed="true"] .wtf-select__plus {
	display: none;
}

.wtf-select[aria-pressed="true"] .wtf-select__check {
	display: inline;
}

.wtf-select[aria-pressed="true"] {
	background: #0f0f0f;
	color: #fff;
}

.wtf-select:focus-visible {
	outline: 3px solid #0f0f0f;
	outline-offset: 3px;
}

/* Libellé replié par défaut (icône seule), toujours présent pour les lecteurs d'écran */
.wtf-select__text {
	display: inline-block;
	max-width: 0;
	overflow: hidden;
	transition: max-width .3s;
}

/* État ajouté : "Dans ma sélection" visible ; "Ajouter à ma sélection : titre" masqué visuellement
   mais conservé comme nom accessible (display:none le retirerait) */
.wtf-select__on {
	display: none;
}

.wtf-select[aria-pressed="true"] .wtf-select__on {
	display: inline;
}

.wtf-select[aria-pressed="true"] .wtf-select__off {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Desktop : libellé déplié au survol et au focus, sur deux lignes si la carte est trop étroite
   (le bouton ne dépasse jamais la carte : max-width ci-dessus) */
@media (hover: hover) and (min-width: 981px) {
	.wtf-select:hover,
	.wtf-select:focus-visible {
		gap: 8px;
		height: auto;
		min-height: 44px;
		padding-block: 6px;
	}

	.wtf-select:hover .wtf-select__text,
	.wtf-select:focus-visible .wtf-select__text {
		max-width: 180px;
		white-space: normal;
		text-align: left;
		line-height: 1.15;
	}
}

/* ---------- Fiches : cartouches d'ancres [wtf_ancres] (reprend .cartouches_ancres de style.css) ---------- */

/* Couleurs par catégorie, communes aux ancres et aux cartouches de section */
.wtf-ancres,
.wtf-cartouche {
	--wtf-ancre-bg: #fff;
	--wtf-ancre-bg-hover: #f0f0f0;
}

.wtf-ancres--gamification, .wtf-cartouche--gamification { --wtf-ancre-bg: #cbe4e6; --wtf-ancre-bg-hover: #98cace; }
.wtf-ancres--photo, .wtf-cartouche--photo { --wtf-ancre-bg: #f2d4d9; --wtf-ancre-bg-hover: #dd8e9b; }
.wtf-ancres--video, .wtf-cartouche--video { --wtf-ancre-bg: #dccbe6; --wtf-ancre-bg-hover: #ba98ce; }

/* Cartouche de titre de section [wtf_cartouche] (reprend .et_pb_text.cartouche de style.css) */
.wtf-cartouche {
	display: table;
	margin-bottom: 2rem;
	padding: .5em 1.5em;
	border: 2px dashed #000;
	border-radius: 2rem;
	background-color: var(--wtf-ancre-bg);
	color: #0f0f0f;
	font-family: 'Heebo_VariableFont_wght', Georgia, serif;
	font-size: 14px;
	line-height: 1.2;
	text-transform: uppercase;
}

.wtf-cartouche--centre {
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 480px) {
	.wtf-cartouche { font-size: 12px; }
}

.wtf-ancres ul.wtf-ancres__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
}

.wtf-ancres li.wtf-ancres__item {
	margin: 0 0 2rem;
	padding: 0;
}

/* Puce décorative du module Texte Divi (.et_pb_text_inner ul li::before) : retirée pour les ancres uniquement */
.wtf-ancres li.wtf-ancres__item::before {
	content: none;
	display: none;
}

.wtf-ancres li.wtf-ancres__item[hidden] {
	display: none;
}

.wtf-ancres a.wtf-ancres__link {
	display: inline-block;
	padding: .5em 1.5em;
	border: 2px dashed #000;
	border-radius: 2rem;
	background-color: var(--wtf-ancre-bg);
	color: #0f0f0f;
	font-family: 'Heebo_VariableFont_wght', Georgia, serif;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s;
}

.wtf-ancres a.wtf-ancres__link:hover {
	background-color: var(--wtf-ancre-bg-hover);
}

.wtf-ancres a.wtf-ancres__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #0f0f0f;
}

@media (max-width: 980px) {
	.wtf-ancres ul.wtf-ancres__list { gap: 10px; }
	.wtf-ancres li.wtf-ancres__item { margin-bottom: 0; }
}

@media (max-width: 480px) {
	.wtf-ancres a.wtf-ancres__link { font-size: 12px; }
}

/* ---------- Fiches : bouton grand format et barre mobile (spec 5.3) ---------- */

.wtf-select-wrap {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

/* Grand format : libellé toujours visible (spécificité supérieure à la règle de survol des cartes) */
.wtf-select.wtf-select--large {
	gap: 10px;
	height: auto;
	min-height: 52px;
	padding: 10px 24px;
	border-radius: 0;
	background: #F2D4D9;
	font-size: 18px;
}

.wtf-select.wtf-select--large .wtf-select__text {
	max-width: none;
	white-space: nowrap;
}

.wtf-select.wtf-select--large:hover {
	background: #0f0f0f;
	color: #fff;
}

.wtf-select.wtf-select--large[aria-pressed="true"] {
	background: #0f0f0f;
	color: #fff;
}

/*
 * Bouton flottant en bas à droite (rendu en fin de body), toujours visible, desktop et mobile.
 * Le bouton "retour en haut" (Divi + Divi Pixel) est réduit et empilé au-dessus, aligné à droite.
 * Positions partagées : --wtf-float-right, --wtf-float-bottom, --wtf-float-height, --wtf-float-gap.
 */
:root {
	--wtf-float-right: 24px;
	--wtf-float-bottom: 24px;
	--wtf-float-height: 52px;
	--wtf-float-gap: 14px;
}

.wtf-select-float {
	position: fixed;
	right: var(--wtf-float-right);
	bottom: calc(var(--wtf-float-bottom) + env(safe-area-inset-bottom));
	z-index: 9990;
}

.wtf-select.wtf-select--float {
	min-height: var(--wtf-float-height);
	box-shadow: 4px 4px 0 #0f0f0f;
}

/* Retour en haut réduit (environ 52 px au lieu de 96 px) */
body .et_pb_scroll_top.et-pb-icon .dipi_btt_wrapper {
	padding: 12px;
	font-size: 28px;
}

body:has(.wtf-select-float) .et_pb_scroll_top.et-pb-icon {
	right: var(--wtf-float-right);
	bottom: calc(var(--wtf-float-bottom) + var(--wtf-float-height) + var(--wtf-float-gap) + env(safe-area-inset-bottom));
}

@media (max-width: 980px) {
	:root {
		--wtf-float-right: 16px;
		--wtf-float-bottom: 16px;
		--wtf-float-height: 46px;
		--wtf-float-gap: 12px;
	}

	.wtf-select.wtf-select--float {
		padding: 8px 18px;
		font-size: 15px;
	}

	body .et_pb_scroll_top.et-pb-icon .dipi_btt_wrapper {
		padding: 10px;
		font-size: 24px;
	}

	/* Mobile : bouton de sélection centré, retour en haut à sa droite sur la même ligne */
	.wtf-select-float {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}

	body:has(.wtf-select-float) .et_pb_scroll_top.et-pb-icon {
		bottom: calc(var(--wtf-float-bottom) + env(safe-area-inset-bottom));
	}
}

/* Très petits écrans : bouton calé à gauche pour laisser la place au retour en haut */
@media (max-width: 380px) {
	.wtf-select-float {
		left: var(--wtf-float-right);
		transform: none;
	}
}

/* ---------- Header : pastille (spec 5.5) ---------- */

/* Desktop : en surimpression sur le coin du CTA "Contactez-nous", sans décaler le menu */
#menu-principal li.cta {
	position: relative;
}

.wtf-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 6px;
	border: 2px solid #0f0f0f;
	border-radius: 14px;
	background: #F2D4D9;
	color: #0f0f0f;
	font-family: 'Roboto_Bold', Georgia, serif;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.wtf-badge[hidden] {
	display: none !important;
}

/* Zone cliquable agrandie à 40 px sans changer le visuel */
.wtf-badge::before {
	content: "";
	position: absolute;
	inset: -6px;
}

.wtf-badge--desktop {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 3;
}

.wtf-badge--mobile {
	position: relative;
}

.wtf-badge:hover {
	background: #0f0f0f;
	color: #fff;
}

.wtf-badge:focus-visible {
	outline: 3px solid #0f0f0f;
	outline-offset: 3px;
}

.wtf-badge.is-bumped {
	animation: wtf-badge-bump .4s ease-out;
}

@keyframes wtf-badge-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* Menu mobile Divi (copie du menu desktop) : pas de pastille dans la liste, elle est à côté du burger */
#mobile_menu1 .wtf-badge,
.et_mobile_menu .wtf-badge {
	display: none !important;
}

@media (max-width: 980px) {
	.et-l--header .et_pb_menu .et_mobile_nav_menu {
		display: flex;
		align-items: center;
		gap: 16px;
	}
}

/* ---------- Mini panneau "Ma sélection" (spec 5.5) ---------- */

.wtf-panel {
	position: fixed;
	inset: 100px 24px auto auto;
	box-sizing: border-box;
	width: min(400px, calc(100vw - 32px));
	max-height: calc(100vh - 130px);
	margin: 0;
	padding: 24px;
	overflow: auto;
	border: 2px solid #0f0f0f;
	background: #fff;
	color: #0f0f0f;
	box-shadow: 8px 8px 0 #CBE4E6;
}

.wtf-panel::backdrop {
	background: rgba(15, 15, 15, .45);
}

.wtf-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.wtf-panel .wtf-panel__title {
	margin: 0;
	padding: 0;
	font-family: 'Heebo_VariableFont_wght', Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.wtf-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #0f0f0f;
	background: #fff;
	color: #0f0f0f;
	cursor: pointer;
}

.wtf-panel__close:hover {
	background: #0f0f0f;
	color: #fff;
}

.wtf-panel__empty {
	margin: 0;
	padding: 8px 0 4px;
	font-family: 'Roboto_Regular', Georgia, serif;
	font-size: 16px;
}

.wtf-panel ul.wtf-panel__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wtf-panel__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 2px dashed #0f0f0f;
}

.wtf-panel .wtf-panel__link {
	color: #0f0f0f;
	font-family: 'Roboto_Bold', Georgia, serif;
	font-size: 16px;
	text-decoration: none;
	text-transform: uppercase;
}

.wtf-panel .wtf-panel__link:hover {
	text-decoration: underline;
}

.wtf-panel__remove {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #0f0f0f;
	font-family: 'Roboto_Regular', Georgia, serif;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.wtf-panel__remove:hover {
	text-decoration: none;
}

.wtf-panel .wtf-panel__cta {
	display: block;
	margin-top: 20px;
	padding: 14px 20px;
	border: 2px solid #0f0f0f;
	background: #0f0f0f;
	color: #fff;
	font-family: 'Roboto_Bold', Georgia, serif;
	font-size: 18px;
	text-align: center;
	text-decoration: none;
}

.wtf-panel .wtf-panel__cta:hover {
	background: #fff;
	color: #0f0f0f;
}

.wtf-panel :focus-visible {
	outline: 3px solid #0f0f0f;
	outline-offset: 3px;
}

/* Mobile : panneau en bas d'écran, pleine largeur */
@media (max-width: 980px) {
	.wtf-panel {
		inset: auto 0 0 0;
		width: 100%;
		max-width: none;
		max-height: 85vh;
		padding-bottom: calc(24px + env(safe-area-inset-bottom));
		border-width: 2px 0 0;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtf-badge.is-bumped { animation: none; }
}

/* ---------- Formulaire contact : compteur et cases cochées mises en évidence (spec 5.6) ---------- */

/* Hauteur réservée : le texte est écrit par le JS, sans décalage de mise en page */
.wtf-cf7-count {
	display: block;
	min-height: 1.4em;
	margin-bottom: 10px;
	font-family: 'Roboto_Bold', Georgia, serif;
	line-height: 1.4em;
}

/*
 * Animations en pastilles : la case reste dans le formulaire (clavier, lecteurs d'écran, envoi CF7),
 * invisible et étendue à toute la pastille, pour qu'un clic n'importe où la coche nativement.
 * État coché : bordure renforcée (ombre interne, sans changer la taille) et fond coloré.
 */
.wpcf7-form-control-wrap[data-name="lead-event-prestation"] .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

[data-name="lead-event-prestation"] .wpcf7-list-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	color: #3a3a3a;
	line-height: 1.2;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}

[data-name="lead-event-prestation"] .wpcf7-list-item input[type="checkbox"] {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

[data-name="lead-event-prestation"] .wpcf7-list-item-label {
	margin: 0;font-size: 14px;
}

[data-name="lead-event-prestation"] .wpcf7-list-item:hover {
	border-color: #0f0f0f;
}

[data-name="lead-event-prestation"] .wpcf7-list-item.is-checked,
[data-name="lead-event-prestation"] .wpcf7-list-item:has(input:checked) {
	border-color: #0f0f0f;
	background: #CBE4E6;
	box-shadow: inset 0 0 0 1px #0f0f0f;
	color: #0f0f0f;
}

[data-name="lead-event-prestation"] .wpcf7-list-item:has(input:focus-visible) {
	outline: 3px solid #0f0f0f;
	outline-offset: 2px;
}

@media (max-width: 980px) {
	[data-name="lead-event-prestation"] .wpcf7-list-item {
		padding: 8px 16px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-name="lead-event-prestation"] .wpcf7-list-item { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wtf-anims .img-container::before,
	.wtf-anims .line,
	.wtf-select,
	.wtf-select__text { transition: none; }
}

/*
 * Dates du formulaire contact (début, fin facultative) : picto en image de fond du champ (remplace le ::after
 * du module Code de la page, positionné sur l'enveloppe CF7 et décalé par le message d'erreur) ;
 * texte d'invite repris de l'attribut placeholder (FR / EN).
 */
.wpcf7-form input.wpcf7-date[type="date"] {
	position: relative;
	padding-left: 50px;
	background-image: url('/wp-content/uploads/2024/06/form-breadcrumbs-calendar-Date-range.svg');
	background-repeat: no-repeat;
	background-position: 15px center;
	background-size: 24px 24px;
}
.wpcf7-form input.wpcf7-date[type="date"].placeholder-shown::after { content: none; }
.wpcf7-form input.wpcf7-date[type="date"].placeholder-shown::before { content: attr(placeholder); margin-left: 0; }
.wpcf7-form input.wpcf7-date[type="date"].placeholder-shown:focus::before { content: ""; }

/*
 * Page contact, colonne de gauche (classe Divi "wtf-contact-aside", FR et EN) : la colonne entière est collante,
 * à la place du collant Divi module par module (chevauchements, débordement dans le pied de page).
 * Hauteur d'écran minimum : le fond bleu couvre toujours la gauche de l'écran. Desktop uniquement.
 * overflow-x: clip (et non hidden) sur les ancêtres : pas de conteneur de défilement, position: sticky opérant.
 * Divi Pixel (menu mobile plein écran) pose body { overflow-x: hidden } sur toutes les tailles d'écran.
 */
@media (min-width: 981px) {
	html:has(.wtf-contact-aside),
	body:has(.wtf-contact-aside),
	#page-container:has(.wtf-contact-aside),
	#et-main-area:has(.wtf-contact-aside),
	#main-content:has(.wtf-contact-aside),
	.et_pb_section:has(.wtf-contact-aside) {
		overflow: visible !important;
		overflow-x: clip !important;
	}

	/* --wtf-header-h : hauteur du header collant (+ barre d'admin), mesurée par wtf-animations.js */
	.et_pb_row .wtf-contact-aside {
		position: sticky;
		top: var(--wtf-header-h, 110px);
		align-self: flex-start;
		min-height: calc(100vh - var(--wtf-header-h, 110px));
	}
}
