/* Styles repris de La Réserve Artois, habillés aux couleurs provisoires de L'Atelier Gustatif (croûte, blé, crème)
   en attendant l'identité définitive des deux boulangeries. Les noms des variables sont conservés.
   Aucune ressource externe : polices de l'ordinateur, illustrations SVG intégrées. */

:root {
	color-scheme: light;

	/* Palette */
	--foret: #3a2418;
	--foret-2: #553321;
	--mousse: #7a4a24;
	--sauge: #e2c48f;
	--sauge-clair: #f3e6cc;
	--creme: #faf5ec;
	--papier: #fffdf9;
	--encre: #2a1d15;
	--attenue: #5f5045;
	--ligne: #eadfcd;
	--ocre: #a65a1a;
	--ocre-fonce: #8a4813;
	--soleil: #e9c46a;
	--texte-sur-foret: #f0e2cc;

	/* 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);
	/* Espace entre la navigation et le début des pages internes (administration, compte, formulaires) */
	--espace-haut-interne: clamp(1rem, 2.5vw, 1.75rem);
	--entete: 3.75rem;
	--rayon: 16px;
	--rayon-petit: 10px;
	--ombre: 0 1px 2px rgba(58, 36, 24, .06), 0 6px 18px rgba(58, 36, 24, .08);
	--ombre-forte: 0 2px 6px rgba(58, 36, 24, .08), 0 18px 48px rgba(58, 36, 24, .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(250, 245, 236, .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(58, 36, 24, .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.administration { padding-top: var(--espace-haut-interne); }
.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: #ecdcc6; 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: #d3bd9f;
}
.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: #ecdcc6; }
.pied__bas .compte { min-height: 40px; min-width: 0; padding: 0; color: #ecdcc6; 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(40, 24, 16, .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(122, 74, 36, .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: var(--espace-haut-interne) 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-bottom: 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__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.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; }
.facultatif { font-weight: 400; color: var(--attenue); font-size: .8rem; }
@media (max-width: 479px) {
	.identite .duo-champs { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
	.recherche { grid-template-columns: 1fr 14rem auto; align-items: end; }
}
/* Personnes : deux onglets à la manière de Coyote, listes compactes, accès interface d'une fiche */
.sous-onglets { display: flex; flex-wrap: wrap; gap: .25rem 1rem; border-bottom: 1px solid var(--ligne); margin-top: .75rem; }
.sous-onglets a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .2rem; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--encre); text-decoration: none; font-weight: 500; transition: border-color .15s, color .15s; }
.sous-onglets a[aria-current="page"] { border-bottom-color: var(--foret); color: var(--foret); font-weight: 700; }
.pastille { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: #fff3d6; color: #6b4b06; font-size: .78rem; font-weight: 700; text-align: center; }
.etat--neutre { background: var(--creme); color: var(--attenue); }
.etat--admin { background: #e7ecf7; color: #23356b; }
.attenue { color: var(--attenue); font-size: .85rem; }
.bouton--compact { min-height: 44px; padding: .5rem 1rem; }
.explication { margin: .5rem 0 0; padding: .6rem .8rem; border-radius: var(--rayon-petit); background: var(--creme); color: var(--attenue); font-size: .9rem; }
.resultats { margin: 0 0 .5rem; font-size: .88rem; color: var(--attenue); }
.recherche--simple, .recherche--liste { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin: .75rem 0 .5rem; }
.recherche--liste .champ:first-of-type { grid-column: 1 / -1; }
.tableau td small { color: var(--attenue); font-size: .8rem; overflow-wrap: anywhere; }
.cellule-titre small, .tableau td div > small { display: block; }
.cellule-titre small { white-space: nowrap; }
.tableau--fiches + .aide, .tableau--fiches + .pagination + .aide { margin-top: .75rem; }
.cellule-action { text-align: right; white-space: nowrap; }
.lien-bouton { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .8rem; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; }
.lien-bouton:hover, .lien-bouton:focus-visible { border-color: var(--foret); }
.suggestions { display: grid; gap: .3rem; justify-items: start; }
.acces-interface { display: grid; gap: .5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ligne); }
.administration .acces-interface h3 { margin: 0; font-size: 1rem; color: var(--foret); }
.acces-interface p { margin: 0; }
.acces-interface .aide { margin: 0; }
.suggestion { display: grid; gap: .3rem; padding: .6rem .7rem; background: #fffaf0; border: 1px solid #f0dca8; border-radius: var(--rayon-petit); }
/* Recherche avec suggestions : liste sous le champ, dans le flux de la page (aucune superposition avec
   les tableaux), options de 44 px au moins ; liste complète atténuée tant qu'elle n'est pas actualisée. */
.champ--effacable { position: relative; }
.champ--effacable input[type="search"] { padding-right: 2.9rem; }
.champ--effacable input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.recherche__effacer { position: absolute; top: 0; bottom: 0; right: .15rem; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: auto 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--attenue); font: inherit; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.recherche__effacer:hover, .recherche__effacer:focus-visible { background: var(--creme); color: var(--encre); }
.recherche__effacer[hidden], .suggestions-liste[hidden] { display: none; }
.suggestions-liste { grid-column: 1 / -1; display: grid; max-height: min(60vh, 26rem); overflow-y: auto; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); box-shadow: var(--ombre); }
.suggestion-option { display: grid; gap: .1rem; min-height: 44px; padding: .55rem .8rem; border-bottom: 1px solid var(--ligne); cursor: pointer; overflow-wrap: anywhere; }
.suggestion-option:last-child { border-bottom: 0; }
.suggestion-option strong { color: var(--foret); font-weight: 600; }
.suggestion-option span { color: var(--attenue); font-size: .85rem; }
.suggestion-option:hover, .suggestion-option[aria-selected="true"] { background: var(--sauge-clair); }
.suggestion-option--tous strong { color: var(--mousse); text-decoration: underline; }
.suggestions-liste__etat { margin: 0; padding: .7rem .8rem; color: var(--attenue); font-size: .9rem; }
.resultats__avis { margin: 0 0 .5rem; padding: .5rem .7rem; border-radius: var(--rayon-petit); background: #fff3d6; color: #6b4b06; font-size: .88rem; }
.resultats__avis[hidden] { display: none; }
@media (max-width: 699px) {
	/* Téléphone : suggestions juste sous le champ, avant le statut et le bouton. */
	.recherche--liste > * { order: 2; }
	.recherche--liste > .champ:first-of-type { order: 0; }
	.recherche--liste > .suggestions-liste { order: 1; }
}
.zone-resultats--perimee .resultats, .zone-resultats--perimee table, .zone-resultats--perimee .pagination, .zone-resultats--perimee > p:not(.resultats__avis) { opacity: .45; }
/* Rattachement d'un compte web : fiche et compte côte à côte, puis confirmation explicite */
.comparaison { display: grid; gap: .75rem; margin: .75rem 0; }
.carte-choix { display: grid; gap: .5rem; align-content: start; padding: .9rem 1rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.administration .carte-choix h3 { margin: 0; font-size: 1rem; color: var(--foret); }
.effets { margin: .5rem 0 1rem; padding-left: 1.2rem; font-size: .92rem; }
.confirmation { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.confirmation-mdp { display: grid; gap: .75rem; max-width: 30rem; }
.confirmation .lien-bouton, .acces-interface .lien-bouton { min-height: 44px; }
@media (min-width: 700px) {
	.comparaison { grid-template-columns: 1fr 1fr; }
	.recherche--liste { grid-template-columns: minmax(0, 1fr) 13rem auto; }
	.recherche--liste .champ:first-of-type { grid-column: auto; }
}
/* Téléphone : navigation compacte, deux onglets côte à côte, fiches lisibles avec leur bouton */
@media (max-width: 599px) {
	.administration h1 { font-size: 1.3rem; margin-bottom: .5rem; }
	.onglets { gap: .3rem; }
	.onglets a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .7rem; font-size: .9rem; }
	.sous-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
	.sous-onglets a { justify-content: center; text-align: center; padding: .2rem .15rem; gap: .3rem; font-size: .9rem; }
	.administration .rubrique__tete { margin-top: .9rem; }
	.administration .rubrique__tete h2 { font-size: 1.15rem; }
}
@media (max-width: 699px) {
	.tableau--fiches tr { padding: .65rem 0; }
	.tableau--fiches td.cellule-titre, .tableau--fiches td.cellule-action { display: block; }
	.tableau--fiches td.cellule-titre::before, .tableau--fiches td.cellule-action::before { content: none; }
	.tableau--fiches td.cellule-titre { padding-bottom: .3rem; font-size: 1rem; font-weight: 600; }
	.tableau--fiches td.cellule-titre small { display: inline; margin-left: .35rem; font-weight: 400; }
	.tableau--fiches td.cellule-action { padding-top: .45rem; text-align: left; }
	.tableau--fiches .lien-bouton { min-height: 44px; }
}
@media (max-width: 479px) {
	.acces-interface .fiche, .carte-choix .fiche { grid-template-columns: 1fr; gap: .1rem; }
	.acces-interface .fiche dd, .carte-choix .fiche dd { margin-bottom: .45rem; }
}
.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;
}

/* Fiche personne : en-tête unique, sections sur des vues distinctes, adhésions (tableau compact et saisie à la demande) */
.fiche-tete { gap: .4rem .75rem; }
.fiche-tete__id { color: var(--attenue); font-size: .9rem; font-variant-numeric: tabular-nums; }
.sous-onglets--fiche { margin: .25rem 0 1rem; }
.fiche-section { display: grid; gap: 1rem; }
.identite__champs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1rem 2rem; }
.identite .groupe { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .75rem; align-content: start; }
.identite .groupe legend { padding: 0; margin-bottom: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--attenue); }
.identite .champ { align-content: start; }
.identite fieldset[disabled] input { background: var(--creme); color: var(--attenue); }
.barre-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--ligne); }
.fiche-archivage { display: grid; gap: .5rem; justify-items: start; }
.fiche-section.acces-interface { max-width: 760px; border-bottom: 0; }
.adhesions__tete { margin-top: 0; }
.adhesions__tete .resultats { margin: 0; }
.saisie-periode { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: flex-end; padding: .9rem 1rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.saisie-periode .champ--periode { flex: 0 1 15rem; }
.saisie-periode .champ--date { flex: 0 1 auto; min-width: 11rem; max-width: 24rem; }
.saisie-periode .champ--motif { flex: 1 1 16rem; }
.saisie-periode .aide { margin: 0; }
.saisie-periode__titre { flex-basis: 100%; margin: 0; }
.saisie-periode__boutons { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.saisie-periode .case { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: inherit; font-weight: 600; color: var(--encre); cursor: pointer; }
.saisie-periode .case input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--foret); }
.tableau--adhesions tr.ligne-ouverte > td { background: #f1f6ee; }
.tableau--adhesions td.cellule-saisie { padding: .25rem 0 1rem; }
.tableau--adhesions .cellule-action .lien-bouton + .lien-bouton { margin-left: .35rem; }
.journal-periode { padding: .75rem 1rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.journal-periode .saisie-periode__titre { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.journal { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.journal li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; padding-bottom: .4rem; border-bottom: 1px dashed var(--ligne); }
.journal li:last-child { border-bottom: 0; }
.journal__date { color: var(--attenue); font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
	.identite__champs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
	.tableau--fiches td.cellule-saisie { display: block; }
	.tableau--fiches td.cellule-saisie::before { content: none; }
	.tableau--adhesions .cellule-action .lien-bouton { min-height: 44px; }
	.saisie-periode { padding: .75rem; }
	.saisie-periode .champ--periode, .saisie-periode .champ--date, .saisie-periode .champ--motif { flex: 1 1 100%; max-width: none; }
	.saisie-periode__boutons { width: 100%; margin-left: 0; }
	.saisie-periode__boutons > * { flex: 1; justify-content: center; }
	.journal li { grid-template-columns: 1fr; gap: 0; }
	.barre-actions .bouton { flex: 1; }
}

/* Matrice des droits d'un compte : univers repliables, une case par droit réel, état et échéance individuelle */
.matrice-droits { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.matrice-outils { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.matrice-outils input[type="search"] { flex: 1 1 16rem; max-width: 28rem; }
.matrice-outils input, .matrice-outils select { min-height: 44px; padding: .4rem .7rem; border: 1.5px solid #cfc5ae; border-radius: var(--rayon-petit); background: #fff; color: var(--encre); font: inherit; font-size: 1rem; }
.matrice-outils[hidden], .validation__liste[hidden] { display: none; }
.bouton:disabled { opacity: .55; cursor: not-allowed; }
.matrice-outils .resultats { margin: 0; }
.univers { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.univers > summary { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-height: 44px; padding: .4rem .9rem; cursor: pointer; font-weight: 700; color: var(--foret); }
.univers > summary .decompte { font-weight: 600; font-size: .85rem; color: var(--attenue); }
.univers .matrice { margin: 0; }
.matrice .objet-aide { display: block; font-weight: 400; color: var(--attenue); white-space: normal; }
.matrice td { vertical-align: top; }
.matrice td.droit > * { margin: 0; }
.case-droit { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; font-weight: 600; cursor: pointer; }
.case-droit input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--foret); }
/* État et échéance alignés sur le texte de la case (largeur de la case et espace) */
.matrice td.droit .statut-droit, .matrice td.droit .echeance-droit { margin-left: 1.7rem; }
.matrice td.droit .echeance-droit { margin-top: .3rem; }
.matrice td.vide { line-height: 2rem; color: var(--attenue); }
.statut-droit { display: block; font-size: .85rem; line-height: 1.35; color: var(--attenue); }
.statut-droit--actif { color: #1e4d2a; }
.statut-droit--expire { color: #6b4b06; }
.echeance-droit { display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; font-size: .85rem; color: var(--attenue); }
.echeance-droit input { width: 9.5rem; max-width: 100%; min-height: 36px; padding: .2rem .4rem; }
.matrice-droits[data-js] td.droit:not(.coche) .echeance-droit { display: none; }
.matrice tr.modifiee > td { background: #fff6e0; }
.matrice tr[hidden] { display: none; }
.matrice td.verrou { color: var(--attenue); font-style: italic; }
.validation { position: sticky; bottom: 0; z-index: 2; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; box-shadow: 0 -4px 14px rgba(58, 36, 24, .08); }
.validation__barre { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; padding: .55rem .9rem; }
.validation__barre p { margin: 0 auto 0 0; }
.validation__barre [data-modifs].modifie { color: #6b4b06; font-weight: 700; }
.validation__liste { list-style: none; margin: 0; padding: .5rem .9rem .75rem; border-top: 1px solid var(--ligne); display: grid; gap: .3rem; font-size: .9rem; }
.journal-droits { margin-top: 1.25rem; }
.administration .journal-droits h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--foret); }
.identite--lecture .groupe__titre { margin: 0 0 .5rem; font-family: inherit; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--attenue); }
@media (min-width: 700px) {
	/* Colonnes d'opérations proportionnées : aucun débordement à 700 px ; au-delà, « Fin » et sa date tiennent sur une ligne */
	.matrice th:not(:first-child), .matrice td.droit, .matrice td.vide { width: clamp(10.5rem, 24vw, 18rem); }
}
@media (max-width: 699px) {
	.matrice, .matrice tbody { display: block; }
	.tableau--fiches.matrice td.cellule-titre small.objet-aide { display: block; margin: .15rem 0 0; white-space: normal; }
	/* Une ligne par droit : case et état côte à côte, échéance dessous ; l'intitulé de la case suffit */
	.matrice td.droit { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem .75rem; padding: .35rem .6rem; }
	.matrice .case-droit { min-height: 44px; } /* zone tactile, comme les autres commandes du site */
	.tableau--fiches.matrice td.droit::before { content: none; }
	.matrice td.droit .statut-droit { margin-left: 0; }
	.matrice td.droit .echeance-droit { grid-column: 1 / -1; }
	.matrice td.vide { display: none; }
	.validation { margin: 0 calc(-1 * var(--gouttiere, 1rem)); border-radius: 0; }
	.validation__barre p { flex-basis: 100%; }
	.validation__barre .bouton { flex: 1; justify-content: center; }
}

/* ---------- Accueil : deux boulangeries ---------- */

.hero--atelier {
	background:
		radial-gradient(110% 90% at 85% 10%, rgba(233, 196, 106, .22), transparent 60%),
		linear-gradient(165deg, var(--foret) 0%, var(--foret-2) 100%);
}
.hero--atelier .hero__grille { padding-block: 2rem 2.25rem; }
.hero--atelier .hero__surtitre { color: var(--sauge); }
.hero__note {
	max-width: 34rem;
	margin: 1rem 0 0;
	padding-left: .8rem;
	border-left: 2px solid var(--soleil);
	font-size: .9rem;
	color: var(--sauge);
}
.hero__illustration { width: min(78%, 360px); height: auto; margin-inline: auto; }

.boulangeries__grille { display: grid; gap: 1.25rem; }
.boulangerie {
	--accent: var(--ocre);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--papier);
	border-top: 4px solid var(--accent);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
}
.boulangerie--dore { --accent: #c8923f; }
.boulangerie__visuel svg { width: 100%; height: auto; aspect-ratio: 320 / 140; }
.boulangerie__corps { display: grid; gap: .55rem; padding: 1.1rem 1.2rem 1.3rem; }
.boulangerie__lieu {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin: 0;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ocre);
}
.boulangerie__lieu svg { width: 16px; height: 16px; flex: none; }
.boulangerie h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--foret); }
.boulangerie__provisoire {
	justify-self: start;
	margin: 0;
	padding: .25rem .7rem;
	border-radius: var(--rayon-petit);
	background: var(--sauge-clair);
	color: var(--attenue);
	font-size: .82rem;
}
.rubriques { list-style: none; margin: .35rem 0 0; padding: 0; border-top: 1px solid var(--ligne); }
.rubrique {
	display: flex;
	align-items: center;
	gap: .65rem;
	min-height: 44px;
	padding: .35rem 0;
	border-bottom: 1px solid var(--ligne);
}
.rubrique svg { width: 20px; height: 20px; flex: none; color: var(--mousse); }
.rubrique__libelle { font-weight: 600; }
.rubrique__etat { margin-left: auto; font-size: .82rem; font-style: italic; color: var(--attenue); }

.atelier-commun__grille { display: grid; gap: 1rem; align-items: start; }
.atelier-commun__epi { width: 52px; height: 52px; color: var(--ocre); }
.atelier-commun p { max-width: 44rem; margin: .6rem 0 0; color: var(--attenue); }

@media (min-width: 760px) {
	.boulangeries__grille { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
	.atelier-commun__grille { grid-template-columns: 64px 1fr; gap: 1.5rem; }
	.atelier-commun__epi { width: 64px; height: 64px; }
}
@media (min-width: 900px) {
	.hero--atelier .hero__grille { padding-block: 3.5rem; }
	.hero__illustration { width: 100%; max-width: 460px; }
}
