/* Maquette La Réserve Artois — ambiance « Sous-bois » (provisoire)
   Aucune ressource externe : polices de l'ordinateur, illustrations SVG intégrées. */

:root {
	color-scheme: light;

	/* Palette */
	--foret: #1d3a2a;
	--foret-2: #264b36;
	--mousse: #3c6b47;
	--sauge: #8fb08a;
	--sauge-clair: #dfe9d8;
	--creme: #f7f3ea;
	--papier: #fffdf8;
	--encre: #1b2620;
	--attenue: #4f5e54;
	--ligne: #e3dccb;
	--ocre: #a65a1a;
	--ocre-fonce: #8a4813;
	--soleil: #e9c46a;
	--texte-sur-foret: #d4e0cf;

	/* Typographie */
	--police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

	/* Mise en page */
	--largeur: 1200px;
	--gouttiere: clamp(1rem, 4vw, 2.5rem);
	--entete: 3.75rem;
	--rayon: 16px;
	--rayon-petit: 10px;
	--ombre: 0 1px 2px rgba(29, 58, 42, .06), 0 6px 18px rgba(29, 58, 42, .08);
	--ombre-forte: 0 2px 6px rgba(29, 58, 42, .08), 0 18px 48px rgba(29, 58, 42, .18);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + .5rem); }

body {
	margin: 0;
	background: var(--creme);
	color: var(--encre);
	font-family: var(--police-texte);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--mousse); }
a:hover { color: var(--foret); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
	font-family: var(--police-titre);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
}

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

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

/* ---------- En-tête et navigation ---------- */

.entete {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 243, 234, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--ligne);
}
.entete__barre { display: flex; align-items: center; gap: .5rem; height: var(--entete); }

.marque {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: var(--foret);
	margin-right: auto;
	min-width: 0;
}
.marque__logo { width: 34px; height: 34px; flex: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marque__nom { font-family: var(--police-titre); font-size: 1.12rem; font-weight: 700; white-space: nowrap; }
.marque__asso { font-size: .68rem; color: var(--attenue); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav a {
	display: block;
	padding: .45rem .75rem;
	border-radius: 999px;
	color: var(--encre);
	text-decoration: none;
	font-size: .94rem;
	font-weight: 500;
}
.nav a:hover { background: var(--sauge-clair); color: var(--foret); }

.compte {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .6rem;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--attenue);
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
}
.compte svg { width: 20px; height: 20px; flex: none; }
.compte:hover { color: var(--foret); background: var(--sauge-clair); }
.compte__libelle { display: none; }

.burger {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 12px;
	background: var(--foret);
	color: var(--creme);
	cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.burger .icone-fermer { display: none; }
.burger[aria-expanded="true"] .icone-ouvrir { display: none; }
.burger[aria-expanded="true"] .icone-fermer { display: block; }

.menu-mobile {
	display: none;
	border-top: 1px solid var(--ligne);
	background: var(--papier);
	padding: .25rem var(--gouttiere) 1rem;
	box-shadow: 0 16px 30px rgba(29, 58, 42, .12);
}
.menu-mobile.ouvert { display: block; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 48px;
	border-bottom: 1px solid var(--ligne);
	color: var(--encre);
	text-decoration: none;
	font-size: 1.02rem;
	font-weight: 500;
}
.menu-mobile li a::after { content: "›"; color: var(--sauge); font-size: 1.3rem; }
.menu-mobile .compte { margin-top: .5rem; padding-left: 0; }
.menu-mobile .compte__libelle { display: inline; }

@media (min-width: 1000px) {
	.nav { display: block; margin-inline: auto; }
	.marque { margin-right: 0; }
	.burger, .menu-mobile, .menu-mobile.ouvert { display: none; }
	.compte__libelle { display: inline; }
}

/* ---------- Boutons et liens ---------- */

.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 46px;
	padding: .6rem 1.25rem;
	border-radius: 999px;
	border: 0;
	background: var(--ocre);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.bouton:hover { background: var(--ocre-fonce); color: #fff; }
.bouton--clair { background: var(--papier); color: var(--foret); }
.bouton--clair:hover { background: var(--sauge-clair); color: var(--foret); }
.bouton--contour { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 1.5px rgba(247, 243, 234, .5); }
.bouton--contour:hover { background: rgba(247, 243, 234, .1); color: var(--creme); }
.bouton--plein { width: 100%; }

.lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-weight: 600;
	text-decoration: none;
}
.lien-fleche::after { content: "→"; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- Bandeau principal + agenda ---------- */

.hero {
	position: relative;
	background:
		radial-gradient(120% 80% at 90% 0%, rgba(143, 176, 138, .22), transparent 60%),
		linear-gradient(170deg, var(--foret) 0%, var(--foret-2) 100%);
	color: var(--creme);
}
.hero__grille {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.25rem;
	padding-block: 1.25rem 0;
}
.hero__surtitre {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .5rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sauge);
}
.hero__surtitre::before { content: ""; width: 18px; height: 2px; background: var(--soleil); }
.hero h1 { font-size: clamp(1.85rem, 4.6vw, 3.4rem); }
.hero h1 em { font-style: italic; color: var(--soleil); }
.hero__intro { font-size: 1rem; color: var(--texte-sur-foret); max-width: 34rem; margin: .6rem 0 0; }
.hero__actions { display: none; }
.hero__paysage { display: block; width: 100%; height: 56px; margin-top: 1.25rem; }

@media (min-width: 900px) {
	.hero__grille {
		grid-template-columns: 1fr minmax(420px, 1fr);
		gap: 4rem;
		align-items: center;
		padding-block: 3rem 0;
	}
	.hero__intro { font-size: 1.1rem; margin-top: 1.1rem; }
	.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
	.hero__paysage { height: 110px; margin-top: -1.5rem; }
}

/* Agenda : base commune */
.agenda__tete { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.agenda__tete h2 { font-size: 1.3rem; }
.agenda__liste { list-style: none; margin: 0; padding: 0; }
.agenda__pied { margin: .7rem 0 0; }
.agenda__pied a { color: var(--creme); }
.agenda__commandes, .agenda__indice { display: none; }

.evt { position: relative; background: var(--papier); color: var(--encre); border-radius: var(--rayon); overflow: hidden; }
.evt__visuel { height: 120px; }
.evt__visuel svg { width: 100%; height: 100%; }
.evt--haie .evt__visuel { background: #cfe0c6; }
.evt--nichoir .evt__visuel { background: #f3e2c9; }
.evt--oiseaux .evt__visuel { background: #dfe7ef; }
.evt--fete .evt__visuel { background: #f4e8c8; }
.evt--verger .evt__visuel { background: #e6eedc; }
.evt__date {
	position: absolute;
	top: .75rem; left: .75rem;
	display: grid; place-items: center; text-align: center;
	width: 56px; padding: .35rem 0;
	border-radius: 12px;
	background: var(--papier);
	color: var(--foret);
	line-height: 1.05;
	box-shadow: var(--ombre);
}
.evt__date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ocre); }
.evt__date b { font-family: var(--police-titre); font-size: 1.45rem; }
.evt__corps { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.evt h3 { font-size: 1.2rem; color: var(--foret); }
.evt__infos { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin: 0; font-size: .87rem; color: var(--attenue); }
.evt__infos span { display: inline-flex; align-items: center; gap: .3rem; }
.evt__infos svg { width: 14px; height: 14px; flex: none; }
.evt__desc { margin: .15rem 0 0; font-size: .92rem; color: var(--attenue); }
.evt .lien-fleche { margin-top: .3rem; font-size: .9rem; align-self: flex-start; min-height: 32px; }

/* Agenda mobile : défilement vertical, un événement à la fois */
@media (max-width: 599px) {
	.agenda__commandes { display: flex; align-items: center; gap: .3rem; }
	.agenda__compteur { font-size: .85rem; color: var(--texte-sur-foret); min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
	.agenda__bouton {
		display: grid; place-items: center;
		width: 40px; height: 40px;
		border: 0; border-radius: 50%;
		background: rgba(247, 243, 234, .14);
		color: var(--creme);
		cursor: pointer;
	}
	.agenda__bouton svg { width: 18px; height: 18px; }
	.agenda__bouton:disabled { opacity: .35; cursor: default; }
	.agenda__fenetre { position: relative; }
	.agenda__liste {
		height: 392px;
		overflow-y: auto;
		scroll-snap-type: y mandatory;
		scrollbar-width: none;
		border-radius: var(--rayon);
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.agenda__liste::-webkit-scrollbar { display: none; }
	.agenda__liste:focus-visible { outline-offset: 4px; }
	.evt {
		flex: none;
		height: 344px;
		scroll-snap-align: start;
		display: flex;
		flex-direction: column;
	}
	.evt__visuel { height: 124px; flex: none; }
	.evt__corps { flex: 1; }
	.evt .lien-fleche { margin-top: auto; }

	/* Indication du geste, jouée une fois puis retirée */
	.agenda__indice {
		position: absolute;
		left: 50%; bottom: 3px;
		transform: translateX(-50%);
		align-items: center;
		gap: .4rem;
		padding: .4rem .85rem;
		border-radius: 999px;
		background: rgba(27, 38, 32, .88);
		color: var(--creme);
		font-size: .82rem;
		white-space: nowrap;
		pointer-events: none;
	}
	.agenda__indice svg { width: 16px; height: 16px; animation: monte 1s ease-in-out infinite; }
	.agenda.indice-actif .agenda__indice { display: inline-flex; animation: fondu 3.4s ease forwards; }
	.agenda.indice-actif .evt:first-child { animation: coucou 1.4s ease-in-out .3s 2; }
}
@keyframes monte { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@keyframes fondu { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes coucou { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-40px); } }

/* Agenda tablette et PC : panneau clair, liste compacte */
@media (min-width: 600px) {
	.agenda {
		background: var(--papier);
		color: var(--encre);
		border-radius: 22px;
		padding: 1.2rem 1.2rem .9rem;
		box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
	}
	.agenda__tete { padding-inline: .3rem; }
	.agenda__tete h2 { color: var(--foret); font-size: 1.35rem; }
	.agenda__pied { padding-inline: .3rem; }
	.agenda__pied a { color: var(--mousse); }
	.agenda__liste { display: grid; gap: .25rem; }
	.evt {
		display: grid;
		grid-template-columns: 56px 1fr;
		gap: .9rem;
		align-items: center;
		padding: .5rem .3rem;
		border-radius: 12px;
		overflow: visible;
	}
	.evt__visuel, .evt__desc, .evt .lien-fleche { display: none; }
	.evt__date { position: static; box-shadow: none; background: var(--sauge-clair); }
	.evt__corps { padding: 0; gap: .1rem; }
	.evt h3 { font-family: var(--police-texte); font-size: 1rem; font-weight: 700; color: var(--encre); letter-spacing: 0; }
	/* Premier événement mis en avant */
	.evt:first-child {
		grid-template-columns: 160px 1fr;
		align-items: stretch;
		padding: 0;
		background: var(--creme);
		overflow: hidden;
		margin-bottom: .4rem;
	}
	.evt:first-child .evt__visuel { display: block; height: auto; min-height: 150px; }
	.evt:first-child .evt__date { position: absolute; top: .6rem; left: .6rem; background: var(--papier); box-shadow: var(--ombre); }
	.evt:first-child .evt__corps { padding: .85rem 1rem .85rem 0; }
	.evt:first-child h3 { font-family: var(--police-titre); font-size: 1.2rem; font-weight: 600; color: var(--foret); }
	.evt:first-child .evt__desc { display: block; }
	.evt:first-child .lien-fleche { display: inline-flex; min-height: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.section--papier { background: var(--papier); }

.entete-section { margin-bottom: clamp(1rem, 3vw, 2rem); }
.surtitre {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ocre);
	margin: 0 0 .35rem;
}
.section h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--foret); }
.entete-section p { color: var(--attenue); max-width: 40rem; margin: .45rem 0 0; }

/* ---------- Activités ---------- */

.activites { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.activite {
	position: relative;
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: .9rem;
	align-items: center;
	padding: .55rem;
	background: var(--papier);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
}
.activite:hover { box-shadow: var(--ombre-forte); }
.activite:focus-within { outline: 3px solid var(--soleil); outline-offset: 2px; }
.activite__visuel { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; }
.activite__visuel svg { width: 100%; height: 100%; }
.activite h3 { font-size: 1.1rem; color: var(--foret); }
.activite__lien { color: inherit; text-decoration: none; }
.activite__lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.activite__lien:focus-visible { outline: none; }
.activite p { margin: .15rem 0 0; font-size: .9rem; color: var(--attenue); line-height: 1.45; }
.activite .lien-fleche { display: none; }

@media (min-width: 700px) {
	.activites { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 1000px) {
	.activites { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
	.activite { grid-template-columns: 1fr; align-items: start; gap: 0; padding: 0; overflow: hidden; }
	.activite__visuel { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
	.activite__texte { padding: 1rem 1.1rem 1.2rem; }
	.activite h3 { font-size: 1.2rem; }
	.activite p { font-size: .93rem; margin-top: .35rem; }
	.activite .lien-fleche { display: inline-flex; margin-top: .7rem; font-size: .9rem; color: var(--mousse); }
}

/* ---------- Paniers ---------- */

.paniers {
	display: grid;
	border-radius: 22px;
	overflow: hidden;
	background: linear-gradient(165deg, var(--mousse), var(--foret));
	color: var(--creme);
}
.paniers__visuel { aspect-ratio: 16 / 7; background: #2f5a3b; }
.paniers__visuel svg { width: 100%; height: 100%; }
.paniers__corps { padding: 1.2rem 1.2rem 1.35rem; display: grid; gap: .75rem; }
.paniers .surtitre { color: var(--soleil); margin: 0; }
.paniers h2 { color: var(--creme); }
.paniers p { margin: 0; color: var(--texte-sur-foret); }
.paniers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.paniers li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.paniers li::before { content: ""; flex: none; margin-top: .5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--soleil); }
.paniers .bouton { justify-self: start; margin-top: .25rem; }

@media (min-width: 800px) {
	.paniers { grid-template-columns: 1fr 1.1fr; }
	.paniers__visuel { aspect-ratio: auto; min-height: 300px; }
	.paniers__corps { padding: 2.5rem 2.75rem; align-content: center; gap: 1rem; }
}

/* ---------- L'association ---------- */

.asso { display: grid; gap: 1.5rem; }
.asso__texte .chapo { font-size: 1.12rem; color: var(--foret); font-family: var(--police-titre); line-height: 1.45; margin: 0 0 .7rem; }
.asso__texte p { margin: 0 0 .7rem; }
.reperes { list-style: none; padding: 0; display: grid; gap: .5rem; margin: 1rem 0 0; }
.repere { display: flex; gap: .75rem; align-items: center; }
.repere__icone {
	flex: none;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--sauge-clair);
	color: var(--mousse);
}
.repere__icone svg { width: 20px; height: 20px; }
.repere p { margin: 0; font-size: .94rem; color: var(--attenue); }
.repere strong { color: var(--foret); }

.mosaique {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: .6rem;
	aspect-ratio: 16 / 10;
}
.mosaique figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; }
.mosaique figure:first-child { grid-row: span 2; }
.mosaique svg { width: 100%; height: 100%; }
.mosaique figcaption {
	position: absolute; left: .5rem; bottom: .5rem;
	font-size: .72rem; font-weight: 600;
	background: rgba(255, 253, 248, .92); color: var(--foret);
	padding: .15rem .5rem; border-radius: 999px;
}

@media (min-width: 900px) {
	.asso { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
	.mosaique { aspect-ratio: 5 / 4; gap: .75rem; }
}

/* ---------- Participer ---------- */

.participer { background: var(--sauge-clair); }
.participer__grille { display: grid; gap: 1.1rem; }
.participer__intro p { color: var(--attenue); margin: .45rem 0 0; }
.options { display: grid; gap: .6rem; }
.option {
	display: flex; gap: .9rem; align-items: center;
	min-height: 64px;
	padding: .75rem 1rem;
	background: var(--papier);
	border-radius: var(--rayon);
	text-decoration: none;
	color: var(--encre);
	box-shadow: var(--ombre);
}
.option:hover { box-shadow: var(--ombre-forte); color: var(--encre); }
.option__icone {
	flex: none; display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 12px;
	background: var(--foret); color: var(--soleil);
}
.option__icone svg { width: 22px; height: 22px; }
.option strong { display: block; color: var(--foret); }
.option small { display: block; font-size: .86rem; color: var(--attenue); }

@media (min-width: 900px) {
	.participer__grille { grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
	.options { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
	.option { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
}

/* ---------- Pied de page ---------- */

.pied { background: var(--foret); color: #c9d6c5; padding-block: 2.25rem 1rem; font-size: .92rem; }
.pied a { color: var(--creme); text-decoration: none; }
.pied a:hover { color: var(--soleil); text-decoration: underline; }
.pied__grille { display: grid; gap: 1.5rem; }
.pied .marque { color: var(--creme); margin: 0 0 .6rem; }
.pied .marque__asso { color: var(--sauge); }
.pied h2 { font-family: var(--police-texte); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sauge); margin-bottom: .5rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pied p { margin: 0 0 .3rem; }
.pied__colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.carte-acces { border-radius: var(--rayon-petit); overflow: hidden; aspect-ratio: 16 / 6; }
.carte-acces svg { width: 100%; height: 100%; }
.pied__bas {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1.25rem;
	margin-top: 1.75rem; padding-top: .5rem;
	border-top: 1px solid rgba(255, 253, 248, .12);
	font-size: .82rem; color: #a9baa5;
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; align-items: center; }
.pied__bas a { display: inline-flex; align-items: center; min-height: 40px; color: #c9d6c5; }
.pied__bas .compte { min-height: 40px; min-width: 0; padding: 0; color: #c9d6c5; font-size: .82rem; }
.pied__bas .compte:hover { background: none; color: var(--soleil); }
.pied__bas .compte__libelle { display: inline; }

@media (min-width: 900px) {
	.pied__grille { grid-template-columns: 1.2fr 2fr 1.2fr; gap: 3rem; }
	.carte-acces { aspect-ratio: 16 / 9; }
}

/* ---------- Fenêtre de connexion ---------- */

.fenetre {
	border: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	margin: auto 0 var(--clavier, 0px);
	max-height: calc(100dvh - var(--clavier, 0px) - 1rem);
	overflow-y: auto;
	border-radius: 18px 18px 0 0;
	background: var(--papier);
	color: var(--encre);
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.fenetre[open] { animation: monter .2s ease-out; }
.fenetre::backdrop { background: rgba(18, 32, 24, .5); }
@keyframes monter { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.fenetre__poignee { width: 36px; height: 4px; border-radius: 99px; background: var(--ligne); margin: .45rem auto 0; }
.fenetre__contenu { padding: .25rem 1.25rem 1.1rem; }
.fenetre__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.fenetre__tete h2 { font-family: var(--police-texte); font-size: 1.1rem; font-weight: 700; color: var(--foret); letter-spacing: 0; }
.fenetre__tete h2:focus { outline: none; }
.fermer {
	flex: none;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	margin-right: -.65rem;
	border: 0; border-radius: 50%;
	background: none;
	color: var(--attenue);
	cursor: pointer;
}
.fermer:hover { background: var(--creme); color: var(--encre); }
.fermer svg { width: 20px; height: 20px; }

@media (min-width: 640px) {
	.fenetre {
		margin: auto;
		max-width: 400px;
		border-radius: 18px;
		box-shadow: var(--ombre-forte);
	}
	.fenetre[open] { animation-name: apparaitre; }
	.fenetre__poignee { display: none; }
	.fenetre__contenu { padding: 1rem 1.5rem 1.35rem; }
}
@keyframes apparaitre { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Formulaires ---------- */

.formulaire { display: grid; gap: .75rem; }
.champ { display: grid; gap: .25rem; min-width: 0; }
.champ label { font-size: .86rem; font-weight: 600; color: var(--encre); }
.champ input {
	width: 100%;
	min-height: 46px;
	padding: .55rem .85rem;
	border: 1.5px solid #cfc5ae;
	border-radius: var(--rayon-petit);
	background: #fff;
	color: var(--encre);
	font: inherit;
	font-size: 1rem; /* 16 px : évite le zoom automatique sur iPhone */
}
.champ input:focus { outline: none; border-color: var(--mousse); box-shadow: 0 0 0 3px rgba(60, 107, 71, .25); }
.champ--mdp { position: relative; }
.champ--mdp input { padding-right: 5.6rem; }
.afficher-mdp {
	position: absolute; right: 4px; bottom: 4px;
	height: 38px;
	padding: 0 .7rem;
	border: 0; border-radius: 8px;
	background: var(--creme); color: var(--mousse);
	font: inherit; font-size: .82rem; font-weight: 600;
	cursor: pointer;
}
.lien-discret { justify-self: end; display: inline-flex; align-items: center; min-height: 32px; margin-top: -.4rem; font-size: .86rem; }
.case { display: flex; align-items: flex-start; gap: .6rem; font-size: .86rem; color: var(--attenue); line-height: 1.4; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 0; accent-color: var(--mousse); flex: none; }
.aide { margin: -.35rem 0 0; font-size: .8rem; color: var(--attenue); }
.statut {
	display: none;
	margin: 0;
	padding: .5rem .8rem;
	border-radius: var(--rayon-petit);
	background: #fff6dc;
	border: 1px solid #ecd68f;
	color: #5a4307;
	font-size: .86rem;
}
.statut.visible { display: block; }
.bascule { margin: 0; text-align: center; font-size: .92rem; color: var(--attenue); }
.bascule a { font-weight: 700; }

/* ---------- Page d'inscription ---------- */

.page-inscription { background: var(--papier); }
.inscription { padding: 1.1rem var(--gouttiere) 1.5rem; }
.inscription__carte { max-width: 900px; margin-inline: auto; }
.inscription__decor { display: none; }
.inscription__formulaire h1 { font-size: 1.6rem; color: var(--foret); margin-bottom: .9rem; }
.duo-champs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.retour { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--mousse); margin-left: auto; }

@media (min-width: 860px) {
	.page-inscription { background: var(--creme); }
	.inscription { padding-block: 3rem; }
	.inscription__carte {
		display: grid;
		grid-template-columns: 320px 1fr;
		background: var(--papier);
		border-radius: 22px;
		overflow: hidden;
		box-shadow: var(--ombre-forte);
	}
	.inscription__decor { display: block; background: linear-gradient(170deg, var(--mousse), var(--foret)); }
	.inscription__decor svg { width: 100%; height: 100%; }
	.inscription__formulaire { padding: 2.25rem 3rem 2.5rem; }
	.inscription__formulaire h1 { font-size: 2rem; margin-bottom: 1.25rem; }
	.duo-champs { gap: 1rem; }
}

/* ---------- Notification des liens inactifs ---------- */

.toast {
	position: fixed;
	left: 50%; bottom: 1rem;
	transform: translateX(-50%);
	z-index: 100;
	width: max-content;
	max-width: calc(100% - 2rem);
	padding: .65rem 1rem;
	border-radius: 12px;
	background: var(--encre);
	color: var(--creme);
	font-size: .88rem;
	box-shadow: var(--ombre-forte);
	visibility: hidden;
	opacity: 0;
	transition: opacity .2s, visibility .2s;
	pointer-events: none;
}
.toast.visible { visibility: visible; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Application : pages internes, formulaires, messages, administration ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-debordant { overflow: visible; }

.compte--connecte { color: var(--foret); font-weight: 600; }

.messages { padding-top: .75rem; display: grid; gap: .5rem; }
.alerte {
	margin: 0;
	padding: .65rem .9rem;
	border-radius: var(--rayon-petit);
	border: 1px solid;
	font-size: .93rem;
}
.alerte--succes { background: #e6f2e3; border-color: #a9cba2; color: #1e4d2a; }
.alerte--info { background: #eef3f6; border-color: #b9cdd8; color: #20394a; }
.alerte--erreur { background: #fbe9e6; border-color: #e3a79c; color: #7a1f12; }

.page-formulaire { padding: 1.25rem var(--gouttiere) 2.5rem; }
.carte-formulaire {
	max-width: 640px;
	margin-inline: auto;
	padding: 1.25rem;
	background: var(--papier);
	border-radius: 18px;
	box-shadow: var(--ombre);
	display: grid;
	gap: .9rem;
}
.carte-formulaire--etroite { max-width: 440px; }
.carte-formulaire h1 { font-size: 1.6rem; color: var(--foret); }
.carte-formulaire h2 { font-size: 1.25rem; color: var(--foret); }
.carte-formulaire p { margin: 0; }
.aide-formulaire { color: var(--attenue); font-size: .94rem; }
.champ__erreur { margin: 0; font-size: .84rem; color: #9b2414; font-weight: 600; }
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"] { border-color: #c4402c; }
.champ select {
	width: 100%;
	min-height: 46px;
	padding: .55rem .85rem;
	border: 1.5px solid #cfc5ae;
	border-radius: var(--rayon-petit);
	background: #fff;
	font: inherit;
	font-size: 1rem;
}
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .75rem; }
legend { font-family: var(--police-titre); font-size: 1.15rem; color: var(--foret); font-weight: 600; margin-bottom: .5rem; padding: 0; }
.liens-message { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.bouton--contour-sombre { box-shadow: inset 0 0 0 1.5px var(--ligne); }
.fiche { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.fiche dt { color: var(--attenue); font-size: .9rem; }
.fiche dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

@media (min-width: 860px) {
	.page-formulaire { padding-block: 3rem; }
	.carte-formulaire { padding: 2rem 2.25rem; }
}

/* Administration : même site, même gabarit */
.administration h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--foret); margin-bottom: .75rem; }
.administration h2 { margin: 1.25rem 0 .75rem; font-size: 1.25rem; color: var(--foret); }
.onglets { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--ligne); padding-bottom: .5rem; }
.onglets a {
	padding: .45rem .8rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--encre);
	font-weight: 500;
}
.onglets a[aria-current="page"] { background: var(--foret); color: var(--creme); }
.onglets__icone { display: inline-block; width: 1em; height: 1em; margin-right: .35rem; vertical-align: -.125em; }
/* Documentation : liste des documents, document courant dans un cadre */
.documents { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.documents a { padding: .3rem .7rem; border: 1px solid var(--ligne); border-radius: 999px; text-decoration: none; color: var(--encre); font-size: .92rem; }
.documents a[aria-current="true"] { border-color: var(--foret); font-weight: 600; }
.document__tete { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.document__tete p { margin: 0; max-width: 46rem; }
.document__cadre { display: block; width: 100%; height: min(82vh, 1100px); margin-top: .5rem; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: var(--papier); }
.tableau-defilant { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; background: var(--papier); font-size: .92rem; }
.tableau th, .tableau td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--attenue); }
.etat { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.etat--ok { background: #e6f2e3; color: #1e4d2a; }
.etat--attente { background: #fff3d6; color: #6b4b06; }
.etat--erreur { background: #fbe9e6; color: #7a1f12; }
.acces { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.en-ligne { display: inline; }
.publication { display: grid; gap: 1rem; align-items: start; }
.publication .formulaire { display: grid; gap: .75rem; max-width: 440px; }
@media (min-width: 900px) {
	.publication { grid-template-columns: 1fr 1fr; }
}
/* Tableau sur ordinateur, fiches compactes sur mobile (aucun défilement horizontal) */
@media (max-width: 699px) {
	.tableau--fiches thead { display: none; }
	.tableau--fiches tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--ligne); }
	.tableau--fiches td { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; padding: .15rem .6rem; border: 0; overflow-wrap: anywhere; }
	.tableau--fiches td::before { content: attr(data-titre); color: var(--attenue); font-size: .8rem; }
	.tableau--fiches td > .etat { justify-self: start; }
}
/* Personnes : liste avec recherche et pagination, fiche (formulaire et informations) */
.rubrique__tete { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin: 1.25rem 0 .5rem; }
.administration .rubrique__tete h2 { margin: 0; }
.rubrique__tete--fiche { justify-content: flex-start; }
.fil { margin: 1rem 0 0; font-size: .92rem; }
.recherche { display: grid; gap: .6rem; margin: 1rem 0; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center; margin-top: 1rem; }
.pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--ligne); border-radius: 999px; text-decoration: none; }
.personne { display: grid; gap: 1.25rem; align-items: start; }
.personne__formulaire { max-width: 640px; }
.personne__formulaire .champ { align-content: start; }
.personne__formulaire fieldset[disabled] input { background: var(--creme); color: var(--attenue); }
.personne__infos { display: grid; gap: 1rem; padding: 1rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.facultatif { font-weight: 400; color: var(--attenue); font-size: .8rem; }
@media (max-width: 479px) {
	.personne .duo-champs { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
	.recherche { grid-template-columns: 1fr 14rem auto; align-items: end; }
}
@media (min-width: 1000px) {
	.personne { grid-template-columns: minmax(0, 640px) 1fr; }
}
.formulaire-acces { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .35rem; }
.formulaire-acces select, .formulaire-acces input { font: inherit; font-size: .85rem; padding: .3rem .4rem; border: 1px solid var(--ligne); border-radius: 8px; }
.bouton-texte {
	border: 0;
	background: none;
	padding: .3rem .2rem;
	color: var(--mousse);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	min-height: 32px;
}
