/*
 * EC Atout Services 974 : styles du site.
 *
 * Repris de la maquette validée (maquette/index.html) : couleurs, contrastes,
 * focus, cibles tactiles. Version 0.2.0 : police Jost plus légère (texte 400,
 * titres et boutons 500, rien au-dessus de 600), textes secondaires plus
 * petits, conteneur plus large, haut de page en photo plein cadre, fond
 * La Réunion en fin de page, animations d'arrivée et de défilement.
 * La police Jost est déclarée par functions.php.
 *
 *  1. Variables et base       7. Textes des pages (blocs)
 *  2. En-tête et menu         8. Contact et formulaire
 *  3. Boutons                 9. Réalisations
 *  4. Haut de page           10. Fond La Réunion, pied, appel fixe, cookies
 *  5. Grilles                11. Animations
 *  6. Sections, cartes       12. Écrans moyens et petits
 */

/* 1. Variables et base ---------------------------------------------------- */

:root {
	--bleu: #0B66B0;
	--bleu-f: #084C84;
	--bleu-c: #E8F2FB;
	--vert: #3A9A3F;
	--vert-f: #2B7530;
	--vert-c: #EAF5EA;
	--encre: #12263A;
	--gris: #4E5D6C;
	--ligne: #DCE4EC;
	--champ: #7D8B99;
	--fond: #F5F8FB;
	--erreur: #B3261E;
	--nuit: #0A1E31;
	--e1: 8px;
	--e2: 16px;
	--e3: 24px;
	--e4: 32px;
	--e5: 48px;
	--e6: 64px;
	--e7: 96px;
	--r-s: 12px;
	--r: 18px;
	--r-l: 28px;
	--conteneur: 1360px;
	--gouttiere: clamp(20px, 4vw, 48px);
	--ombre: 0 12px 32px rgba(18, 38, 58, .09);
	--voile-reunion: rgba(8, 26, 44, .88);
	--coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
	--coche-bleue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B66B0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

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

html {
	font-size: 17px;
	scroll-behavior: smooth;
	scroll-padding-top: 130px;
}

body {
	font-family: "Jost", system-ui, sans-serif;
	color: var(--encre);
	background: #fff;
	line-height: 1.55;
	font-weight: 400;
}

a {
	color: inherit;
}

b,
strong {
	font-weight: 600;
}

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

img {
	height: auto;
}

.icone {
	flex: none;
	width: 1.2em;
	height: 1.2em;
}

/* Flèche des liens vers un autre site. */
svg.icone--externe {
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-left: .2em;
	vertical-align: -.02em;
}

.wrap {
	width: 100%;
	max-width: calc(var(--conteneur) + 2 * var(--gouttiere));
	margin: 0 auto;
	padding: 0 var(--gouttiere);
}

:focus-visible {
	outline: 3px solid var(--bleu);
	outline-offset: 3px;
}

.barre :focus-visible,
.heros--photo :focus-visible,
.bandeau :focus-visible,
.fond-reunion :focus-visible,
.resultat :focus-visible {
	outline-color: #fff;
}

main:focus {
	outline: 0;
}

.evitement {
	position: absolute;
	left: var(--e2);
	top: -100px;
	z-index: 50;
	background: #fff;
	padding: var(--e2);
	border-radius: var(--r-s);
	font-weight: 600;
}

.evitement:focus {
	top: var(--e2);
}

.ecran-lecteur {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

h1 {
	font-size: clamp(40px, 4.6vw, 62px);
	line-height: 1.08;
	letter-spacing: -.02em;
	font-weight: 500;
}

h2 {
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.12;
	letter-spacing: -.015em;
	font-weight: 500;
	margin-bottom: var(--e5);
}

h3,
.h3 {
	font-size: 25px;
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: 0;
}

h4,
h5,
h6 {
	font-weight: 500;
}

p {
	max-width: 66ch;
}

.note {
	font-size: 15px;
	color: var(--gris);
	margin-top: var(--e2);
}

/* 2. En-tête et menu ------------------------------------------------------ */

.site-entete {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 1px solid var(--ligne);
	z-index: 20;
}

.admin-bar .site-entete {
	top: 32px;
}

/* Barre du haut : fine, petite, sans gras. */
.barre {
	background: var(--bleu-f);
	color: #DCEBF8;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.barre .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--e2);
	flex-wrap: wrap;
}

.barre__liens {
	display: flex;
	align-items: center;
	gap: 6px;
}

.barre a {
	display: inline-block;
	padding: 5px 4px;
	text-decoration: none;
	font-weight: 400;
	color: #fff;
}

.barre a:hover {
	text-decoration: underline;
}

.entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e4);
	height: 88px;
	position: relative;
}

.logo {
	flex: none;
}

.logo img {
	height: 60px;
	width: auto;
}

.nav {
	flex: none;
}

.nav ul {
	display: flex;
	gap: 6px;
	list-style: none;
}

.nav a {
	display: flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	padding: 10px 13px;
	border-radius: 10px;
	white-space: nowrap;
}

/* Petite icône devant chaque lien, couleur du texte. */
.nav .icone {
	width: 16px;
	height: 16px;
}

.nav a:hover,
.nav a:focus-visible {
	background: var(--fond);
}

.nav a.on {
	color: var(--bleu-f);
	background: var(--bleu-c);
}

.entete .entete__appel {
	flex: none;
	height: 48px;
	min-height: 48px;
	padding: 0 20px;
	font-size: 16px;
	justify-content: center;
}

/* Écran d'ordinateur moyen (menu en ligne) : bouton d'appel carré, le
   numéro reste dans la barre du haut. Laisse de l'air entre les liens. */
@media (min-width: 1101px) and (max-width: 1519px) {
	.entete .entete__appel {
		width: 48px;
		padding: 0;
	}

	.entete__appel .entete__numero {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.entete__appel svg {
	width: 20px;
	height: 20px;
}

.jardin .entete__appel {
	background: var(--vert-f);
}

.jardin .entete__appel:hover {
	background: #1F5A23;
}

.burger {
	display: none;
	align-items: center;
	gap: var(--e1);
	background: none;
	border: 2px solid var(--champ);
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: inherit;
	cursor: pointer;
	height: 48px;
	min-height: 48px;
	padding-block: 0;
}

.burger .icone {
	width: 22px;
	height: 22px;
}

.burger__fermer,
.burger[aria-expanded="true"] .burger__ouvrir {
	display: none;
}

.burger[aria-expanded="true"] .burger__fermer {
	display: block;
}

/* Menu rangé dans le bouton Menu : classe posée par la tête de page puis
   par app.js dès que le menu ne tient plus sur une ligne. */
.js.menu-replie .nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	padding: var(--e2) var(--gouttiere) var(--e3);
	border-bottom: 1px solid var(--ligne);
	box-shadow: var(--ombre);
}

.js.menu-replie .nav.ouvert {
	display: block;
}

.js.menu-replie .nav ul {
	flex-direction: column;
}

.js.menu-replie .nav a {
	gap: 12px;
	padding: 14px var(--e2);
	font-size: 18px;
}

.js.menu-replie .nav .icone {
	width: 18px;
	height: 18px;
}

.js.menu-replie .burger {
	display: inline-flex;
	margin-left: auto;
}

/* Sans JavaScript : menu visible, sur plusieurs lignes au besoin. */
html:not(.js) .entete {
	flex-wrap: wrap;
	height: auto;
	min-height: 88px;
	padding-top: var(--e1);
	padding-bottom: var(--e1);
}

html:not(.js) .nav {
	flex: 1 1 auto;
}

html:not(.js) .nav ul {
	flex-wrap: wrap;
}

/* 3. Boutons --------------------------------------------------------------- */

.btn,
.wp-block-button .wp-block-button__link {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 500;
	font-size: 17px;
	padding: 15px 28px;
	border-radius: 14px;
	border: 2px solid transparent;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
	min-height: 56px;
	transition: background-color .2s, border-color .2s, color .2s;
}

.btn svg {
	width: 21px;
	height: 21px;
	flex: none;
}

.btn-b,
.wp-block-button .wp-block-button__link {
	background: var(--bleu);
	color: #fff;
}

.btn-b:hover,
.wp-block-button .wp-block-button__link:hover {
	background: var(--bleu-f);
}

.btn-v,
.jardin .wp-block-button .wp-block-button__link {
	background: var(--vert-f);
	color: #fff;
}

.btn-v:hover,
.jardin .wp-block-button .wp-block-button__link:hover {
	background: #1F5A23;
}

.btn-l {
	border-color: var(--bleu);
	color: var(--bleu-f);
	background: #fff;
}

.btn-l:hover {
	background: var(--bleu-c);
}

.btn-lv {
	border-color: var(--vert-f);
	color: var(--vert-f);
	background: #fff;
}

.btn-lv:hover {
	background: var(--vert-c);
}

.btn-w {
	background: #fff;
	color: var(--bleu-f);
}

.btn-w:hover {
	background: var(--bleu-c);
}

.btn-o {
	background: transparent;
	border-color: rgba(255, 255, 255, .85);
	color: #fff;
}

.btn-o:hover {
	background: rgba(255, 255, 255, .14);
	border-color: #fff;
}

.ctas,
.wp-block-buttons {
	display: flex;
	gap: var(--e2);
	flex-wrap: wrap;
}

/* 4. Haut de page ---------------------------------------------------------- */

/* Sans photo (pages légales, Contact, Réalisations) : court, fond clair. */
.heros {
	position: relative;
	padding: var(--e6) 0 var(--e5);
	background: linear-gradient(180deg, var(--bleu-c), #fff);
}

.heros.vert {
	background: linear-gradient(180deg, var(--vert-c), #fff);
}

.heros__texte {
	max-width: 820px;
}

.accroche {
	font-size: 20px;
	line-height: 1.5;
	color: var(--gris);
	margin: var(--e3) 0 var(--e4);
	max-width: 40ch;
}

.heros__texte > :last-child {
	margin-bottom: 0;
}

/* Avec photo : image plein cadre sous un voile bleu nuit, plus dense à
   gauche, texte blanc dans une colonne d'environ 680 px. */
.heros--photo {
	display: flex;
	min-height: 80vh;
	padding: 0;
	color: #fff;
	background: var(--nuit);
	overflow: hidden;
	isolation: isolate;
}

.heros--accueil.heros--photo {
	min-height: 88vh;
}

.heros__fond {
	position: absolute;
	inset: 0;
	z-index: -2;
}

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

.heros--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(8, 26, 44, .72) 0%, rgba(8, 26, 44, 0) 42%),
		linear-gradient(90deg, rgba(8, 26, 44, .92) 0%, rgba(8, 26, 44, .84) 40%, rgba(8, 26, 44, .5) 72%, rgba(8, 26, 44, .3) 100%);
}

.heros--photo .heros__contenu {
	display: flex;
	flex-direction: column;
	padding-top: clamp(56px, 10vh, 120px);
	padding-bottom: clamp(40px, 7vh, 80px);
}

.heros--photo .heros__texte {
	max-width: 680px;
	margin-block: auto;
}

.heros--photo h1 {
	font-size: clamp(44px, 5.4vw, 80px);
	line-height: 1.04;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.heros--photo .accroche {
	color: rgba(255, 255, 255, .9);
	margin: var(--e4) 0 var(--e5);
	max-width: 36ch;
}

.heros--photo .accroche:last-child {
	margin-bottom: 0;
}

/* Quatre atouts de l'accueil : cartes translucides en bas du haut de page. */
.atouts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--e2);
	margin-top: clamp(40px, 7vh, 80px);
	list-style: none;
}

.atouts li {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: var(--r);
	background: rgba(10, 30, 49, .38);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
}

.atouts svg {
	width: 26px;
	height: 26px;
	flex: none;
	color: #A9D2F5;
}

/* 5. Grilles --------------------------------------------------------------- */

.grille {
	display: grid;
	gap: var(--e4);
}

.g2 {
	grid-template-columns: repeat(2, 1fr);
}

.g3 {
	grid-template-columns: repeat(3, 1fr);
}

.g4 {
	grid-template-columns: repeat(4, 1fr);
}

/* 6. Sections, cartes ------------------------------------------------------ */

main section {
	padding: var(--e7) 0;
}

main section.serre-haut,
.heros:not(.heros--photo) + section {
	padding-top: var(--e3);
}

.fond {
	background: var(--fond);
}

/* Cartes des prestations : photo, dégradé au-dessus de la photo, titre. */
.service {
	position: relative;
	border-radius: var(--r-l);
	overflow: hidden;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
	color: #fff;
	background: var(--bleu-f);
	box-shadow: var(--ombre);
}

.service img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
}

.service:hover img {
	transform: scale(1.04);
}

.service::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 40, 70, 0) 25%, rgba(8, 40, 70, .6) 55%, rgba(8, 40, 70, .94));
	z-index: 1;
}

.service.v {
	background: var(--vert-f);
}

.service.v::before {
	background: linear-gradient(180deg, rgba(20, 60, 24, 0) 25%, rgba(20, 60, 24, .6) 55%, rgba(20, 60, 24, .94));
}

.service .corps {
	position: relative;
	z-index: 2;
	padding: var(--e4);
	width: 100%;
}

.service h3 {
	font-size: 28px;
	margin-bottom: var(--e1);
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.service .corps span {
	font-weight: 500;
	font-size: 16px;
	color: #E6F0F9;
	display: inline-flex;
	gap: var(--e1);
	align-items: center;
}

.service .corps span::after {
	content: "\2192";
	font-size: 20px;
}

.service .barre-c {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	background: var(--bleu);
	z-index: 2;
}

.service.v .barre-c {
	background: var(--vert);
}

.intro-services {
	margin: calc(-1 * var(--e3)) 0 var(--e5);
}

/* Pictogramme des tuiles. */
.ico {
	width: 60px;
	height: 60px;
	border-radius: var(--r-s);
	background: var(--bleu-c);
	color: var(--bleu);
	display: grid;
	place-items: center;
	flex: none;
}

.ico svg {
	width: 30px;
	height: 30px;
}

.ico.v,
.jardin .ico {
	background: var(--vert-c);
	color: var(--vert-f);
}

/* Coches : listes des textes (classe coches, ou coches vert). */
ul.coches {
	list-style: none;
}

ul.coches li {
	padding: 14px 0 14px 46px;
	position: relative;
	font-size: 18px;
	border-bottom: 1px solid var(--ligne);
}

ul.coches li:last-child {
	border-bottom: 0;
}

.prose > ul.coches {
	max-width: 860px;
}

ul.coches li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bleu) var(--coche) center / 16px no-repeat;
}

ul.coches.vert li::before,
ul.coches.v li::before,
.jardin ul.coches li::before {
	background-color: var(--vert-f);
}

/* Résultat à chaque passage : photo plein écran (cabinet de kinésithérapie),
   voile à gauche sous le texte, liste en blanc. */
.resultat {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--bleu-f);
	overflow: hidden;
	padding: var(--e6) 0;
}

.resultat > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 74% 12%;
}

.resultat::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 40, 70, .94) 0%, rgba(8, 40, 70, .82) 38%, rgba(8, 40, 70, .2) 70%, rgba(8, 40, 70, 0) 85%);
	z-index: 1;
}

.resultat .wrap {
	position: relative;
	z-index: 2;
	width: 100%;
}

.resultat h2 {
	max-width: 14ch;
	margin-bottom: var(--e4);
}

.resultat ul {
	list-style: none;
	display: grid;
	gap: var(--e2);
}

.resultat ul li {
	font-size: 19px;
	font-weight: 500;
	display: flex;
	gap: var(--e2);
	align-items: center;
	padding: 0;
	border: 0;
}

.resultat ul li::before {
	content: "";
	position: static;
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	background: #fff var(--coche-bleue) center / 17px no-repeat;
}

.resultat p:not(.a-valider) {
	margin-top: var(--e2);
}

.resultat .a-valider {
	margin-top: var(--e3);
}

/* Déroulement d'un contrat, avec des tuiles (:::tuiles) : cartes numérotées. */
.etapes {
	counter-reset: etape;
}

.etapes .tuiles {
	grid-template-columns: repeat(4, 1fr);
}

.etapes .ico {
	display: none;
}

.etapes .tuile,
.etapes .tuiles > div:not(.wp-block-group__inner-container),
.etapes .tuiles > .wp-block-group__inner-container > div {
	position: relative;
	padding-top: 92px;
}

.etapes .tuile::before,
.etapes .tuiles > div:not(.wp-block-group__inner-container)::before,
.etapes .tuiles > .wp-block-group__inner-container > div::before {
	counter-increment: etape;
	content: counter(etape);
	position: absolute;
	top: var(--e4);
	left: var(--e4);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bleu);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 500;
	font-size: 20px;
}

/* Déroulement d'un contrat, avec une liste numérotée : frise. Chaque
   étape (« <strong>Titre</strong> description ») porte sa pastille et un
   segment de ligne : celui qui vient de l'étape précédente sur ordinateur
   (horizontal), celui qui descend vers la suivante sur tablette et mobile
   (vertical). La ligne est continue d'un numéro à l'autre.
   --rempli : part du segment colorié (animée par app.js). */
.etapes ol {
	--pastille: 48px;
	--trait: 4px;
	--ecart: var(--e4);
	list-style: none;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: var(--ecart);
}

.prose .etapes ol {
	padding-left: 0;
}

.etapes ol > li,
.prose .etapes ol > li {
	position: relative;
	margin: 0;
	padding-top: calc(var(--pastille) + var(--e3));
	color: var(--gris);
	font-size: 16px;
	line-height: 1.55;
}

.etapes ol > li::before {
	counter-increment: etape;
	content: counter(etape);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: var(--pastille);
	height: var(--pastille);
	border-radius: 50%;
	background: var(--bleu);
	box-shadow: 0 0 0 6px var(--fond);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 20px;
	font-weight: 500;
}

.etapes ol > li:not(:first-child)::after {
	content: "";
	position: absolute;
	top: calc((var(--pastille) - var(--trait)) / 2);
	left: calc(var(--pastille) / 2 - 100% - var(--ecart));
	width: calc(100% + var(--ecart));
	height: var(--trait);
	border-radius: var(--trait);
	background: linear-gradient(var(--bleu), var(--bleu)) no-repeat 0 0 / var(--rempli, 100%) 100%, #CADDEF;
}

.etapes ol > li > strong:first-child {
	display: block;
	margin-bottom: 6px;
	color: var(--encre);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.etapes ol a {
	color: var(--bleu);
	white-space: nowrap;
}

/* Bandeau de devis. */
.bandeau {
	background: var(--bleu);
	color: #fff;
	border-radius: var(--r-l);
	padding: var(--e6) var(--e5);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--e4);
	flex-wrap: wrap;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.bandeau.v {
	background: var(--vert-f);
}

.bandeau.v .btn-w {
	color: var(--vert-f);
}

.bandeau.v .btn-w:hover {
	background: var(--vert-c);
}

.bandeau__titre {
	flex: 1 1 360px;
}

.bandeau h2 {
	margin-bottom: 0;
}

.bandeau p:not(.a-valider) {
	color: #E6F0F9;
	font-size: 19px;
}

.bandeau__texte {
	margin-top: var(--e1);
}

.bandeau__texte > * + * {
	margin-top: var(--e1);
}

/* Deux colonnes : texte et photo. */
.duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--e6);
	align-items: center;
}

.duo.haut {
	align-items: start;
}

.duo .photo {
	border-radius: var(--r-l);
	overflow: hidden;
	aspect-ratio: 4 / 3.4;
	box-shadow: var(--ombre);
}

.duo .photo figure {
	height: 100%;
}

.duo .photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 7. Textes des pages (blocs) --------------------------------------------- */

.prose > * {
	margin-bottom: var(--e3);
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose h2 {
	margin: var(--e6) 0 var(--e5);
}

.prose > h2:first-child {
	margin-top: 0;
}

.prose h3 {
	margin: var(--e4) 0 var(--e2);
}

.prose ul:not(.coches),
.prose ol {
	padding-left: 1.3em;
}

.prose ul:not(.coches) li + li,
.prose ol li + li {
	margin-top: var(--e1);
}

/* Liens des textes (pages, pages légales, questions fréquentes, note du
   formulaire) : bleu de la charte (5,9:1 sur blanc, 5,2:1 sur bleu clair),
   bien distinct du texte, soulignés. Survol : bleu foncé, trait plus épais
   et fond bleu clair. */
.prose a:not(.btn):not(.wp-block-button__link),
.formulaire .note a {
	color: var(--bleu);
	text-decoration-line: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	border-radius: 2px;
	transition: color .15s, background-color .15s, box-shadow .15s;
}

.prose a:not(.btn):not(.wp-block-button__link):hover,
.formulaire .note a:hover {
	color: var(--bleu-f);
	text-decoration-thickness: 2.5px;
	background: var(--bleu-c);
	box-shadow: 0 0 0 3px var(--bleu-c);
}

.prose .wp-block-buttons {
	margin-top: var(--e4);
}

.prose figure img {
	border-radius: var(--r);
}

.prose figcaption {
	font-size: 15px;
	color: var(--gris);
	margin-top: var(--e1);
}

/* Colonne de lecture des pages légales. */
.lecture > * {
	max-width: 820px;
}

/* Grille de tuiles (:::tuiles dans les textes). Les conteneurs internes des
   groupes de WordPress sont ignorés par la grille. */
.tuiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--e4);
}

.tuiles .wp-block-group__inner-container {
	display: contents;
}

.tuile,
.tuiles > div:not(.wp-block-group__inner-container),
.tuiles > .wp-block-group__inner-container > div {
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: var(--r);
	padding: var(--e4);
	display: flex;
	flex-direction: column;
	gap: var(--e2);
}

.tuiles h3 {
	margin: 0;
}

.tuiles p {
	color: var(--gris);
	font-size: 16px;
	margin: 0;
}

/* Carte avec photo (Pour les professionnels, ECS_PHOTOS_CIBLES) : photo
   en haut, bord à bord, pictogramme en pastille à cheval sur la photo. */
.tuile__photo {
	position: relative;
	margin: calc(-1 * var(--e4)) calc(-1 * var(--e4)) var(--e2);
	aspect-ratio: 3 / 2;
}

.tuile .tuile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
}

.tuile__photo .ico {
	position: absolute;
	left: var(--e4);
	bottom: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 18px rgba(18, 38, 58, .18);
	transform: translateY(50%);
}

.tuile__photo .ico svg {
	width: 24px;
	height: 24px;
}

/* Questions fréquentes en accordéon. */
details.faq,
.prose details {
	border-bottom: 1px solid var(--ligne);
	margin-bottom: 0;
}

details.faq summary,
.prose details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--e2);
	min-height: 72px;
	padding: var(--e2) 0;
	cursor: pointer;
	list-style: none;
}

details.faq summary::-webkit-details-marker,
.prose details summary::-webkit-details-marker {
	display: none;
}

details.faq summary::after,
.prose details summary::after {
	content: "+";
	flex: none;
	font-size: 32px;
	line-height: 1;
	color: var(--bleu);
	font-weight: 400;
}

details[open].faq summary::after,
.prose details[open] summary::after {
	content: "\2212";
}

/* Question : titre H3 ou texte simple du bloc Détails. */
details.faq summary,
.prose details summary {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
}

details.faq summary h3,
.prose details summary h3 {
	font-size: 22px;
	margin: 0;
}

details.faq > :not(summary),
.prose details > :not(summary) {
	padding-bottom: var(--e3);
}

details.faq p:not(.a-valider),
.prose details p:not(.a-valider) {
	color: var(--gris);
}

/* 8. Contact et formulaire ------------------------------------------------ */

.contacts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--e2);
	margin-bottom: var(--e5);
}

.contacts a {
	display: flex;
	align-items: center;
	gap: var(--e2);
	text-decoration: none;
	border: 2px solid var(--ligne);
	border-radius: var(--r);
	padding: var(--e3);
	background: #fff;
	min-width: 0;
}

.contacts a:hover {
	border-color: var(--bleu);
}

.contacts b {
	display: block;
	font-size: 19px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.contacts small {
	color: var(--gris);
	font-size: 15px;
}

/* Téléphone en premier et en évidence. */
.contacts a.contacts__appel {
	background: var(--bleu);
	border-color: var(--bleu);
	color: #fff;
}

.contacts a.contacts__appel:hover {
	background: var(--bleu-f);
	border-color: var(--bleu-f);
}

.contacts__appel .ico {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.contacts__appel small {
	color: #E6F0F9;
}

.formulaire {
	background: #fff;
	border: 1px solid var(--ligne);
	border-radius: var(--r-l);
	padding: var(--e5);
	box-shadow: var(--ombre);
}

.formulaire h2 {
	font-size: 34px;
	margin-bottom: var(--e3);
}

.ligne {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--e2);
}

.champ {
	margin-bottom: var(--e2);
}

.formulaire label,
.leg {
	font-size: 16px;
	font-weight: 500;
	display: block;
	margin-bottom: var(--e1);
}

/* Champs, choix et bouton d'envoi : bord fin gris (3,5:1 sur blanc), angles
   droits. */
.formulaire input:not([type="radio"]):not([type="checkbox"]),
.formulaire textarea {
	width: 100%;
	padding: var(--e2);
	border: 1px solid var(--champ);
	border-radius: 0;
	font: inherit;
	font-size: 17px;
	color: inherit;
	background: #fff;
	min-height: 56px;
}

.formulaire input:focus-visible,
.formulaire textarea:focus-visible {
	outline: 3px solid var(--bleu);
	outline-offset: 2px;
	border-color: var(--bleu);
}

.formulaire textarea {
	min-height: 130px;
	resize: vertical;
}

.formulaire .btn {
	border-radius: 0;
}

/* Téléphone : icône dans le champ, à gauche. */
.champ__icone {
	position: relative;
}

.champ__icone .icone {
	position: absolute;
	top: 50%;
	left: var(--e2);
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--gris);
	pointer-events: none;
}

.formulaire .champ__icone input {
	padding-left: 46px;
}

.formulaire [aria-invalid="true"] {
	border-color: var(--erreur);
}

.champ__erreur {
	color: var(--erreur);
	font-size: 15px;
	font-weight: 500;
	margin-top: 6px;
}

/* Boutons radio visibles, en pastilles. */
fieldset.choix {
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--e1);
	margin-bottom: var(--e3);
}

fieldset.choix legend {
	width: 100%;
	margin-bottom: var(--e1);
}

.formulaire .choix label {
	margin: 0;
	border: 1px solid var(--champ);
	border-radius: 0;
	padding: 12px var(--e2);
	cursor: pointer;
	font-size: 16px;
	font-weight: 400;
	min-height: 52px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.choix input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--bleu);
}

.formulaire .choix label:has(input:checked) {
	border-color: var(--bleu);
	box-shadow: inset 0 0 0 1px var(--bleu);
	background: var(--bleu-c);
	color: var(--bleu-f);
	font-weight: 500;
}

/* Petites icônes des choix : couleur du texte, bleues une fois cochées. */
.choix__icones {
	display: flex;
	gap: 4px;
	color: var(--gris);
}

.choix__icones .icone {
	width: 18px;
	height: 18px;
}

.formulaire .choix label:has(input:checked) .choix__icones {
	color: var(--bleu);
}

.formulaire .choix label:has(input:focus-visible) {
	outline: 3px solid var(--bleu);
	outline-offset: 2px;
}

.choix input:focus-visible {
	outline: 0;
}

.facultatif {
	color: var(--gris);
	font-weight: 400;
}

.champ--piege {
	position: absolute;
	left: -9999px;
}

.cf-turnstile {
	margin-bottom: var(--e3);
}

/* Messages : envoi réussi ou erreurs. */
.avis {
	border-radius: var(--r);
	padding: var(--e3);
	margin-bottom: var(--e3);
}

.avis:focus {
	outline: 3px solid var(--erreur);
	outline-offset: 2px;
}

.avis__titre {
	font-weight: 600;
	font-size: 19px;
	margin-bottom: 4px;
}

.avis ul {
	margin-top: var(--e1);
	padding-left: 1.2em;
}

.avis a {
	color: inherit;
	font-weight: 500;
}

.avis--ok {
	background: var(--vert-c);
	border: 2px solid var(--vert-f);
}

.avis--erreur {
	background: #FDECEA;
	border: 2px solid var(--erreur);
}

.avis--erreur .avis__titre {
	color: var(--erreur);
}

.carte-info {
	background: var(--fond);
	border-radius: var(--r);
	padding: var(--e4);
}

.carte-info + .carte-info {
	margin-top: var(--e3);
}

.carte-info h2 {
	margin-bottom: 0;
}

.carte-info p {
	color: var(--gris);
	margin-top: var(--e1);
}

/* 9. Réalisations --------------------------------------------------------- */

/* Galerie (accueil et page Réalisations) : trois colonnes, photos au même
   ratio, recadrées au centre, légende discrète dessous. Sous 1024 px : deux
   colonnes, la première photo sur toute la largeur (9 photos : rien de
   seul en bas). Les largeurs suivent l'attribut sizes de
   ecs_galerie_realisations() (inc/gabarits.php). */
.galerie {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--e4) var(--e3);
}

.galerie figure {
	margin: 0;
}

.galerie__lien {
	display: block;
	overflow: hidden;
	border-radius: var(--r-s);
	background: var(--fond);
}

.galerie img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.galerie img {
		transition: transform .5s ease;
	}

	.galerie__lien:hover img {
		transform: scale(1.04);
	}
}

.galerie figcaption {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--gris);
}

.realisations-accueil .suite {
	margin-top: var(--e5);
}

@media (max-width: 1023px) {
	.galerie {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--e3) var(--e2);
	}

	.galerie li:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.galerie {
		gap: var(--e2) 12px;
	}

	.galerie figcaption {
		margin-top: 6px;
		font-size: 14px;
	}
}

/* Visionneuse plein écran (élément dialog, assets/js/app.js) : photo en
   grand sur fond nuit, légende et rang dessous, flèches de part et d'autre,
   bouton Fermer en haut à droite. Échap ferme, le focus reste dedans. */
.visionneuse {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: var(--e6) var(--e7) var(--e3);
	border: 0;
	background: rgba(6, 18, 30, .96);
	color: #fff;
	overflow: hidden;
}

.visionneuse[open] {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: var(--e2);
}

.visionneuse::backdrop {
	background: rgba(6, 18, 30, .96);
}

html:has(.visionneuse[open]) {
	overflow: hidden;
}

.visionneuse__cadre {
	position: relative;
	min-height: 0;
	touch-action: pan-y pinch-zoom;
}

/* Photo entière, à la plus grande taille qui tient dans le cadre. */
.visionneuse__cadre img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.visionneuse__legende {
	justify-self: center;
	text-align: center;
	font-size: 16px;
	color: #DCE6EF;
	min-height: 1.55em;
}

.visionneuse__compte {
	margin-right: var(--e2);
	color: #fff;
	font-weight: 500;
}

.visionneuse__bouton {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: rgba(6, 18, 30, .6);
	color: #fff;
	cursor: pointer;
}

.visionneuse__bouton:hover {
	background: rgba(255, 255, 255, .16);
	border-color: #fff;
}

.visionneuse__bouton .icone {
	width: 26px;
	height: 26px;
}

.visionneuse :focus-visible {
	outline-color: #fff;
}

.visionneuse__prec,
.visionneuse__suiv {
	top: 50%;
	transform: translateY(-50%);
}

.visionneuse__prec {
	left: var(--e3);
}

.visionneuse__suiv {
	right: var(--e3);
}

.visionneuse__fermer {
	top: var(--e2);
	right: var(--e3);
}

@media (prefers-reduced-motion: no-preference) {
	.visionneuse[open] {
		animation: ecs-fondu .25s ease;
	}
}

@keyframes ecs-fondu {
	from {
		opacity: 0;
	}
}

@media (max-width: 900px) {
	.visionneuse {
		padding: 76px var(--e2) 96px;
	}

	/* Flèches en bas, à portée du pouce. */
	.visionneuse__prec,
	.visionneuse__suiv {
		top: auto;
		bottom: var(--e3);
		transform: none;
	}

	.visionneuse__prec {
		left: var(--e2);
	}

	.visionneuse__suiv {
		right: var(--e2);
	}

	.visionneuse__fermer {
		right: var(--e2);
	}

	.visionneuse__legende {
		padding: 0 60px;
		font-size: 15px;
	}

	.visionneuse__compte {
		display: block;
		margin: 0;
	}
}

/* 10. Fond La Réunion, pied, appel fixe, cookies -------------------------- */

/* Zone d'intervention, bandeau de fin et pied de page posés sur la photo du
   cirque de Mafate, sous un voile bleu nuit qui garde les contrastes AA. Sur
   ordinateur, la photo reste fixe pendant le défilement : les trois blocs
   montrent la même image, avec un léger effet de profondeur. */
.fond-reunion {
	background-color: var(--nuit);
	background-image: linear-gradient(var(--voile-reunion), var(--voile-reunion)), url("../img/fond-reunion.webp");
	background-size: cover;
	background-position: center;
	color: #fff;
}

.zone h2 {
	color: #fff;
}

.zone + .section-bandeau {
	padding-top: 0;
}

.section-bandeau.fond-reunion {
	padding: var(--e6) 0;
}

.ligne-zone,
.ligne-zone p:not(.a-valider) {
	font-size: 19px;
}

.ligne-zone {
	margin-bottom: var(--e3);
	color: #E3EDF6;
}

.ligne-zone > * + * {
	margin-top: var(--e1);
}

.ligne-zone a {
	color: #fff;
}

.communes {
	display: flex;
	flex-wrap: wrap;
	gap: var(--e1);
	list-style: none;
}

.communes li {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	padding: 6px var(--e2);
	font-size: 15px;
	color: #fff;
}

/* Appel fixe : bleu, vert sur les pages d'espaces verts. */
.appel-fixe {
	position: fixed;
	right: var(--e3);
	bottom: var(--e3);
	z-index: 30;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
	background: var(--bleu);
	color: #fff;
	padding: 14px 24px;
}

.appel-fixe:hover {
	background: var(--bleu-f);
}

/* Caché tant que les boutons du haut de page sont à l'écran (app.js). */
.appel-fixe--cache {
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.appel-fixe {
		transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
	}
}

.jardin .appel-fixe {
	background: var(--vert-f);
}

.jardin .appel-fixe:hover {
	background: #1F5A23;
}

.pied-site {
	color: #C9D6E2;
	padding: var(--e6) 0 120px;
	font-size: 16px;
}

.pied-site .titre-pied {
	color: #fff;
	margin-bottom: var(--e1);
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: 0;
}

.pied-site .grille a {
	text-decoration: none;
	display: block;
	padding: 6px 0;
}

.pied-site a:hover {
	color: #fff;
	text-decoration: underline;
}

.pied-site .grille .pied-appel,
.pied-site .grille .pied-icone {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: var(--e1);
}

.pied-site .grille .pied-appel {
	color: #fff;
	font-size: 18px;
	font-weight: 500;
}

.pied-site .pied-icone svg,
.pied-site .pied-appel svg {
	width: 20px;
	height: 20px;
	flex: none;
}

/* Colonnes du pied : la place va aux services et au contact. */
@media (min-width: 1101px) {
	.pied-site .grille.g4 {
		grid-template-columns: 1.2fr 1.3fr .8fr 1.2fr;
		column-gap: var(--e5);
	}
}

.pied-site .logo img {
	height: 56px;
	margin-bottom: var(--e2);
}

.pied-site .grille .logo {
	padding: 0;
}

.pied-adresse {
	margin-top: var(--e1);
}

.pied-bas {
	border-top: 1px solid rgba(255, 255, 255, .16);
	margin-top: var(--e5);
	padding-top: var(--e3);
	font-size: 15px;
	line-height: 1.5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--e1) var(--e2);
}

.pied-liens,
.liens-legaux {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px var(--e2);
	list-style: none;
}

.pied-bas p {
	max-width: none;
	margin: 0;
	padding: 4px 0;
}

.pied-bas a {
	display: inline-block;
	padding: 4px 0;
}

.lien-bouton {
	padding: 4px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Bannière des cookies : panneau compact en bas à gauche, bord fin et
   liseré bleu en haut, trois actions identiques sur une ligne. « Choisir »
   déplie un interrupteur par outil. Pleine largeur en bas sur téléphone,
   le bouton d'appel fixe passe au-dessus (--hauteur-cookies, app.js). */
.cookies {
	position: fixed;
	left: var(--e3);
	bottom: var(--e3);
	z-index: 60;
	width: min(430px, calc(100% - 2 * var(--e3)));
	max-height: calc(100dvh - 2 * var(--e3));
	overflow-y: auto;
	padding: 20px var(--e3) var(--e3);
	background: #fff;
	color: var(--encre);
	border: 1px solid #C5D1DC;
	border-top: 4px solid var(--bleu);
	box-shadow: 0 16px 40px rgba(18, 38, 58, .18);
	font-size: 15px;
	line-height: 1.5;
}

.cookies[hidden] {
	display: none;
}

.cookies__titre {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 4px;
}

.cookies__texte {
	color: var(--gris);
}

.cookies a {
	color: var(--bleu);
	font-weight: 500;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.cookies a:hover {
	color: var(--bleu-f);
	text-decoration-thickness: 2.5px;
}

.cookies button {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--bleu);
	border-radius: 0;
	background: #fff;
	color: var(--bleu-f);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s;
}

.cookies button:hover {
	background: var(--bleu-c);
}

.cookies__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--e1);
	margin-top: var(--e2);
}

.cookies__choix {
	margin-top: var(--e2);
	border-top: 1px solid var(--ligne);
}

.cookies__outil {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 2px var(--e2);
	padding: 12px 0;
	border-bottom: 1px solid var(--ligne);
}

.cookies__outil label {
	font-weight: 500;
	font-size: 16px;
	cursor: pointer;
}

.cookies__outil p {
	grid-column: 1 / -1;
	color: var(--gris);
	font-size: 14px;
}

/* Interrupteur : case à cocher (role switch). Éteint : gris 3,5:1 et
   pastille à gauche ; allumé : bleu et pastille à droite. */
.cookies__outil input {
	flex: none;
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 999px;
	background: var(--champ);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s;
}

.cookies__outil input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}

.cookies__outil input:checked {
	background: var(--bleu);
}

.cookies__outil input:checked::before {
	transform: translateX(20px);
}

.cookies .cookies__enregistrer {
	width: 100%;
	margin-top: var(--e2);
	background: var(--bleu);
	color: #fff;
}

.cookies .cookies__enregistrer:hover {
	background: var(--bleu-f);
}

/* Pleine largeur jusqu'à 640 px : voir aussi .appel-fixe en fin de feuille. */
@media (max-width: 640px) {
	.cookies {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 100dvh;
		padding: var(--e2) var(--e2) 20px;
		border-right: 0;
		border-left: 0;
		border-bottom: 0;
	}
}

/* Repère jaune « à valider » (!! dans les textes). En fin de feuille : il
   garde son aspect dans toutes les sections. */
:is(p, span, div, li).a-valider {
	display: block;
	width: fit-content;
	max-width: 100%;
	background: #FFF4D6;
	color: #7A5200;
	border: 1px dashed #D9A73A;
	border-radius: 6px;
	padding: 0 var(--e1);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
}

span.a-valider {
	display: inline-block;
	vertical-align: middle;
}

/* 11. Animations ---------------------------------------------------------- */

/* Arrivée sur la page : la photo du haut recule lentement, puis titre,
   accroche, boutons et atouts montent en fondu, l'un après l'autre.
   Seulement avec JavaScript et sans « Réduire les animations ». */
@media (prefers-reduced-motion: no-preference) {
	.js .heros__fond img {
		animation: ecs-recul 7s cubic-bezier(.25, .6, .3, 1) both;
	}

	.js .heros__texte > *,
	.js .heros .atouts li {
		animation: ecs-monte .9s cubic-bezier(.2, .7, .2, 1) both;
	}

	.js .heros__texte > :nth-child(1) {
		animation-delay: .15s;
	}

	.js .heros__texte > :nth-child(2) {
		animation-delay: .3s;
	}

	.js .heros__texte > :nth-child(3) {
		animation-delay: .45s;
	}

	.js .heros .atouts li:nth-child(1) {
		animation-delay: .6s;
	}

	.js .heros .atouts li:nth-child(2) {
		animation-delay: .7s;
	}

	.js .heros .atouts li:nth-child(3) {
		animation-delay: .8s;
	}

	.js .heros .atouts li:nth-child(4) {
		animation-delay: .9s;
	}
}

@keyframes ecs-recul {
	from {
		transform: scale(1.08);
	}

	to {
		transform: none;
	}
}

@keyframes ecs-monte {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Défilement : sections, cartes, tuiles, étapes et communes montent en
   fondu en entrant à l'écran (classes posées par app.js, jamais sans
   JavaScript ni avec « Réduire les animations »). Les éléments d'une même
   grille arrivent l'un après l'autre (--rang). */
.js .revele {
	opacity: 0;
	transform: translateY(28px);
}

.js .revele.est-revele {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--rang, 0) * var(--pas, 90ms));
}

/* Frise du déroulement d'un contrat (classes posées par app.js) : chaque
   étape apparaît à son tour (--i), puis son segment de ligne se remplit
   jusqu'à l'étape suivante. */
.js .frise--animee ol > li {
	opacity: 0;
	transform: translateY(16px);
}

.js .frise--animee ol > li::after {
	--rempli: 0%;
}

.js .frise--animee.frise--visible ol > li {
	opacity: 1;
	transform: none;
	transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--i, 0) * .5s);
}

.js .frise--animee.frise--visible ol > li::after {
	--rempli: 100%;
	transition: background-size .5s ease-in-out;
	transition-delay: calc(var(--i, 0) * .5s - .25s);
}

@media (max-width: 1100px) {
	.js .frise--animee.frise--visible ol > li::after {
		transition-delay: calc(var(--i, 0) * .5s + .25s);
	}
}

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

	.js .revele,
	.js .frise--animee ol > li {
		opacity: 1;
		transform: none;
	}

	.js .frise--animee ol > li::after {
		--rempli: 100%;
	}

	.service img,
	.btn,
	.cookies button,
	.cookies__outil input,
	.cookies__outil input::before {
		transition: none;
	}
}

@media print {
	.js .revele,
	.js .frise--animee ol > li {
		opacity: 1 !important;
		transform: none !important;
	}

	.fond-reunion {
		background: none;
		color: inherit;
	}
}

/* Profondeur du fond La Réunion : ordinateur seulement. */
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
	.fond-reunion {
		background-attachment: fixed;
	}
}

/* 12. Écrans moyens et petits --------------------------------------------- */

@media (max-width: 1100px) {
	.contacts {
		grid-template-columns: 1fr 1fr;
	}

	.contacts a:last-child {
		grid-column: 1 / -1;
	}

	.g4,
	.etapes .tuiles {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Frise verticale : ligne à gauche, pastilles dessus, texte à droite. */
	.etapes ol {
		grid-auto-flow: row;
		grid-template-columns: minmax(0, 1fr);
		max-width: 760px;
	}

	.etapes ol > li,
	.prose .etapes ol > li {
		min-height: var(--pastille);
		padding-top: 0;
		padding-left: calc(var(--pastille) + var(--e3));
	}

	.etapes ol > li > strong:first-child {
		padding-top: 10px;
	}

	.etapes ol > li:not(:first-child)::after {
		content: none;
	}

	.etapes ol > li:not(:last-child)::after {
		content: "";
		position: absolute;
		top: calc(var(--pastille) / 2);
		left: calc((var(--pastille) - var(--trait)) / 2);
		width: var(--trait);
		height: calc(100% + var(--ecart));
		background: linear-gradient(var(--bleu), var(--bleu)) no-repeat 0 0 / 100% var(--rempli, 100%), #CADDEF;
	}

	.atouts li {
		padding: 16px;
		gap: 10px;
		font-size: 16px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-entete {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-entete {
		top: 0;
	}
}

@media (max-width: 900px) {
	html {
		scroll-padding-top: 120px;
	}

	main section {
		padding: var(--e6) 0;
	}

	.barre {
		font-size: 13px;
	}

	.entete {
		height: 72px;
		gap: 12px;
	}

	.logo img {
		height: 46px;
	}

	.heros {
		padding: var(--e4) 0 var(--e5);
	}

	/* Photo du haut aussi sur mobile, voile uniforme. Hauteur en svh : pas
	   de saut quand la barre d'adresse se replie. */
	.heros--photo {
		min-height: 80vh;
		min-height: 80svh;
		padding: 0;
	}

	.heros--accueil.heros--photo {
		min-height: 88vh;
		min-height: 88svh;
	}

	.heros--photo::before {
		background: rgba(8, 26, 44, .74);
	}

	.heros--photo .heros__contenu {
		padding-top: var(--e5);
		padding-bottom: var(--e4);
	}

	.heros--photo .accroche {
		font-size: 19px;
		margin: var(--e3) 0 var(--e4);
	}

	.accroche {
		font-size: 19px;
	}

	.duo,
	.g2,
	.g3,
	.g4,
	.contacts,
	.ligne,
	.etapes .tuiles {
		grid-template-columns: 1fr;
	}

	.duo {
		gap: var(--e4);
	}

	.contacts a:last-child {
		grid-column: auto;
	}

	.atouts {
		grid-template-columns: 1fr 1fr;
		gap: var(--e1);
		margin-top: var(--e5);
	}

	.atouts li {
		font-size: 15px;
		padding: 12px;
		gap: var(--e1);
	}

	.atouts svg {
		width: 22px;
		height: 22px;
	}

	.service {
		min-height: 340px;
	}

	.resultat {
		min-height: 520px;
	}

	.resultat::before {
		background: rgba(8, 40, 70, .8);
	}

	.bandeau {
		padding: var(--e5) var(--e3);
	}

	.bandeau__titre {
		flex-basis: 100%;
	}

	.formulaire {
		padding: var(--e3);
	}

	.barre .texte {
		display: none;
	}

	.barre .wrap {
		justify-content: center;
	}

	.appel-fixe {
		right: var(--e2);
		bottom: var(--e2);
	}
}

/* Jusqu'à 640 px, la bannière des cookies est en pleine largeur (.cookies) :
   le bouton d'appel fixe passe au-dessus de la bannière ouverte (hauteur
   posée par app.js). Plus large, le panneau de 430 px lui laisse la place. */
@media (max-width: 640px) {
	.appel-fixe {
		bottom: calc(var(--e2) + var(--hauteur-cookies, 0px));
	}
}

@media (max-width: 600px) {
	/* Bouton d'appel de l'en-tête réduit à son icône (nom lu en entier),
	   carré et de la même hauteur que le bouton Menu. */
	.entete .entete__appel {
		width: 48px;
		height: 48px;
		min-height: 48px;
		padding: 0;
	}

	.entete__numero {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	/* Choix du formulaire l'un sous l'autre, sur toute la largeur. */
	.formulaire .choix label {
		flex: 1 1 100%;
	}

	/* Boutons en pleine largeur, l'un sous l'autre. */
	.ctas .btn,
	.wp-block-buttons .wp-block-button,
	.wp-block-buttons .wp-block-button__link {
		width: 100%;
	}
}
