/**
 * Terre Végétale 13 — styles globaux.
 *
 * 1. Tokens sémantiques --tv-* (mappés sur les presets et réglages de theme.json)
 * 2. Base (remise à zéro, typographie)
 * 3. Mise en page
 * 4. Composants partagés (surtitre, titres, boutons, liens fléchés, pastilles, mentions)
 * 5. En-tête, navigation, menu mobile
 * 6. Pied de page
 * 7. Page simple (articles, 404, pages sans sections)
 * 8. Formulaire (Contact Form 7)
 * 9. Blocs natifs de Gutenberg
 *
 * Points de rupture (ceux de la maquette, en largeur maximale) : 1180px, 900px, 600px.
 */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
	--tv-couleur-fond: var(--wp--preset--color--fond);
	--tv-couleur-surface: var(--wp--preset--color--surface);
	--tv-couleur-carte: var(--wp--preset--color--carte);
	--tv-couleur-texte: var(--wp--preset--color--texte);
	--tv-couleur-attenue: var(--wp--preset--color--texte-attenue);
	--tv-couleur-primaire: var(--wp--preset--color--primaire);
	--tv-couleur-primaire-fonce: var(--wp--preset--color--primaire-fonce);
	--tv-couleur-accent: var(--wp--preset--color--accent);
	--tv-couleur-accent-clair: var(--wp--preset--color--accent-clair);
	--tv-couleur-blanc: var(--wp--preset--color--blanc);
	--tv-couleur-bordure: var(--wp--preset--color--bordure);
	--tv-couleur-bordure-forte: var(--wp--preset--color--bordure-forte);
	--tv-couleur-erreur: var(--wp--preset--color--erreur);
	--tv-couleur-erreur-fond: var(--wp--preset--color--erreur-fond);
	--tv-couleur-succes-fond: var(--wp--preset--color--succes-fond);
	--tv-couleur-focus: var(--wp--custom--couleur--focus);

	--tv-clair-fort: var(--wp--custom--voile--clair-fort);
	--tv-clair-moyen: var(--wp--custom--voile--clair-moyen);
	--tv-clair: var(--wp--custom--voile--clair);
	--tv-clair-legende: var(--wp--custom--voile--clair-legende);
	--tv-bordure-claire: var(--wp--custom--voile--bordure-claire);
	--tv-bordure-appel: var(--wp--custom--voile--bordure-appel);
	--tv-filet-clair: var(--wp--custom--voile--filet-clair);
	--tv-icone-claire: var(--wp--custom--voile--icone-claire);
	--tv-survol-clair: var(--wp--custom--voile--survol-clair);
	--tv-accent-survol: var(--wp--custom--voile--accent-survol);
	--tv-accent-actif: var(--wp--custom--voile--accent-actif);
	--tv-accent-mobile: var(--wp--custom--voile--accent-mobile);
	--tv-accent-mention: var(--wp--custom--voile--accent-mention);
	--tv-legende-fond: var(--wp--custom--voile--legende);
	--tv-erreur-halo: var(--wp--custom--voile--erreur);
	--tv-degrade-bandeau: var(--wp--custom--voile--degrade-bandeau);
	--tv-degrade-bandeau-mobile: var(--wp--custom--voile--degrade-bandeau-mobile);
	--tv-degrade-carte: var(--wp--custom--voile--degrade-carte);

	--tv-police-titres: var(--wp--preset--font-family--titres);
	--tv-police-texte: var(--wp--preset--font-family--texte);
	--tv-police-accent: var(--wp--preset--font-family--accent);
	--tv-police-menu: var(--wp--preset--font-family--menu);

	--tv-taille-h1: var(--wp--preset--font-size--h-1);
	--tv-taille-h2: var(--wp--preset--font-size--h-2);
	--tv-taille-h3: var(--wp--preset--font-size--h-3);
	--tv-taille-texte: var(--wp--custom--taille--texte);
	--tv-taille-texte-intro: var(--wp--custom--taille--texte-intro);
	--tv-taille-texte-aside: var(--wp--custom--taille--texte-aside);
	--tv-taille-texte-mobile: var(--wp--custom--taille--texte-mobile);
	--tv-taille-texte-mobile-section: var(--wp--custom--taille--texte-mobile-section);
	--tv-taille-option: var(--wp--custom--taille--option);
	--tv-taille-barre: var(--wp--custom--taille--barre);
	--tv-taille-nav: var(--wp--custom--taille--nav);
	--tv-taille-nav-moyen: var(--wp--custom--taille--nav-moyen);
	--tv-taille-sous-menu: var(--wp--custom--taille--sous-menu);
	--tv-taille-menu-mobile: var(--wp--custom--taille--menu-mobile);
	--tv-taille-sous-menu-mobile: var(--wp--custom--taille--sous-menu-mobile);
	--tv-taille-surtitre: var(--wp--custom--taille--surtitre);
	--tv-taille-surtitre-menu: var(--wp--custom--taille--surtitre-menu);
	--tv-taille-pastille: var(--wp--custom--taille--pastille);
	--tv-taille-legende: var(--wp--custom--taille--legende);
	--tv-taille-pied: var(--wp--custom--taille--pied);
	--tv-taille-pied-bas: var(--wp--custom--taille--pied-bas);
	--tv-taille-bouton: var(--wp--custom--taille--bouton);
	--tv-taille-lien: var(--wp--custom--taille--lien);
	--tv-taille-menu-bouton: var(--wp--custom--taille--menu-bouton);
	--tv-taille-telephone-mobile: var(--wp--custom--taille--telephone-mobile);
	--tv-taille-petit: var(--wp--custom--taille--petit);
	--tv-taille-etiquette: var(--wp--custom--taille--etiquette);
	--tv-taille-champ: var(--wp--custom--taille--champ);
	--tv-taille-h1-accueil: var(--wp--custom--taille--h-1-accueil);
	--tv-taille-h1-accueil-mobile: var(--wp--custom--taille--h-1-accueil-mobile);
	--tv-taille-h1-bandeau: var(--wp--custom--taille--h-1-bandeau);
	--tv-taille-h1-legal: var(--wp--custom--taille--h-1-legal);
	--tv-taille-h2-appel: var(--wp--custom--taille--h-2-appel);
	--tv-taille-h2-appel-mobile: var(--wp--custom--taille--h-2-appel-mobile);
	--tv-taille-h2-section: var(--wp--custom--taille--h-2-section);
	--tv-taille-h2-section-mobile: var(--wp--custom--taille--h-2-section-mobile);
	--tv-taille-h2-carte: var(--wp--custom--taille--h-2-carte);
	--tv-taille-h2-legal: var(--wp--custom--taille--h-2-legal);
	--tv-taille-h3-carte: var(--wp--custom--taille--h-3-carte);
	--tv-taille-h3-service: var(--wp--custom--taille--h-3-service);
	--tv-taille-h3-encadre: var(--wp--custom--taille--h-3-encadre);

	--tv-interligne-texte: var(--wp--custom--interligne--texte);
	--tv-interligne-texte-serre: var(--wp--custom--interligne--texte-serre);
	--tv-interligne-formulaire: var(--wp--custom--interligne--formulaire);
	--tv-interligne-titre: var(--wp--custom--interligne--titre);
	--tv-interligne-titre-bandeau: var(--wp--custom--interligne--titre-bandeau);
	--tv-interligne-un: var(--wp--custom--interligne--un);
	--tv-interligne-base: 1.5;
	--tv-interligne-h1: 0.87;
	--tv-interligne-h2: 0.94;
	--tv-interligne-champ: 1.4;

	--tv-espace-1: var(--wp--preset--spacing--1);
	--tv-espace-2: var(--wp--preset--spacing--2);
	--tv-espace-3: var(--wp--preset--spacing--3);
	--tv-espace-4: var(--wp--preset--spacing--4);
	--tv-espace-5: var(--wp--preset--spacing--5);
	--tv-espace-6: var(--wp--preset--spacing--6);
	--tv-espace-7: var(--wp--preset--spacing--7);
	--tv-espace-8: var(--wp--preset--spacing--8);
	--tv-espace-9: var(--wp--preset--spacing--9);
	--tv-espace-10: var(--wp--preset--spacing--10);
	--tv-espace-11: var(--wp--preset--spacing--11);
	--tv-espace-12: var(--wp--preset--spacing--12);
	--tv-espace-14: var(--wp--preset--spacing--14);
	--tv-espace-16: var(--wp--preset--spacing--16);
	--tv-espace-18: var(--wp--preset--spacing--18);
	--tv-espace-20: var(--wp--preset--spacing--20);
	--tv-gouttiere: var(--wp--preset--spacing--gouttiere);
	--tv-gouttiere-tablette: var(--wp--preset--spacing--gouttiere-tablette);
	--tv-gouttiere-mobile: var(--wp--preset--spacing--gouttiere-mobile);
	--tv-espace-section: var(--wp--preset--spacing--section);
	--tv-espace-section-texte: var(--wp--preset--spacing--section-texte);
	--tv-espace-appel: var(--wp--preset--spacing--appel);
	--tv-espace-section-mobile: var(--wp--preset--spacing--section-mobile);
	--tv-espace-section-texte-mobile: var(--wp--preset--spacing--section-texte-mobile);
	--tv-espace-grand-ecart: var(--wp--preset--spacing--grand-ecart);
	--tv-espace-ecart-titre: var(--wp--preset--spacing--ecart-titre);
	--tv-espace-ecart-appel: var(--wp--preset--spacing--ecart-appel);
	--tv-espace-ecart-acces: var(--wp--preset--spacing--ecart-acces);
	--tv-espace-ecart-devis: var(--wp--preset--spacing--ecart-devis);
	--tv-espace-carte-contact: var(--wp--preset--spacing--carte-contact);
	--tv-espace-carte-service: var(--wp--preset--spacing--carte-service);
	--tv-espace-carte-service-aside: var(--wp--preset--spacing--carte-service-aside);
	--tv-espace-encadre: var(--wp--preset--spacing--encadre);
	--tv-espace-formulaire: var(--wp--preset--spacing--formulaire);
	--tv-espace-legal: var(--wp--preset--spacing--legal);
	--tv-espace-bandeau-haut: var(--wp--preset--spacing--bandeau-haut);
	--tv-espace-accueil-haut: var(--wp--preset--spacing--accueil-haut);
	--tv-espace-nav: var(--wp--preset--spacing--nav);

	--tv-rayon-photo: var(--wp--custom--rayon--photo);
	--tv-rayon-bloc: var(--wp--custom--rayon--bloc);
	--tv-rayon-carte: var(--wp--custom--rayon--carte);
	--tv-rayon-nav: var(--wp--custom--rayon--nav);
	--tv-rayon-mobile: var(--wp--custom--rayon--mobile);
	--tv-rayon-menu: var(--wp--custom--rayon--menu);
	--tv-rayon-champ: var(--wp--custom--rayon--champ);
	--tv-rayon-notice: var(--wp--custom--rayon--notice);
	--tv-rayon-lien: var(--wp--custom--rayon--lien);
	--tv-rayon-mention: var(--wp--custom--rayon--mention);
	--tv-rayon-pastille: var(--wp--custom--rayon--pastille);
	--tv-rayon-petit: var(--wp--custom--rayon--petit);

	--tv-largeur-conteneur: var(--wp--custom--largeur--conteneur);
	--tv-largeur-contenu: var(--wp--custom--largeur--contenu);
	--tv-largeur-contenu-tablette: var(--wp--custom--largeur--contenu-tablette);
	--tv-largeur-contenu-mobile: var(--wp--custom--largeur--contenu-mobile);
	--tv-largeur-lecture: var(--wp--custom--largeur--lecture);
	--tv-largeur-legal: var(--wp--custom--largeur--legal);
	--tv-largeur-bandeau-titre: var(--wp--custom--largeur--bandeau-titre);
	--tv-largeur-accueil-titre: var(--wp--custom--largeur--accueil-titre);
	--tv-largeur-accueil-texte: var(--wp--custom--largeur--accueil-texte);
	--tv-largeur-section-texte: var(--wp--custom--largeur--section-texte);
	--tv-largeur-services-titre: var(--wp--custom--largeur--services-titre);
	--tv-largeur-titre-section: var(--wp--custom--largeur--titre-section);
	--tv-largeur-pied-texte: var(--wp--custom--largeur--pied-texte);
	--tv-largeur-sous-menu: var(--wp--custom--largeur--sous-menu);
	--tv-largeur-puce: var(--wp--custom--largeur--puce);
	--tv-largeur-puce-option: var(--wp--custom--largeur--puce-option);
	--tv-largeur-icone-bouton: var(--wp--custom--largeur--icone-bouton);
	--tv-largeur-icone-entete: var(--wp--custom--largeur--icone-entete);
	--tv-largeur-icone: var(--wp--custom--largeur--icone);
	--tv-largeur-icone-petite: var(--wp--custom--largeur--icone-petite);
	--tv-largeur-icone-appel: var(--wp--custom--largeur--icone-appel);
	--tv-largeur-pastille-lieu: var(--wp--custom--largeur--pastille-lieu);
	--tv-largeur-pastille-barre: var(--wp--custom--largeur--pastille-barre);
	--tv-largeur-logo-entete: var(--wp--custom--largeur--logo-entete);
	--tv-largeur-logo-mobile: var(--wp--custom--largeur--logo-mobile);
	--tv-largeur-logo-pied: var(--wp--custom--largeur--logo-pied);
	--tv-largeur-carte-service: var(--wp--custom--largeur--carte-service);
	--tv-largeur-bouton-mobile: var(--wp--custom--largeur--bouton-mobile);

	--tv-hauteur-barre: var(--wp--custom--hauteur--barre);
	--tv-hauteur-nav: var(--wp--custom--hauteur--nav);
	--tv-hauteur-nav-mobile: var(--wp--custom--hauteur--nav-mobile);
	--tv-hauteur-entete: var(--wp--custom--hauteur--entete);
	--tv-hauteur-entete-mobile: var(--wp--custom--hauteur--entete-mobile);
	--tv-hauteur-bandeau-accueil: var(--wp--custom--hauteur--bandeau-accueil);
	--tv-hauteur-bandeau-accueil-mobile: var(--wp--custom--hauteur--bandeau-accueil-mobile);
	--tv-hauteur-bandeau: var(--wp--custom--hauteur--bandeau);
	--tv-hauteur-bandeau-grand: var(--wp--custom--hauteur--bandeau-grand);
	--tv-hauteur-carte-materiau: var(--wp--custom--hauteur--carte-materiau);
	--tv-hauteur-carte-materiau-tablette: var(--wp--custom--hauteur--carte-materiau-tablette);
	--tv-hauteur-carte-materiau-mobile: var(--wp--custom--hauteur--carte-materiau-mobile);
	--tv-hauteur-photo-pelouse: var(--wp--custom--hauteur--photo-pelouse);
	--tv-hauteur-photo-pelouse-tablette: var(--wp--custom--hauteur--photo-pelouse-tablette);
	--tv-hauteur-photo-pelouse-mobile: var(--wp--custom--hauteur--photo-pelouse-mobile);
	--tv-hauteur-photo-section: var(--wp--custom--hauteur--photo-section);
	--tv-hauteur-photo-section-tablette: var(--wp--custom--hauteur--photo-section-tablette);
	--tv-hauteur-photo-section-mobile: var(--wp--custom--hauteur--photo-section-mobile);
	--tv-hauteur-carte-service: var(--wp--custom--hauteur--carte-service);
	--tv-hauteur-bouton: var(--wp--custom--hauteur--bouton);
	--tv-hauteur-bouton-entete: var(--wp--custom--hauteur--bouton-entete);
	--tv-hauteur-champ: var(--wp--custom--hauteur--champ);

	--tv-ombre-nav: var(--wp--custom--ombre--nav);
	--tv-ombre-carte: var(--wp--custom--ombre--carte);
	--tv-ombre-photo: var(--wp--custom--ombre--photo);
	--tv-ombre-photo-section: var(--wp--custom--ombre--photo-section);
	--tv-ombre-douce: var(--wp--custom--ombre--douce);
	--tv-ombre-formulaire: var(--wp--custom--ombre--formulaire);
	--tv-ombre-sous-menu: var(--wp--custom--ombre--sous-menu);
	--tv-ombre-menu-mobile: var(--wp--custom--ombre--menu-mobile);

	/* Mesures de la maquette sans équivalent dans l'échelle d'espacement (theme.json : custom.mesure). */
	--tv-mesure-9: var(--wp--custom--mesure--9);
	--tv-mesure-11: var(--wp--custom--mesure--11);
	--tv-mesure-13: var(--wp--custom--mesure--13);
	--tv-mesure-18: var(--wp--custom--mesure--18);
	--tv-mesure-22: var(--wp--custom--mesure--22);
	--tv-mesure-26: var(--wp--custom--mesure--26);
	--tv-mesure-30: var(--wp--custom--mesure--30);
	--tv-mesure-35: var(--wp--custom--mesure--35);
	--tv-mesure-42: var(--wp--custom--mesure--42);
	--tv-mesure-48: var(--wp--custom--mesure--48);
	--tv-mesure-54: var(--wp--custom--mesure--54);
	--tv-mesure-90: var(--wp--custom--mesure--90);
	--tv-mesure-125: var(--wp--custom--mesure--125);
	--tv-mesure-136: var(--wp--custom--mesure--136);
	--tv-mesure-150: var(--wp--custom--mesure--150);
	--tv-largeur-surtitres: var(--wp--custom--largeur--surtitres);
	--tv-largeur-texte-service: var(--wp--custom--largeur--texte-service);
	--tv-taille-legende-mobile: var(--wp--custom--taille--legende-mobile);
	--tv-flou: var(--wp--custom--divers--flou);
	--tv-retrait-liste: var(--wp--custom--divers--retrait-liste);

	/* Écarts de la maquette sans équivalent dans l'échelle d'espacement. */
	--tv-ecart-surtitre: 14px;
	--tv-ecart-bouton: 20px;
	--tv-ecart-filet: 1px;
	--tv-ecart-icone: 7px;
	--tv-ecart-chevron: 5px;
	--tv-ecart-entete-mobile: 13px;
	--tv-ecart-sous-menu: 15px;
	--tv-ecart-barre: 25px;
	--tv-pastille-padding: 10px;
	--tv-bouton-padding-gauche: 23px;
	--tv-bouton-padding-droite: 9px;
	--tv-entete-bouton-padding-gauche: 19px;
	--tv-lettrage-titre: -0.045em;
	--tv-lettrage-surtitre: 0.14em;
	--tv-lettrage-menu: 0.13em;
	--tv-lettrage-barre: 0.08em;
	--tv-lettrage-legende: 0.1em;
	--tv-lettrage-pied: 0.05em;
	--tv-lettrage-pastille: 0.12em;
	--tv-decalage-fleche: 4px;
	--tv-apparition-distance: 24px;
	--tv-apparition-duree: 0.8s;
	--tv-apparition-pas: 0.12s;
	--tv-epaisseur-focus: 3px;

	/* Largeurs maximales de .container (Tailwind) reprises par la maquette. */
	--tv-palier-sm: 640px;
	--tv-palier-md: 768px;
	--tv-palier-lg: 1024px;
	--tv-palier-xl: 1280px;
	--tv-palier-2xl: 1536px;

	/* Contenu des conteneurs, gouttière (maquette : .container). */
	--tv-contenu: var(--tv-largeur-contenu);
	--tv-marge: var(--tv-gouttiere);
}

/* 2. Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
	border: 0 solid var(--tv-couleur-bordure);
}

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

/*
 * « .editor-styles-wrapper » : dans le canevas de l’éditeur (iframe), le préfixeur réécrit
 * « body » en « body .editor-styles-wrapper », qui ne cible rien puisque le wrapper est
 * le <body> lui-même. Un sélecteur contenant déjà le wrapper est laissé tel quel.
 */
body,
.editor-styles-wrapper {
	min-width: 320px;
	margin: 0;
	overflow-x: hidden;
	background-color: var(--tv-couleur-fond);
	color: var(--tv-couleur-texte);
	font-family: var(--tv-police-texte);
	font-size: 1rem;
	font-synthesis: none;
	line-height: var(--tv-interligne-base);
}

body.tv-menu-ouvert {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	color: inherit;
	font-family: var(--tv-police-titres);
	font-weight: 500;
	letter-spacing: var(--tv-lettrage-titre);
	text-wrap: balance;
}

h1 {
	font-size: var(--tv-taille-h1);
	line-height: var(--tv-interligne-h1);
}

h2 {
	font-size: var(--tv-taille-h2);
	line-height: var(--tv-interligne-h2);
}

h3 {
	font-size: var(--tv-taille-h3);
	line-height: var(--tv-interligne-titre);
}

p {
	line-height: var(--tv-interligne-texte);
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
}

address {
	font-style: normal;
}

*:focus-visible {
	outline: var(--tv-epaisseur-focus) solid var(--tv-couleur-focus);
	outline-offset: var(--tv-epaisseur-focus);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.tv-lien-evitement {
	position: absolute;
	left: var(--tv-espace-4);
	top: var(--tv-espace-4);
	z-index: 60;
	padding: var(--tv-espace-2) var(--tv-espace-4);
	border-radius: var(--tv-rayon-pastille);
	background: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
	font-weight: 600;
	transform: translateY(-300%);
}

.tv-lien-evitement:focus {
	transform: none;
}

/* 3. Mise en page ---------------------------------------------------------- */

/*
 * Conteneur : largeur du contenu, gouttières de part et d'autre (maquette : .container). La
 * classe .container de la maquette reçoit aussi les largeurs maximales de Tailwind (640, 768,
 * 1024, 1280, 1536 px selon l'écran) : 1280 px de contenu sur un écran de 1440 px.
 */
.tv-conteneur {
	width: min(100% - 2 * var(--tv-marge), var(--tv-contenu));
	max-width: var(--tv-conteneur-max);
	margin-inline: auto;
}

body,
.editor-styles-wrapper {
	--tv-conteneur-max: 100%;
	--wp--style--global--content-size: min(var(--tv-contenu), var(--tv-conteneur-max));
}

@media (min-width: 640px) {
	body,
	.editor-styles-wrapper {
		--tv-conteneur-max: var(--tv-palier-sm);
	}
}

@media (min-width: 768px) {
	body,
	.editor-styles-wrapper {
		--tv-conteneur-max: var(--tv-palier-md);
	}
}

@media (min-width: 1024px) {
	body,
	.editor-styles-wrapper {
		--tv-conteneur-max: var(--tv-palier-lg);
	}
}

@media (min-width: 1280px) {
	body,
	.editor-styles-wrapper {
		--tv-conteneur-max: var(--tv-palier-xl);
	}
}

@media (min-width: 1536px) {
	body,
	.editor-styles-wrapper {
		--tv-conteneur-max: var(--tv-palier-2xl);
	}
}

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

.tv-section.is-style-surface {
	background-color: var(--tv-couleur-surface);
}

.tv-boutons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tv-espace-3);
	margin-top: var(--tv-espace-9);
}

/* Le bandeau passe sous l'en-tête (barre de navigation flottante sur la photo). */
.tv-contenu > .tv-bandeau:first-child,
.tv-contenu > .tv-bandeau-accueil:first-child {
	margin-top: calc(-1 * var(--tv-hauteur-entete));
}

@media (max-width: 900px) {
	body,
	.editor-styles-wrapper {
		--tv-contenu: var(--tv-largeur-contenu-tablette);
		--tv-marge: var(--tv-gouttiere-tablette);
		--wp--style--root--padding-left: var(--tv-gouttiere-tablette);
		--wp--style--root--padding-right: var(--tv-gouttiere-tablette);
	}

	.tv-contenu > .tv-bandeau:first-child,
	.tv-contenu > .tv-bandeau-accueil:first-child {
		margin-top: calc(-1 * var(--tv-hauteur-entete-mobile));
	}
}

@media (max-width: 600px) {
	body,
	.editor-styles-wrapper {
		--tv-contenu: var(--tv-largeur-contenu-mobile);
		--tv-marge: var(--tv-gouttiere-mobile);
		--wp--style--root--padding-left: var(--tv-gouttiere-mobile);
		--wp--style--root--padding-right: var(--tv-gouttiere-mobile);
	}

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

	.tv-boutons {
		flex-direction: column;
		align-items: stretch;
	}
}

/* 4. Composants partagés --------------------------------------------------- */

/* Surtitre (maquette : .eyebrow) ; aussi style « Surtitre » du paragraphe natif. */
.tv-surtitre,
p.is-style-surtitre {
	display: flex;
	align-items: center;
	gap: var(--tv-ecart-surtitre);
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-surtitre);
	font-weight: 600;
	line-height: var(--tv-interligne-un);
	letter-spacing: var(--tv-lettrage-surtitre);
	text-transform: uppercase;
}

.tv-surtitre::before,
p.is-style-surtitre::before {
	content: "";
	flex-shrink: 0;
	width: var(--tv-largeur-pastille-lieu);
	height: var(--tv-largeur-pastille-lieu);
	border-radius: 50%;
	background: var(--tv-couleur-accent);
}

/* Fin de titre en italique (« à Trets »). */
.tv-italique {
	font-family: var(--tv-police-accent);
	font-style: italic;
	font-weight: 500;
}

/* Icônes */
.tv-icone {
	flex-shrink: 0;
	width: var(--tv-largeur-icone);
	height: auto;
	transition: transform 0.2s;
}

/* Boutons (maquette : .button) */
.tv-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tv-ecart-bouton);
	min-height: var(--tv-hauteur-bouton);
	padding: 0 var(--tv-bouton-padding-droite) 0 var(--tv-bouton-padding-gauche);
	border: 1px solid transparent;
	border-radius: var(--tv-rayon-pastille);
	font-size: var(--tv-taille-bouton);
	font-weight: 600;
	line-height: var(--tv-interligne-base);
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}

.tv-bouton .tv-icone {
	flex: 0 0 auto;
	width: var(--tv-largeur-icone-bouton);
	height: var(--tv-largeur-icone-bouton);
	padding: var(--tv-pastille-padding);
	border-radius: 50%;
}

.tv-bouton:hover .tv-icone,
.tv-lien-fleche:hover .tv-icone,
.tv-sous-menu__lien:hover .tv-icone {
	transform: translateX(var(--tv-decalage-fleche));
}

.tv-bouton--primaire {
	border-color: var(--tv-couleur-accent);
	background-color: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
}

.tv-bouton--primaire:hover {
	background-color: var(--tv-couleur-accent-clair);
}

.tv-bouton--primaire .tv-icone {
	background-color: var(--tv-couleur-texte);
	color: var(--tv-couleur-accent);
}

/* Contour : clair, sur fond foncé (bandeaux, appel). */
.tv-bouton--contour {
	border-color: var(--tv-bordure-claire);
	color: var(--tv-couleur-fond);
}

.tv-bouton--contour:hover {
	border-color: var(--tv-couleur-fond);
	background-color: var(--tv-couleur-fond);
	color: var(--tv-couleur-texte);
}

.tv-bouton--contour .tv-icone {
	background-color: var(--tv-icone-claire);
}

/* Lien d'appel (« tel: ») : icône de téléphone devant le libellé. */
.tv-bouton--appel {
	padding-inline: var(--tv-bouton-padding-gauche);
}

.tv-bouton--appel.tv-bouton--contour {
	border-color: var(--tv-bordure-appel);
}

.tv-bouton--appel.tv-bouton--contour:hover {
	border-color: var(--tv-bordure-appel);
	background-color: var(--tv-survol-clair);
	color: var(--tv-couleur-fond);
}

.tv-bouton--appel .tv-icone {
	width: var(--tv-largeur-icone-appel);
	height: var(--tv-largeur-icone-appel);
	padding: 0;
	background: none;
	color: currentColor;
}

/* Bouton de l'en-tête (maquette : .header-cta). */
.tv-bouton--entete {
	gap: var(--tv-ecart-surtitre);
	min-height: var(--tv-hauteur-bouton-entete);
	padding: 0 var(--tv-espace-2) 0 var(--tv-entete-bouton-padding-gauche);
	background-color: var(--tv-couleur-primaire);
	color: var(--tv-couleur-fond);
	white-space: nowrap;
}

.tv-bouton--entete .tv-icone {
	width: var(--tv-largeur-icone-entete);
	height: var(--tv-largeur-icone-entete);
	padding: var(--tv-espace-2);
	background-color: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
}

@media (max-width: 600px) {
	.tv-bouton {
		justify-content: space-between;
		width: 100%;
	}
}

/* Lien fléché (maquette : .text-link) */
.tv-lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: var(--tv-espace-3);
	color: inherit;
	font-size: var(--tv-taille-lien);
	font-weight: 600;
	line-height: var(--tv-interligne-base);
	text-decoration: none;
}

.tv-lien-fleche .tv-icone {
	flex: 0 0 auto;
	width: var(--tv-largeur-icone-bouton);
	height: var(--tv-largeur-icone-bouton);
	padding: var(--tv-pastille-padding);
	border-radius: 50%;
	background-color: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
}

/* Pastille numérotée (01, 02…) */
.tv-pastille {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: var(--tv-largeur-puce);
	height: var(--tv-largeur-puce);
	border-radius: 50%;
	background: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-surtitre);
	font-weight: 600;
	line-height: var(--tv-interligne-un);
}

/* Texte riche */
.tv-texte-riche > * + * {
	margin-top: var(--tv-espace-5);
}

.tv-texte-riche a {
	font-weight: 600;
}

.tv-texte-riche a:hover {
	text-decoration: underline;
}

.tv-texte-riche ul {
	padding-left: 1.2em;
	list-style: disc;
}

.tv-texte-riche ol {
	padding-left: 1.2em;
	list-style: decimal;
}

/* Mentions à compléter (« [à compléter] ») : surlignées. */
.tv-a-completer,
mark.tv-a-completer {
	padding: 2px var(--tv-rayon-mention);
	border-radius: var(--tv-rayon-mention);
	background: var(--tv-accent-mention);
	color: var(--tv-couleur-texte);
}

.tv-apercu-vide {
	padding: var(--tv-espace-6);
	border: 2px dashed var(--tv-couleur-bordure-forte);
	border-radius: var(--tv-rayon-carte);
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-petit);
}

/* Photo de fond d'un bandeau (balise img positionnée, voile en CSS). */
.tv-photo-fond {
	position: absolute;
	inset: 0;
	margin: 0;
}

.tv-photo-fond img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% center;
}

.tv-photo-fond::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tv-degrade-bandeau);
}

@media (max-width: 900px) {
	.tv-photo-fond::after {
		background: var(--tv-degrade-bandeau-mobile);
	}
}

/* 5. En-tête --------------------------------------------------------------- */

.tv-entete {
	position: relative;
	z-index: 50;
	padding-bottom: var(--tv-espace-5);
}

.tv-entete__barre {
	background: var(--tv-couleur-primaire);
	color: var(--tv-clair);
	font-size: var(--tv-taille-barre);
	letter-spacing: var(--tv-lettrage-barre);
	text-transform: uppercase;
}

.tv-entete__barre-contenu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--tv-ecart-barre);
	height: var(--tv-hauteur-barre);
}

.tv-entete__lieu,
.tv-entete__appel {
	display: inline-flex;
	align-items: center;
	gap: var(--tv-ecart-icone);
}

.tv-entete__appel .tv-icone {
	width: var(--tv-ecart-surtitre);
}

.tv-entete__point {
	width: var(--tv-largeur-pastille-barre);
	height: var(--tv-largeur-pastille-barre);
	border-radius: 50%;
	background: var(--tv-couleur-accent);
}

.tv-entete__nav {
	position: relative;
	display: grid;
	grid-template-columns: 210px 1fr auto;
	align-items: center;
	gap: var(--tv-espace-7);
	min-height: var(--tv-hauteur-nav);
	padding-inline: var(--tv-espace-5);
	border-radius: var(--tv-rayon-nav);
	background: var(--tv-couleur-fond);
	box-shadow: var(--tv-ombre-nav);
}

.tv-entete__logo {
	display: inline-flex;
	width: var(--tv-largeur-logo-entete);
}

.tv-entete__mobile {
	display: none;
}

/* Navigation (grand écran) */
.tv-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--tv-espace-nav);
	height: 100%;
}

/* Le bouton actif (pastille, hauteur automatique) reste centré verticalement dans la barre. */
.tv-nav__groupe {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
}

.tv-nav__lien {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--tv-ecart-chevron);
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tv-couleur-texte);
	font-family: var(--tv-police-texte);
	font-size: var(--tv-taille-nav);
	font-weight: 500;
	line-height: var(--tv-interligne-un);
	white-space: nowrap;
	cursor: pointer;
}

.tv-nav__lien.est-actif {
	height: auto;
	padding: var(--tv-pastille-padding) var(--tv-ecart-sous-menu);
	border-radius: var(--tv-rayon-pastille);
	background: var(--tv-couleur-accent);
}

.tv-nav__bouton .tv-icone {
	width: var(--tv-largeur-icone-petite);
}

.tv-nav__bouton[aria-expanded="true"] .tv-icone {
	transform: rotate(180deg);
}

/* Panneau du sous-menu : sous l'élément parent, centré sur lui, juste sous la barre. */
.tv-sous-menu {
	position: absolute;
	top: calc(100% + var(--tv-espace-3));
	left: 50%;
	width: var(--tv-largeur-sous-menu);
	transform: translateX(-50%);
	padding: var(--tv-espace-7) var(--tv-espace-8) var(--tv-ecart-barre);
	border-radius: var(--tv-rayon-menu);
	background: var(--tv-couleur-fond);
	box-shadow: var(--tv-ombre-sous-menu);
}

.tv-sous-menu[hidden] {
	display: none;
}

/* Pont invisible au-dessus du panneau : la souris passe du bouton au panneau sans le refermer. */
.tv-sous-menu::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: calc(var(--tv-espace-3) + var(--tv-espace-4));
}

.tv-sous-menu__titre {
	margin-bottom: var(--tv-ecart-sous-menu);
	font-size: var(--tv-taille-surtitre-menu);
	font-weight: 600;
	letter-spacing: var(--tv-lettrage-menu);
	line-height: var(--tv-interligne-texte);
	text-transform: uppercase;
}

.tv-sous-menu__lien {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tv-ecart-sous-menu);
	padding: var(--tv-espace-3) 0;
	border-top: 1px solid var(--tv-couleur-bordure);
	font-family: var(--tv-police-menu);
	font-size: var(--tv-taille-sous-menu);
	font-weight: 500;
	line-height: var(--tv-interligne-un);
	/* Au survol, le texte glisse vers la droite et le fond vert apparaît en douceur. */
	transition:
		padding 0.25s ease,
		background-color 0.25s ease;
}

.tv-sous-menu__lien:hover {
	padding-inline: var(--tv-espace-2);
	border-radius: var(--tv-rayon-lien);
	background: var(--tv-accent-survol);
}

.tv-sous-menu__lien.est-actif {
	padding-inline: var(--tv-espace-2);
	border-radius: var(--tv-rayon-lien);
	background: var(--tv-accent-actif);
}

/* Sans JavaScript : le panneau s'ouvre au survol. */
html:not(.js) .tv-nav__groupe:hover .tv-sous-menu {
	display: block;
}

/* Menu mobile */
.tv-menu-mobile {
	display: none;
}

.tv-menu-mobile__nav {
	width: min(100% - 2 * var(--tv-gouttiere-tablette), var(--tv-largeur-contenu-tablette));
	margin: auto;
	padding: var(--tv-espace-4) 0 var(--tv-espace-10);
}

.tv-menu-mobile__lien {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 17px 2px;
	border-bottom: 1px solid var(--tv-couleur-bordure);
	font-family: var(--tv-police-menu);
	font-size: var(--tv-taille-menu-mobile);
	font-weight: 500;
	line-height: var(--tv-interligne-un);
	text-align: left;
	cursor: pointer;
}

.tv-menu-mobile__nav > .tv-menu-mobile__lien:first-child {
	width: fit-content;
	margin: 6px 0;
	padding: var(--tv-pastille-padding) var(--tv-espace-4);
	border: 0;
	border-radius: var(--tv-rayon-pastille);
	background: var(--tv-couleur-accent);
}

.tv-menu-mobile__lien.est-actif {
	background: var(--tv-accent-mobile);
}

.tv-menu-mobile__resume {
	list-style: none;
	user-select: none;
}

.tv-menu-mobile__resume::-webkit-details-marker {
	display: none;
}

.tv-menu-mobile__chevron {
	width: 17px;
}

.tv-menu-mobile__accordeon[open] .tv-menu-mobile__chevron {
	transform: rotate(180deg);
}

.tv-menu-mobile__sous-liste {
	padding: 6px 0 var(--tv-espace-3) 18px;
	border-bottom: 1px solid var(--tv-couleur-bordure);
}

.tv-menu-mobile__sous-lien {
	display: block;
	padding: var(--tv-espace-3) 0;
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-sous-menu-mobile);
}

.tv-menu-mobile__sous-lien.est-actif {
	margin-inline: calc(-1 * var(--tv-pastille-padding));
	padding-inline: var(--tv-pastille-padding);
	border-radius: var(--tv-pastille-padding);
	background: var(--tv-accent-mobile);
	color: var(--tv-couleur-texte);
}

.tv-menu-mobile__devis {
	width: 100%;
	margin-top: var(--tv-espace-6);
}

.tv-menu-mobile__appel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--tv-espace-2);
	margin-top: var(--tv-largeur-pastille-barre);
	padding: 17px 2px;
	font-size: var(--tv-taille-telephone-mobile);
}

@media (max-width: 1180px) {
	.tv-entete__nav {
		grid-template-columns: 180px 1fr auto;
		gap: var(--tv-ecart-sous-menu);
		padding-inline: var(--tv-espace-4);
	}

	.tv-nav {
		gap: var(--tv-ecart-surtitre);
	}

	.tv-nav__lien {
		font-size: var(--tv-taille-nav-moyen);
	}

	.tv-nav > .tv-nav__lien:last-child {
		display: none;
	}
}

@media (max-width: 900px) {
	.tv-entete {
		padding: var(--tv-espace-3) 0;
	}

	.tv-entete__barre,
	.tv-nav,
	.tv-entete__devis {
		display: none;
	}

	.tv-entete__nav {
		display: flex;
		justify-content: space-between;
		min-height: var(--tv-hauteur-nav-mobile);
		border-radius: 18px;
	}

	.tv-entete__mobile {
		display: flex;
		align-items: center;
		gap: var(--tv-pastille-padding);
	}

	.tv-entete__raccourci {
		display: grid;
		place-items: center;
		width: var(--tv-largeur-bouton-mobile);
		height: var(--tv-largeur-bouton-mobile);
		border: 1px solid var(--tv-couleur-bordure);
		border-radius: 50%;
		color: var(--tv-couleur-texte);
	}

	.tv-entete__menu {
		display: flex;
		align-items: center;
		gap: var(--tv-ecart-surtitre);
		height: var(--tv-largeur-bouton-mobile);
		padding: 0 var(--tv-ecart-surtitre);
		border: 0;
		border-radius: var(--tv-rayon-pastille);
		background: var(--tv-couleur-primaire);
		color: var(--tv-couleur-blanc);
		font-size: var(--tv-taille-menu-bouton);
		font-weight: 600;
	}

	.tv-entete__menu-icone {
		position: relative;
		width: var(--tv-espace-4);
		height: var(--tv-pastille-padding);
	}

	.tv-entete__menu-icone i {
		position: absolute;
		left: 0;
		width: var(--tv-espace-4);
		height: 1px;
		background: currentColor;
		transition: 0.2s;
	}

	.tv-entete__menu-icone i:first-child {
		top: 2px;
	}

	.tv-entete__menu-icone i:last-child {
		bottom: 2px;
	}

	.tv-entete__menu[aria-expanded="true"] .tv-entete__menu-icone i:first-child {
		top: var(--tv-largeur-pastille-barre);
		transform: rotate(45deg);
	}

	.tv-entete__menu[aria-expanded="true"] .tv-entete__menu-icone i:last-child {
		bottom: var(--tv-espace-1);
		transform: rotate(-45deg);
	}

	.tv-menu-mobile {
		position: fixed;
		inset: var(--tv-hauteur-entete-mobile) var(--tv-espace-4) var(--tv-espace-4);
		display: block;
		overflow-y: auto;
		border-radius: var(--tv-espace-6);
		background: var(--tv-couleur-fond);
		box-shadow: var(--tv-ombre-menu-mobile);
	}

	.tv-menu-mobile[hidden] {
		display: none;
	}
}

@media (max-width: 600px) {
	.tv-entete {
		padding-inline: 0;
	}

	.tv-entete__nav {
		padding-inline: var(--tv-ecart-entete-mobile);
	}

	/* Agrandi par rapport à la maquette (illisible) ; rétrécit sur les écrans les plus étroits. */
	.tv-entete__logo {
		flex-shrink: 1;
		width: var(--tv-largeur-logo-mobile);
		min-width: 0;
	}

	.tv-entete__mobile {
		gap: var(--tv-ecart-icone);
	}
}

/* 6. Pied de page ---------------------------------------------------------- */

.tv-pied {
	padding: 72px 0 var(--tv-ecart-barre);
	background: var(--tv-couleur-fond);
	color: var(--tv-couleur-texte);
}

.tv-pied__grille {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 0.6fr;
	gap: var(--tv-espace-20);
	padding-bottom: 65px;
}

.tv-pied__logo {
	display: inline-flex;
	width: min(var(--tv-largeur-logo-pied), 100%);
}

.tv-pied__texte p {
	max-width: var(--tv-largeur-pied-texte);
	margin-top: var(--tv-espace-7);
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-pied);
}

.tv-pied__titre {
	margin-bottom: 23px;
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-pastille);
	font-weight: 600;
	letter-spacing: var(--tv-lettrage-menu);
	text-transform: uppercase;
}

.tv-pied__liste {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--tv-ecart-surtitre);
	font-size: var(--tv-taille-pied);
	font-style: normal;
}

.tv-pied__lien:hover {
	text-decoration: underline;
}

.tv-pied__bas {
	display: flex;
	justify-content: space-between;
	padding-top: 22px;
	border-top: 1px solid var(--tv-couleur-bordure);
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-pied-bas);
	letter-spacing: var(--tv-lettrage-pied);
	text-transform: uppercase;
}

.tv-pied__bas a {
	color: var(--tv-couleur-texte);
}

@media (max-width: 900px) {
	.tv-pied__grille {
		grid-template-columns: 1.2fr 1fr;
	}

	.tv-pied__grille > :last-child {
		grid-column: 2;
	}
}

@media (max-width: 600px) {
	.tv-pied__grille {
		grid-template-columns: 1fr;
		gap: var(--tv-espace-11);
	}

	.tv-pied__grille > :last-child {
		grid-column: auto;
	}

	.tv-pied__bas {
		gap: var(--tv-espace-5);
	}
}

/* 7. Page simple ----------------------------------------------------------- */

.tv-page-simple {
	padding-block: var(--tv-espace-legal);
}

.tv-page-simple > .tv-conteneur {
	max-width: var(--tv-largeur-legal);
}

.tv-page-simple__titre {
	margin: var(--tv-espace-6) 0;
	font-size: var(--tv-taille-h1-legal);
}

.tv-page-simple__corps > * + * {
	margin-top: var(--tv-espace-3);
}

.tv-page-simple__corps p {
	color: var(--tv-couleur-attenue);
}

.tv-page-simple__liste a {
	font-weight: 600;
	text-decoration: underline;
}

/* 8. Formulaire (Contact Form 7) ------------------------------------------- */

.tv-formulaire {
	padding: var(--tv-espace-formulaire);
	border-radius: var(--tv-rayon-bloc);
	background: var(--tv-couleur-fond);
	box-shadow: var(--tv-ombre-formulaire);
}

.tv-formulaire__grille {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--tv-espace-6) 18px;
}

.tv-formulaire__champ {
	display: flex;
	flex-direction: column;
	gap: 9px;
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-etiquette);
	font-weight: 600;
	line-height: var(--tv-interligne-base);
}

.tv-formulaire__large {
	grid-column: 1 / -1;
}

.tv-formulaire .wpcf7-form-control-wrap {
	display: block;
}

.tv-formulaire .wpcf7-text,
.tv-formulaire .wpcf7-email,
.tv-formulaire .wpcf7-tel,
.tv-formulaire .wpcf7-select,
.tv-formulaire .wpcf7-textarea {
	width: 100%;
	border: 1px solid var(--tv-couleur-bordure-forte);
	border-radius: var(--tv-rayon-champ);
	background: var(--tv-couleur-carte);
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-champ);
	font-weight: 400;
	line-height: var(--tv-interligne-champ);
}

.tv-formulaire .wpcf7-text,
.tv-formulaire .wpcf7-email,
.tv-formulaire .wpcf7-tel,
.tv-formulaire .wpcf7-select {
	height: var(--tv-hauteur-champ);
	padding: 0 var(--tv-ecart-sous-menu);
}

.tv-formulaire .wpcf7-textarea {
	padding: var(--tv-ecart-sous-menu);
	resize: vertical;
}

.tv-formulaire .wpcf7-not-valid {
	border-color: var(--tv-couleur-erreur);
	box-shadow: 0 0 0 2px var(--tv-erreur-halo);
}

.tv-formulaire .wpcf7-not-valid-tip {
	display: block;
	margin-top: 9px;
	color: var(--tv-couleur-erreur);
	font-size: var(--tv-taille-surtitre);
	font-weight: 500;
}

.tv-formulaire__mention {
	margin: var(--tv-espace-7) 0 22px;
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-petit);
	line-height: var(--tv-interligne-formulaire);
}

.tv-formulaire__mention a {
	font-weight: 600;
}

/* Bouton d'envoi : le champ de CF7 est un <input>, la flèche est posée par son conteneur. */
.tv-formulaire__envoi {
	position: relative;
	display: inline-flex;
}

.tv-formulaire .wpcf7-submit {
	min-height: var(--tv-hauteur-bouton);
	padding: 0 calc(var(--tv-largeur-icone-bouton) + var(--tv-ecart-bouton) + var(--tv-bouton-padding-droite)) 0 var(--tv-bouton-padding-gauche);
	border: 1px solid var(--tv-couleur-accent);
	border-radius: var(--tv-rayon-pastille);
	background: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-bouton);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.tv-formulaire .wpcf7-submit:hover {
	background: var(--tv-couleur-accent-clair);
}

/* Pastille brune et flèche vert tendre (masque : l'icône du thème). */
.tv-formulaire__envoi::before,
.tv-formulaire__envoi::after {
	content: "";
	position: absolute;
	top: 50%;
	right: var(--tv-bouton-padding-droite);
	width: var(--tv-largeur-icone-bouton);
	height: var(--tv-largeur-icone-bouton);
	pointer-events: none;
	transform: translateY(-50%);
	transition: transform 0.2s;
}

.tv-formulaire__envoi::before {
	border-radius: 50%;
	background: var(--tv-couleur-texte);
}

.tv-formulaire__envoi::after {
	background: var(--tv-couleur-accent);
	-webkit-mask: url(../icons/fleche.svg) center / 16px no-repeat;
	mask: url(../icons/fleche.svg) center / 16px no-repeat;
}

.tv-formulaire__envoi:hover::before,
.tv-formulaire__envoi:hover::after {
	transform: translate(var(--tv-decalage-fleche), -50%);
}

.tv-formulaire .wpcf7-spinner {
	display: none;
}

.tv-formulaire .wpcf7-response-output {
	margin: var(--tv-espace-5) 0 0;
	padding: var(--tv-ecart-surtitre) var(--tv-espace-4);
	border: 0;
	border-radius: var(--tv-rayon-notice);
	background: var(--tv-couleur-succes-fond);
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-etiquette);
}

.tv-formulaire.invalid .wpcf7-response-output,
.tv-formulaire.failed .wpcf7-response-output,
.tv-formulaire.spam .wpcf7-response-output {
	background: var(--tv-couleur-erreur-fond);
	color: var(--tv-couleur-erreur);
}

.tv-formulaire.init .wpcf7-response-output,
.tv-formulaire.resetting .wpcf7-response-output,
.tv-formulaire.submitting .wpcf7-response-output,
.tv-formulaire .wpcf7-response-output:empty {
	display: none;
}

@media (max-width: 600px) {
	.tv-formulaire {
		border-radius: var(--tv-rayon-mobile);
	}

	.tv-formulaire__grille {
		grid-template-columns: 1fr;
	}

	.tv-formulaire__large {
		grid-column: auto;
	}

	.tv-formulaire__envoi,
	.tv-formulaire .wpcf7-submit {
		width: 100%;
	}
}

/* ==========================================================================
   9. Blocs natifs de Gutenberg (contenu libre) : mêmes largeurs, textes et boutons
   que nos sections. Racine : .tv-contenu (page.php, home.php) ; éditeur :
   .is-root-container ; sections libres : groupes de style « Section ».
   ========================================================================== */

/* Sections pleine largeur (les nôtres et les groupes « Section ») : sans l'écart entre blocs ;
   entre une section et des blocs natifs posés hors section, l'espacement d'une section. */
.tv-contenu > .alignfull,
.is-root-container > .alignfull {
	margin-block: 0;
}

.tv-contenu > .alignfull + :not(.alignfull),
.tv-contenu > :not(.alignfull) + .alignfull,
.is-root-container > .alignfull + :not(.alignfull),
.is-root-container > :not(.alignfull) + .alignfull {
	margin-top: var(--tv-espace-section);
}

/* Page qui commence ou finit par des blocs natifs hors section. */
.tv-contenu > :first-child:not(.alignfull) {
	margin-top: var(--tv-espace-section);
}

.tv-contenu > :last-child:not(.alignfull) {
	margin-bottom: var(--tv-espace-section);
}

/* Paragraphes, listes et citations : 68ch au plus, calés à gauche comme dans nos blocs. */
:where(.tv-contenu, .is-root-container, .wp-block-group.is-layout-constrained) > :is(p, ul, ol, blockquote):not([class*="has-text-align-"], .has-background, .is-style-surtitre) {
	padding-inline-end: max(0px, min(100%, var(--wp--style--global--content-size)) - var(--tv-largeur-lecture));
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > p {
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-texte);
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > :is(h2, h3, h4) {
	margin-top: var(--tv-espace-12);
	margin-bottom: 18px;
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > h2 {
	font-size: var(--tv-taille-h2-section);
	line-height: var(--tv-interligne-titre);
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > :is(p, ul, ol, h2, h3, h4) a {
	font-weight: 600;
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > .wp-block-list {
	padding-left: 1.25em;
	color: var(--tv-couleur-attenue);
	list-style: disc;
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > ol.wp-block-list {
	list-style: decimal;
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > .wp-block-list li + li {
	margin-top: var(--tv-espace-2);
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) > .wp-block-quote {
	padding-left: var(--tv-espace-5);
	border-left: 3px solid var(--tv-couleur-accent);
	font-family: var(--tv-police-accent);
	font-size: var(--tv-taille-h3-encadre);
	font-style: italic;
	line-height: var(--tv-interligne-titre);
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) .wp-block-image img {
	border-radius: var(--tv-rayon-photo);
}

:where(.tv-contenu, .is-root-container, .wp-block-group, .tv-contenu-libre) .wp-block-image figcaption {
	color: var(--tv-couleur-attenue);
	font-size: var(--tv-taille-petit);
}

/* Paragraphe de style « Surtitre » : calé sur le bord gauche du contenu (la mise en page de WordPress centre). */
:where(.tv-contenu, .is-root-container, .wp-block-group.is-layout-constrained) > p.is-style-surtitre {
	margin-left: max(0px, (100% - var(--wp--style--global--content-size)) / 2) !important;
}

.is-style-surtitre + :is(h1, h2, h3) {
	margin-top: var(--tv-espace-6);
}

/* Boutons natifs : boutons du thème (plein = vert tendre, « Contour » = contour brun). */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tv-hauteur-bouton);
	padding: 0 var(--tv-bouton-padding-gauche);
	border: 1px solid var(--tv-couleur-accent);
	border-radius: var(--tv-rayon-pastille);
	background-color: var(--tv-couleur-accent);
	color: var(--tv-couleur-texte);
	font-size: var(--tv-taille-bouton);
	font-weight: 600;
	line-height: var(--tv-interligne-base);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover {
	background-color: var(--tv-couleur-accent-clair);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--tv-couleur-texte);
	background-color: transparent;
	color: var(--tv-couleur-texte);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--tv-couleur-texte);
	color: var(--tv-couleur-fond);
}

/* Groupes de style « Section » : fond et espacement vertical de nos sections. */
.wp-block-group.is-style-section-claire,
.wp-block-group.is-style-section-surface {
	padding-block: var(--tv-espace-section);
}

.wp-block-group.is-style-section-surface {
	background-color: var(--tv-couleur-surface);
}

/* Section en grille, rangée ou pile (mise en page non contrainte) : contenu aligné sur celui des sections. */
:where(.tv-contenu, .is-root-container) > .wp-block-group.alignfull:is(.is-style-section-claire, .is-style-section-surface):not(.is-layout-constrained) {
	padding-inline: calc(var(--wp--style--root--padding-left) + max(0px, (100% - var(--wp--style--global--content-size)) / 2));
}

@media (max-width: 600px) {
	.wp-block-group.is-style-section-claire,
	.wp-block-group.is-style-section-surface {
		padding-block: var(--tv-espace-section-mobile);
	}
}

/* Textes des bandeaux : largeur de la maquette sans les paliers de .container (.hero-copy). */
.tv-bandeau-accueil__contenu.tv-conteneur,
.tv-bandeau__contenu.tv-conteneur {
	max-width: none;
}

/* Paragraphe de style « Mention à compléter » : information encore à fournir par le client. */
p.is-style-a-completer {
	padding: var(--tv-espace-3) var(--tv-espace-4);
	border-radius: var(--tv-rayon-lien);
	background: var(--tv-accent-mention);
	color: var(--tv-couleur-texte);
}

/*
 * Apparition des bandeaux (haut de page) : surtitre, titre, texte et boutons montent l'un après
 * l'autre. En CSS seul, dès le premier affichage (classe .js posée dans le <head>, absente du
 * canevas de l'éditeur : pas d'animation pendant l'édition). Départ à 0,01 et non 0 : Chrome ne
 * compte pas un élément totalement transparent comme affiché (le titre est l'élément du LCP).
 */
@keyframes tv-apparition {
	from {
		opacity: 0.01;
		transform: translateY(var(--tv-apparition-distance));
	}
}

.js .tv-bandeau__contenu > *,
.js .tv-bandeau-accueil__contenu > * {
	animation: tv-apparition var(--tv-apparition-duree) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .tv-bandeau__contenu > :nth-child(2),
.js .tv-bandeau-accueil__contenu > :nth-child(2) {
	animation-delay: calc(1 * var(--tv-apparition-pas));
}

.js .tv-bandeau__contenu > :nth-child(3),
.js .tv-bandeau-accueil__contenu > :nth-child(3) {
	animation-delay: calc(2 * var(--tv-apparition-pas));
}

.js .tv-bandeau__contenu > :nth-child(n + 4),
.js .tv-bandeau-accueil__contenu > :nth-child(n + 4) {
	animation-delay: calc(3 * var(--tv-apparition-pas));
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
	}
}
