/*
 * Thème Vivant — feuille de style principale.
 *
 * Règle de mouvement du thème : 0,3 s sur les couleurs, 0,25 s sur les
 * transformations. Rien d'instantané, rien au-delà de 0,4 s. Tout se coupe
 * sous prefers-reduced-motion.
 */

/* --------------------------------------------------------------- jetons */

:root {
	/* Palette verte. Contrastes vérifiés dans tests/theme.test.mjs. */
	--tv-accent: #1b7a4b;
	--tv-accent-strong: #12603a;
	--tv-accent-soft: #e7f2eb;
	--tv-accent-on-deep: #7ed9a6;
	--tv-deep: #0c2b1e;
	--tv-ink: #101a15;
	--tv-ink-soft: #4c5c54;
	--tv-surface: #ffffff;
	--tv-surface-alt: #f4f8f5;
	--tv-line: #dbe6df;
	--tv-warm: #c08a4a;

	--tv-font-title: 'Fraunces', Georgia, 'Times New Roman', serif;
	--tv-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--tv-step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--tv-step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
	--tv-step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
	--tv-step-3: clamp(1.9rem, 1.5rem + 1.9vw, 2.8rem);
	--tv-step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);

	--tv-gap: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
	--tv-section: clamp(3.5rem, 2.4rem + 5vw, 7rem);
	--tv-radius: 18px;
	--tv-radius-sm: 10px;
	--tv-shadow: 0 18px 45px rgba(12, 43, 30, 0.1);
	--tv-shadow-soft: 0 8px 24px rgba(12, 43, 30, 0.07);
	--tv-content: 1180px;
	--tv-reading: 68ch;

	/* Les deux seules durées du thème. */
	--tv-transition-color: 0.3s;
	--tv-transition-move: 0.25s;
	--tv-ease: cubic-bezier(0.33, 1, 0.68, 1);

	--tv-header-height: 92px;
	--tv-header-height-compact: 66px;
}

/* --------------------------------------------------------------- socle */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--tv-surface);
	color: var(--tv-ink);
	font-family: var(--tv-font-body);
	font-size: var(--tv-step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* Lenis pilote le défilement : on lui laisse la main, sinon le navigateur
   et la bibliothèque se disputent la même barre. */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* Repli natif quand lenis ne tourne pas (mouvement réduit, éditeur). */
html:not(.lenis) {
	scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
	font-family: var(--tv-font-title);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 0.6em;
	color: var(--tv-deep);
}

h1 { font-size: var(--tv-step-4); }
h2 { font-size: var(--tv-step-3); }
h3 { font-size: var(--tv-step-2); }
h4 { font-size: var(--tv-step-1); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

img,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--tv-accent-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--tv-transition-color) var(--tv-ease);
}

a:hover,
a:focus-visible {
	color: var(--tv-accent);
}

:focus-visible {
	outline: 3px solid var(--tv-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

svg {
	transition: fill var(--tv-transition-color) var(--tv-ease);
}

.tv-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--tv-deep);
	color: var(--tv-surface);
	padding: 0.8rem 1.2rem;
	border-radius: 0 0 var(--tv-radius-sm) 0;
}

.tv-skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --------------------------------------------------------- mise en page */

.tv-shell {
	width: min(100% - 2.5rem, var(--tv-content));
	margin-inline: auto;
}

.tv-section {
	padding-block: var(--tv-section);
}

.tv-section--soft { background: var(--tv-surface-alt); }
.tv-section--tint { background: var(--tv-accent-soft); }

.tv-section--deep {
	background: var(--tv-deep);
	color: #e6efe9;
}

.tv-section--deep h1,
.tv-section--deep h2,
.tv-section--deep h3 {
	color: var(--tv-surface);
}

.tv-section--deep a { color: var(--tv-accent-on-deep); }

.tv-eyebrow {
	font-family: var(--tv-font-body);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tv-accent);
	margin: 0 0 0.9rem;
}

.tv-section--deep .tv-eyebrow { color: var(--tv-accent-on-deep); }

.tv-lead {
	font-size: var(--tv-step-1);
	color: var(--tv-ink-soft);
	max-width: var(--tv-reading);
}

.tv-section--deep .tv-lead { color: #c9dbd1; }

.tv-grid {
	display: grid;
	gap: var(--tv-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.tv-split {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.tv-split { grid-template-columns: 1.05fr 1fr; }
	.tv-split--flip > :first-child { order: 2; }
}

/* ----------------------------------------------------------- composants */

.tv-button {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.7rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--tv-accent);
	color: var(--tv-surface);
	font-family: var(--tv-font-body);
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--tv-transition-color) var(--tv-ease),
		color var(--tv-transition-color) var(--tv-ease),
		border-color var(--tv-transition-color) var(--tv-ease),
		transform var(--tv-transition-move) var(--tv-ease);
}

.tv-button:hover,
.tv-button:focus-visible {
	background: var(--tv-accent-strong);
	color: var(--tv-surface);
	transform: translateY(-2px);
}

.tv-button--ghost {
	background: transparent;
	color: var(--tv-accent-strong);
	border-color: var(--tv-line);
}

.tv-button--ghost:hover,
.tv-button--ghost:focus-visible {
	background: var(--tv-accent-soft);
	color: var(--tv-accent-strong);
	border-color: var(--tv-accent);
}

.tv-section--deep .tv-button--ghost {
	color: var(--tv-accent-on-deep);
	border-color: rgba(126, 217, 166, 0.45);
}

.tv-section--deep .tv-button--ghost:hover {
	background: rgba(126, 217, 166, 0.14);
	color: var(--tv-accent-on-deep);
}

.tv-card {
	background: var(--tv-surface);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
	padding: clamp(1.4rem, 3vw, 2rem);
	box-shadow: var(--tv-shadow-soft);
	height: 100%;
	transition:
		box-shadow var(--tv-transition-color) var(--tv-ease),
		border-color var(--tv-transition-color) var(--tv-ease);
}

.tv-card:hover { border-color: var(--tv-accent); }

.tv-card h3 { font-size: var(--tv-step-1); }

.tv-card__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: var(--tv-accent-soft);
	color: var(--tv-accent-strong);
	font-family: var(--tv-font-title);
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 1.1rem;
}

.tv-media {
	border-radius: var(--tv-radius);
	overflow: hidden;
	box-shadow: var(--tv-shadow);
}

.tv-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--tv-ease);
}

.tv-figure { margin: 0; }

/* Effet « grow » — la mécanique de survol la plus utilisée de la référence.
   Ici : 1,08× sur 0,25 s, jamais sur un écran tactile. */
.tv-grow {
	will-change: transform;
	transition: transform var(--tv-transition-move) var(--tv-ease);
}

@media (hover: hover) and (pointer: fine) {
	.tv-grow:hover,
	.tv-grow:focus-within {
		transform: scale(1.08);
	}

	.tv-media--zoom:hover img {
		transform: scale(1.06);
	}
}

/* Apparition au défilement — la classe d'amorce est posée par le JS, donc
   sans JS le contenu reste simplement visible. */
/* L'apparition déplace l'élément avec `translate`, jamais avec `transform` :
   sinon elle écrase le survol « grow » des cartes, qui est plus faible en
   spécificité et ne se déclencherait plus une fois la section révélée. */
.tv-reveal-ready .tv-reveal {
	opacity: 0;
	translate: 0 22px;
	transition:
		opacity 0.4s var(--tv-ease),
		translate 0.4s var(--tv-ease);
}

.tv-reveal-ready .tv-reveal.is-visible {
	opacity: 1;
	translate: 0 0;
}

/* ------------------------------------------------------------- en-tête */

.tv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid transparent;
	transition:
		background-color var(--tv-transition-color) var(--tv-ease),
		border-color var(--tv-transition-color) var(--tv-ease),
		box-shadow var(--tv-transition-color) var(--tv-ease);
}

.tv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: var(--tv-header-height);
	transition: height var(--tv-transition-move) var(--tv-ease);
}

/* État compact : l'en-tête se resserre et pose son ombre une fois la page
   défilée — mécanique 4 de l'inventaire. */
.tv-header.is-compact {
	border-bottom-color: var(--tv-line);
	box-shadow: var(--tv-shadow-soft);
}

.tv-header.is-compact .tv-header__inner {
	height: var(--tv-header-height-compact);
}

.tv-header.is-compact .tv-brand__mark {
	transform: scale(0.86);
}

.tv-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--tv-deep);
}

.tv-brand__mark {
	height: 40px;
	width: auto;
	transform-origin: left center;
	transition: transform var(--tv-transition-move) var(--tv-ease);
}

.tv-brand__name {
	font-family: var(--tv-font-title);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.1;
}

.tv-brand__tagline {
	display: block;
	font-family: var(--tv-font-body);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tv-ink-soft);
}

.tv-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2vw, 1.9rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tv-nav a {
	position: relative;
	display: inline-block;
	padding: 0.35rem 0;
	color: var(--tv-ink);
	font-weight: 500;
	text-decoration: none;
	transition: color var(--tv-transition-color) var(--tv-ease);
}

.tv-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	background: var(--tv-accent);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--tv-transition-move) var(--tv-ease);
}

.tv-nav a:hover,
.tv-nav a:focus-visible,
.tv-nav .current-menu-item > a {
	color: var(--tv-accent-strong);
}

.tv-nav a:hover::after,
.tv-nav a:focus-visible::after,
.tv-nav .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.tv-header__actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.tv-burger {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--tv-line);
	border-radius: 12px;
	background: var(--tv-surface);
	cursor: pointer;
	position: relative;
	transition: border-color var(--tv-transition-color) var(--tv-ease);
}

.tv-burger__bar,
.tv-burger__bar::before,
.tv-burger__bar::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	margin-left: -10px;
	background: var(--tv-deep);
	border-radius: 2px;
	transition: transform var(--tv-transition-move) var(--tv-ease);
}

.tv-burger__bar { top: 50%; margin-top: -1px; }
.tv-burger__bar::before { content: ''; left: 0; margin-left: 0; top: -6px; }
.tv-burger__bar::after { content: ''; left: 0; margin-left: 0; top: 6px; }

.tv-burger[aria-expanded='true'] .tv-burger__bar { background: transparent; }
.tv-burger[aria-expanded='true'] .tv-burger__bar::before { transform: translateY(6px) rotate(45deg); }
.tv-burger[aria-expanded='true'] .tv-burger__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.tv-burger { display: block; }

	.tv-nav {
		position: absolute;
		inset: 100% 0 auto;
		background: var(--tv-surface);
		border-bottom: 1px solid var(--tv-line);
		box-shadow: var(--tv-shadow);
		padding: 1.2rem 1.25rem 1.6rem;
		display: none;
	}

	.tv-nav.is-open { display: block; }

	.tv-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
	}

	.tv-nav a { padding: 0.7rem 0; }

	.tv-header__cta { display: none; }
}

/* ------------------------------------------------------------------ héro */

.tv-hero {
	position: relative;
	isolation: isolate;
	color: var(--tv-surface);
	display: grid;
	align-items: end;
	min-height: clamp(460px, 74vh, 760px);
	overflow: hidden;
}

.tv-hero__media,
.tv-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.tv-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(12, 43, 30, 0.25) 0%, rgba(12, 43, 30, 0.82) 78%),
		linear-gradient(90deg, rgba(12, 43, 30, 0.55) 0%, rgba(12, 43, 30, 0) 65%);
}

.tv-hero__inner {
	padding-block: clamp(3rem, 9vw, 6rem);
	max-width: 40rem;
}

.tv-hero h1 {
	color: var(--tv-surface);
	margin-bottom: 0.5em;
}

.tv-hero p {
	color: #dfeae4;
	font-size: var(--tv-step-1);
}

.tv-hero .tv-eyebrow { color: var(--tv-accent-on-deep); }

.tv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.8rem;
}

.tv-hero__actions .tv-button--ghost {
	color: var(--tv-surface);
	border-color: rgba(255, 255, 255, 0.55);
}

.tv-hero__actions .tv-button--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--tv-surface);
	border-color: var(--tv-surface);
}

/* ------------------------------------------------------------- horaires */

.tv-schedule {
	display: grid;
	gap: 1px;
	background: var(--tv-line);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
	overflow: hidden;
}

@media (min-width: 720px) {
	.tv-schedule { grid-template-columns: repeat(3, 1fr); }
}

.tv-schedule__item {
	background: var(--tv-surface);
	padding: 1.6rem;
	transition: background-color var(--tv-transition-color) var(--tv-ease);
}

.tv-schedule__item:hover { background: var(--tv-accent-soft); }

.tv-schedule__time {
	font-family: var(--tv-font-title);
	font-size: var(--tv-step-2);
	color: var(--tv-accent-strong);
	display: block;
}

.tv-schedule__item h3 { font-size: var(--tv-step-1); margin-bottom: 0.3em; }

/* ----------------------------------------------------------- carrousels */

.tv-carousel {
	position: relative;
	padding-bottom: 3rem;
}

.tv-carousel .swiper-slide {
	height: auto;
	display: flex;
}

.tv-carousel .swiper-pagination-bullet {
	background: var(--tv-deep);
	opacity: 0.25;
	transition: opacity var(--tv-transition-color) var(--tv-ease);
}

.tv-carousel .swiper-pagination-bullet-active {
	background: var(--tv-accent);
	opacity: 1;
}

.tv-carousel .swiper-button-next,
.tv-carousel .swiper-button-prev {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--tv-surface);
	border: 1px solid var(--tv-line);
	color: var(--tv-accent-strong);
	box-shadow: var(--tv-shadow-soft);
	transition:
		background-color var(--tv-transition-color) var(--tv-ease),
		color var(--tv-transition-color) var(--tv-ease);
}

.tv-carousel .swiper-button-next:hover,
.tv-carousel .swiper-button-prev:hover {
	background: var(--tv-accent);
	color: var(--tv-surface);
}

.tv-carousel .swiper-button-next::after,
.tv-carousel .swiper-button-prev::after {
	font-size: 1.05rem;
	font-weight: 700;
}

.tv-section--deep .tv-carousel .swiper-pagination-bullet { background: #ffffff; }
.tv-section--deep .tv-carousel .swiper-pagination-bullet-active { background: var(--tv-accent-on-deep); }

.tv-quote {
	background: var(--tv-surface);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
	padding: clamp(1.6rem, 3vw, 2.4rem);
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	width: 100%;
}

.tv-quote p {
	font-family: var(--tv-font-title);
	font-size: var(--tv-step-1);
	line-height: 1.45;
	color: var(--tv-deep);
}

.tv-quote figcaption {
	font-size: 0.92rem;
	color: var(--tv-ink-soft);
	margin-top: auto;
}

.tv-quote figcaption strong { color: var(--tv-ink); }

.tv-gallery-slide {
	border-radius: var(--tv-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	width: 100%;
}

.tv-gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ------------------------------------------------- contenu et articles */

.tv-page-header {
	background: var(--tv-accent-soft);
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.tv-page-header__inner { max-width: var(--tv-reading); }

.tv-prose {
	max-width: var(--tv-reading);
}

.tv-prose > * + * { margin-top: 1.1em; }
.tv-prose h2 { margin-top: 2em; }
.tv-prose ul,
.tv-prose ol { padding-left: 1.3em; }
.tv-prose li + li { margin-top: 0.4em; }

.tv-prose blockquote {
	margin: 2em 0;
	padding: 1.2em 1.6em;
	border-left: 4px solid var(--tv-accent);
	background: var(--tv-surface-alt);
	border-radius: 0 var(--tv-radius-sm) var(--tv-radius-sm) 0;
	font-family: var(--tv-font-title);
	font-size: var(--tv-step-1);
	color: var(--tv-deep);
}

.tv-prose img { border-radius: var(--tv-radius-sm); }

.tv-post-card {
	display: flex;
	flex-direction: column;
	background: var(--tv-surface);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
	overflow: hidden;
	height: 100%;
	transition: border-color var(--tv-transition-color) var(--tv-ease);
}

.tv-post-card:hover { border-color: var(--tv-accent); }

.tv-post-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tv-surface-alt);
}

.tv-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--tv-ease);
}

@media (hover: hover) and (pointer: fine) {
	.tv-post-card:hover .tv-post-card__thumb img { transform: scale(1.06); }
}

.tv-post-card__body {
	padding: 1.4rem 1.5rem 1.7rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.tv-post-card__body h3 { margin: 0; font-size: var(--tv-step-1); }
.tv-post-card__body h3 a { text-decoration: none; color: inherit; }
.tv-post-card__body h3 a:hover { color: var(--tv-accent-strong); }

.tv-meta {
	font-size: 0.85rem;
	color: var(--tv-ink-soft);
	letter-spacing: 0.03em;
}

.tv-pagination {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 3rem;
	flex-wrap: wrap;
}

.tv-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.6rem;
	border: 1px solid var(--tv-line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--tv-ink);
	transition:
		background-color var(--tv-transition-color) var(--tv-ease),
		color var(--tv-transition-color) var(--tv-ease),
		border-color var(--tv-transition-color) var(--tv-ease);
}

.tv-pagination .page-numbers:hover,
.tv-pagination .page-numbers.current {
	background: var(--tv-accent);
	border-color: var(--tv-accent);
	color: var(--tv-surface);
}

/* ------------------------------------------------------------ formulaire */

.tv-form {
	display: grid;
	gap: 1.1rem;
	max-width: 34rem;
}

.tv-field {
	display: grid;
	gap: 0.4rem;
}

.tv-field label {
	font-weight: 500;
	font-size: 0.92rem;
	color: var(--tv-ink);
}

.tv-field input,
.tv-field textarea,
.tv-field select {
	font: inherit;
	color: var(--tv-ink);
	background: var(--tv-surface);
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius-sm);
	transition:
		border-color var(--tv-transition-color) var(--tv-ease),
		box-shadow var(--tv-transition-color) var(--tv-ease);
}

.tv-field input:focus,
.tv-field textarea:focus,
.tv-field select:focus {
	outline: none;
	border-color: var(--tv-accent);
	box-shadow: 0 0 0 3px rgba(27, 122, 75, 0.18);
}

.tv-form__note {
	font-size: 0.85rem;
	color: var(--tv-ink-soft);
}

/* Sélecteur de date — habillage vert de flatpickr. */
.flatpickr-calendar {
	border-radius: var(--tv-radius-sm);
	box-shadow: var(--tv-shadow);
	font-family: var(--tv-font-body);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background: var(--tv-accent);
	border-color: var(--tv-accent);
	color: var(--tv-surface);
}

.flatpickr-day.today {
	border-color: var(--tv-accent);
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
	background: var(--tv-accent-soft);
	color: var(--tv-accent-strong);
	fill: var(--tv-accent-strong);
}

/* ---------------------------------------------------------- pied de page */

.tv-footer {
	background: var(--tv-deep);
	color: #c9dbd1;
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.tv-footer h2,
.tv-footer h3 {
	color: var(--tv-surface);
	font-size: var(--tv-step-1);
}

.tv-footer a {
	color: #e2efe8;
	text-decoration: none;
}

.tv-footer a:hover,
.tv-footer a:focus-visible {
	color: var(--tv-accent-on-deep);
}

.tv-footer__grid {
	display: grid;
	gap: var(--tv-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.tv-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.tv-footer__mark {
	height: 38px;
	width: auto;
	margin-bottom: 1rem;
}

.tv-footer__bottom {
	margin-top: 2.6rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.6rem;
	justify-content: space-between;
	font-size: 0.87rem;
}

/* ------------------------------------------------------------- Elementor */

/* Une page construite dans Elementor garde nos jetons : le constructeur pose
   ses propres conteneurs, nous ne fournissons que les couleurs, les polices
   et les classes utilitaires (tv-grow, tv-reveal, tv-button). */
.elementor-widget-container :is(h1, h2, h3, h4) {
	font-family: var(--tv-font-title);
}

/* Le bouton livré par Elementor prend l'habillage du thème : la cliente pose
   un bouton dans le constructeur et il ressemble à ceux du site, sans avoir à
   connaître nos classes. */
/* Elementor charge sa feuille après la nôtre : on passe par la classe de
   corps du thème pour reprendre la main sans `!important`. */
.tv-body .elementor-button {
	border-radius: 999px;
	padding: 0.85rem 1.7rem;
	font-family: var(--tv-font-body);
	font-weight: 700;
	background-color: var(--tv-accent);
	color: var(--tv-surface);
	transition:
		background-color var(--tv-transition-color) var(--tv-ease),
		color var(--tv-transition-color) var(--tv-ease),
		transform var(--tv-transition-move) var(--tv-ease);
}

.tv-body .elementor-button:hover,
.tv-body .elementor-button:focus-visible {
	background-color: var(--tv-accent-strong);
	color: var(--tv-surface);
}

/* Dans l'éditeur, aucune apparition différée : sinon le constructeur affiche
   des blocs invisibles et devient inutilisable. */
body.elementor-editor-active .tv-reveal,
body.elementor-editor-preview .tv-reveal {
	opacity: 1 !important;
	translate: none !important;
}

/* ------------------------------------------------------- mouvement réduit */

/* Le visiteur a demandé moins d'animation : on coupe tout sans rien dégrader.
   Côté JS, lenis n'est même pas démarré. */
@media (prefers-reduced-motion: reduce) {
	html:not(.lenis) {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.tv-grow:hover,
	.tv-grow:focus-within,
	.tv-media--zoom:hover img,
	.tv-post-card:hover .tv-post-card__thumb img,
	.tv-button:hover {
		transform: none;
	}

	.tv-reveal-ready .tv-reveal {
		opacity: 1;
		translate: none;
	}
}

@media print {
	.tv-header,
	.tv-footer,
	.tv-carousel .swiper-button-next,
	.tv-carousel .swiper-button-prev { display: none; }
}
