/* ==========================================================================
   France Défi Vision — styles du thème
   ========================================================================== */

:root {
	--fdv-indigo: var(--wp--preset--color--indigo, #36297A);
	--fdv-night: var(--wp--preset--color--indigo-dark, #1C1545);
	--fdv-yellow: var(--wp--preset--color--yellow, #FFC83D);
	--fdv-lavender: var(--wp--preset--color--lavender, #EEEAF8);
	--fdv-cream: var(--wp--preset--color--cream, #FBF8F2);
	--fdv-ink: var(--wp--preset--color--ink, #1B1830);
	--fdv-radius: 18px;
	--fdv-radius-l: 28px;
	--fdv-shadow: 0 1px 2px rgba(28, 21, 69, .06), 0 14px 36px -14px rgba(28, 21, 69, .28);
	--fdv-shadow-hover: 0 2px 4px rgba(28, 21, 69, .08), 0 26px 48px -18px rgba(28, 21, 69, .38);
	--fdv-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

::selection {
	background: var(--fdv-yellow);
	color: var(--fdv-ink);
}

a {
	text-decoration-thickness: 1.5px;
	text-underline-offset: .2em;
	transition: text-decoration-thickness .2s, color .2s;
}

a:hover {
	text-decoration-thickness: 3px;
}

/* ---------- Accessibilité : focus, lien d'évitement, texte masqué ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--fdv-indigo);
	outline-offset: 3px;
	box-shadow: 0 0 0 7px var(--fdv-yellow);
	border-radius: 6px;
}

.fdv-on-dark :where(a, button):focus-visible,
.has-indigo-background-color :where(a, button):focus-visible,
.has-indigo-dark-background-color :where(a, button):focus-visible {
	outline-color: var(--fdv-yellow);
	box-shadow: 0 0 0 7px var(--fdv-night);
}

.skip-link.screen-reader-text:focus {
	background: var(--fdv-yellow);
	color: var(--fdv-ink);
	font-weight: 700;
	padding: 1rem 1.5rem;
	border-radius: 999px;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	text-decoration: none;
	box-shadow: var(--fdv-shadow);
}

.screen-reader-text:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

/* ---------- Barre de progression de lecture ---------- */

.fdv-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 5px;
	z-index: 9999;
	background: linear-gradient(90deg, var(--fdv-yellow), #FFA94D);
	transform-origin: 0 50%;
	transform: scaleX(var(--fdv-progress, 0));
	pointer-events: none;
}

.admin-bar .fdv-progress {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* ---------- En-tête ---------- */

.fdv-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid rgba(54, 41, 122, .08);
}

.fdv-header .wp-block-site-logo img {
	mix-blend-mode: multiply;
	height: auto;
	max-width: clamp(140px, 16vw, 200px);
}

.fdv-header .wp-block-navigation {
	font-size: clamp(.9375rem, .55rem + .5vw, 1.0625rem);
	font-weight: 600;
}

.fdv-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: clamp(.6rem, 1.2vw, 1.25rem);
}

.fdv-header .wp-block-navigation-item__content {
	white-space: nowrap;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	position: relative;
}

.fdv-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 3px;
	border-radius: 3px;
	background: var(--fdv-yellow);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .35s var(--fdv-ease);
}

.fdv-header .wp-block-navigation-item__content:hover::after,
.fdv-header .current-menu-item > .wp-block-navigation-item__content::after,
.fdv-header [aria-current="page"]::after {
	transform: scaleX(1);
}

.fdv-header .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: var(--fdv-radius);
	box-shadow: var(--fdv-shadow-hover);
	padding: .5rem !important;
	min-width: 290px !important;
	background: #fff !important;
}

.fdv-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 10px;
	padding: .55rem .9rem !important;
	width: 100%;
}

.fdv-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--fdv-lavender);
}

/* Bouton « Faire un don » dans le menu */
.fdv-header .fdv-nav-cta > .wp-block-navigation-item__content {
	background: var(--fdv-yellow);
	color: var(--fdv-ink) !important;
	border-radius: 999px;
	padding: .55rem 1.3rem !important;
	font-weight: 800;
	box-shadow: 0 6px 18px -8px rgba(255, 168, 0, .9);
	transition: transform .25s var(--fdv-ease), box-shadow .25s;
}

.fdv-header .fdv-nav-cta > .wp-block-navigation-item__content::after {
	display: none;
}

.fdv-header .fdv-nav-cta > .wp-block-navigation-item__content:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(255, 168, 0, 1);
}

/* Menu mobile plein écran */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--fdv-cream) !important;
	padding: 2rem clamp(1.25rem, 5vw, 3rem) !important;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-wrap: wrap;
	gap: 1.5rem;
	width: 100%;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--fdv-indigo);
	white-space: normal;
	min-height: 44px;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0 !important;
	width: 100%;
	padding: .25rem 0 0 1rem !important;
	margin-top: .5rem;
	border-left: 3px solid var(--fdv-yellow) !important;
	border-radius: 0;
	box-shadow: none;
	background: transparent !important;
	gap: .25rem;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--fdv-ink);
	padding: .35rem .5rem !important;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.fdv-header .wp-block-navigation__responsive-container.is-menu-open .fdv-nav-cta > .wp-block-navigation-item__content {
	color: var(--fdv-ink) !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
	border-radius: 999px;
}

.wp-block-navigation__responsive-container-open {
	background: var(--fdv-indigo);
	color: #fff;
}

/* Sur tablette, le menu complet ne tient pas sur une ligne : on garde le menu replié jusqu'à 1180 px */
@media (min-width: 600px) and (max-width: 1179px) {
	.fdv-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.fdv-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Bouton pause des animations : icône seule, libellé réservé aux lecteurs d'écran */
.fdv-motion-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid var(--fdv-indigo);
	border-radius: 999px;
	background: transparent;
	color: var(--fdv-indigo);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.fdv-motion-toggle:hover {
	background: var(--fdv-lavender);
}

.fdv-motion-toggle .fdv-motion-label {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
}

.fdv-motion-toggle svg {
	width: 1.1em;
	height: 1.1em;
	flex: none;
}

.fdv-motion-toggle .fdv-icon-play,
.fdv-no-motion .fdv-motion-toggle .fdv-icon-pause {
	display: none;
}

.fdv-no-motion .fdv-motion-toggle .fdv-icon-play {
	display: inline;
}

/* ---------- Accueil : bandeau principal ---------- */

.fdv-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.fdv-hero::before,
.fdv-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(10px);
	pointer-events: none;
}

.fdv-hero::before {
	width: min(46vw, 620px);
	aspect-ratio: 1;
	right: -8vw;
	top: -12vw;
	background: radial-gradient(circle at 30% 30%, rgba(255, 200, 61, .55), rgba(255, 200, 61, 0) 65%);
}

.fdv-hero::after {
	width: min(40vw, 520px);
	aspect-ratio: 1;
	left: -12vw;
	bottom: -14vw;
	background: radial-gradient(circle at 60% 40%, rgba(54, 41, 122, .22), rgba(54, 41, 122, 0) 65%);
}

.fdv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .35rem 1rem;
	border-radius: 999px;
	background: #fff;
	color: var(--fdv-indigo);
	font-weight: 700;
	font-size: 1rem;
	box-shadow: var(--fdv-shadow);
	width: fit-content;
}

.fdv-eyebrow::before {
	content: "";
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: var(--fdv-yellow);
	box-shadow: 0 0 0 4px rgba(255, 200, 61, .35);
}

.fdv-hero h1 {
	font-size: clamp(2.375rem, 1.2rem + 3.4vw, 4rem);
	text-wrap: balance;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.fdv-hero h1 mark,
.fdv-highlight {
	background: linear-gradient(transparent 62%, var(--fdv-yellow) 62%, var(--fdv-yellow) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
	color: inherit;
	padding: 0 .08em;
}

.fdv-hero-media {
	position: relative;
	margin: 0;
}

.fdv-hero-media video,
.fdv-hero-media img {
	display: block;
	width: 100%;
	height: auto;
	/* WordPress injecte un aspect-ratio en ligne sur la vidéo */
	aspect-ratio: 4 / 3.4 !important;
	object-fit: cover;
	border-radius: var(--fdv-radius-l);
	box-shadow: 0 40px 80px -30px rgba(28, 21, 69, .55);
}

.fdv-hero-media figcaption {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	margin: 0;
	padding: .5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--fdv-ink);
	font-weight: 700;
	font-size: 1rem;
	backdrop-filter: blur(6px);
}

.fdv-video-toggle {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--fdv-indigo);
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: var(--fdv-shadow);
}

.fdv-video-toggle svg {
	width: 20px;
	height: 20px;
}

/* ---------- Chiffres clés ---------- */

.fdv-stats {
	list-style: none;
	padding: 0 !important;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.fdv-stats li {
	padding: 1.6rem 1.5rem;
	border-radius: var(--fdv-radius);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	line-height: 1.4;
}

.fdv-stats strong {
	display: block;
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	line-height: 1.05;
	font-weight: 800;
	color: var(--fdv-yellow);
	margin-bottom: .4rem;
	letter-spacing: -0.02em;
}

/* ---------- Cartes ---------- */

.fdv-card {
	background: #fff;
	border-radius: var(--fdv-radius);
	box-shadow: var(--fdv-shadow);
	overflow: hidden;
	height: 100%;
	transition: transform .45s var(--fdv-ease), box-shadow .45s var(--fdv-ease);
}

.fdv-card:hover,
.fdv-card:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--fdv-shadow-hover);
}

.fdv-card .wp-block-image,
.fdv-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	border-radius: 0;
}

.fdv-card .wp-block-image img,
.fdv-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform .8s var(--fdv-ease);
}

.fdv-card:hover .wp-block-image img,
.fdv-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.fdv-card-body {
	padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.fdv-card .wp-block-post-title a {
	text-decoration: none;
}

.fdv-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Carte entièrement cliquable via son titre, sans lien dupliqué pour les lecteurs d'écran */
.fdv-card-link {
	position: relative;
}

.fdv-card-link .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.fdv-tag {
	display: inline-block;
	padding: .2rem .8rem;
	border-radius: 999px;
	background: var(--fdv-lavender);
	color: var(--fdv-indigo);
	font-size: .9375rem;
	font-weight: 700;
}

.fdv-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--fdv-yellow);
	color: var(--fdv-ink);
	font-size: 1.6rem;
	font-weight: 800;
}

/* ---------- Sections ---------- */

.fdv-section-title {
	max-width: 720px;
}

.fdv-on-dark,
.fdv-on-dark :is(h1, h2, h3, h4, p, li) {
	color: #fff;
}

.fdv-on-dark .fdv-eyebrow {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.fdv-on-dark a:not(.wp-element-button) {
	color: var(--fdv-yellow);
}

.fdv-on-dark .wp-element-button {
	background: var(--fdv-yellow);
	color: var(--fdv-ink);
}

.fdv-on-dark .is-style-outline .wp-element-button {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 2px;
}

.wp-element-button {
	transition: transform .25s var(--fdv-ease), box-shadow .25s, background-color .25s;
}

.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(28, 21, 69, .55);
}

.has-yellow-background-color.wp-element-button:hover {
	background-color: #FFB915 !important;
}

/* Gala : ciel étoilé */
.fdv-gala {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.fdv-gala::before,
.fdv-gala::after {
	content: "";
	position: absolute;
	inset: -10%;
	z-index: -1;
	pointer-events: none;
	background-repeat: repeat;
}

.fdv-gala::before {
	background-image:
		radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 52%),
		radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 52%),
		radial-gradient(2px 2px at 200px 150px, var(--fdv-yellow) 50%, transparent 52%),
		radial-gradient(1px 1px at 280px 40px, #fff 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 60px 200px, #fff 50%, transparent 52%);
	background-size: 320px 240px;
	opacity: .75;
}

.fdv-gala::after {
	background-image:
		radial-gradient(2px 2px at 90px 120px, var(--fdv-yellow) 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 240px 200px, #fff 50%, transparent 52%),
		radial-gradient(1px 1px at 160px 20px, #fff 50%, transparent 52%);
	background-size: 280px 260px;
	opacity: .5;
}

.fdv-gala .wp-block-image img {
	box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .7);
}

/* Citation du président */
.fdv-quote {
	border-left: 0 !important;
	padding: 0 !important;
	position: relative;
}

.fdv-quote::before {
	content: "“";
	display: block;
	font-size: 6rem;
	line-height: .6;
	color: var(--fdv-yellow);
	font-style: normal;
	font-weight: 800;
	margin-bottom: .5rem;
}

.fdv-quote p {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	font-style: normal;
	line-height: 1.25;
	color: var(--fdv-night);
}

.fdv-quote cite {
	font-style: normal;
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
}

/* Revue de presse */
.fdv-press {
	list-style: none;
	padding: 0 !important;
	display: grid;
	gap: 1rem;
}

.fdv-press li {
	padding: 1.1rem 1.4rem;
	border-radius: var(--fdv-radius);
	background: #fff;
	border-left: 5px solid var(--fdv-yellow);
	box-shadow: var(--fdv-shadow);
}

/* ---------- Pages intérieures ---------- */

.fdv-page-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.fdv-page-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 420px;
	aspect-ratio: 1;
	right: -120px;
	top: -160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 200, 61, .5), rgba(255, 200, 61, 0) 65%);
}

.fdv-page-hero .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
	max-width: 22ch;
}

.fdv-entry > * + .wp-block-heading {
	margin-top: 2.5rem;
}

.fdv-entry img {
	border-radius: var(--fdv-radius);
}

.wp-block-post-featured-image.fdv-single-cover img {
	border-radius: var(--fdv-radius-l);
	box-shadow: var(--fdv-shadow-hover);
}

.wp-block-query-pagination {
	gap: .5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .75rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--fdv-indigo);
	color: #fff;
}

/* ---------- Pied de page ---------- */

.fdv-footer a {
	color: #fff;
}

.fdv-footer a:hover {
	color: var(--fdv-yellow);
}

.fdv-footer .wp-block-site-logo img {
	background: #fff;
	padding: .75rem 1rem;
	border-radius: 14px;
}

.fdv-footer-links {
	list-style: none;
	padding: 0 !important;
	display: grid;
	gap: .4rem;
}

.fdv-footer .wp-block-social-links .wp-social-link {
	background: rgba(255, 255, 255, .1) !important;
	color: #fff !important;
	transition: background-color .25s, transform .25s var(--fdv-ease);
}

.fdv-footer .wp-block-social-links .wp-social-link:hover {
	background: var(--fdv-yellow) !important;
	color: var(--fdv-ink) !important;
	transform: translateY(-3px);
}

.fdv-footer a.fdv-fb-card {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin-top: var(--wp--preset--spacing--30);
	padding: .9rem 1.1rem;
	max-width: 22rem;
	border-radius: var(--fdv-radius);
	background: rgba(255, 255, 255, .08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
	color: #fff;
	text-decoration: none;
	transition: background-color .25s, color .25s, transform .25s var(--fdv-ease);
}

.fdv-footer a.fdv-fb-card:hover,
.fdv-footer a.fdv-fb-card:focus-visible {
	background: var(--fdv-yellow);
	color: var(--fdv-ink);
	transform: translateY(-3px);
}

.fdv-fb-card__icon {
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
}

.fdv-fb-card__text {
	display: grid;
	gap: .15rem;
	line-height: 1.35;
}

.fdv-fb-card__text strong {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.fdv-fb-card__text span {
	font-size: .9375rem;
	opacity: .9;
}

.fdv-footer .wp-block-social-links .wp-social-link a {
	padding: .65rem;
}

/* ---------- Galerie « En images » ---------- */

.fdv-gallery__controls {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
	margin-bottom: 1rem;
}

.fdv-gallery__button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--fdv-indigo);
	border-radius: 50%;
	background: #fff;
	color: var(--fdv-indigo);
	cursor: pointer;
	transition: background-color .25s, color .25s;
}

.fdv-gallery__button svg {
	width: 24px;
	height: 24px;
}

.fdv-gallery__button:hover,
.fdv-gallery__button:focus-visible {
	background: var(--fdv-indigo);
	color: #fff;
}

.fdv-gallery__track {
	--fdv-gallery-gap: 1.25rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--fdv-gallery-gap)) / 3);
	gap: var(--fdv-gallery-gap);
	margin: 0;
	padding: .25rem .25rem 1.25rem;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.fdv-gallery__item {
	position: relative;
	scroll-snap-align: start;
}

.fdv-gallery__item figure {
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: var(--fdv-radius);
	background: #fff;
	box-shadow: var(--fdv-shadow);
}

.fdv-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .8s var(--fdv-ease);
}

.fdv-gallery__item:hover img {
	transform: scale(1.05);
}

.fdv-gallery__item figcaption {
	padding: .9rem 1.1rem 1.1rem;
	font-weight: 700;
	line-height: 1.35;
}

.fdv-gallery__item figcaption a {
	color: var(--fdv-ink);
	text-decoration: none;
}

.fdv-gallery__item figcaption a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--fdv-radius);
}

.fdv-gallery__item figcaption a:hover {
	text-decoration: underline;
}

.fdv-gallery__item figcaption a:focus-visible {
	outline: none;
}

.fdv-gallery__item figcaption a:focus-visible::after {
	outline: 3px solid var(--fdv-indigo);
	outline-offset: 3px;
}

@media (max-width: 1099px) {
	.fdv-gallery__track {
		grid-auto-columns: calc((100% - var(--fdv-gallery-gap)) / 2);
	}
}

@media (max-width: 781px) {
	.fdv-gallery__track {
		grid-auto-columns: 85%;
	}
}

/* ---------- Page contact : venir à l'école ---------- */

.fdv-place-address {
	padding: 1.1rem 1.3rem;
	border-left: 6px solid var(--fdv-yellow);
	border-radius: var(--fdv-radius);
	background: var(--fdv-lavender);
	line-height: 1.6;
}

.fdv-place {
	gap: clamp(1.5rem, 4vw, 3rem);
}

.fdv-transport {
	padding-left: 1.2rem;
}

.fdv-transport li + li {
	margin-top: .75rem;
}

.fdv-place-links {
	list-style: none;
	padding: 0;
	display: grid;
	gap: .6rem;
}

.fdv-place-links a {
	display: block;
	padding: .8rem 1rem;
	border-radius: var(--fdv-radius);
	box-shadow: inset 0 0 0 2px var(--fdv-indigo);
	color: var(--fdv-indigo);
	font-weight: 700;
	text-underline-offset: .2em;
	transition: background-color .25s, color .25s;
}

.fdv-place-links a:hover,
.fdv-place-links a:focus-visible {
	background: var(--fdv-indigo);
	color: #fff;
}

.fdv-place-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 85% center;
	border-radius: var(--fdv-radius);
}

.fdv-map {
	margin-top: var(--wp--preset--spacing--40, 2rem);
}

.fdv-map__frame {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 1.5rem;
	border-radius: var(--fdv-radius);
	background: var(--fdv-lavender);
	text-align: center;
	overflow: hidden;
}

.fdv-map__frame:has(iframe) {
	padding: 0;
}

.fdv-map__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.fdv-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: .75rem;
}

.fdv-map__button {
	min-height: 44px;
	padding: .6rem 1.1rem;
	border: 2px solid var(--fdv-indigo);
	border-radius: 999px;
	background: #fff;
	color: var(--fdv-indigo);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.fdv-map__button:hover,
.fdv-map__button[aria-pressed="true"] {
	background: var(--fdv-indigo);
	color: #fff;
}

/* ==========================================================================
   Animations — uniquement si le visiteur n'a pas demandé à réduire les mouvements
   ========================================================================== */

@keyframes fdv-reveal {
	from { opacity: 0; translate: 0 56px; scale: .97; }
	to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes fdv-hero-parallax {
	to { transform: translateY(90px) scale(1.04) rotate(-1deg); }
}

@keyframes fdv-hero-text-out {
	to { opacity: .55; transform: translateY(-30px); }
}

@keyframes fdv-progress {
	to { transform: scaleX(1); }
}

@keyframes fdv-twinkle {
	0%, 100% { opacity: .25; }
	50% { opacity: .9; }
}

@keyframes fdv-drift {
	to { transform: translate3d(-40px, 30px, 0); }
}

@keyframes fdv-mark {
	from { background-size: 0 100%; }
	to { background-size: 100% 100%; }
}

@keyframes fdv-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: no-preference) {
	html:not(.fdv-no-motion) {
		scroll-behavior: smooth;
	}

	html:not(.fdv-no-motion) .fdv-hero h1 mark {
		animation: fdv-mark 1.2s .4s var(--fdv-ease) both;
	}

	html:not(.fdv-no-motion) .fdv-hero::before {
		animation: fdv-float 9s ease-in-out infinite;
	}

	html:not(.fdv-no-motion) .fdv-gala::before {
		animation: fdv-twinkle 5s ease-in-out infinite, fdv-drift 40s linear infinite alternate;
	}

	html:not(.fdv-no-motion) .fdv-gala::after {
		animation: fdv-twinkle 3.5s 1.2s ease-in-out infinite;
	}

	/* Navigateurs récents : animations pilotées par le défilement, sans JavaScript */
	@supports (animation-timeline: view()) {
		html:not(.fdv-no-motion) .fdv-progress {
			transform: scaleX(0);
			animation: fdv-progress linear both;
			animation-timeline: scroll(root);
		}

		html:not(.fdv-no-motion) :is(.fdv-reveal, .fdv-card, .fdv-stats li, .fdv-press li, .wp-block-post-template > li) {
			animation: fdv-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 30%;
		}

	}

	/* Parallaxe du bandeau : seulement quand texte et vidéo sont côte à côte */
	@supports (animation-timeline: view()) {
		@media (min-width: 782px) {
			html:not(.fdv-no-motion) .fdv-hero-media {
				animation: fdv-hero-parallax linear both;
				animation-timeline: scroll(root);
				animation-range: 0 100vh;
			}

			html:not(.fdv-no-motion) .fdv-hero-text {
				animation: fdv-hero-text-out linear both;
				animation-timeline: scroll(root);
				animation-range: 20vh 100vh;
			}
		}
	}

	/* Autres navigateurs : le script ajoute .fdv-io puis .is-in à l'apparition */
	html.fdv-io:not(.fdv-no-motion) :is(.fdv-reveal, .fdv-card, .fdv-stats li, .fdv-press li, .wp-block-post-template > li):not(.is-in) {
		opacity: 0;
		translate: 0 48px;
	}

	html.fdv-io:not(.fdv-no-motion) :is(.fdv-reveal, .fdv-card, .fdv-stats li, .fdv-press li, .wp-block-post-template > li) {
		transition: opacity .9s var(--fdv-ease), translate .9s var(--fdv-ease), transform .45s var(--fdv-ease), box-shadow .45s var(--fdv-ease);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

.fdv-no-motion *,
.fdv-no-motion *::before,
.fdv-no-motion *::after {
	animation: none !important;
	transition: none !important;
}

.fdv-no-motion .fdv-progress {
	transform: scaleX(var(--fdv-progress, 0));
}

/* ---------- Formulaires Contact Form 7 ---------- */

.wpcf7 .fdv-form-section {
	margin: 2.5rem 0 1rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--fdv-lavender);
	color: var(--fdv-indigo);
}

.wpcf7 .fdv-form-section:first-of-type {
	margin-top: 1rem;
}

.wpcf7 .fdv-field {
	margin: 0 0 1.25rem;
}

.wpcf7 .fdv-field > label,
.wpcf7 .fdv-field > legend {
	display: block;
	margin-bottom: .4rem;
	font-weight: 600;
}

.wpcf7 fieldset.fdv-field {
	border: 0;
	padding: 0;
	min-width: 0;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 40rem;
	padding: .65rem .8rem;
	border: 2px solid #6B6488;
	border-radius: 10px;
	background: #fff;
	color: var(--fdv-ink);
	font: inherit;
}

.wpcf7 input[type="number"] {
	max-width: 8rem;
}

.wpcf7 textarea {
	min-height: 7rem;
}

.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 0 0 .4rem;
}

.wpcf7 .wpcf7-list-item label,
.wpcf7 .fdv-accept label {
	display: inline-flex;
	gap: .6rem;
	align-items: flex-start;
	cursor: pointer;
}

.wpcf7 input[type="checkbox"] {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: .15rem;
	accent-color: var(--fdv-indigo);
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: .3rem;
	color: #B3261E;
	font-weight: 600;
}

.wpcf7 .wpcf7-not-valid {
	border-color: #B3261E;
}

.wpcf7 input[type="submit"] {
	padding: .9rem 1.8rem;
	border: 0;
	border-radius: 999px;
	background: var(--fdv-indigo);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--fdv-night);
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border-radius: 10px;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 781px) {
	.fdv-hero-media video,
	.fdv-hero-media img {
		aspect-ratio: 4 / 3 !important;
	}

}

@media print {
	.fdv-progress,
	.fdv-motion-toggle,
	.fdv-video-toggle {
		display: none !important;
	}
}
