/*
 * À propos, chargée sur cette page seulement, après locale.css dont elle reprend les sections et
 * la clôture.
 *
 * La page de présentation d'Helveor, dans la langue du site : la nuit, l'eau claire pour ce qui
 * informe, des filets plutôt que des cadres. La goutte du logo porte la tête : des montagnes et un
 * lac y vivent, une goutte en tombe. Ensuite, chaque chapitre a sa forme (voir page-a-propos.php),
 * et le rouge reste au seul bouton « Réserver ».
 */

/* ---------------------------------------------------------------- Tête */

.propos-tete {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(26px, 4vw, 40px) clamp(56px, 8vw, 104px);
}

.propos-tete::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(45% 60% at 82% 45%, rgba(88, 152, 214, 0.14), rgba(88, 152, 214, 0) 70%),
		radial-gradient(60% 50% at 10% 0%, rgba(88, 152, 214, 0.08), rgba(88, 152, 214, 0) 70%),
		linear-gradient(180deg, rgba(18, 33, 58, 0.35), rgba(6, 13, 22, 0) 480px);
}

.propos-tete__grille {
	display: grid;
	gap: clamp(36px, 6vw, 56px);
	margin-top: clamp(28px, 4.4vw, 52px);
}

@media (min-width: 960px) {
	.propos-tete__grille {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: clamp(40px, 6vw, 88px);
		align-items: center;
	}
}

.propos-tete__titre {
	max-width: 13em;
	margin-top: 18px;
	font-size: clamp(38px, 6vw, 70px);
	line-height: 1.04;
	letter-spacing: -0.015em;
}

/* Le mot en italique dans l'éditeur : l'eau claire, droit comme le reste du titre. */
.propos-tete__titre em,
.propos-section h2 em {
	font-style: normal;
	background: linear-gradient(90deg, var(--water-2), var(--water));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (forced-colors: active) {
	.propos-tete__titre em,
	.propos-section h2 em { background: none; color: inherit; }
}

.propos-tete__chapo {
	max-width: 46ch;
	margin-top: 24px;
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.7;
	color: var(--text-2);
}

/* La devise de la marque, en capitales espacées, un filet entre chaque mot. */
.propos-devise {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 8px;
	margin-top: 26px;
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-3);
}

.propos-devise span { display: inline-flex; align-items: center; }

.propos-devise span + span::before {
	content: '';
	width: 22px;
	height: 1px;
	margin: 0 14px;
	background: rgba(238, 242, 247, 0.28);
}

.propos-tete__actions { margin-top: clamp(26px, 3.4vw, 36px); }

@media (max-width: 480px) {
	.propos-tete__actions .bouton { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- Le logo vivant */

/* template-parts/goutte-vivante.php : le logo du site, un ciel dans la goutte, un lac qui bouge. */
.goutte-vivante {
	justify-self: center;
	width: min(100%, 230px);
	margin: 0;
}

@media (min-width: 960px) {
	.goutte-vivante { width: min(100%, 360px); }
}

.goutte-vivante svg {
	display: block;
	width: 100%;
	height: auto;
}

.goutte-vivante path,
.goutte-vivante ellipse { vector-effect: non-scaling-stroke; }

/* L'opacité vaut pour le logo entier : là où deux traits se chevauchent (le coin refermé), pas de bande plus claire. */
.goutte-vivante__logo { fill: rgb(238, 243, 248); opacity: 0.94; }

.goutte-vivante__vague--trait {
	fill: none;
	stroke: var(--water-2);
	stroke-width: 1.2;
}

.goutte-vivante__reflet {
	fill: none;
	stroke: rgba(169, 207, 240, 0.45);
	stroke-width: 1.2;
	stroke-linecap: round;
}

.goutte-vivante__chute {
	fill: var(--water-2);
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 0;
}

.goutte-vivante__ride {
	fill: none;
	stroke: var(--water);
	stroke-width: 1;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 50%;
}

/* Sans mouvement : le lac immobile, une ride posée sous le logo. */
.goutte-vivante__ride--2,
.goutte-vivante__ride--3 { display: none; }

@media (prefers-reduced-motion: reduce) {
	.goutte-vivante__ride:first-of-type { opacity: 0.4; transform: scale(0.6); }
}

@media (prefers-reduced-motion: no-preference) {
	.goutte-vivante__ride--2,
	.goutte-vivante__ride--3 { display: inline; }

	.goutte-vivante__vague { animation: gv-vague 6s linear infinite; }
	.goutte-vivante__lac { animation: gv-houle 7s ease-in-out infinite alternate; }
	.goutte-vivante__reflet { animation: gv-reflet 5s ease-in-out infinite; }
	.goutte-vivante__halo { transform-origin: 50% 50%; transform-box: fill-box; animation: gv-halo 9s ease-in-out infinite alternate; }
	.goutte-vivante__chute { animation: gv-chute 5.2s cubic-bezier(0.55, 0, 0.8, 0.45) infinite; }
	.goutte-vivante__ride { animation: gv-ride 5.2s var(--ease) infinite; }
	.goutte-vivante__ride--2 { animation-delay: 0.45s; }
	.goutte-vivante__ride--3 { animation-delay: 0.9s; }
}

/* Une vague du lac fait 200 unités : la glisser d'autant boucle sans saut. */
@keyframes gv-vague {
	to { transform: translateX(200px); }
}

@keyframes gv-houle {
	from { transform: translateY(0); }
	to { transform: translateY(-14px); }
}

@keyframes gv-reflet {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 0.9; }
}

@keyframes gv-halo {
	from { transform: scale(0.94); opacity: 0.8; }
	to { transform: scale(1.04); opacity: 1; }
}

/* La goutte se forme sous le logo, tombe, et touche l'eau quand la ride s'ouvre. */
@keyframes gv-chute {
	0%, 50% { transform: translateY(0) scale(0.2); opacity: 0; }
	58% { transform: translateY(0) scale(1); opacity: 1; }
	76% { transform: translateY(205px) scale(1); opacity: 1; }
	78%, 100% { transform: translateY(222px) scale(0.8); opacity: 0; }
}

@keyframes gv-ride {
	0%, 77% { transform: scale(0.06, 0.2); opacity: 0; }
	80% { opacity: 0.9; }
	100% { transform: scale(1); opacity: 0; }
}

/* ---------------------------------------------------------------- Chapitres */

.propos-section { scroll-margin-top: var(--entete); }

/* Le titre à gauche, l'introduction à droite, puis la forme du chapitre sur toute la largeur. */
.propos-section__tete {
	display: grid;
	gap: 20px;
	margin-bottom: clamp(36px, 5vw, 60px);
}

@media (min-width: 960px) {
	.propos-section__tete {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		column-gap: clamp(40px, 6vw, 72px);
		align-items: end;
	}
}

.propos-section__tete h2 {
	max-width: 17ch;
	margin-top: 22px;
	font-size: clamp(30px, 4vw, 46px);
}

.propos-section__intro p {
	max-width: 46ch;
	font-size: clamp(15px, 1.35vw, 16.5px);
	line-height: 1.7;
	color: var(--text-2);
}

.propos-section__intro p + p { margin-top: 1em; }

.propos-texte > * + * { margin-top: 1.05em; }

.propos-texte p {
	max-width: 58ch;
	font-size: 16px;
	line-height: 1.75;
	color: var(--text-2);
}

.propos-texte p:first-child {
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.7;
	color: var(--text);
}

.propos-texte a { color: var(--water); }

/* ---------------------------------------------------------------- Vision */

.propos-vision__grille {
	display: grid;
	gap: clamp(30px, 5vw, 56px);
}

@media (min-width: 960px) {
	.propos-vision__grille {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		column-gap: clamp(40px, 6vw, 88px);
		align-items: start;
	}

	.propos-vision__citation {
		position: sticky;
		top: calc(var(--entete) + 40px);
	}

	.propos-vision__texte { padding-top: 54px; }
}

/* Une citation : un filet d'eau à gauche, qui s'éteint vers le bas. */
.propos-citation {
	position: relative;
	margin-top: 28px;
	padding-left: clamp(20px, 2.4vw, 32px);
	font-size: clamp(25px, 3vw, 38px);
	font-weight: 200;
	line-height: 1.28;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

.propos-citation::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.25em;
	bottom: 0.15em;
	width: 1px;
	background: linear-gradient(180deg, var(--water-2), rgba(111, 168, 220, 0.1));
}

/* Les domaines, repris comme une devise : des points d'eau entre les mots. */
.propos-etiquettes {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin: 34px 0 0;
	padding: 26px 0 0;
	list-style: none;
	border-top: 1px solid var(--line);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-2);
}

.propos-etiquettes li { display: inline-flex; align-items: center; }

.propos-etiquettes li::before {
	content: '';
	width: 5px;
	height: 5px;
	margin-right: 11px;
	border-radius: 50%;
	background: var(--water);
	box-shadow: 0 0 10px rgba(111, 168, 220, 0.6);
}

/* ---------------------------------------------------------------- Domaines */

/* Des filets, pas de cartes : seul le lien de chaque domaine se clique. */
.domaines {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.domaine {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 20px;
	align-content: start;
	padding-block: 28px;
	border-bottom: 1px solid var(--line);
}

.domaine__rond {
	grid-row: span 3;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 30%, #11243b, var(--ink) 74%);
	color: var(--text-2);
	transition: border-color var(--dur-lente) var(--ease), color var(--dur-lente) var(--ease), box-shadow var(--dur-lente) var(--ease);
}

.domaine__rond .picto { width: 56%; height: 56%; }

/* Le domaine ne se clique pas : son dessin s'éclaire, rien ne bouge. */
.domaine:hover .domaine__rond {
	border-color: rgba(169, 207, 240, 0.6);
	color: var(--text);
	box-shadow: 0 0 26px rgba(111, 168, 220, 0.18);
}

.domaine__titre {
	padding-top: 4px;
	font-size: clamp(19px, 1.8vw, 22px);
	font-weight: 300;
	line-height: 1.25;
}

.domaine__texte {
	max-width: 40ch;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-2);
}

.domaine__lien {
	justify-self: start;
	margin-top: 12px;
	font-size: 14.5px;
}

@media (min-width: 700px) {
	.domaines { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.domaine {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 36px clamp(20px, 2.8vw, 36px) 40px;
	}

	.domaine:nth-child(odd) { padding-left: 0; }
	.domaine:nth-child(even) { padding-right: 0; border-left: 1px solid var(--line); }

	.domaine__rond { width: 72px; height: 72px; margin-bottom: 26px; }
	.domaine__titre { padding-top: 0; }
	.domaine__lien { margin-top: auto; padding-top: 22px; }
	.domaine__texte { margin-bottom: 0; }
}

@media (min-width: 1100px) {
	.domaines { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-template-columns: none; }
	.domaine:nth-child(n) { padding-inline: clamp(20px, 2.2vw, 32px); border-left: 1px solid var(--line); }
	.domaine:first-child { padding-left: 0; border-left: 0; }
	.domaine:last-child { padding-right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
	.domaines.est-revele .domaine,
	.domaines:not(.a-reveler) .domaine { animation: propos-entree 0.9s var(--ease) both; animation-delay: calc(var(--i) * 0.08s); }
}

@keyframes propos-entree {
	from { opacity: 0; transform: translateY(14px); }
}

/* ---------------------------------------------------------------- Méthode */

.methode {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.methode__etape {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	column-gap: 18px;
	padding-block: 26px;
	border-top: 1px solid var(--line);
}

.methode__num {
	grid-row: span 2;
	font-family: var(--display);
	font-size: 40px;
	font-weight: 200;
	line-height: 1;
	letter-spacing: 0.02em;
	background: linear-gradient(180deg, var(--water-2), var(--water));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (forced-colors: active) {
	.methode__num { background: none; color: inherit; }
}

.methode__titre {
	padding-top: 6px;
	font-size: clamp(18px, 1.7vw, 21px);
	font-weight: 400;
	line-height: 1.3;
}

.methode__texte {
	max-width: 40ch;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-2);
}

/*
 * Sur grand écran, quatre colonnes sur un même filet. À l'apparition, l'eau court sur le filet
 * au-dessus de chaque étape, l'une après l'autre.
 */
@media (min-width: 900px) {
	.methode {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: clamp(22px, 3vw, 44px);
	}

	.methode__etape {
		display: block;
		padding-top: 36px;
		border-top: 0;
	}

	.methode__etape::before,
	.methode__etape::after {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
	}

	.methode__etape::before { right: 0; height: 1px; background: var(--line-strong); }

	.methode__etape::after {
		top: -1px;
		width: 56px;
		height: 3px;
		border-radius: 2px;
		background: linear-gradient(90deg, var(--water), var(--water-2));
		box-shadow: 0 0 14px rgba(111, 168, 220, 0.45);
		transition: width 1.3s var(--ease);
		transition-delay: calc(0.2s + var(--i) * 0.28s);
	}

	.methode.a-reveler:not(.est-revele) .methode__etape::after { width: 0; }

	.methode__num {
		display: block;
		margin-bottom: 20px;
		font-size: clamp(56px, 6vw, 84px);
	}

	.methode__titre { padding-top: 0; }
}

/* ---------------------------------------------------------------- Engagement */

/* La lumière plutôt que des traits : un halo qui dérive très lentement derrière les chiffres. */
.propos-engagement {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(160deg, #0c1a2c 0%, #070e18 72%);
}

.propos-engagement::before {
	content: '';
	position: absolute;
	inset: -20%;
	z-index: -1;
	background:
		radial-gradient(32% 40% at 78% 48%, rgba(88, 152, 214, 0.2), rgba(88, 152, 214, 0) 70%),
		radial-gradient(26% 30% at 62% 78%, rgba(169, 207, 240, 0.08), rgba(169, 207, 240, 0) 70%);
}

@media (prefers-reduced-motion: no-preference) {
	.propos-engagement::before { animation: propos-lumiere 22s ease-in-out infinite alternate; }
}

@keyframes propos-lumiere {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-6%, 4%, 0); }
}

.propos-engagement__grille {
	display: grid;
	gap: clamp(40px, 6vw, 72px);
}

@media (min-width: 960px) {
	.propos-engagement__grille {
		grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
		column-gap: clamp(40px, 6vw, 88px);
		align-items: center;
	}
}

.propos-engagement__titre {
	max-width: 16ch;
	margin-top: 22px;
	font-size: clamp(30px, 4vw, 46px);
}

.propos-engagement .propos-texte { margin-top: 26px; }

.propos-chiffres {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-bottom: 1px solid var(--line);
}

.propos-chiffre {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding: clamp(22px, 3vw, 34px) clamp(14px, 2.4vw, 30px);
	border-top: 1px solid var(--line-strong);
}

.propos-chiffre:nth-child(odd) { padding-left: 0; }
.propos-chiffre:nth-child(even) { border-left: 1px solid var(--line); }

/* Un nombre impair de chiffres : le dernier, seul sur sa rangée, la prend en entier plutôt que d'y laisser un trou. */
.propos-chiffre:nth-child(odd):last-child { grid-column: 1 / -1; }

.propos-chiffre__valeur {
	display: flex;
	align-items: baseline;
	margin: 0;
	font-family: var(--display);
	font-size: clamp(46px, 6vw, 82px);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 40px rgba(111, 168, 220, 0.25);
}

.propos-chiffre__suite {
	margin-left: 0.06em;
	font-size: 0.5em;
	letter-spacing: 0;
	color: var(--water-2);
}

.propos-chiffre__drapeau { align-self: center; margin-right: 0.22em; }
.propos-chiffre__drapeau .drapeau { display: block; width: 0.42em; height: 0.42em; }

.propos-chiffre__libelle {
	margin-top: 14px;
	font-size: 12px;
	line-height: 1.45;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-2);
}

@media (prefers-reduced-motion: no-preference) {
	.propos-chiffres.est-revele .propos-chiffre,
	.propos-chiffres:not(.a-reveler) .propos-chiffre { animation: propos-entree 1s var(--ease) both; animation-delay: calc(0.1s + var(--i) * 0.12s); }
}

/* ---------------------------------------------------------------- Clôture */

.propos-fin__appel {
	margin-top: 22px;
	font-size: 14.5px;
	color: var(--text-2);
}

.propos-fin__appel a { color: var(--water); }
.propos-fin__appel .prix { font-family: var(--display); font-size: 16px; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- Révélation au défilement */

/* accueil.js ne pose .a-reveler que sur ce qui est hors écran, et jamais en mouvement réduit. */
.propos .a-reveler {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.propos .a-reveler.est-revele { opacity: 1; transform: none; }

/* Les listes animent leurs éléments eux-mêmes : le bloc ne fait qu'attendre. */
.propos .domaines.a-reveler,
.propos .methode.a-reveler,
.propos .propos-chiffres.a-reveler { transform: none; }
