/* Idee : les ronds dans l'eau (district des Lacs, rassemblement des associations).
   Le geste fort : la frise de ses actions, dont chaque date s'ouvre comme un rond dans l'eau. */
@font-face {
	font-family: "Alegreya";
	src: url("polices/alegreya.woff2") format("woff2");
	font-weight: 500 800;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("polices/public-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--profond: #0b4a34;
	--vif: #12804f;
	--eau: #dcefea;
	--blanc: #ffffff;
	--encre: #10211b;
	--or: #d9a62e;
	--gris: #4a5f57;
	--titre: "Alegreya", Georgia, serif;
	--texte: "Public Sans", "Segoe UI", system-ui, sans-serif;
	--marge: max(1.25rem, calc((100% - 68rem) / 2));
	--douce: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
	box-sizing: border-box;
}
/* Lu par les lecteurs d'ecran, invisible a l'ecran. */
.masque {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--blanc);
	color: var(--encre);
	font: 1.0625rem / 1.65 var(--texte);
}
h1,
h2,
h3 {
	margin: 0;
	font-family: var(--titre);
	line-height: 1.08;
	text-wrap: balance;
}
h2 {
	font-size: clamp(2.1rem, 6vw, 3.2rem);
	font-weight: 800;
	color: var(--profond);
}
h3 {
	margin: 0.3rem 0 0.8rem;
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--profond);
}
p {
	margin: 0;
	max-width: 36em;
}
p + p {
	margin-top: 0.9rem;
}
a {
	color: inherit;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
button {
	font: inherit;
}
:focus-visible {
	outline: 3px solid var(--or);
	outline-offset: 3px;
}

.bandeau {
	max-width: none;
	padding: 0.5rem 1.25rem;
	background: var(--or);
	color: var(--encre);
	font-size: 0.875rem;
	text-align: center;
}

/* ---------- Accueil ---------- */
.accueil {
	--taille: min(64vw, 19rem);
	display: grid;
	grid-template-areas: "photo" "identite";
	justify-items: center;
	padding: 3.5rem var(--marge) 3.75rem;
	background: radial-gradient(circle at 50% 30%, #0f5a40, var(--profond) 70%);
	color: var(--blanc);
	text-align: center;
	overflow: hidden;
}
.ronds,
.portrait {
	grid-area: photo;
	align-self: center;
}
.ronds {
	display: grid;
	place-items: center;
}
.ronds > * {
	grid-area: 1 / 1;
	width: var(--taille);
	aspect-ratio: 1;
	border: 1.5px solid var(--eau);
	border-radius: 50%;
	scale: var(--echelle);
	opacity: var(--voile);
}
/* Une onde lente qui repart de la photo, comme une goutte sur le lac. */
.ronds b {
	--echelle: 1;
	--voile: 0;
	border-color: var(--or);
}
.portrait {
	position: relative;
	width: var(--taille);
	aspect-ratio: 1;
	border: 6px solid var(--blanc);
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
	box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.3);
}
.identite {
	grid-area: identite;
	display: grid;
	justify-items: center;
	gap: 1.25rem;
	position: relative;
	margin-top: calc(var(--taille) * 0.5 + 1rem);
}
h1 {
	font-size: clamp(2.9rem, 12vw, 5.4rem);
	font-weight: 800;
	letter-spacing: -0.01em;
}
.fonctions {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 28em;
	color: var(--eau);
	font-size: 1.05rem;
}
.fonctions li + li {
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px solid rgb(220 239 234 / 0.3);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.bouton {
	display: inline-block;
	padding: 0.85rem 1.5rem;
	border: 2px solid currentcolor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition:
		transform 0.2s var(--douce),
		background-color 0.2s;
}
.bouton:disabled {
	cursor: not-allowed;
}
.bouton:not(:disabled):hover {
	transform: translateY(-2px);
}
.bouton:not(:disabled):active {
	transform: scale(0.97);
}
.bouton.plein {
	background: var(--blanc);
	border-color: var(--blanc);
	color: var(--profond);
}
.bouton.or {
	background: var(--or);
	border-color: var(--or);
	color: var(--encre);
}
.bouton.facebook {
	background: #1259b8;
	border-color: #1259b8;
	color: var(--blanc);
}
.bouton.groupe {
	background: var(--profond);
	border-color: var(--profond);
	color: var(--blanc);
}

/* ---------- Menu ---------- */
nav {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	gap: 1.1rem;
	padding: 0.2rem var(--marge);
	overflow-x: auto;
	scrollbar-width: none;
	background: var(--blanc);
	box-shadow: 0 1px 0 rgb(11 74 52 / 0.15);
}
nav a {
	flex: none;
	padding: 0.7rem 0 0.55rem;
	border-bottom: 3px solid transparent;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition:
		border-color 0.25s,
		color 0.25s;
}
nav a:hover,
nav a[aria-current="true"] {
	color: var(--vif);
	border-color: var(--vif);
}

/* ---------- Sections ---------- */
section {
	padding: 4.5rem var(--marge);
	scroll-margin-top: 3rem;
}
h2 + p {
	margin-top: 1.25rem;
}
.provisoire {
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
	margin-top: 1.25rem;
	color: var(--gris);
	font-size: 0.92rem;
}
.provisoire::before {
	content: "";
	flex: none;
	width: 0.6rem;
	aspect-ratio: 1;
	border: 2px solid var(--or);
	border-radius: 50%;
}

.parcours {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}
.intro {
	font-size: 1.15rem;
}
figure {
	margin: 0;
}
figcaption {
	margin-top: 0.5rem;
	color: var(--gris);
	font-size: 0.9rem;
}
.parcours figure {
	max-width: 26rem;
}

/* Bouton qui agrandit une photo */
.agrandir {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--eau);
	cursor: zoom-in;
}
.agrandir:hover {
	--zoom: 1.04;
}
.agrandir img {
	width: 100%;
	scale: var(--zoom, 1);
	transition: scale 0.6s var(--douce);
}

/* ---------- Citation ---------- */
.citation {
	background:
		repeating-radial-gradient(
			circle at 85% 120%,
			transparent 0 34px,
			rgb(220 239 234 / 0.08) 34px 35.5px
		),
		var(--profond);
	color: var(--blanc);
}
.citation blockquote {
	margin: 0;
	max-width: 46rem;
}
.citation blockquote p {
	max-width: none;
	font: 600 clamp(1.7rem, 5vw, 2.6rem) / 1.25 var(--titre);
}
.citation footer {
	margin-top: 1.25rem;
	color: var(--eau);
	font-size: 0.95rem;
}

/* ---------- Valeurs ---------- */
.valeurs .chapeau {
	color: var(--gris);
}
.valeurs dl {
	display: grid;
	margin: 2.25rem 0 0;
}
.valeurs dl > div {
	display: grid;
	gap: 0.35rem;
	position: relative;
	padding: 1.4rem 0;
}
/* Filet du haut : il se trace de gauche a droite quand la valeur apparait. */
.valeurs dl > div::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: linear-gradient(90deg, var(--vif), rgb(11 74 52 / 0.15) 60%);
	transform-origin: left;
}
.valeurs dt {
	position: relative;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	font: 800 1.75rem / 1.1 var(--titre);
	color: var(--profond);
}
.valeurs dt::before {
	content: "";
	flex: none;
	width: 0.85rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--vif);
	box-shadow:
		0 0 0 4px var(--blanc),
		0 0 0 5.5px var(--vif);
}
/* Onde autour du point (jouee a l'apparition et au survol). */
.valeurs dt::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 0.85rem;
	aspect-ratio: 1;
	border: 2px solid var(--vif);
	border-radius: 50%;
	translate: 0 -50%;
	opacity: 0;
	pointer-events: none;
}
.valeurs dd {
	margin: 0 0 0 1.6rem;
	max-width: 34em;
	font-size: 1.05rem;
}

/* ---------- Frise des actions ---------- */
.actions-sec {
	background: var(--eau);
	/* Les photos arrivent de la droite : sans cela la page glisse de cote sur telephone. */
	overflow-x: clip;
}
.frise {
	--avance: 1;
	position: relative;
	margin: 2.5rem 0 0;
	padding: 0 0 0 2.75rem;
	list-style: none;
}
.frise::before,
.frise::after {
	content: "";
	position: absolute;
	top: 0.4rem;
	bottom: 0;
	left: 0.85rem;
	width: 3px;
	border-radius: 3px;
	background: rgb(11 74 52 / 0.15);
}
.frise::after {
	background: var(--vif);
	transform-origin: top;
	transform: scaleY(var(--avance));
}
.etape {
	position: relative;
	display: grid;
	gap: 1.5rem;
}
.etape + .etape {
	margin-top: 3.5rem;
}
.point {
	position: absolute;
	top: 0.2rem;
	left: -2.75rem;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 1.75rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--profond);
	box-shadow: 0 0 0 5px var(--eau);
}
.point i {
	width: 100%;
	aspect-ratio: 1;
	border: 2px solid var(--vif);
	border-radius: 50%;
	scale: 1.9;
	opacity: 0.5;
}
.quand {
	color: var(--vif);
	font-weight: 700;
	font-size: 0.95rem;
}
.texte {
	max-width: 36rem;
}
.extrait {
	font: 600 1.3rem / 1.4 var(--titre);
	color: var(--profond);
}
.photos {
	display: grid;
	gap: 0.75rem;
	align-content: start;
}
.photos img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: 50% 35%;
}

/* ---------- Agenda ---------- */
.titre-parcours {
	margin-top: 2rem;
}
.parcours-liste {
	margin: 0;
}
.parcours-liste .apparait {
	padding: 0.8rem 0;
	border-top: 1px solid rgb(11 74 52 / 0.2);
}
.parcours-liste dt {
	color: var(--vif);
	font-weight: 700;
}
.parcours-liste dd {
	margin: 0;
}
.vide {
	display: block;
	color: var(--gris);
	font-size: 0.92rem;
}

.rencontres {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.exemple {
	display: inline-block;
	margin-bottom: 0.4rem;
	padding: 0.1rem 0.7rem;
	border-radius: 999px;
	background: var(--or);
	font-weight: 700;
	font-size: 0.85rem;
}
.rencontre {
	position: relative;
	padding: 1.5rem 1.5rem 1.5rem 4.25rem;
	border: 1.5px dashed rgb(18 128 79 / 0.45);
	border-radius: 8px;
}
.rencontre .point {
	top: 1.6rem;
	left: 1.4rem;
	box-shadow: none;
}

/* ---------- Fan club et contact ---------- */
.fanclub,
.soutenir {
	display: grid;
	justify-items: center;
	gap: 1.25rem;
	text-align: center;
}
.fanclub {
	background: var(--eau);
}
.reseaux {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}
.soutenir {
	background: var(--vif);
	color: var(--blanc);
}
.soutenir h2 {
	color: var(--blanc);
	max-width: 16em;
}

/* ---------- Pied de page ---------- */
.pied {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	padding: 3rem 1.25rem 6rem;
	background: var(--encre);
	color: var(--blanc);
	font-size: 0.875rem;
	text-align: center;
}
.suivre-titre {
	color: var(--blanc);
	font-size: 1.6rem;
}
.suivre {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
.suivre li > * {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem 1.1rem;
	border: 1.5px solid rgb(220 239 234 / 0.5);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}
.suivre a[href] {
	border-color: var(--eau);
	background: var(--blanc);
	color: var(--encre);
}
.suivre svg {
	flex: none;
	width: 1.15rem;
}
.note {
	margin-bottom: 1.5rem;
	color: var(--eau);
}

/* ---------- Visionneuse de photos ---------- */
.visionneuse {
	width: min(100vw - 1.5rem, 64rem);
	max-height: calc(100vh - 1.5rem);
	padding: 1rem;
	border: 0;
	border-radius: 10px;
	background: var(--encre);
	color: var(--blanc);
}
.visionneuse::backdrop {
	background: rgb(6 20 14 / 0.85);
}
.visionneuse img {
	width: 100%;
	max-height: 72vh;
	object-fit: contain;
}
.legende {
	margin: 0.75rem auto 0;
	text-align: center;
	color: var(--eau);
}
.commandes {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.commandes button {
	padding: 0.6rem 1rem;
	border: 1.5px solid var(--eau);
	border-radius: 999px;
	background: transparent;
	color: var(--blanc);
	font-weight: 600;
	cursor: pointer;
}

.whatsapp {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 3.5rem;
	aspect-ratio: 1;
	border: 2px solid var(--blanc);
	border-radius: 50%;
	background: #128c4a;
	color: var(--blanc);
	box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.25);
}
.whatsapp svg {
	width: 2rem;
}

/* "Voir plus d'actions" */
/* Cible de reprise au clavier, non cliquable : pas de cadre autour. */
.etape:focus {
	outline: none;
}
.etape[hidden],
.suite [hidden] {
	display: none;
}
.suite {
	display: grid;
	justify-items: center;
	gap: 0.6rem;
	margin-top: 2.5rem;
}
.suite[hidden] {
	display: none;
}
.bouton.plus {
	background: var(--profond);
	border-color: var(--profond);
	color: var(--blanc);
	cursor: pointer;
}
.boutons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}
.bouton.moins {
	color: var(--profond);
	cursor: pointer;
}
.compteur {
	color: var(--gris);
	font-size: 0.92rem;
}

/* Une affiche se montre entiere, sans recadrage. */
.photos img.affiche {
	aspect-ratio: auto;
}

/* ---------- Grand ecran ---------- */
@media (min-width: 52rem) {
	.accueil {
		--taille: min(28vw, 22rem);
		grid-template-areas: "identite photo";
		grid-template-columns: 1.15fr 1fr;
		padding-block: 5rem;
		text-align: left;
	}
	.identite {
		justify-items: start;
		margin-top: 0;
	}
	.actions {
		justify-content: flex-start;
	}
	.parcours {
		grid-template-columns: 1.2fr 1fr;
		gap: 4rem;
	}
	.parcours figure {
		justify-self: end;
	}
	.valeurs dl {
		grid-template-columns: 1fr 1fr;
		column-gap: 3rem;
	}
	.etape {
		grid-template-columns: 1fr 1.1fr;
		gap: 2.5rem;
		align-items: start;
	}
	.etape + .etape {
		margin-top: 4.5rem;
	}
}

/* ---------- Animations (seulement si la personne ne les a pas reduites) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ronds i {
		animation: onde-depart 2.4s var(--douce) backwards;
		animation-delay: var(--retard);
	}
	.ronds b {
		animation: goutte 6s cubic-bezier(0.25, 0.6, 0.3, 1) 2.6s infinite;
	}
	.portrait {
		animation: monte 1.1s var(--douce) backwards;
	}
	.identite > *,
	.fonctions li {
		animation: monte 0.9s var(--douce) backwards;
	}
	.identite > h1 {
		animation-delay: 0.35s;
	}
	.fonctions li:first-child {
		animation-delay: 0.55s;
	}
	.fonctions li:nth-child(2) {
		animation-delay: 0.7s;
	}
	.identite > .actions {
		animation-delay: 0.9s;
	}
	.fonctions {
		animation: none;
	}

	/* Apparitions au defilement : seulement quand le script est la. */
	.anime .apparait,
	.anime .etape .texte,
	.anime .etape .photos > * {
		opacity: 0;
		translate: 0 1.75rem;
		transition:
			opacity 0.8s var(--douce),
			translate 0.8s var(--douce);
	}
	.anime .etape .photos > * {
		translate: 2.5rem 0;
	}
	.anime .etape .photos > :nth-child(2) {
		transition-delay: 0.15s;
	}
	.anime .vu,
	.anime .vu .texte,
	.anime .vu .photos > * {
		opacity: 1;
		translate: 0 0;
	}
	.anime .valeurs .apparait:nth-child(2) {
		transition-delay: 0.1s;
	}
	.anime .valeurs .apparait:nth-child(3) {
		transition-delay: 0.2s;
	}
	.anime .valeurs .apparait:nth-child(4) {
		transition-delay: 0.3s;
	}
	/* Ce qu'il defend : filet trace, onde, titre puis phrase qui glissent. */
	.anime .valeurs dl > div::before {
		transform: scaleX(0);
		transition: transform 1.1s var(--douce) var(--decale, 0s);
	}
	.anime .valeurs .vu::before {
		transform: scaleX(1);
	}
	.anime .valeurs dt,
	.anime .valeurs dd {
		opacity: 0;
		translate: -1.5rem 0;
		transition:
			opacity 0.8s var(--douce),
			translate 0.8s var(--douce);
	}
	.anime .valeurs .vu dt {
		opacity: 1;
		translate: 0 0;
		transition-delay: calc(var(--decale, 0s) + 0.25s);
	}
	.anime .valeurs .vu dd {
		opacity: 1;
		translate: 0 0;
		transition-delay: calc(var(--decale, 0s) + 0.45s);
	}
	.anime .valeurs .vu dt::after {
		animation: onde-valeur 1.6s var(--douce) calc(var(--decale, 0s) + 0.5s);
	}
	/* Autre nom d'animation : sinon le survol ne la relance pas. */
	.anime .valeurs .vu:hover dt::after {
		animation: onde-survol 1.4s var(--douce);
	}
	.anime .valeurs dl > :nth-child(2) {
		--decale: 0.15s;
	}
	.anime .valeurs dl > :nth-child(3) {
		--decale: 0.3s;
	}
	.anime .valeurs dl > :nth-child(4) {
		--decale: 0.45s;
	}
	.anime .point i {
		scale: 0.6;
		opacity: 0;
	}
	.anime .vu .point i {
		animation: ouverture 1.4s var(--douce) forwards;
	}
	.anime .frise::after {
		transition: transform 0.25s linear;
	}
}

@keyframes onde-depart {
	from {
		scale: 1;
		opacity: 0;
	}
	30% {
		opacity: 0.8;
	}
}
@keyframes goutte {
	0% {
		scale: 1;
		opacity: 0.7;
	}
	70%,
	100% {
		scale: 2.3;
		opacity: 0;
	}
}
@keyframes onde-survol {
	0% {
		scale: 1;
		opacity: 0.9;
	}
	100% {
		scale: 3.4;
		opacity: 0;
	}
}
@keyframes onde-valeur {
	0% {
		scale: 1;
		opacity: 0.9;
	}
	100% {
		scale: 3.4;
		opacity: 0;
	}
}
@keyframes monte {
	from {
		opacity: 0;
		translate: 0 1.25rem;
	}
}
@keyframes ouverture {
	0% {
		scale: 0.6;
		opacity: 0.9;
	}
	100% {
		scale: 1.9;
		opacity: 0.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.agrandir img,
	.bouton {
		transition: none;
	}
}
