/* Sitepro Atelier du FAP : identité « A+ · Atelier raffiné », reprise exacte de la maquette
   validée le 9 oct. 2026 (https://claude.ai/artifact/TsZSSwrBKoHoDVNmdJQrUB, direction A+).
   Chargée après app.css, qu'elle surcharge. Police : celle du système, comme la maquette. Demandes de l'utilisateur : bleu clair de la charte
   (pas d'orange), pas d'ombre sur les icônes, jauges d'un bleu uni, nuit presque noire.
   Aucun style en ligne (CSP). */

/* ===== Jetons : jour ===== */

:root {
	/* Police du système (SF Pro sur Mac et iPhone) : celle que la maquette affiche réellement. */
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
	--brand: #1aa7ec;
	--brand-deep: #0a6fb0;
	--btn-primary: #0a7cc4;
	--brand-soft: rgba(26, 167, 236, 0.12);
	--bg: #f5f7fb;
	--surface: #ffffff;
	--surface-2: #f0f3f9;
	--text: #0d1630;
	--muted: #66708a;
	--line: #e6eaf2;
	--line-strong: #c9d1df;
	--hover: #f9fafc; /* 27 oct. 2026 : plus clair que le fond de la page (#f5f7fb), avant #f0f3f9 qui s'y confondait */
	--neutral-soft: #eef1f6;
	--ring: rgba(26, 167, 236, 0.35);
	--radius: 22px;
	--radius-small: 14px;
	--ombre: 0 1px 1px rgba(13, 22, 48, 0.03), 0 2px 6px rgba(13, 22, 48, 0.04), 0 12px 32px rgba(13, 22, 48, 0.06);
	--ombre-survol: 0 2px 6px rgba(13, 22, 48, 0.05), 0 22px 44px rgba(13, 22, 48, 0.1);
	--bord-carte: rgba(13, 22, 48, 0.04);
	--shadow-pop: 0 12px 36px rgba(0, 0, 0, 0.25);
	--topbar-bg: transparent;
	--c-nouveau: #2563eb; --c-nouveau-bg: #dbeafe;
	--c-encours: #f59e0b; --c-encours-bg: #fef3c7;
	--c-traite: #16a34a; --c-traite-bg: #dcfce7;
	--c-spam: #dc2626; --c-spam-bg: #fee2e2;
	--retard: #d97706;
	--side-fond: linear-gradient(185deg, #0e2a63 0%, #0b1f4d 45%, #081537 100%);
	--side-bg: #0b1f4d;
	--side-text: #b9c6e4;
	--side-muted: rgba(185, 198, 228, 0.6);
	--side-line: rgba(255, 255, 255, 0.08);
	--side-hover: rgba(127, 127, 127, 0.12);
	--side-active-bg: rgba(255, 255, 255, 0.1);
	--side-active-text: #ffffff;
	--toast: #111827;
}

/* ===== Jetons : nuit (presque noir) ===== */

:root[data-theme="sombre"] {
	--brand-deep: #5cc6fa;
	--brand-soft: rgba(26, 167, 236, 0.16);
	--bg: #08090c;
	--surface: #111317;
	--surface-2: #181a20;
	--text: #eef0f4;
	--muted: #9aa0ab;
	--line: #23262d;
	--line-strong: #353943;
	--hover: #181a20;
	--neutral-soft: #1c1f26;
	--ombre: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.45);
	--ombre-survol: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 50px rgba(0, 0, 0, 0.6);
	--bord-carte: rgba(255, 255, 255, 0.04);
	--c-nouveau: #4c8dff; --c-nouveau-bg: rgba(37, 99, 235, 0.2);
	--c-encours: #fbbf24; --c-encours-bg: rgba(245, 158, 11, 0.2);
	--c-traite: #34d399; --c-traite-bg: rgba(22, 163, 74, 0.2);
	--c-spam: #f87171; --c-spam-bg: rgba(220, 38, 38, 0.2);
	--retard: #fbbf24;
	--side-fond: linear-gradient(185deg, #121419 0%, #0b0c10 50%, #060709 100%);
	--side-bg: #0b0c10;
	--toast: #1d2027;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] {
		--brand-deep: #5cc6fa;
		--brand-soft: rgba(26, 167, 236, 0.16);
		--bg: #08090c;
		--surface: #111317;
		--surface-2: #181a20;
		--text: #eef0f4;
		--muted: #9aa0ab;
		--line: #23262d;
		--line-strong: #353943;
		--hover: #181a20;
		--neutral-soft: #1c1f26;
		--ombre: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.45);
		--ombre-survol: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 50px rgba(0, 0, 0, 0.6);
		--bord-carte: rgba(255, 255, 255, 0.04);
		--c-nouveau: #4c8dff; --c-nouveau-bg: rgba(37, 99, 235, 0.2);
		--c-encours: #fbbf24; --c-encours-bg: rgba(245, 158, 11, 0.2);
		--c-traite: #34d399; --c-traite-bg: rgba(22, 163, 74, 0.2);
		--c-spam: #f87171; --c-spam-bg: rgba(220, 38, 38, 0.2);
		--retard: #fbbf24;
		--side-fond: linear-gradient(185deg, #121419 0%, #0b0c10 50%, #060709 100%);
		--side-bg: #0b0c10;
		--toast: #1d2027;
	}
}

body {
	font-size: 15px;
	line-height: 1.45;
}

/* ===== Menu latéral ===== */

:root {
	/* 268 px (9 nov. 2026, au lieu de 248) : « Contacts centres » était coupé à côté de sa pastille ; mesuré : texte 120 px, place 125 px avec une pastille à 3 chiffres. */
	--side-width: 268px;
}

.side {
	padding: 18px 14px;
	border-right: 0;
	background: var(--side-fond);
}

/* Marque : logo de l'Atelier du FAP (clair, le menu est sombre). */
.marque {
	gap: 10px;
	margin-bottom: 4px;
	/* Gauche : logo aligné sur les pictogrammes du menu (12 px de marge des rubriques). */
	padding: 4px 8px 20px 12px;
	border-bottom: 0;
}

.marque__lien {
	gap: 10px;
	max-width: none;
}

.side .marque img.marque__logo {
	display: block;
	width: auto;
	max-width: 112px;
	height: auto;
	max-height: 54px;
	object-fit: contain;
}

.nav {
	gap: 4px;
}

.nav__lien {
	min-height: 48px;
	padding: 0 12px;
	gap: 12px;
	border-radius: 14px;
	font-weight: 500;
	transition: background-color 0.2s var(--ease), color 0.2s ease, transform 0.15s var(--ease);
}

.nav__lien:hover {
	background: var(--side-hover);
}

.nav__lien:active {
	transform: scale(0.98);
}

.nav__lien.is-active,
.nav__lien.is-active:hover {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
	color: #ffffff;
}

.nav__lien.is-active::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: -14px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--brand);
}

.nav__tuile {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	transition: background 0.25s ease, transform 0.25s var(--ressort);
}

.nav__tuile .ic {
	width: 18px;
	height: 18px;
}

.nav__lien:hover .nav__tuile {
	transform: scale(1.08);
}

.nav__lien.is-active .nav__tuile {
	background: linear-gradient(140deg, #5cc6fa, #1aa7ec);
	color: #ffffff;
}

.nav__compteur,
.nav__lien.is-active .nav__compteur {
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 11px;
	background: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	color: #0b1f4d;
}

.nav__point {
	top: 8px;
	left: 34px;
	border-color: var(--side-bg);
	background: #ffffff;
}

/* Compte : carte en bas du menu, avatar rond. */
.compte {
	margin-top: 8px;
	padding-top: 0;
	border-top: 0;
}

.compte__bouton {
	gap: 10px;
	padding: 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
}

.compte__bouton:hover,
.compte[open] .compte__bouton {
	background: rgba(255, 255, 255, 0.1);
}

.compte__avatar {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
}

.compte__identite strong {
	color: #ffffff;
}

.compte__bulle {
	border-radius: 14px;
	box-shadow: var(--ombre-survol);
}

/* ===== Barre du haut : absente sur ordinateur (comme la maquette), menu sur mobile ===== */

@media (min-width: 901px) {
	.topbar {
		display: none;
	}
}

.topbar {
	border-bottom: 0;
	background: var(--bg);
}

/* ===== Contenu, en-têtes ===== */

.contenu {
	padding: 26px 32px 60px;
}

/* Arrivée de l'écran : sur les blocs de la page, pas sur .contenu (une transformation sur
   .contenu déplacerait la notification, en position fixe, pendant l'animation). */
.contenu > :not(.alerte--succes):not(.barre-selection) {
	/* « backwards » et non « both » (26 oct. 2026) : une fois finie, l'animation ne laisse aucune
	   transformation sur le bloc ; sinon la barre d'enregistrement (position fixe) s'y calait au lieu de l'écran. */
	animation: ecran-entree 0.45s var(--ease) backwards;
}

@keyframes ecran-entree {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.page-tete {
	gap: 14px;
	margin-bottom: 22px;
}

.page-tete h1 {
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.page-tete__salut {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--muted);
	text-transform: uppercase;
}

.page-tete__sous {
	margin-top: 4px;
	font-size: 15px;
	color: var(--muted);
}

.retour {
	gap: 6px;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.retour:hover {
	color: var(--brand-deep);
}

/* ===== Boutons ===== */

.btn {
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border-radius: 11px; /* un peu plus carré (20 oct. 2026, comme les maquettes) ; 999px avant */
	font-size: 14px;
	font-weight: 600;
	transition: transform 0.15s var(--ease), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active:not(:disabled) {
	transform: scale(0.96);
}

.btn--petit {
	height: 34px;
	padding: 0 14px;
	border-radius: 9px;
	font-size: 13px;
}

.btn--primaire {
	border: 0;
	background: linear-gradient(140deg, #1aa7ec, #0a7cc4);
	box-shadow: 0 8px 20px rgba(26, 167, 236, 0.35);
	color: #ffffff;
}

.btn--primaire:hover:not(:disabled) {
	box-shadow: 0 10px 26px rgba(26, 167, 236, 0.45);
	filter: none;
}

.btn--secondaire {
	border: 0;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--text);
}

.btn--secondaire:hover:not(:disabled) {
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn:disabled {
	box-shadow: none;
}

/* ===== Contrôles segmentés (périodes, filtres de statut, centres) ===== */

.segments {
	gap: 4px;
	padding: 4px;
	border: 0;
	border-radius: 999px;
	background: var(--surface-2);
}

.pilule {
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pilule[aria-pressed="true"],
.pilule[aria-current="page"] {
	background: var(--surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--text);
}

/* ===== Cartes ===== */

.carte,
.cadre,
.liste {
	border: 1px solid var(--bord-carte);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--ombre);
}

.carte {
	transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.carte__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 18px 20px 6px;
}

.carte__titre {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.liste--vide {
	box-shadow: none;
}

/* ===== Étiquettes de statut (pilule, point ou icône + texte) ===== */

.pastille {
	gap: 6px;
	height: 28px;
	padding: 0 11px 0 7px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.pastille__icone,
.pastille--ok .pastille__icone,
.pastille--info .pastille__icone,
.pastille--attente .pastille__icone,
.pastille--alerte .pastille__icone,
.pastille--neutre .pastille__icone {
	width: 16px;
	height: 16px;
	background: transparent;
	color: inherit;
}

.pastille--ok { background: var(--c-traite-bg); color: var(--c-traite); }
.pastille--info { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.pastille--attente { background: var(--c-encours-bg); color: var(--c-encours); }
.pastille--alerte { background: var(--c-spam-bg); color: var(--c-spam); }
.pastille--neutre { background: var(--neutral-soft); color: var(--muted); }

.statut {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.statut i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.statut--nouveau { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.statut--en_cours { background: var(--c-encours-bg); color: var(--c-encours); }
.statut--traite { background: var(--c-traite-bg); color: var(--c-traite); }
.statut--spam { background: var(--c-spam-bg); color: var(--c-spam); }
.statut--corbeille { background: var(--neutral-soft); color: var(--muted); }

.role,
.compteur,
.evolution {
	border-radius: 999px;
}

/* ===== Accueil : indicateurs ===== */

.indicateurs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.indicateur {
	position: relative;
	display: block;
	padding: 22px;
	overflow: hidden;
	color: var(--text);
	text-decoration: none;
}

a.indicateur:hover,
button.indicateur:hover {
	transform: translateY(-4px);
	box-shadow: var(--ombre-survol);
}

button.indicateur {
	width: 100%;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.indicateur__ic {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 50%;
}

.indicateur__ic .ic {
	width: 20px;
	height: 20px;
	stroke-width: 1.8;
}

.indicateur__val {
	display: block;
	font-size: 36px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

@keyframes halo {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
	100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

@keyframes pouls {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
	70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.accueil-grille {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	align-items: start;
	gap: 16px;
}

.accueil-grille__colonne {
	display: grid;
	gap: 16px;
	min-width: 0;
}

@keyframes graphe-trace {
	to { stroke-dashoffset: 0; }
}

@keyframes graphe-aire {
	to { opacity: 1; }
}

.graphe__axe {
	font-family: var(--font);
	font-size: 11px;
}

/* Par centre */
.par-centre {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 8px 20px 18px;
	list-style: none;
}

@keyframes jauge-remplir {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* ===== Lignes de demandes (accueil et liste) ===== */

.demandes {
	margin: 0;
	padding: 6px 8px 10px;
	list-style: none;
}

.demandes li {
	animation: entrer 0.18s var(--ease) both; /* 0,45 s et 50 ms d'écart avant le 2 nov. 2026 */
}

.demandes li:nth-child(2) { animation-delay: 0.015s; }
.demandes li:nth-child(3) { animation-delay: 0.03s; }
.demandes li:nth-child(4) { animation-delay: 0.045s; }
.demandes li:nth-child(5) { animation-delay: 0.06s; }
.demandes li:nth-child(6) { animation-delay: 0.075s; }
.demandes li:nth-child(7) { animation-delay: 0.09s; }
.demandes li:nth-child(n + 8) { animation-delay: 0.105s; }

@keyframes entrer {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.demande {
	display: grid;
	grid-template-columns: 6px 44px minmax(0, 1fr) auto auto 20px;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 12px 12px 12px 0;
	border-radius: 16px;
	color: var(--text);
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s var(--ease);
}

.demande:hover {
	background: var(--surface-2);
}

.demande:active {
	transform: scale(0.995);
}

.demande__ini {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 600;
}

/* Couleur des initiales : 8 teintes, choisies d'après la demande. */
.demande__ini--0 { background: rgba(37, 99, 235, 0.13); color: #2563eb; }
.demande__ini--1 { background: rgba(22, 163, 74, 0.13); color: #16a34a; }
.demande__ini--2 { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.demande__ini--3 { background: rgba(124, 58, 237, 0.13); color: #7c3aed; }
.demande__ini--4 { background: rgba(219, 39, 119, 0.13); color: #db2777; }
.demande__ini--5 { background: rgba(8, 145, 178, 0.13); color: #0891b2; }
.demande__ini--6 { background: rgba(234, 88, 12, 0.13); color: #ea580c; }
.demande__ini--7 { background: rgba(79, 70, 229, 0.13); color: #4f46e5; }

/* ===== Liste des demandes : recherche, filtres ===== */

.outils {
	gap: 10px;
	margin-bottom: 14px;
}

.recherche {
	flex: 1 1 300px;
	max-width: 520px;
}

.recherche input {
	height: 46px;
	padding: 0 16px 0 44px;
	border: 0;
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--ombre), inset 0 0 0 1px var(--line);
	font-size: 15px;
}

.recherche input:focus {
	box-shadow: 0 0 0 3px var(--ring), inset 0 0 0 1px var(--brand);
}

.recherche .ic {
	top: 50%;
	right: auto;
	left: 15px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
}

/* Filtres de statut : puces avec point de couleur. */
.puces {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.puce {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	transition: all 0.2s var(--ease);
}

.puce i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--muted);
}

.puce b {
	font-weight: 500;
	color: var(--muted);
}

.puce[aria-pressed="true"] {
	background: #0b1f4d;
	box-shadow: none;
	color: #ffffff;
}

.puce[aria-pressed="true"] b {
	color: inherit;
	opacity: 0.7;
}

:root[data-theme="sombre"] .puce[aria-pressed="true"] {
	background: #ffffff;
	color: #0b0c10;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .puce[aria-pressed="true"] {
		background: #ffffff;
		color: #0b0c10;
	}
}

.choix-centre select {
	height: 42px;
	padding: 0 36px 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	font-weight: 600;
}

.choix-centre select.is-actif {
	background: var(--brand-soft);
	box-shadow: inset 0 0 0 1px var(--brand);
	color: var(--brand-deep);
}

.vers-corbeille {
	height: 42px;
	padding: 0 14px;
	border-radius: 11px; /* bouton un peu plus carré (20 oct. 2026), comme .btn */
}

/* ===== Fiche d'une demande ===== */

/* Statut : trois grands boutons illustrés. */
.statuts-grands {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 8px 20px 20px;
}

.st-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 10px;
	border: 1.5px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	transition: all 0.25s var(--ease);
}

.st-btn > .ic {
	width: 30px;
	height: 30px;
	padding: 6px;
	box-sizing: content-box;
	border-radius: 50%;
	background: var(--surface-2);
}

.st-btn:hover {
	transform: translateY(-2px);
}

.st-btn[aria-pressed="true"] {
	transform: scale(1.03);
}

.st-btn[value="nouveau"][aria-pressed="true"] { border-color: var(--c-nouveau); background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.st-btn[value="en_cours"][aria-pressed="true"] { border-color: var(--c-encours); background: var(--c-encours-bg); color: var(--c-encours); }
.st-btn[value="traite"][aria-pressed="true"] { border-color: var(--c-traite); background: var(--c-traite-bg); color: var(--c-traite); }

.st-btn[aria-pressed="true"] > .ic {
	background: transparent;
}

.st-btn__coche {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: currentColor;
	transform: scale(0);
	transition: transform 0.3s var(--ressort);
}

.st-btn__coche .ic {
	width: 12px;
	height: 12px;
	stroke: #ffffff;
	stroke-width: 3;
}

.st-btn[aria-pressed="true"] .st-btn__coche {
	transform: scale(1);
}

.statut-pied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: -6px 20px 18px;
	font-size: 13px;
	color: var(--muted);
}

.statut-pied .btn {
	height: 34px;
}

.action {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--surface-2);
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	transition: transform 0.15s var(--ease), background 0.2s ease;
}

.action:hover {
	transform: translateY(-2px);
}

.action small {
	display: block;
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Informations avec icône ronde. */
.infos {
	padding: 4px 20px 16px;
}

.info {
	display: grid;
	grid-template-columns: 34px 120px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	border-top: 1px solid var(--line);
	font-size: 14px;
}

.info:first-child {
	border-top: 0;
}

.info__ic {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--muted);
}

.info__ic .ic {
	width: 16px;
	height: 16px;
}

.info__lib {
	color: var(--muted);
}

.info__val {
	min-width: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.info__val small {
	display: block;
	font-weight: 400;
	color: var(--muted);
}

.info__val .copier {
	margin-left: 6px;
}

/* Consentement : case cochée verte devant le texte accepté par le client. */
.consentement {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 8px 20px 18px;
}

.consentement__case {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 7px;
	background: var(--c-traite);
	color: #ffffff;
}

.consentement__case .ic {
	width: 14px;
	height: 14px;
	stroke-width: 3;
}

.consentement__texte {
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
	white-space: pre-line;
}

/* Historique */
.chrono {
	margin: 0;
	padding: 6px 20px 18px;
	list-style: none;
}

.chrono li {
	position: relative;
	padding: 0 0 14px 22px;
	font-size: 13.5px;
}

.chrono li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand);
}

.chrono li::after {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 0;
	left: 7.5px;
	width: 1px;
	background: var(--line);
}

.chrono li:last-child::after {
	display: none;
}

.chrono small {
	display: block;
	font-size: 12px;
	color: var(--muted);
}

/* Pas de trait sous le dernier événement affiché (les suivants sont repliés). */
.chrono li:has(+ li[hidden])::after {
	display: none;
}

/* Activité d'un compte repliée : pas de filet sous la dernière ligne affichée. */
.liste .ligne:has(+ .ligne[hidden]) {
	border-bottom: 0;
}

.chrono .chrono__recu::before {
	background: var(--muted);
}

.chrono__par {
	color: var(--muted);
}

/* « Voir les N autres » : sous les 5 derniers événements. */
.chrono-plus {
	display: flex;
	justify-content: center;
	padding: 0 20px 18px;
}

.chrono-plus .btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.25s var(--ease);
}

.chrono-plus .btn[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* ===== Tableaux (centres, comptes, corbeille) ===== */

.tableau th {
	height: 44px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.tableau td {
	height: 64px;
}

.tableau tbody tr {
	animation: entrer 0.18s var(--ease) both; /* 0,45 s avant le 2 nov. 2026 */
}

/* ===== Formulaires ===== */

.champ:focus,
.champ-bloc__saisie:focus {
	box-shadow: 0 0 0 3px var(--ring);
}

.champ-bloc__saisie {
	height: 46px;
	border-radius: 14px;
}

select.champ {
	border-radius: 10px;
}

/* ===== Notification (message de réussite), comme la maquette ===== */

.alerte--succes {
	position: fixed;
	top: 24px;
	left: 50%;
	z-index: 90;
	align-items: center;
	gap: 12px;
	max-width: min(560px, calc(100vw - 32px));
	margin: 0;
	padding: 12px 16px 12px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--toast);
	box-shadow: var(--shadow-pop);
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	transform: translateX(-50%);
	animation: notification-entree 0.45s var(--ressort);
}

.alerte--succes::before {
	content: "";
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.alerte--succes .lien-action--alerte {
	display: inline-flex;
	align-items: center;
	height: 30px;
	margin: 0 0 0 8px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.alerte--succes .lien-action--alerte:hover {
	background: rgba(255, 255, 255, 0.24);
}

.alerte--succes form {
	display: flex;
}

.alerte--succes.is-masque {
	opacity: 0;
	transform: translate(-50%, -140%);
	transition: opacity 0.35s ease, transform 0.45s var(--ressort);
}

@keyframes notification-entree {
	from { transform: translate(-50%, -140%); }
	to { transform: translate(-50%, 0); }
}

/* ===== Cartes : remise à zéro de la marge intérieure de l'ancienne .carte (app.css) ===== */

.carte {
	padding: 0;
}

/* Les vignettes d'indicateurs gardent leur marge intérieure (comme la maquette). */
.carte.indicateur {
	padding: 22px;
}

/* ===== Listes en cartes : centres, comptes, corbeille (même ligne que les demandes) ===== */

/* Pastille ronde avec une icône (centre, corbeille) à la place des initiales. */
.demande__ini--lieu {
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.demande__ini--lieu .ic {
	width: 20px;
	height: 20px;
}

/* Corbeille : carte en pointillés (éléments écartés), actions à droite. */
.carte--pointilles {
	border: 1.5px dashed var(--line-strong);
	background: transparent;
	box-shadow: none;
}

.carte--pointilles .vide {
	margin: 0;
	border: 0;
}

/* ===== Fiches (centre, compte) et Réglages : chaque rubrique est une carte, titre dedans ===== */

.fiche section {
	margin: 0;
	padding: 0 0 6px;
	border: 1px solid var(--bord-carte);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--ombre);
}

.fiche section .groupe__titre {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: normal;
	color: var(--text);
	text-transform: none;
}

.fiche section .groupe__manque {
	font-size: 13px;
}

.fiche section .liste {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.fiche section .ligne {
	padding-right: 20px;
	padding-left: 20px;
}

.fiche section .groupe__aide {
	margin: 4px 20px 14px;
	font-size: 13px;
}

.fiche section .ligne__erreur--groupe {
	margin: 6px 20px 12px;
}

.fiche section .liste--vide {
	margin: 4px 20px 12px;
	border: 1.5px dashed var(--line-strong);
	border-radius: 14px;
}

.fiche section.zone-danger {
	padding: 16px 20px;
}

/* ===== Échecs ===== */

/* Erreur de saisie : encadré dans la page (reste affiché), pastille rouge « ! ». */
.alerte--erreur {
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px 12px 12px;
	border: 1px solid rgba(220, 38, 38, 0.18);
	border-radius: 14px;
	background: var(--c-spam-bg);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--text);
}

.alerte--erreur::before,
.alerte--echec::before {
	content: "!";
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #dc2626;
	font-size: 13px;
	font-weight: 800;
	color: #ffffff;
}

/* Échec passager (réseau, session, serveur) : notification en haut, comme la réussite,
   mais elle reste affichée jusqu'à ce qu'on la ferme. */
.alerte--echec {
	position: fixed;
	top: 24px;
	left: 50%;
	z-index: 91;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: min(600px, calc(100vw - 32px));
	margin: 0;
	padding: 10px 10px 10px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--toast);
	box-shadow: var(--shadow-pop);
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	transform: translateX(-50%);
	animation: notification-entree 0.45s var(--ressort);
}

.alerte--echec::before {
	width: 30px;
	height: 30px;
	font-size: 16px;
}

.alerte--echec .lien-action--alerte {
	display: inline-flex;
	align-items: center;
	height: 30px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.alerte--echec .lien-action--alerte:hover {
	background: rgba(255, 255, 255, 0.24);
}

.alerte__fermer {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	font-size: 18px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
}

.alerte__fermer:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.alerte--echec.is-masque {
	opacity: 0;
	transform: translate(-50%, -140%);
	transition: opacity 0.35s ease, transform 0.45s var(--ressort);
}

/* ===== Connexion : même identité (fond de l'application, carte de la maquette) ===== */

.page-auth {
	background: var(--bg);
}

.auth__carte {
	max-width: 400px;
	padding: 34px 30px 28px;
	border: 1px solid var(--bord-carte);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	animation: fondu-entree 0.45s var(--ease);
}

@keyframes fondu-entree {
	from { opacity: 0; }
	to { opacity: 1; }
}

.auth__titre {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.auth .btn--bloc {
	height: 46px;
	font-size: 15px;
}

.auth .alerte--erreur {
	border-radius: 14px;
}

/* ===== Arrivée en cascade des cartes : retirée le 20 oct. 2026 =====
   Le tableau de bord apparaît comme toutes les pages (ecran-entree, plus haut), au rechargement comme
   après la connexion ; après la connexion, seuls les chiffres défilent (app.js, initialiserEntreeAccueil).
   Les anciennes fiches à deux colonnes (.fiche-demande, .fiche__colonne) n'existent plus. */

/* ===== Connexion : bouton sans ombre, œil pour voir le mot de passe ===== */

.auth .btn--primaire,
.auth .btn--primaire:hover:not(:disabled) {
	box-shadow: none;
}

.champ-mdp {
	position: relative;
	display: block;
}

.champ-mdp .champ-bloc__saisie {
	width: 100%;
	padding-right: 48px;
}

.voir-mdp {
	position: absolute;
	top: 50%;
	right: 6px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--muted);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.15s ease, background 0.15s ease;
}

.voir-mdp:hover {
	background: var(--surface-2);
	color: var(--text);
}

.voir-mdp .ic {
	width: 19px;
	height: 19px;
}

.voir-mdp [data-oeil-ferme],
.voir-mdp[aria-pressed="true"] [data-oeil-ouvert] {
	display: none;
}

.voir-mdp[aria-pressed="true"] [data-oeil-ferme] {
	display: block;
}

/* ===== Mouvements réduits si l'appareil le demande ===== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
	}

	
}

/* ===== Écrans moyens et petits ===== */

@media (max-width: 1100px) {
	.indicateurs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.accueil-grille {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.contenu {
		padding: 18px 16px 40px;
	}

	.page-tete h1 {
		font-size: 26px;
	}

	.indicateur__val {
		font-size: 28px;
	}

	

	.info {
		grid-template-columns: 30px 96px minmax(0, 1fr);
	}
}

/* Le bouton « œil » n'apparaît qu'avec JavaScript (.js-seulement le passe en inline-flex). */
.voir-mdp.js-seulement {
	align-items: center;
	justify-content: center;
}

/* Bouton « Copier » : petit bouton à contour avec icône ; « Copié » en vert après la copie. */
.copier.js-seulement {
	align-items: center;
	gap: 5px;
}

.copier {
	height: 28px;
	margin-left: 10px;
	padding: 0 10px 0 8px;
	border: 0;
	border-radius: 8px; /* bouton un peu plus carré (20 oct. 2026), comme .btn */
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
	vertical-align: middle;
	cursor: pointer;
	transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.copier:hover {
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--text);
}

.copier .ic {
	width: 14px;
	height: 14px;
}

.copier.is-copie {
	background: var(--c-traite-bg);
	box-shadow: none;
	color: var(--c-traite);
}

/* Lien d'action sous une liste dans une carte de fiche (ex. horaires du lundi) : aligné sur la carte. */
.fiche section > .lien-action {
	margin: 10px 20px 4px;
}

/* ===== Boutons sans ombre portée (demande de l'utilisateur, 9 oct. 2026) ===== */

.btn,
.btn--primaire,
.btn--primaire:hover:not(:disabled),
.btn--secondaire,
.btn--secondaire:hover:not(:disabled) {
	box-shadow: none;
}

/* Le bouton secondaire garde son contour, sans ombre. */
.btn--secondaire {
	border: 1px solid var(--line);
}

.btn--secondaire:hover:not(:disabled) {
	border-color: var(--line-strong);
}

/* Onglet choisi d'un contrôle segmenté : fin contour au lieu de l'ombre. */
.pilule[aria-pressed="true"],
.pilule[aria-current="page"] {
	box-shadow: inset 0 0 0 1px var(--line);
}

/* Adresse de la page d'un centre : le champ prend la largeur de son texte (calé à droite
   comme les autres valeurs). field-sizing là où il existe ; sinon app.js ajuste l'attribut size. */
.slug .champ {
	field-sizing: content;
	min-width: 4ch;
	max-width: 260px;
	padding-right: 10px;
}

/* ===== Menu replié en rail d'icônes (ordinateur) ===== */

@media (min-width: 901px) {
	.side-reduite .side {
		width: 80px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.side-reduite .main {
		margin-left: 80px;
	}

	.side-reduite .nav {
		align-items: center;
	}

	/* Rubrique : carré de 56 px, pastille centrée. */
	.side-reduite .nav__lien {
		justify-content: center;
		width: 56px;
		min-height: 48px;
		padding: 0;
		gap: 0;
	}

	.side-reduite .nav__lien.is-active::before {
		left: -12px;
	}

	.side-reduite .nav__point {
		top: 6px;
		left: auto;
		right: 9px;
	}

	.side-reduite .compte__bouton {
		justify-content: center;
		width: 56px;
		margin: 0 auto;
		padding: 10px 0;
	}

	

	/* Infobulles au style de la notification : pilule sombre, texte blanc, apparition glissée. */
	.side-reduite .nav__lien:hover::after,
	.side-reduite .compte:not([open]) .compte__bouton:hover::after {
		left: calc(100% + 14px);
		padding: 7px 12px;
		border-radius: 999px;
		background: var(--toast);
		box-shadow: var(--shadow-pop);
		font-size: 13px;
		font-weight: 600;
		color: #ffffff;
		animation: bulle-entree 0.2s var(--ease);
	}
}

@keyframes bulle-entree {
	from { opacity: 0; transform: translate(-6px, -50%); }
	to { opacity: 1; transform: translate(0, -50%); }
}

/* ===== Listes : disposition A (maquette du 9 oct. 2026) et sélection en groupe ===== */

/* Actions de la page, à côté du titre : lien discret (Corbeille), bouton à contour (Exporter). */
.lien-discret {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
}

.lien-discret:hover {
	color: var(--text);
}

.lien-discret .ic {
	width: 17px;
	height: 17px;
}

.btn--contour {
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--text);
}

.btn--contour:hover:not(:disabled) {
	border-color: var(--muted);
}

.page-tete__actions {
	gap: 14px;
}

/* Barre d'outils en deux rangées : recherche, puis statuts et menus. */
.outils-a {
	margin-bottom: 14px;
}

.outils-a .recherche {
	display: block;
	max-width: 560px;
	margin-bottom: 14px;
}

.outils-a__rang {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

/* Statuts : un seul contrôle à onglets. */
.onglets-statut {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-right: auto;
	padding: 4px;
	border-radius: 14px;
	background: var(--surface-2);
}

.onglet-statut {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.onglet-statut:hover {
	color: var(--text);
}

.onglet-statut b {
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--surface);
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.onglet-statut[aria-pressed="true"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--line);
}

.onglet-statut--nouveau[aria-pressed="true"] b { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.onglet-statut--en_cours[aria-pressed="true"] b { background: var(--c-encours-bg); color: var(--c-encours); }
.onglet-statut--traite[aria-pressed="true"] b { background: var(--c-traite-bg); color: var(--c-traite); }
.onglet-statut--spam[aria-pressed="true"] b { background: var(--c-spam-bg); color: var(--c-spam); }
.onglet-statut[aria-pressed="true"]:not([class*="--"]) b { background: var(--surface-2); color: var(--text); }

.point-statut {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--muted);
}

.point-statut--nouveau { background: var(--c-nouveau); }
.point-statut--en_cours { background: var(--c-encours); }
.point-statut--traite { background: var(--c-traite); }
.point-statut--spam { background: var(--c-spam); }

/* Menus « Centre » et « Trier par » : libellé au-dessus, icône, angles moins ronds. */
.menus-liste {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.menu-liste {
	position: relative;
	display: inline-flex;
	flex-direction: column;
}

.menu-liste__libelle {
	margin: 0 0 4px 2px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
	text-transform: uppercase;
}

.menu-liste select {
	min-width: 190px;
	height: 40px;
	padding: 0 36px 0 38px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.menu-liste select:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--ring);
}

.menu-liste select.is-actif {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.menu-liste__icone {
	position: absolute;
	bottom: 11px;
	left: 12px;
	width: 18px;
	height: 18px;
	color: var(--muted);
	pointer-events: none;
}

/* Chevron du menu. */
.menu-liste::after {
	content: "";
	position: absolute;
	right: 15px;
	bottom: 17px;
	width: 7px;
	height: 7px;
	border-right: 1.8px solid var(--muted);
	border-bottom: 1.8px solid var(--muted);
	transform: rotate(45deg);
	pointer-events: none;
}

.js .menus-liste .choix-centre__ok {
	display: none;
}

/* Cases de sélection. */
.case-ligne {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	cursor: pointer;
}

.case-ligne__champ {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.case {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--line-strong);
	border-radius: 6px;
	background: var(--surface);
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.case .ic {
	width: 13px;
	height: 13px;
	stroke: #ffffff;
	stroke-width: 3;
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.2s ease, transform 0.25s var(--ressort);
}

.case-ligne__champ:checked + .case {
	border-color: var(--brand);
	background: var(--brand);
}

.case-ligne__champ:checked + .case .ic {
	opacity: 1;
	transform: none;
}

/* Sélection partielle (case « tout ») : tiret. */
.case-ligne__champ:indeterminate + .case {
	border-color: var(--brand);
	background: var(--brand);
}

.case-ligne__champ:indeterminate + .case::after {
	content: "";
	width: 9px;
	height: 2px;
	border-radius: 1px;
	background: #ffffff;
}

.case-ligne__champ:indeterminate + .case .ic {
	display: none;
}

.case-ligne__champ:focus-visible + .case {
	box-shadow: 0 0 0 3px var(--ring);
}

/* En-tête de la liste : case « tout », nombre, intitulés des colonnes. */
.tete-liste {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0 -8px 6px;
	padding: 12px 20px 12px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
	animation: none;
}

.tete-liste__texte {
	font-weight: 600;
	color: var(--text);
}

.tete-liste__texte b {
	font-weight: 600;
	color: var(--brand-deep);
}

.tete-liste__lien {
	margin-left: 10px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--brand-deep);
	cursor: pointer;
}

.tete-liste__colonnes {
	display: flex;
	gap: 40px;
	padding-right: 34px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
	text-transform: uppercase;
}

.tete-liste__colonnes span:first-child {
	min-width: 92px;
	text-align: center;
}

/* Barre d'actions de la sélection : monte du bas de l'écran. */
.barre-selection {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 18px;
	border-radius: 999px;
	background: var(--toast);
	box-shadow: var(--shadow-pop);
	font-weight: 600;
	color: #ffffff;
	white-space: nowrap;
	transform: translate(-50%, 160%);
	transition: transform 0.45s var(--ressort);
}

.barre-selection[hidden] {
	display: flex !important;
	visibility: hidden;
}

.barre-selection.is-visible {
	visibility: visible;
	transform: translate(-50%, 0);
}

.barre-selection__bouton {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px; /* pilule, comme la barre qui les porte (23 oct. 2026 ; 10px du 20 au 23 oct.) */
	background: rgba(255, 255, 255, 0.12);
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.barre-selection__bouton:hover {
	background: rgba(255, 255, 255, 0.2);
}

.barre-selection__bouton .ic {
	width: 17px;
	height: 17px;
}

.barre-selection__bouton--danger {
	background: #dc2626;
}

.barre-selection__bouton--danger:hover {
	background: #ef4444;
}

.barre-selection__fermer {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	font-size: 20px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
}

.barre-selection__fermer:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.barre-selection__menu {
	position: relative;
}

.barre-selection__choix {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	display: grid;
	gap: 2px;
	min-width: 180px;
	padding: 6px;
	border-radius: 14px;
	background: var(--toast);
	box-shadow: var(--shadow-pop);
}

.barre-selection__choix[hidden] {
	display: none;
}

.barre-selection__choix button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-align: left;
	cursor: pointer;
}

.barre-selection__choix button:hover,
.barre-selection__choix button:focus-visible {
	background: rgba(255, 255, 255, 0.1);
}

/* Ligne retirée (corbeille en groupe) : repli animé dans app.js (retirer), 26 oct. 2026. */

@media (max-width: 760px) {
	.outils-a__rang {
		align-items: stretch;
	}

	.onglets-statut {
		flex-wrap: nowrap;
		max-width: 100%;
		margin-right: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.onglet-statut {
		flex: 0 0 auto;
	}

	.menus-liste,
	.menu-liste,
	.menu-liste select {
		width: 100%;
	}

	.tete-liste__colonnes {
		display: none;
	}

	.barre-selection {
		right: 16px;
		left: 16px;
		flex-wrap: wrap;
		justify-content: center;
		border-radius: 22px;
		white-space: normal;
		transform: translateY(160%);
	}

	.barre-selection.is-visible {
		transform: none;
	}
}

/* ===== Centrage des éléments flottants sur la zone de contenu (pas sur toute la fenêtre) ===== */

:root {
	--decalage-contenu: var(--side-width);
}

.side-reduite {
	--decalage-contenu: 80px;
}

@media (max-width: 900px) {
	:root,
	.side-reduite {
		--decalage-contenu: 0px;
	}
}

.page-app .barre-selection,
.page-app .alerte--succes,
.page-app .alerte--echec {
	left: calc((100vw + var(--decalage-contenu)) / 2);
}

@media (max-width: 760px) {
	.page-app .barre-selection {
		left: 16px;
	}
}

/* Points et compteurs des onglets : statuts des centres et états des comptes. */
.point-statut--centre-actif, .point-statut--compte-centre { background: var(--c-traite); }
.point-statut--centre-ouverture_prochaine { background: var(--c-encours); }
.point-statut--centre-ferme_temporairement { background: var(--c-spam); }
.point-statut--centre-archive, .point-statut--compte-desactive { background: var(--line-strong); }
.point-statut--compte-admin { background: var(--c-nouveau); }
.onglet-statut--centre-actif[aria-pressed="true"] b { background: var(--c-traite-bg); color: var(--c-traite); }
.onglet-statut--centre-ouverture_prochaine[aria-pressed="true"] b { background: var(--c-encours-bg); color: var(--c-encours); }
.onglet-statut--centre-ferme_temporairement[aria-pressed="true"] b { background: var(--c-spam-bg); color: var(--c-spam); }
.onglet-statut--compte-admin[aria-pressed="true"] b { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.onglet-statut--compte-centre[aria-pressed="true"] b { background: var(--c-traite-bg); color: var(--c-traite); }

/* ===== Couleur des centres : classes teinte--clé, voir Centre::PALIERS (primaires d'abord) ===== */

/* Couleurs des ateliers (Centre::PALIERS) : sans couleurs d'état depuis le 19 oct. 2026. */
.teinte--indigo { --teinte: #4338ca; }
.teinte--violet { --teinte: #7c3aed; }
.teinte--cyan { --teinte: #0891b2; }
.teinte--rose { --teinte: #db2777; }
.teinte--marron { --teinte: #8b5e34; }
.teinte--sarcelle { --teinte: #0f766e; }
.teinte--ardoise { --teinte: #475569; }
.teinte--fuchsia { --teinte: #c026d3; }
.teinte--prune { --teinte: #6b21a8; }
.teinte--lavande { --teinte: #8b8fe0; }
.teinte--sable { --teinte: #a0785a; }

.demande__ini--centre {
	background: color-mix(in srgb, var(--teinte) 14%, transparent);
	color: var(--teinte);
}

:root[data-theme="sombre"] .demande__ini--centre {
	background: color-mix(in srgb, var(--teinte) 22%, transparent);
	color: color-mix(in srgb, var(--teinte) 70%, #ffffff);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .demande__ini--centre {
		background: color-mix(in srgb, var(--teinte) 22%, transparent);
		color: color-mix(in srgb, var(--teinte) 70%, #ffffff);
	}
}


/* Aperçu du logo sur le fond du menu, pour juger du contraste. */
.apercu-logo {
	display: inline-flex;
	justify-self: end;
	width: fit-content;
	align-items: center;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--side-fond);
}

.apercu-logo img {
	display: block;
	max-width: 160px;
	max-height: 64px;
}

.champ--fichier {
	/* Hauteur libre : le bouton « Choisir un fichier » était coupé par la hauteur fixe des champs. */
	height: auto;
	min-height: 44px;
	padding: 6px;
	overflow: visible;
	font-size: 14px;
	line-height: 1.2;
	color: var(--muted);
}

.champ--fichier::file-selector-button {
	margin-right: 10px;
	padding: 7px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 9px; /* bouton un peu plus carré (20 oct. 2026), comme .btn */
	background: transparent;
	font: inherit;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
}

/* ===== Pied de liste : lignes par page et pages (maquette du 9 oct. 2026) ===== */

.pied-liste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 20px 16px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--muted);
}

.pied-liste[hidden],
.pages__liens[hidden] {
	display: none;
}

.par-page {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.par-page__choix {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 12px;
	background: var(--surface-2);
}

.par-page__choix button {
	min-width: 40px;
	height: 30px;
	padding: 0 10px;
	border: 0;
	border-radius: 9px;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.par-page__choix button:hover {
	color: var(--text);
}

.par-page__choix button[aria-pressed="true"] {
	background: var(--surface);
	color: var(--text);
}

.pages,
.pages__liens {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pages__position {
	margin-right: 10px;
}

.pages__position b {
	font-weight: 600;
	color: var(--text);
}

.pages__bouton {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 0;
	border-radius: 10px;
	background: none;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
}

.pages__bouton .ic {
	width: 18px;
	height: 18px;
}

.pages__bouton:hover:not(:disabled) {
	background: var(--surface-2);
}

.pages__bouton[aria-current="page"] {
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.pages__bouton:disabled {
	opacity: 0.35;
	cursor: default;
}

.pages__trou {
	padding: 0 4px;
}

@media (max-width: 640px) {
	.pied-liste {
		justify-content: center;
	}
}

/* ===== Mobile (maquette : cadres de 390 px, 12 oct. 2026, demande de l'utilisateur : adapter totalement) =====
   Un seul système pour tous les écrans : cibles tactiles de 44 px, boutons de même hauteur et
   de même largeur, lignes de liste identiques (centres, demandes, comptes, corbeilles),
   tuiles de même taille, rien de coupé sans indice. */

@media (max-width: 900px) {
	/* Barre du haut : menu à gauche, titre, « Voir le site » réduit à son icône. */
	.topbar {
		min-height: 60px;
		padding: 8px 12px 8px 8px;
		gap: 6px;
	}

	.topbar .topbar__menu {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}

	.topbar__lieu {
		font-size: 16px;
		font-weight: 600;
		color: var(--text);
	}

	.topbar__droite .btn {
		width: 44px;
		min-width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.topbar__libelle {
		display: none;
	}
}

@media (max-width: 760px) {
	.contenu {
		padding: 14px 16px 96px;
	}

	/* En-tête de page : titre, puis actions de même hauteur (l'action principale sur toute la largeur). */
	.page-tete {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-bottom: 16px;
	}

	.page-tete h1 {
		font-size: 28px;
	}

	.page-tete__actions {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		width: 100%;
	}

	.page-tete__actions > .btn,
	.page-tete__actions > .lien-discret {
		flex: 1 1 calc(50% - 5px);
		justify-content: center;
		min-height: 46px;
		font-size: 14.5px;
		font-weight: 600;
	}

	/* Actions secondaires : contour, comme « Exporter ». */
	.page-tete__actions > .btn:not(.btn--primaire),
	.page-tete__actions > .lien-discret {
		border: 1px solid var(--line-strong);
		border-radius: 11px; /* bouton un peu plus carré (20 oct. 2026), comme .btn */
		background: transparent;
		color: var(--text);
	}

	/* Action principale : sur toute la largeur, en premier. */
	.page-tete__actions > .btn--primaire {
		flex: 1 1 100%;
		order: -1;
	}

	/* Étiquette d'état à côté du titre : à sa taille, pas sur toute la largeur. */
	.page-tete > .statut,
	.page-tete > .pastille {
		align-self: flex-start;
	}

	

	

	/* Les listes de filtres ne doivent jamais élargir la page : elles défilent à l'intérieur. */
	.outils-a,
	.outils-a__rang {
		min-width: 0;
		max-width: 100%;
	}

	.onglets-statut {
		width: 100%;
	}

	.btn {
		min-height: 46px;
	}

	.btn--petit {
		min-height: 40px;
	}

	/* Périodes de l'accueil : quatre cases égales, jamais sur deux lignes. */
	.segments {
		display: flex;
		width: 100%;
	}

	.segments .pilule {
		display: flex;
		flex: 1 1 0;
		align-items: center;
		justify-content: center;
		min-width: 0;
		height: 40px;
		padding: 0 4px;
		font-size: 13px;
		white-space: nowrap;
	}

	/* Tuiles de l'accueil : deux colonnes, toutes de la même taille. */
	.indicateurs {
		grid-auto-rows: 1fr;
		gap: 12px;
	}

	.indicateur {
		display: flex;
		flex-direction: column;
		padding: 16px;
	}

	.indicateur__ic {
		width: 40px;
		height: 40px;
		margin-bottom: 12px;
	}

	

	

	/* Statuts : une rangée qu'on fait défiler, avec un fondu qui montre qu'elle continue. */
	.onglets-statut {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
		padding-right: 28px;
		scroll-snap-type: x proximity;
	}

	.onglet-statut {
		min-height: 42px;
		scroll-snap-align: start;
	}

	.menus-liste {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.menu-liste select {
		min-height: 46px;
	}

	.recherche input {
		min-height: 48px;
	}

	/* Lignes de liste, identiques partout : trait de couleur, nom, précision, puis état et date.
	   Les pastilles rondes et initiales sont retirées : le trait porte la couleur du centre. */
	.demande {
		grid-template-columns: 4px auto minmax(0, 1fr) 18px;
		column-gap: 12px;
		row-gap: 0;
		align-items: center;
		padding: 14px 12px 14px 4px;
	}

	

	.demande__ini {
		display: none;
	}

	

	

	

	/* Deuxième ligne : état, puis date ou rôle. */
	.demande .statut,
	.demande .pastille {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		margin-top: 8px;
	}

	.demande .role {
		grid-column: 3;
		grid-row: 2;
		justify-self: start;
		margin-top: 8px;
		font-size: 12.5px;
	}

	

	

	

	

	

	.tete-liste {
		padding: 12px 14px;
	}

	/* Fiche d'une demande : boutons de statut et actions confortables au pouce. */
	.st-btn {
		min-height: 88px;
	}

	.statut-pied {
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.copier {
		height: 34px;
		margin-left: 0;
	}

	/* Réglages : boutons du pied des cartes empilés, de même largeur (Enregistrer en haut). */
	.fc-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.fc-actions .btn {
		width: 100%;
		justify-content: center;
	}

	/* Lignes à case à cocher (centres, droits) : le nom à gauche, la case à droite, sur une seule ligne. */
	.fiche section .ligne.ligne--case,
	.ligne.ligne--case,
	.acces .ligne {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 52px;
	}

	.ligne--journal {
		grid-template-columns: 86px minmax(0, 1fr);
	}

	.ligne--journal time {
		white-space: nowrap;
	}

	/* Pied de liste : choix du nombre de lignes puis pages, centrés. */
	.pied-liste {
		flex-direction: column;
		gap: 12px;
	}

	.pages__bouton {
		min-width: 40px;
		height: 40px;
	}

	.par-page__choix button {
		min-width: 44px;
		height: 36px;
	}

	/* Barre d'actions de la sélection : nombre au centre, croix en haut à droite, puis les actions
	   deux par deux, de même hauteur ; une action seule prend toute la largeur. */
	.barre-selection {
		bottom: 12px;
		padding: 40px 12px 12px;
		gap: 8px;
	}

	.barre-selection__nombre {
		position: absolute;
		top: 12px;
		right: 56px;
		left: 56px;
		text-align: center;
	}

	.barre-selection__fermer {
		position: absolute;
		top: 4px;
		right: 4px;
		width: 44px;
		height: 44px;
	}

	.barre-selection__bouton,
	.barre-selection__menu {
		flex: 1 1 calc(50% - 4px);
	}

	.barre-selection__bouton {
		justify-content: center;
		min-height: 48px;
		padding: 0 10px;
		font-size: 14px;
		line-height: 1.2;
		text-align: center;
	}

	.barre-selection__menu .barre-selection__bouton {
		width: 100%;
	}
}

/* ===== Contrôles segmentés (maquette validée le 12 oct. 2026) =====
   Une piste, un curseur qui glisse sous le choix actif. Utilisé pour les filtres de statut,
   les périodes de l'accueil, le statut d'une demande et le nombre de lignes par page.
   Le curseur est ajouté par app.js (initialiserSegments) ; sans JavaScript, le choix actif
   garde son fond. */

.onglets-statut,
.segments,
.statuts-grands,
.par-page__choix {
	--rayon-curseur: 12px;
	position: relative;
	border-radius: 16px;
	background: var(--surface-2);
}

.par-page__choix {
	--rayon-curseur: 9px;
	border-radius: 12px;
}

.seg--js > .seg__curseur {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	border-radius: var(--rayon-curseur);
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
	pointer-events: none;
}

.seg--js > .seg__curseur[hidden] {
	display: none;
}

.seg--anime > .seg__curseur {
	transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.3s var(--ease), height 0.3s var(--ease);
}

.seg--js > :not(.seg__curseur) {
	position: relative;
	z-index: 1;
}

.seg--js > [aria-pressed="true"],
.seg--js > [aria-current="page"] {
	background: transparent;
	box-shadow: none;
}

.segments .pilule,
.onglet-statut,
.par-page__choix button {
	border-radius: var(--rayon-curseur);
}

/* Statut d'une demande : trois cases égales, icône et libellé sur une ligne ; le texte du choix
   actif prend la couleur du statut. */
.statuts-grands {
	gap: 0;
	margin: 8px 20px 20px;
	padding: 4px;
}

.statuts-grands:not(.seg--js) .st-btn[aria-pressed="true"] {
	background: var(--surface);
}

.statuts-grands {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-btn {
	flex-direction: row;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 50px;
	padding: 0 4px;
	white-space: nowrap;
	border: 0;
	border-radius: var(--rayon-curseur);
	background: none;
	font-size: 14px;
	color: var(--muted);
	transform: none;
	transition: color 0.25s ease;
}

.st-btn > .ic {
	width: 18px;
	height: 18px;
	padding: 0;
	border-radius: 0;
	background: none;
}

.st-btn:hover,
.st-btn[aria-pressed="true"] {
	transform: none;
}

.st-btn:hover {
	color: var(--text);
}

.st-btn[value="nouveau"][aria-pressed="true"] { border: 0; background: none; color: var(--c-nouveau); }
.st-btn[value="en_cours"][aria-pressed="true"] { border: 0; background: none; color: var(--c-encours); }
.st-btn[value="traite"][aria-pressed="true"] { border: 0; background: none; color: var(--c-traite); }

.st-btn[aria-pressed="true"] > .ic {
	background: none;
}

.st-btn__coche {
	display: none;
}

@media (max-width: 760px) {
	.statuts-grands {
		margin: 8px 16px 16px;
	}

	.st-btn {
		min-height: 50px;
	}
}

@media (max-width: 380px) {
	.st-btn > .ic {
		display: none;
	}
}

/* ===== Adresse de la page d'un centre : champ encadré (maquette validée le 12 oct. 2026) ===== */

.ligne--slug {
	align-items: start;
}

.ligne--slug > label {
	padding-top: 12px;
}

.slug-champ {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1.5px solid var(--line-strong);
	border-radius: 14px;
	background: var(--surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slug-champ:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 4px var(--brand-soft);
}

.slug-champ__pre {
	display: flex;
	align-items: center;
	padding: 0 4px 0 14px;
	border-right: 1px solid var(--line);
	background: var(--surface-2);
	font-size: 15px;
	color: var(--muted);
	white-space: nowrap;
}

.slug-champ .champ {
	flex: 1;
	width: auto;
	min-width: 0;
	max-width: none;
	height: 48px;
	padding: 0 8px 0 12px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	field-sizing: fixed;
}

.slug-champ .champ:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

.slug-alerte {
	display: flex;
	gap: 8px;
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--c-encours-bg);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--c-encours);
}

.slug-alerte[hidden] {
	display: none;
}

.slug-alerte .ic {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

/* ===== Mobile type application (maquette validée le 12 oct. 2026) =====
   900 px et moins : barre d'onglets en bas (Accueil, Demandes, Centres, Compte) et feuille du
   compte, à la place du menu coulissant et de la barre du haut. */

.onglets-bas,
.feuille,
.feuille-voile {
	display: none;
}

@media (max-width: 900px) {
	.side,
	.topbar {
		display: none;
	}

	.contenu {
		padding-bottom: calc(104px + env(safe-area-inset-bottom));
	}

	.onglets-bas {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: grid;
		grid-auto-columns: 1fr;
		grid-auto-flow: column;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: color-mix(in srgb, var(--surface) 86%, transparent);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
	}

	.onglets-bas__lien {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		min-height: 52px;
		padding: 6px 0 2px;
		border: 0;
		background: none;
		font: inherit;
		font-size: 11px;
		font-weight: 600;
		color: var(--muted);
		text-decoration: none;
		cursor: pointer;
		transition: color 0.2s ease;
	}

	.onglets-bas__lien .ic {
		width: 24px;
		height: 24px;
		transition: transform 0.25s var(--ressort);
	}

	.onglets-bas__lien[aria-current="page"] {
		color: var(--brand-deep);
	}

	.onglets-bas__lien[aria-current="page"] .ic {
		transform: translateY(-1px) scale(1.08);
	}

	.onglets-bas__pastille {
		position: absolute;
		top: 0;
		left: calc(50% + 6px);
		display: grid;
		place-items: center;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: var(--brand);
		font-size: 11px;
		font-weight: 700;
		color: #ffffff;
	}

	.onglets-bas__avatar {
		display: grid;
		place-items: center;
		width: 24px;
		height: 24px;
		border-radius: 50%;
		background: linear-gradient(140deg, #5cc6fa, #1aa7ec);
		font-size: 11px;
		font-weight: 700;
		color: #ffffff;
	}

	.onglets-bas__avatar--grand {
		width: 46px;
		height: 46px;
		font-size: 17px;
	}

	.feuille-voile:not([hidden]) {
		position: fixed;
		inset: 0;
		z-index: 50;
		display: block;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		transition: opacity 0.25s ease;
	}

	.feuille-voile.is-ouvert {
		opacity: 1;
	}

	.feuille:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 60;
		display: block;
		padding: 10px 14px calc(22px + env(safe-area-inset-bottom));
		border-radius: 26px 26px 0 0;
		background: var(--surface);
		transform: translateY(102%);
		transition: transform 0.38s cubic-bezier(0.32, 0.9, 0.3, 1);
	}

	.feuille.is-ouverte {
		transform: none;
	}

	.feuille__poignee {
		width: 40px;
		height: 5px;
		margin: 0 auto 12px;
		border-radius: 3px;
		background: var(--line-strong);
	}

	.feuille__moi {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 6px 6px 14px;
	}

	.feuille__moi strong,
	.feuille__moi span:not(.onglets-bas__avatar) {
		display: block;
	}

	.feuille__moi span:not(.onglets-bas__avatar) {
		font-size: 13px;
		color: var(--muted);
	}

	.feuille__choix {
		display: flex;
		align-items: center;
		gap: 14px;
		width: 100%;
		min-height: 52px;
		padding: 0 10px;
		border: 0;
		border-radius: 14px;
		background: none;
		font: inherit;
		font-size: 16px;
		color: var(--text);
		text-align: left;
		text-decoration: none;
		cursor: pointer;
	}

	.feuille__choix:active {
		background: var(--surface-2);
	}

	.feuille__choix .ic {
		width: 22px;
		height: 22px;
		color: var(--muted);
	}

	.feuille__choix .feuille__fleche {
		width: 18px;
		height: 18px;
		margin-left: auto;
		color: var(--line-strong);
	}

	.feuille__choix--rouge,
	.feuille__choix--rouge .ic {
		color: var(--c-spam);
	}

	/* Copie : une icône de 44 px à droite de la ligne (un appui sur la ligne copie aussi). */
	.info {
		position: relative;
	}

	.info__val:has(.copier) {
		padding-right: 52px;
	}

	.copier {
		position: absolute;
		top: 50%;
		right: 0;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		justify-content: center;
		border-radius: 12px;
		background: none;
		box-shadow: none;
		transform: translateY(-50%);
	}

	.copier span {
		display: none;
	}

	.copier .ic {
		width: 20px;
		height: 20px;
	}

	.copier.is-copie {
		background: none;
		color: var(--c-traite);
	}
}

@media (max-width: 760px) {
	

	.page-app .barre-selection {
		bottom: calc(80px + env(safe-area-inset-bottom));
	}
}

/* ===== Notifications : pilule sombre et petit point de couleur (demande du 12 oct. 2026) =====
   Un seul langage pour toutes : vert (c'est fait), orange (à lire ou à refaire), rouge (échec ou
   erreur de saisie). Notifications en haut de l'écran (JavaScript et messages d'une action) ;
   erreurs de saisie et avis de configuration restent dans la page, au même style. */

.alerte--succes {
	--point: #34d399;
}

.alerte--attention {
	--point: #f59e0b;
}

.alerte--erreur,
.alerte--echec {
	--point: #ef4444;
}

.alerte--echec.alerte--attention {
	--point: #f59e0b;
}

.alerte--succes::before,
.alerte--erreur::before,
.alerte--echec::before,
.alerte--attention::before {
	content: "";
	display: block;
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin: 0 2px;
	padding: 0;
	border-radius: 50%;
	background: var(--point);
	font-size: 0;
}

.alerte--succes,
.alerte--echec {
	gap: 10px;
	padding: 11px 18px 11px 16px;
	font-size: 15px;
	font-weight: 600;
}

.alerte--echec {
	padding-right: 8px;
}

/* Dans la page : erreurs de saisie et avis, même teinte sombre, point sur la première ligne. */
.alerte--erreur,
.alerte--attention:not(.alerte--echec) {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border: 0;
	border-radius: 16px;
	background: var(--toast);
	box-shadow: none;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.45;
	color: #ffffff;
}

.alerte--erreur::before,
.alerte--attention:not(.alerte--echec)::before {
	margin-top: 7px;
}

.alerte--erreur a,
.alerte--attention a {
	color: #ffffff;
	text-decoration: underline;
}

/* La notification prend la largeur de son texte (sans cela, centrée à 50 %, elle n'a que la moitié de l'écran). */
.alerte--succes,
.alerte--echec {
	width: max-content;
}

@media (max-width: 900px) {
	.alerte--succes,
	.alerte--echec {
		top: calc(14px + env(safe-area-inset-top));
		max-width: calc(100vw - 24px);
		border-radius: 24px;
	}
}

@media (max-width: 760px) {
	/* Lignes d'information : le libellé au-dessus de la valeur, qui garde toute la largeur
	   (la colonne de libellés écrasait les numéros et les adresses e-mail). */
	.info {
		grid-template-columns: 34px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 0;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.info__ic {
		grid-row: 1 / span 2;
		align-self: center;
	}

	.info__lib {
		grid-column: 2;
		font-size: 12.5px;
	}

	.info__val {
		grid-column: 2;
		overflow-wrap: anywhere;
	}

	/* Barre de sélection masquée : elle sort entièrement de l'écran, au-dessus de la barre d'onglets. */
	.page-app .barre-selection:not(.is-visible) {
		transform: translateY(calc(100% + 160px));
	}
}

/* ===== Éléments actifs sans bordure (demande du 12 oct. 2026) =====
   Le choix actif se reconnaît à sa teinte, son texte ou son point, jamais à un contour. */

/* Apparence (Réglages) : l'aperçu choisi porte une pastille avec une coche, son nom un point bleu. */
.theme__radio:checked ~ .theme__apercu {
	border-color: transparent;
}

.theme__radio:checked ~ .theme__apercu::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.theme__radio:checked ~ .theme__nom::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--brand);
	vertical-align: 1px;
}

/* Filtre actif d'une liste (Centre, Trier par) : fond teinté et texte bleu, sans contour. */
.menu-liste select.is-actif {
	border-color: transparent;
}

/* ===== Mobile : champs et page de connexion (test du 12 oct. 2026) ===== */

@media (max-width: 900px) {
	/* iOS zoome la page dès qu'on touche un champ dont le texte fait moins de 16 px. */
	input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
	select,
	textarea,
	.champ,
	.champ-bloc__saisie {
		font-size: 16px;
	}

	.champ-bloc__saisie {
		min-height: 50px;
	}

	.page-auth,
	.auth {
		min-height: 100vh;
		min-height: 100dvh;
	}

	.auth {
		padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
	}

	.auth__carte {
		padding: 30px 22px 18px;
	}

	.auth__sous {
		text-wrap: balance;
	}

	.auth .btn--bloc {
		height: 50px;
		font-size: 16px;
	}

	/* Œil du mot de passe et liens sous le formulaire : cibles de 44 px. */
	.champ-mdp .champ-bloc__saisie {
		padding-right: 52px;
	}

	.voir-mdp {
		right: 3px;
		width: 44px;
		height: 44px;
	}

	.auth__liens {
		margin-top: 6px;
		font-size: 14.5px;
	}

	.auth__liens a,
	.auth__liens button {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 10px;
	}
}

@media (max-width: 600px) {
	/* Fenêtre de confirmation : les deux actions l'une sous l'autre, pleine largeur, confirmer en premier. */
	.modale__actions {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	/* Confirmer (le deuxième bouton) passe au-dessus d'Annuler. */
	.modale__actions [data-modale-oui] {
		order: -1;
	}

	.modale__actions .btn {
		width: 100%;
		height: auto;
		min-height: 50px;
		justify-content: center;
	}
}

/* ===== Connexion : deux volets (maquette B du 12 oct. 2026, sans cercle) =====
   Volet de marque bleu nuit (logo, phrase) et volet du formulaire ; étiquettes qui glissent
   au-dessus du texte saisi. Sur téléphone : bande de marque, puis formulaire en feuille arrondie. */

.auth--volets {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	justify-content: stretch;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 0;
}

.auth__marque {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(32px, 5vw, 56px);
	position: relative;
	overflow: hidden;
	/* Décor : photo d'échappement sous un voile bleu #081a87 (couche ::before plus bas, demande du 12 oct. 2026).
	   Aucun JavaScript, derrière le texte, sans effet sur le formulaire ni sur la mise en page. */
	background: #081a87;
	color: #ffffff;
}

.auth__marque-logo {
	display: block;
	width: 120px;
	height: auto;
}

.auth__accroche {
	max-width: 340px;
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

/* Titre au-dessus de l'accroche (12 oct. 2026) : petites capitales espacées, précédées d'un trait fin. */
.auth__titre-marque {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.auth__titre-marque::before {
	content: "";
	width: 28px;
	height: 1px;
	background: rgba(255, 255, 255, 0.6);
}

.auth__marque-note {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.auth__volet {
	display: grid;
	place-items: center;
	padding: 32px;
	background: var(--surface);
}

/* Formulaire à gauche, photo à droite sur grand écran (4 nov. 2026, demande de l'utilisateur ; avant, photo à
   gauche). Sur téléphone, rien ne change : bande de marque en haut, formulaire en dessous. */
@media (min-width: 901px) {
	.auth__marque {
		order: 2;
	}
}

/* Grand écran (4 nov. 2026, demande de l'utilisateur) : la mention « Espace de gestion » quitte le bas de la photo
   pour passer sous « Connexion » (sous-titre .auth__sous--mobile de auth/login.php, affiché partout) ; logo en haut, accroche au milieu. */
@media (min-width: 901px) {
	.auth__marque {
		justify-content: flex-start;
	}

	.auth__message {
		margin: auto 0 0;
	}

	.auth__marque-note {
		display: none;
	}
}

.auth__volet .auth__carte {
	width: 100%;
	max-width: 340px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.auth__volet .auth__titre,
.auth__volet .auth__sous {
	text-align: left;
}

.auth__volet .auth__titre {
	font-size: 26px;
}

.auth__volet .auth__sous {
	margin: 4px 0 24px;
}

.auth__volet .auth__carte--centre .auth__titre,
.auth__volet .auth__carte--centre .auth__sous {
	text-align: center;
}

/* Étiquettes flottantes : l'étiquette est dans le champ, puis glisse au-dessus du texte saisi. */
.auth .champ-bloc {
	position: relative;
	display: block;
}

.auth .champ-bloc__libelle {
	position: absolute;
	top: 18px;
	left: 17px;
	z-index: 1;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--muted);
	pointer-events: none;
	transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.auth .champ-bloc__saisie {
	height: 56px;
	padding: 22px 16px 6px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--bg);
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

:root[data-theme="sombre"] .auth .champ-bloc__saisie {
	background: var(--surface-2);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .auth .champ-bloc__saisie {
		background: var(--surface-2);
	}
}

.auth .champ-bloc__saisie:focus {
	border-color: var(--brand);
	background: var(--surface);
	box-shadow: 0 0 0 4px var(--brand-soft);
}

.auth .champ-bloc:focus-within .champ-bloc__libelle,
.auth .champ-bloc:has(.champ-bloc__saisie:not(:placeholder-shown)) .champ-bloc__libelle,
.auth .champ-bloc:has(.champ-bloc__saisie:-webkit-autofill) .champ-bloc__libelle {
	top: 9px;
	font-size: 12px;
	font-weight: 600;
	color: var(--brand-deep);
}

.auth .formulaire {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth .champ-mdp .champ-bloc__saisie {
	padding-right: 52px;
}

.auth .voir-mdp {
	right: 6px;
}

.auth .btn--bloc {
	height: 52px;
	border-radius: 12px; /* bouton un peu plus carré (20 oct. 2026), comme .btn */
	font-size: 16px;
}

@media (max-width: 900px) {
	/* Téléphone : bande de marque (logo seul), puis le formulaire en feuille arrondie par-dessus. */
	.auth--volets {
		display: flex;
		flex-direction: column;
		padding: 0;
	}

	.auth__marque {
		flex: none;
		height: min(270px, 40vh);
		padding: calc(26px + env(safe-area-inset-top)) 24px 54px;
	}

	.auth__message,
	.auth__marque-note {
		display: none;
	}

	.auth__marque-logo {
		width: 100px;
	}

	.auth__volet {
		flex: 1;
		place-items: start center;
		margin-top: -30px;
		padding: 28px 22px calc(22px + env(safe-area-inset-bottom));
		border-radius: 28px 28px 0 0;
	}

	.auth__volet .auth__carte {
		padding: 0;
	}

	.auth__volet .auth__titre {
		font-size: 24px;
	}

	.auth__volet .auth__sous {
		margin-top: 10px;
		margin-bottom: 20px;
	}
}

/* Case « Retenir cette adresse » de la page du code : ne pas confondre avec .case (cases des listes). */
.case-retenir {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--muted);
	cursor: pointer;
}

.case-retenir input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--brand);
}

/* Volet de marque : le texte passe devant la photo, sans filet au bord (retiré le 12 oct. 2026) ;
   mise au point de la photo (agrandie et floue, puis nette), une seule fois à l'arrivée sur la page
   (animation 5 du 12 oct. 2026, gardée avec la photo). */
.auth__marque > * {
	position: relative;
	z-index: 2;
}

.auth__marque::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(rgba(8, 26, 135, 0.82), rgba(8, 26, 135, 0.82)),
		url("../img/connexion-echappement.webp") 66% 45% / cover no-repeat;
	transform-origin: 66% 45%;
	pointer-events: none;
	animation: mise-au-point-photo 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1 both;
}

/* La photo arrive agrandie et floue, puis se pose et devient nette. */
@keyframes mise-au-point-photo {
	from { transform: scale(1.35); filter: blur(3px) brightness(0.5); opacity: 0.35; }
	to { transform: none; filter: none; opacity: 1; }
}

/* Logo, slogan et mention apparaissent juste après la mise au point. */
.auth__marque > * {
	animation: monte-texte 1.2s ease-out 0.9s 1 both;
}

@keyframes monte-texte {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.auth__marque::before,
	.auth__marque > * {
		animation: none;
	}
}

@media (max-width: 900px) {
	/* La feuille du formulaire reste au-dessus de la bande de marque (qui est désormais positionnée). */
	.auth__volet {
		position: relative;
		z-index: 2;
	}
}

/* Fenêtre de confirmation au ton « neutre » (se déconnecter) : bleu de la charte au lieu du rouge. */
.modale[data-ton="neutre"] .modale__icone {
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.modale[data-ton="neutre"] .btn--danger-plein,
.modale[data-ton="neutre"] .btn--danger-plein:hover:not(:disabled) {
	background: linear-gradient(140deg, #22aef2, #0a7cc4);
	color: #ffffff;
}

/* ===== Menu « Période » de la liste des demandes (maquette du 12 oct. 2026) ===== */

.menu-periode details {
	position: relative;
}

.menu-periode__bouton {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 210px;
	height: 40px;
	padding: 0 36px 0 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
	list-style: none;
}

.menu-periode__bouton::-webkit-details-marker {
	display: none;
}

.menu-periode__bouton.is-actif {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.menu-periode__icone {
	width: 18px;
	height: 18px;
	color: var(--muted);
}

.menu-periode__bouton.is-actif .menu-periode__icone {
	color: var(--brand-deep);
}

.menu-periode__bouton span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.menu-periode__pop {
	position: absolute;
	top: calc(100% + 8px);
	/* Aligné sur le bord droit du bouton : le menu est le dernier de la rangée, tout à droite de la page. */
	right: 0;
	z-index: 30;
	width: 290px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
	animation: fondu-entree 0.18s ease;
}

.menu-periode__choix {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
}

.menu-periode__choix:hover {
	background: var(--surface-2);
}

.menu-periode__choix[aria-current="true"] {
	font-weight: 600;
	color: var(--brand-deep);
}

.menu-periode__choix[aria-current="true"]::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand);
}

.menu-periode__dates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 8px 4px 4px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

.menu-periode__dates label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
}

.menu-periode__dates input[type="date"] {
	width: 100%;
	height: 42px;
	margin-top: 4px;
	padding: 0 10px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface-2);
	font-weight: 500;
	color: var(--text);
}

.menu-periode__dates .btn {
	grid-column: 1 / -1;
	justify-content: center;
}

/* Filtre actif affiché en pastille retirable. */
.puces-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.puce-filtre {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 6px 0 12px;
	border-radius: 999px;
	background: var(--brand-soft);
	font-size: 13px;
	font-weight: 600;
	color: var(--brand-deep);
}

.puce-filtre a {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(26, 167, 236, 0.22);
	font-size: 14px;
	line-height: 1;
	color: inherit;
	text-decoration: none;
}

@media (max-width: 760px) {
	.menu-periode,
	.menu-periode details,
	.menu-periode__bouton {
		width: 100%;
	}

	.menu-periode__bouton {
		min-height: 46px;
	}

	.menu-periode__pop {
		right: 0;
		width: auto;
	}
}

/* ===== Accueil : tuiles toutes cliquables, choix de la courbe dans son en-tête (12 oct. 2026) ===== */

/* Le menu « Période » doit passer au-dessus de la liste qui suit (chaque bloc de la page a son propre empilement). */
.outils-a {
	position: relative;
	z-index: 20;
}

/* Menu « Période » sur mobile : les deux dates se partagent la largeur sans la dépasser. */
.menu-periode__dates {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.menu-periode__dates label,
.menu-periode__dates input[type="date"] {
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 760px) {
	.menu-periode__pop {
		box-sizing: border-box;
		max-width: 100%;
	}

	.menu-periode__dates input[type="date"] {
		padding: 0 8px;
	}
}

/* ===== Statut d'une demande : choix actif plein, dans la couleur de son statut (proposition A, 12 oct. 2026) =====
   Lisible dans les deux thèmes (le fond plein et le texte blanc ne dépendent pas du thème) : l'ancien
   curseur sombre se confondait avec la piste en mode nuit. Bleu = Nouvelle, ambre = En cours, vert = Traitée. */

.statuts-grands {
	--st-nouveau: #1d4ed8;
	--st-en-cours: #b45309;
	--st-traite: #15803d;
}

.st-btn {
	min-height: 54px;
	font-weight: 600;
}

.st-btn[value="nouveau"][aria-pressed="true"],
.st-btn[value="en_cours"][aria-pressed="true"],
.st-btn[value="traite"][aria-pressed="true"] {
	color: #ffffff;
	font-weight: 700;
}

/* Sans JavaScript (pas de curseur) : le bouton actif porte lui-même la couleur. */
.statuts-grands:not(.seg--js) .st-btn[value="nouveau"][aria-pressed="true"] { background: var(--st-nouveau); }
.statuts-grands:not(.seg--js) .st-btn[value="en_cours"][aria-pressed="true"] { background: var(--st-en-cours); }
.statuts-grands:not(.seg--js) .st-btn[value="traite"][aria-pressed="true"] { background: var(--st-traite); }

/* Avec JavaScript : le curseur qui glisse prend la couleur du statut choisi. */
.statuts-grands.seg--js > .seg__curseur {
	background: var(--st-nouveau);
	box-shadow: none;
	transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s ease;
}

.statuts-grands.seg--js:has(.st-btn[value="en_cours"][aria-pressed="true"]) > .seg__curseur { background: var(--st-en-cours); }
.statuts-grands.seg--js:has(.st-btn[value="traite"][aria-pressed="true"]) > .seg__curseur { background: var(--st-traite); }

/* Page de connexion : « Espace de gestion de l'Atelier du FAP » sous « Connexion », sur téléphone (12 oct. 2026)
   puis aussi sur ordinateur (4 nov. 2026, à la place de la mention en bas de la photo). */

/* ===== Fiche d'un compte : proposition A (maquette validée le 13 oct. 2026) =====
   Une colonne, une phrase en clair en tête, quatre questions (Qui ? Quel rôle ? Quels centres ?
   Que peut-il faire en plus ?), sécurité et historique repliés, barre d'enregistrement en bas
   seulement quand un réglage a changé. */

/* Fiche d'un compte : colonne centrée (27 oct. 2026, maquette compte.html, A ; avant, calée à gauche).
   Élargie à 960px le 27 oct. 2026 (avant 760px), à la demande de l'utilisateur. */
.page-fiche--compte {
	max-width: 960px;
	margin-inline: auto;
}

.page-fiche--compte .page-tete {
	max-width: none;
}

.compte-resume {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted); /* résumé discret (A, 27 oct. 2026 ; avant, bandeau bleu) */
}

.compte-resume .ic {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--brand-deep);
}

.compte-resume b {
	font-weight: 650;
}

.compte-questions {
	margin: 0;
}

.compte-questions .fiche__lecture {
	display: grid;
	gap: 22px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.compte-q[hidden] {
	display: none;
}

.compte-q__tete {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}

.compte-q__num {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.compte-q__titre {
	margin: 0;
	font-size: 17px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

/* Rôle : deux cartes à choisir. */
.roles-choix {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.role-choix {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 16px;
	border-radius: 14px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}

.role-choix input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.role-choix__rond {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
	transition: box-shadow 0.15s ease;
}

.role-choix b {
	display: block;
	font-size: 15px;
	font-weight: 650;
}

.role-choix small {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
}

.role-choix:has(input:checked) {
	box-shadow: inset 0 0 0 2px var(--brand);
}

.role-choix:has(input:checked) .role-choix__rond {
	box-shadow: inset 0 0 0 6px var(--brand);
}

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

/* Centres : liste à coche, façon Réglages (proposition 2 du 13 oct. 2026). On touche la ligne,
   une coche bleue apparaît à droite ; rien ne change de taille. Point à la couleur du centre. */
.centre-choix {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

.centre-choix input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.centre-choix__point {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--teinte, var(--line-strong));
}

.centre-choix__nom {
	flex: 1;
	min-width: 0;
	transition: color 0.15s ease;
}

.centre-choix__nom small {
	display: block;
	margin-top: 1px;
	font-size: 12.5px;
	color: var(--muted);
}

.centre-choix__coche {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--brand);
	stroke-width: 2.6;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.centre-choix:has(input:checked) .centre-choix__coche {
	opacity: 1;
}

.centre-choix:has(input:checked) .centre-choix__nom {
	color: var(--brand-deep);
}

.centre-choix:has(input:focus-visible) {
	outline: 3px solid var(--ring);
	outline-offset: -3px;
}

/* Droits : interrupteurs, avec une précision sous le libellé. */
.droit-ligne {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
}

.droit-ligne > span:first-child small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--muted);
}

.liste--erreur.roles-choix {
	padding: 6px;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px var(--bad);
}

.compte-creer {
	margin-top: 24px;
}

/* Sécurité et historique : une ligne de résumé, le détail au clic. */
.compte-danger {
	margin-top: 22px;
}

/* Barre d'enregistrement collée en bas, visible seulement s'il y a des modifications. */
.barre-enregistrer {
	position: sticky;
	bottom: 18px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 720px;
	margin-top: 22px;
	padding: 10px 10px 10px 18px;
	border-radius: 16px;
	background: var(--text);
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.25);
	color: var(--surface);
	font-size: 14px;
	font-weight: 500;
	animation: barre-enregistrer-entree 0.2s ease;
}

.barre-enregistrer[hidden] {
	display: none;
}

.barre-enregistrer__boutons {
	display: flex;
	gap: 6px;
}

.barre-enregistrer .btn--discret,
.barre-enregistrer .btn--discret:hover {
	color: var(--surface);
}

/* Survol d'« Annuler » : la barre a la couleur du texte (claire en thème sombre) ; le fond de survol
   général (--hover) y était presque de la même couleur que le texte du bouton. Ici, une teinte
   légère de la couleur du bouton, lisible dans les deux thèmes (16 oct. 2026). */
.barre-enregistrer .btn--discret:hover:not(:disabled) {
	background: color-mix(in srgb, var(--surface) 14%, transparent);
	color: var(--surface);
}

@keyframes barre-enregistrer-entree {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

@media (max-width: 900px) {
	.barre-enregistrer {
		bottom: calc(88px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 600px) {
	.roles-choix {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Écran étroit : les deux boutons prennent toute la largeur, sans libellé. */
@media (max-width: 440px) {
	.barre-enregistrer {
		padding: 8px;
	}

	.barre-enregistrer > span:first-child {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.barre-enregistrer__boutons {
		flex: 1;
	}

	.barre-enregistrer__boutons .btn--discret {
		flex: 1;
	}

	.barre-enregistrer__boutons .btn--primaire {
		flex: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.barre-enregistrer {
		animation: none;
	}
}

/* ===== Interrupteurs plus plats et plus allongés (demande du 13 oct. 2026, « comme iOS 27 ») =====
   Piste plus longue et plus basse, bouton en pilule au lieu d'un rond, ombre plus légère ;
   la pilule s'étire un peu pendant l'appui. Vaut pour tous les interrupteurs de sitepro.
   27 oct. 2026 : plus petits et plus fins, 46 × 22 (avant 62 × 28), maquette interrupteurs.html, variante B. */
.switch__piste {
	width: 46px;
	height: 22px;
}

.switch__piste::after {
	top: 2px;
	left: 2px;
	width: 27px;
	height: 18px;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.15s ease;
}

.switch input:checked + .switch__piste::after {
	transform: translateX(15px);
}

.switch:active .switch__piste::after {
	width: 33px;
}

.switch:active input:checked + .switch__piste::after {
	transform: translateX(9px);
}

@media (prefers-reduced-motion: reduce) {
	.switch__piste::after {
		transition: none;
	}
}

/* ===== Ventes en ligne (13 oct. 2026) : étape atteinte dans le tunnel, mêmes tons que les statuts =====
   Devis affiché : gris neutre ; Rendez-vous : bleu ; Payée : vert ; Tarif non disponible : ambre. */
.statut--devis { background: var(--neutral-soft); color: var(--muted); }
.statut--rdv { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.statut--paye { background: var(--c-traite-bg); color: var(--c-traite); }
.statut--sans_tarif { background: var(--c-encours-bg); color: var(--c-encours); }

.onglet-statut--devis[aria-pressed="true"] b { background: var(--neutral-soft); color: var(--text); }
.onglet-statut--rdv[aria-pressed="true"] b { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.onglet-statut--paye[aria-pressed="true"] b { background: var(--c-traite-bg); color: var(--c-traite); }
.onglet-statut--sans_tarif[aria-pressed="true"] b { background: var(--c-encours-bg); color: var(--c-encours); }

.point-statut--devis { background: var(--muted); }
.point-statut--rdv { background: var(--c-nouveau); }
.point-statut--paye { background: var(--c-traite); }
.point-statut--sans_tarif { background: var(--c-encours); }

/* ===== Arrivée sur le tableau de bord juste après la connexion =====
   20 oct. 2026 : les vignettes arrivent toutes d'un coup, comme au rechargement (ecran-entree) ; les
   chiffres tournent comme un rouleau (app.js, initialiserEntreeAccueil, rouleau B). La vague du 13 oct.
   (vignettes une par une) est retirée. Fenêtre d'un chiffre : sa hauteur est posée par le JS. */
.rouleau {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	font-variant-numeric: tabular-nums;
}

.rouleau > span {
	display: block;
	will-change: transform;
}

.rouleau__c {
	display: block;
	text-align: center;
}

/* ===== Lignes de liste plus lisibles (13 oct. 2026) =====
   Un filet fin entre deux lignes, en retrait à gauche (comme les listes d'Apple), pour qu'on
   lise un tableau et non une suite de blocs. Il s'efface autour de la ligne survolée ou choisie,
   dont le fond arrondi suffit. */
.demandes > li:not(.tete-liste) + li {
	position: relative;
}

.demandes > li:not(.tete-liste) + li::before {
	content: "";
	position: absolute;
	top: 0;
	right: 12px;
	left: 20px;
	height: 1px;
	background: var(--line);
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.demandes > li:hover::before,
.demandes > li:hover + li::before,
.demandes > li.is-choisie::before,
.demandes > li.is-choisie + li::before {
	opacity: 0;
}

.tableau tbody tr + tr td {
	border-top: 1px solid var(--line);
}

/* ===== Tableau de bord B (15 oct. 2026, cahier des charges 10.4) =====
   Période (choix rapides ou deux dates), trois compteurs avec évolution et courbe, parcours de vente
   en ligne, tableau par atelier, À traiter. Couleur d'un chiffre : --c (et --c-bg pour le fond). */
.c-contact { --c: var(--c-nouveau); --c-bg: var(--c-nouveau-bg); }
.c-appel { --c: var(--c-traite); --c-bg: var(--c-traite-bg); }
.c-devis { --c: #7c3aed; --c-bg: #ede9fe; }

.c-paye { --c: var(--c-traite); --c-bg: var(--c-traite-bg); }

:root[data-theme="sombre"] .c-devis { --c: #a78bfa; --c-bg: rgba(124, 58, 237, 0.22); }

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .c-devis { --c: #a78bfa; --c-bg: rgba(124, 58, 237, 0.22); }
}

/* En-tête : période en pastilles, puis les deux dates dans une pastille de même hauteur. */
.tdb-tete {
	flex-wrap: wrap;
	align-items: flex-end;
}

.tdb-periode {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Colonnes : la gauche plus large pour le tableau ; une carte ne déborde jamais de sa colonne. */
.page-tdb .accueil-grille {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.page-tdb .accueil-grille__colonne {
	grid-template-columns: minmax(0, 1fr);
}

.tdb-compteur__ic {
	background: var(--c-bg);
	color: var(--c);
}

/* Barres (SVG) : piste grise, valeur de la couleur du parent. */
.barre__piste { fill: var(--surface-2); }
.barre__valeur { fill: var(--c); }

/* Parcours de vente en ligne : quatre étapes séparées par un filet. */
.parcours {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 8px 8px 16px;
}

/* Tableau par atelier (version 3 « intensité ») : grands chiffres fins, alignés au centre ; le chiffre
   fonce quand il est élevé dans sa colonne (3), pâlit quand il est faible (1) ; zéro = tiret discret. */
.repartition-cadre {
	padding: 0 0 8px;
	overflow-x: auto;
}

.repartition {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

.repartition thead th {
	padding: 4px 4px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	text-align: center;
	vertical-align: bottom;
}

.repartition thead th:first-child {
	width: 26%;
}

.repartition__ic {
	display: block;
	width: 21px;
	height: 21px;
	margin: 0 auto 6px;
	color: var(--text);
}

.repartition tbody tr,
.repartition tfoot tr {
	border-top: 1px solid var(--line);
}

.repartition tbody th,
.repartition tfoot th {
	padding: 0 8px 0 20px;
	text-align: left;
}

.repartition tbody td,
.repartition tfoot td {
	height: 62px;
	text-align: center;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
}

.repartition tfoot th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.repartition tfoot td {
	height: 54px;
	font-size: 17px;
	font-weight: 600;
}

.atelier-nom {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 600;
}

.atelier-nom i {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--teinte);
}

.repartition__n {
	display: inline-block;
	min-width: 44px;
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
	transition: background 0.15s ease;
}

a.repartition__n:hover {
	background: var(--surface-2);
}

.repartition__zero {
	font-size: 20px;
	color: var(--muted);
	opacity: 0.5;
}

/* À traiter : une ligne par chose à faire, son nombre dans la pastille de statut. */
.a-faire {
	margin: 0;
	padding: 4px 8px 12px;
	list-style: none;
}

.a-faire li + li {
	border-top: 1px solid var(--line);
}

.a-faire__lien {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
	transition: background 0.15s ease;
}

.a-faire__lien:hover {
	background: var(--surface-2);
}

.a-faire__lien .statut {
	flex: none;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
	.page-tdb .accueil-grille {
		grid-template-columns: minmax(0, 1fr);
	}

}

@media (max-width: 760px) {
	.tdb-tete {
		align-items: stretch;
	}

	.tdb-periode,
	.tdb-periode .segments {
		width: 100%;
	}

	.tdb-periode .segments .pilule {
		flex: 1;
		justify-content: center;
	}

	

	

	

	

	.parcours {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 6px;
	}

	.repartition thead th {
		font-size: 10.5px;
	}

	.repartition thead th:first-child {
		width: 30%;
	}

	.repartition tbody th,
	.repartition tfoot th {
		padding-left: 12px;
	}

	.repartition tbody td {
		height: 52px;
	}

	.atelier-nom {
		font-size: 13.5px;
	}

	.repartition__n {
		min-width: 0;
		padding: 2px 4px;
		font-size: 20px;
	}
}

/* Tableau par atelier sur téléphone (maquette M2) : une ligne par atelier, chaque chiffre sous son
   pictogramme, légende des pictogrammes une seule fois en haut. Le tableau reste pour les grands écrans. */
.repartition-mobile {
	display: none;
}

@media (max-width: 760px) {
	.repartition-cadre {
		display: none;
	}

	.repartition-mobile {
		display: block;
		padding-bottom: 6px;
	}

	

	

	

	.repartition-mobile__legende,
	.repartition-mobile__chiffres {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.repartition-mobile__legende {
		padding: 4px 8px 12px;
		border-bottom: 1px solid var(--line);
	}

	.repartition-mobile__legende span {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		font-size: 9px;
		font-weight: 500;
		line-height: 1.2;
		letter-spacing: -0.02em;
		white-space: nowrap;
		text-align: center;
		color: var(--muted);
	}

	.repartition-mobile__legende .ic {
		width: 19px;
		height: 19px;
		color: var(--text);
	}

	.repartition-mobile__ligne {
		padding: 12px 8px;
	}

	.repartition-mobile__ligne > .atelier-nom,
	.repartition-mobile__total {
		margin-left: 8px;
	}

	.repartition-mobile__ligne + .repartition-mobile__ligne {
		border-top: 1px solid var(--line);
	}

	.repartition-mobile__chiffres {
		margin-top: 8px;
	}

	.repartition-mobile__case {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		padding: 2px 0;
		border-radius: 10px;
		color: var(--text);
		text-decoration: none;
	}

	a.repartition-mobile__case:active {
		background: var(--surface-2);
	}

	.repartition-mobile__case .ic {
		width: 14px;
		height: 14px;
		color: var(--muted);
		opacity: 0.7;
	}

	.repartition-mobile__case .repartition__n {
		min-width: 0;
		padding: 0;
		font-size: 21px;
	}

	.repartition-mobile__case b {
		font-size: 16px;
		font-weight: 600;
		font-variant-numeric: tabular-nums;
	}

	.repartition-mobile__total {
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--muted);
	}
}

/* ===== Évolution par atelier (15 oct. 2026, maquette 1) =====
   Grande courbe en bas du tableau de bord, une ligne par atelier à sa couleur (classes teinte--clé),
   tracée par app.js ; la courbe montre la tendance, la bulle les chiffres exacts de la tranche. */

.courbes__grille {
	stroke: var(--line);
	stroke-width: 1;
}

.courbes__trait {
	fill: none;
	stroke: var(--teinte);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Tracé animé seulement quand on change de chiffre ou de centres (classe posée par app.js). */
.is-anime .courbes__trait {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: courbes-trace 0.9s var(--ease) forwards;
}

@keyframes courbes-trace {
	to { stroke-dashoffset: 0; }
}

.courbes__bulle {
	position: absolute;
	top: 4px;
	z-index: 2;
	min-width: 160px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--line);
	font-size: 13px;
	pointer-events: none;
}

.courbes__bulle strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.courbes__bulle-ligne {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 3px;
}

.courbes__bulle-ligne i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--teinte);
}

.courbes__bulle-ligne b {
	margin-left: auto;
	font-variant-numeric: tabular-nums;
}

.courbes__bulle-ligne--total {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

/* Changement de période sans rechargement : les blocs pâlissent un instant si la réponse tarde.
   23 oct. 2026 : la transition du mouvement au survol des vignettes est gardée (sinon elles sautaient). */
.page-tdb [data-tdb-zone] {
	transition: opacity 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.page-tdb.is-chargement [data-tdb-zone] {
	opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
	.courbes__trait {
		stroke-dashoffset: 0;
	}
}

/* Fiche compte : confirmation par mot de passe (super administrateur nommé ou retiré, 15 oct. 2026). */
.compte-q__num .ic {
	width: 13px;
	height: 13px;
}

[data-bloc-confirmation] .compte-q__num {
	background: var(--c-encours-bg);
	color: var(--c-encours);
}

/* ===== Tableau de bord allégé et Statistiques (maquette validée le 15 oct. 2026) ===== */

/* Tableau de bord en une colonne (15 oct. 2026) : À traiter, tableau par atelier, lien vers Statistiques. */
.page-tdb .accueil-grille.tdb-pile {
	grid-template-columns: minmax(0, 1fr);
}

/* Tableau par atelier : tous les chiffres à la même taille et de la même couleur. */
.page-tdb .repartition__n {
	font-size: 18px;
	font-weight: 500;
	color: var(--text);
	opacity: 1;
}

.page-tdb .repartition tbody td {
	height: 52px;
}

/* Lien vers les statistiques détaillées : une carte avec un vrai bouton. */
.tdb-vers-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;
	padding: 18px 20px;
}

.tdb-vers-stats__ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--c-nouveau-bg);
	color: var(--c-nouveau);
}

.tdb-vers-stats__texte {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 200px;
}

.tdb-vers-stats__texte small {
	font-size: 12.5px;
	color: var(--muted);
}

.tdb-vers-stats .btn .ic {
	width: 16px;
	height: 16px;
}

/* Page Statistiques. */
.stats {
	display: grid;
	gap: 16px;
}

.stats-filtre {
	margin: 0 0 16px;
}

.stats > .carte {
	padding-bottom: 16px;
}

.stats-export .ic {
	width: 15px;
	height: 15px;
}

.stats-barres {
	margin: 0;
	padding: 0 20px;
	list-style: none;
}

.stats-barres li {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 40px;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	font-size: 14px;
}

.stats-barres b {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.stats-chiffres {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 10px 20px 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.stats-chiffres dt {
	font-size: 12px;
	color: var(--muted);
}

.stats-chiffres dd {
	margin: 2px 0 0;
	font-size: 18px;
	font-weight: 600;
}

.stats-vide {
	margin: 8px 20px 0;
	font-size: 12.5px;
	color: var(--muted);
}

@media (max-width: 760px) {
	

	

	.stats-chiffres {
		grid-template-columns: minmax(0, 1fr);
	}

	

	

	

	.stats-barres {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Titres des blocs du tableau de bord et des statistiques : plus marqués (demande du 15 oct. 2026). */
.page-tdb .carte__titre,
.stats .carte__titre {
	font-size: 19px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.stats-barres li {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 72px;
}

.courbes-legende {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 20px 8px;
	font-size: 12.5px;
	color: var(--muted);
}

.courbes-legende__trait {
	display: inline-block;
	width: 22px;
	border-top: 2.6px solid var(--text);
}

.courbes-legende__trait--pointille {
	margin-left: 8px;
	border-top: 2px dashed var(--muted);
}

.courbes__trait-compare {
	fill: none;
	stroke: var(--teinte);
	stroke-width: 2;
	stroke-dasharray: 5 5;
	opacity: 0.55;
}

/* Choix des dates : un bouton qui résume, un panneau à deux colonnes. */
.periodes {
	position: relative;
}

.periodes > summary {
	list-style: none;
}

.periodes > summary::-webkit-details-marker {
	display: none;
}

.periodes__bouton {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--ombre), inset 0 0 0 1px var(--line);
	cursor: pointer;
}

.periodes__bouton > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
}

.periodes__bouton small {
	font-size: 12.5px;
	color: var(--muted);
}

.periodes__bouton small b {
	font-weight: 600;
	color: var(--text);
}

.periodes__bouton > .ic {
	width: 18px;
	height: 18px;
	color: var(--muted);
}

.periodes__panneau {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: min(640px, 92vw);
	padding: 8px;
	border-radius: 18px;
	background: var(--surface);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--line);
}

.periodes__col {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 10px;
	border: 0;
}

.periodes__col + .periodes__col {
	border-left: 1px solid var(--line);
}

.periodes__col legend {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.periodes__trait {
	display: inline-block;
	width: 20px;
	border-top: 2.6px solid var(--c-nouveau);
}

.periodes__trait--pointille {
	border-top: 2px dashed var(--muted);
}

.periodes__choix {
	position: relative;
	display: block;
	cursor: pointer;
}

.periodes__choix input {
	position: absolute;
	opacity: 0;
}

.periodes__choix span {
	display: block;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 14px;
}

.periodes__choix:hover span {
	background: var(--surface-2);
}

.periodes__choix input:checked + span {
	background: var(--c-nouveau-bg);
	color: var(--c-nouveau);
	font-weight: 600;
}

.periodes__choix input:focus-visible + span {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

.periodes__dates {
	display: grid;
	gap: 6px;
	margin-top: 6px;
	padding: 10px 12px 0;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

.periodes__dates label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.periodes__dates input {
	padding: 6px 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--text);
	font: inherit;
	color-scheme: light dark;
}

.periodes__pied {
	display: flex;
	grid-column: 1 / -1;
	justify-content: flex-end;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid var(--line);
}

.page-tete.tdb-tete {
	position: relative;
	z-index: 5;
}

@media (max-width: 760px) {
	.periodes,
	.periodes__bouton {
		width: 100%;
	}

	.periodes__panneau {
		left: 0;
		grid-template-columns: minmax(0, 1fr);
		width: auto;
	}

	.periodes__col + .periodes__col {
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.stats-barres li {
		grid-template-columns: minmax(0, 1fr) 70px 64px;
	}
}

/* Aperçu : la page du site, en clair (comme le site), quel que soit le thème du sitepro. */
.pa-apercu {
	overflow: hidden;
	margin: 0 0 22px;
	border-radius: 18px;
	background: #ffffff;
	color: #1d1d1f;
	box-shadow: var(--ombre), 0 0 0 1px var(--line);
}

.pa-apercu__navig {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	background: #eef1f6;
}

.pa-apercu__navig span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c9cfda;
}

.pa-apercu__navig em {
	margin-left: 10px;
	font-size: 12.5px;
	font-style: normal;
	color: #66708a;
}

.pa-hero {
	position: relative;
	height: 260px;
	background: #111111;
}

.pa-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}

.pa-hero__texte {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 6px;
	padding: 0 20px;
	color: #ffffff;
	text-align: center;
}

.pa-hero__texte p {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

.pa-hero__texte h2 {
	margin: 0;
	font-family: Dosis, system-ui, sans-serif;
	font-size: 42px;
	font-weight: 600;
}

.pa-services {
	padding: 30px 40px 36px;
}

.pa-services h3 {
	margin: 0 0 20px;
	color: #1aa7ec;
	font-size: 28px;
	text-align: center;
	text-transform: uppercase;
}

.pa-cartes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
	max-width: 980px;
	margin: 0 auto;
}

.pa-carte {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 20px 24px;
	border-radius: 18px;
	background: #1aa7ec;
	color: #ffffff;
	text-align: center;
}

.pa-carte img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 5px;
}

.pa-carte h4 {
	margin: 4px 0 0;
	font-family: Dosis, system-ui, sans-serif;
	font-size: 23px;
	font-weight: 500;
}

.pa-carte p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.pa-carte__bouton {
	margin-top: auto;
	padding: 6px 16px;
	border: 1px solid #ffffff;
	border-radius: 8px;
	font-size: 14px;
}

/* Formulaire : un bloc sous l'autre, sur toute la largeur. */
.pa-formulaire {
	display: grid;
	gap: 18px;
}

.pa-bloc {
	display: grid;
	gap: 20px;
	padding: 24px 28px 26px;
}

.pa-titre {
	margin: 0;
	font-size: 21px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.pa-photo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.pa-photo img {
	flex: none;
	width: 220px;
	height: 124px;
	object-fit: cover;
	border-radius: 12px;
}

.pa-photo__texte {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 220px;
}

.pa-photo__texte b {
	font-size: 15.5px;
}

.pa-photo__texte small {
	margin-top: -6px;
	font-size: 13px;
	color: var(--muted);
}

.pa-photo__choisir {
	position: relative;
	cursor: pointer;
}

.pa-photo__choisir:focus-within {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.pa-lien {
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 13.5px;
	text-decoration: underline;
	cursor: pointer;
}

.pa-aide {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.pa-ligne {
	display: grid;
	gap: 8px;
}

.pa-ligne label {
	font-size: 15px;
	font-weight: 600;
}

.pa-ligne label small {
	font-weight: 500;
	color: var(--muted);
}

.pa-champ {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--text);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
}

textarea.pa-champ {
	min-height: 120px;
	resize: vertical;
}

.pa-champ:focus {
	outline: 2px solid var(--brand);
	outline-offset: 0;
	background: var(--surface);
}

.pa-ligne--erreur .pa-champ {
	border-color: var(--c-spam);
}

.pa-ligne__pied {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 12px;
	font-size: 13px;
	color: var(--muted);
}

.pa-unique {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.pa-unique .ic {
	width: 15px;
	height: 15px;
}

.pa-unique--ok { color: var(--c-traite); }
.pa-unique--commun { color: var(--muted); font-style: italic; }
.pa-unique--dup { color: var(--c-encours); }

/* Champ modifié et pas encore enregistré : trait bleu à gauche (liste dans la barre du bas). */
.pa-modifie {
	padding-left: 12px;
	box-shadow: inset 3px 0 0 var(--brand);
}

.pa-versions {
	margin: 0;
	padding: 0 18px 12px;
	list-style: none;
}

.pa-versions li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

/* Le bouton reste toujours à droite, à la même place ; c'est le texte, même long, qui passe à la ligne (2 nov. 2026). */
.pa-versions form {
	flex: none;
	margin: 0;
}

.pa-versions__texte {
	min-width: 0;
}

.pa-versions__texte b {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.pa-versions__auteur {
	font-weight: 650;
	color: var(--text);
}

.pa-versions__texte small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--muted);
}

@media (max-width: 760px) {
	

	.pa-hero {
		height: 180px;
	}

	.pa-hero__texte h2 {
		font-size: 28px;
	}

	.pa-services {
		padding: 22px 16px 24px;
	}

	.pa-cartes {
		grid-template-columns: minmax(0, 1fr);
	}

	.pa-bloc {
		padding: 20px 18px 22px;
	}

	.pa-photo img {
		width: 100%;
		height: 160px;
	}

}

@keyframes pa-barre-arrivee {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* Tableau de bord, « À traiter » (maquette 1, 16 oct. 2026) : le chiffre seul, lisible, sans pilule ;
   le point garde la couleur du statut (bleu : nouveau ou rendez-vous, orange : à rappeler). */
.a-faire .statut {
	height: auto;
	padding: 0;
	gap: 8px;
	background: none;
	color: var(--text);
	font-size: 18px;
	font-weight: 650;
}

.a-faire .statut--nouveau i,
.a-faire .statut--rdv i {
	background: var(--c-nouveau);
}

.a-faire .statut--sans_tarif i {
	background: var(--c-encours);
}

/* Numéros : sur l'aperçu (liens vers #pa-bloc-N) et devant le titre du bloc correspondant. */
.pa-carte {
	position: relative;
}

.pa-titre {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Bloc atteint par un numéro : place sous l'en-tête, entouré de bleu un instant. */
.pa-bloc {
	scroll-margin-top: 90px;
}

/* Pages des ateliers, SEO (16 oct. 2026) : introduction dans l'aperçu, boutons Gras et Lien,
   bloc SEO replié, aperçu Google ; écran « SEO : modèles communs » (variables). */
.pa-intro {
	position: relative;
	padding: 30px 40px 8px;
	text-align: center;
}

.pa-intro h3 {
	margin: 0 0 10px;
	font-size: 24px;
	color: #0d1630;
}

.pa-outils {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pa-outil {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: var(--surface-2);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.pa-outil:hover {
	box-shadow: inset 0 0 0 1px var(--brand);
}

.pa-outils__aide {
	font-size: 12.5px;
	color: var(--muted);
}

.pa-google {
	display: grid;
	gap: 3px;
	padding: 16px 18px;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px #dadce0;
	color: #202124;
	font-family: Arial, sans-serif;
}

.pa-google__sur {
	margin-bottom: 8px;
	font: 600 11px/1.4 system-ui, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #70757a;
}

.pa-google__choix {
	font: inherit;
	text-transform: none;
}

.pa-google__adresse {
	font-size: 12.5px;
	color: #4d5156;
}

.pa-google__titre {
	font-size: 20px;
	line-height: 1.3;
	color: #1a0dab;
}

.pa-google__desc {
	font-size: 14px;
	line-height: 1.58;
	color: #4d5156;
}

.pa-variables {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--muted);
}

.pa-variable {
	padding: 3px 9px;
	border: 0;
	border-radius: 999px;
	background: rgba(26, 167, 236, 0.13);
	color: var(--brand);
	font: 600 12.5px ui-monospace, monospace;
	cursor: pointer;
}

/* ===== Pages des ateliers, « refonte simple » (16 oct. 2026) =====
   Style général du sitepro (cartes, boutons, onglets), UX propre à cette page : « À faire », la page
   cliquable, « Tout le contenu », et les feuilles (<dialog>) où l'on modifie une partie à la fois. */

/* Pas d'arrivée d'ensemble sur cette page (demande du 15 oct. 2026), ni d'animation des notifications ; les éléments de la page
   arrivent un par un, plus bas (2 nov. 2026). */
.contenu:has(.pc) > *,
.contenu:has(.pc) .alerte {
	animation: none !important; /* !important : passe devant les animations d'entrée générales (.contenu > …) */
}

/* Arrivée des éléments de la page, de haut en bas, comme les lignes d'un tableau (2 nov. 2026, demande de l'utilisateur) :
   même animation que les lignes (lt-entree), plus vive : 0,18 s et 15 ms d'écart de l'un à l'autre (0,25 s et 25 ms avant, 2 nov. 2026 : trop lent) ; « backwards » : une fois finie, aucune transformation
   ne reste sur l'élément (le pied collant des blocs et la barre d'enregistrement en ont besoin). */
.pc > .enligne,
.pc > .ct-tete,
.pc > .s-choix,
.pc > .s-carte,
.pc .s-taches > .s-tache,
.pc-blocs > .pc-bloc,
.pc > .s-historique {
	animation: lt-entree 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.pc > .ct-tete { animation-delay: 0.015s; }
.pc > .s-choix { animation-delay: 0.03s; }
.pc > .s-carte { animation-delay: 0.045s; }
.pc .s-taches > .s-tache:nth-child(1) { animation-delay: 0.06s; }
.pc .s-taches > .s-tache:nth-child(2) { animation-delay: 0.075s; }
.pc .s-taches > .s-tache:nth-child(3) { animation-delay: 0.09s; }
.pc .s-taches > .s-tache:nth-child(n + 4) { animation-delay: 0.105s; }
.pc-blocs > .pc-bloc:nth-child(1) { animation-delay: 0.09s; }
.pc-blocs > .pc-bloc:nth-child(2) { animation-delay: 0.105s; }
.pc-blocs > .pc-bloc:nth-child(3) { animation-delay: 0.12s; }
.pc-blocs > .pc-bloc:nth-child(4) { animation-delay: 0.135s; }
.pc-blocs > .pc-bloc:nth-child(5) { animation-delay: 0.15s; }
.pc-blocs > .pc-bloc:nth-child(6) { animation-delay: 0.165s; }
.pc-blocs > .pc-bloc:nth-child(7) { animation-delay: 0.18s; }
.pc-blocs > .pc-bloc:nth-child(n + 8) { animation-delay: 0.195s; }
.pc > .s-historique { animation-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
	.pc > .enligne,
	.pc > .ct-tete,
	.pc > .s-choix,
	.pc > .s-carte,
	.pc .s-taches > .s-tache,
	.pc-blocs > .pc-bloc,
	.pc > .s-historique {
		animation: none;
	}
}

.pc {
	max-width: 1180px;
	margin: 0 auto;
}

/* L'atelier (menu) et la page (onglets) */
.s-choix {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 20px;
}

.s-atelier {
	position: relative;
}

.s-atelier__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 40;
	display: grid;
	width: 300px;
	padding: 6px;
	border-radius: 16px;
	background: var(--surface);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--line);
}

.s-atelier__menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--text);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.s-atelier__menu a small {
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 500;
}

.s-atelier__menu a:hover,
.s-atelier__menu a[aria-current="page"] {
	background: var(--surface-2);
}

/* Les trois cartes de la page */
.s-carte {
	margin-bottom: 18px;
	padding: 22px 24px;
	border-radius: 20px;
}

.s-carte > h2 {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.s-sous {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 14px;
}

/* À faire */
.s-taches {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.s-tache {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--surface-2);
}

.s-tache__ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 800;
}

.s-tache__ic--a {
	background: var(--c-encours-bg);
	color: var(--c-encours);
}

.s-tache__ic--b {
	background: rgba(26, 167, 236, 0.16);
	color: var(--brand);
}

.s-tache__txt {
	flex: 1;
	min-width: 0;
}

.s-tache__txt b {
	display: block;
	font-size: 15px;
}

.s-tache__txt small {
	display: block;
	color: var(--muted);
	font-size: 13px;
}

.s-fini {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 0;
	color: var(--c-traite);
	font-weight: 600;
}

/* La page cliquable */
.pc .pa-apercu {
	margin: 0;
	box-shadow: 0 0 0 1px var(--line);
}

.s-zone {
	cursor: pointer;
}

.s-zone:hover {
	outline: 3px solid var(--brand);
	outline-offset: -3px;
}

/* Survol : un voile bleu léger sur la partie, en plus du cadre, pour bien la distinguer. */
.s-zone::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: inherit;
	background: rgba(26, 167, 236, 0.14);
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.s-zone:hover::before {
	opacity: 1;
}

.s-zone::after {
	content: "Modifier";
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	padding: 4px 12px;
	border-radius: 999px;
	background: #0d1630;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
}

.s-zone:hover::after {
	opacity: 1;
}

.pa-intro--vide {
	padding: 18px 30px;
}

.pa-intro--vide h3,
.pa-intro:not(.pa-intro--vide) .pa-intro__vide {
	display: none;
}

.pa-intro__vide {
	margin: 0;
	color: #9aa3b2;
	font-size: 13px;
	font-style: italic;
}

/* État d'un bloc (« Écrit », « Vide », « Même texte ailleurs »), dans l'en-tête du bloc */
.s-ligne__etat {
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

.s-ligne__etat--a {
	color: var(--c-encours);
	font-weight: 600;
}

/* Historique */
.s-historique > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	cursor: pointer;
}

.s-historique > summary::-webkit-details-marker {
	display: none;
}

.s-historique > summary b {
	display: block;
	font-size: 19px;
	font-weight: 700;
}

.s-historique > summary small {
	display: block;
	color: var(--muted);
	font-size: 14px;
}

.s-historique[open] > summary .ic {
	transform: rotate(180deg);
}

.s-historique .pa-versions {
	margin-top: 12px;
	padding: 0;
}

.s-historique__plus {
	margin-top: 8px;
}

/* Indications en haut d'un bloc : une phrase sobre, comme un sous-titre, sans fond (un fond les
   faisait passer pour des champs) ni couleur. La suite éventuelle, plus discrète, sur sa propre ligne. */
.s-ou {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text);
}

.s-ou__suite,
.s-ou--suite {
	display: block;
	font-size: 14.5px;
	font-weight: 400;
	color: var(--muted);
}

.s-ou__suite {
	margin-top: 2px;
}

.s-ou a {
	color: var(--brand);
}

.s-bascule {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: var(--surface-2);
}

.s-bascule button {
	padding: 10px;
	border: 0;
	border-radius: 9px;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.s-bascule button[aria-pressed="true"] {
	background: var(--surface);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	color: var(--text);
}

[data-seo-perso] {
	display: grid;
	gap: 18px;
}

[data-seo-perso][hidden] {
	display: none;
}

@media (max-width: 640px) {
	.s-carte {
		padding: 18px 16px;
	}

	.s-tache {
		flex-wrap: wrap;
	}
}

/* Ventes : filtre venu du tableau de bord (?rdv=7j). */
.filtre-actif {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 14px;
}

.filtre-actif a {
	color: var(--brand);
	font-weight: 600;
}

/* ===== Tableau de bord, ergonomie (19 oct. 2026) ===== */

/* À traiter : « toutes dates » dans le titre ; chevron sur chaque ligne (ce sont des liens). */
.tdb-toutes-dates {
	color: var(--muted);
	font-weight: 500;
}

/* Tableau : zéro lisible (le tiret à 50 % était à 2,7:1) ; « bientôt » pour un suivi pas encore possible. */
.repartition__zero {
	opacity: 1;
}

.repartition__bientot {
	color: var(--muted);
	cursor: help; /* « - » (27 oct. 2026 ; avant « bientôt » en 13 px) */
}

/* Dans le tableau : à la taille des zéros. */
.repartition td .repartition__bientot {
	font-size: 20px;
}

.repartition__legende {
	margin: 12px 20px 20px;
	color: var(--muted);
	font-size: 12.5px;
}

/* ===== Fiche et pages d'un atelier, refonte A (20 oct. 2026, maquette fiche-centre.html) =====
   En-tête commun (nom de l'atelier en menu, onglets « Fiche » et « Pages du site »). Fiche : une
   section par sujet, explication à gauche, champs encadrés à droite. Pages : blocs qui s'ouvrent sur
   place, aperçu de 440 px à droite. Une colonne sur les petits écrans. */
/* Même largeur pour la fiche et les pages sur grand écran (élargie le 20 oct. 2026 : 1120 px
   paraissait trop fin au milieu de l'écran). */
.ct--fiche,
.pc.ct--pages {
	max-width: 1600px; /* 1600 px depuis le 20 oct. 2026 (1360 px avant) */
	margin: 0 auto;
}

/* Nom de l'atelier : il ouvre la liste des ateliers (même onglet pour l'atelier choisi). */
.ct-choix__bouton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
}

.ct-choix__bouton::-webkit-details-marker {
	display: none;
}

.ct-choix__bouton h1 {
	margin: 0;
}

.ct-choix__bouton .ic {
	width: 18px;
	height: 18px;
	color: var(--muted);
	transition: transform 0.2s ease;
}

.ct-choix[open] .ct-choix__bouton .ic {
	transform: rotate(180deg);
}

.ct-onglets {
	display: flex;
	gap: 4px;
	margin: 6px 0 22px;
	border-bottom: 1px solid var(--line);
}

.ct-onglets a {
	margin-bottom: -1px;
	padding: 10px 14px;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
}

.ct-onglets a:hover {
	color: var(--text);
}

.ct-onglets a[aria-current="page"] {
	border-color: var(--brand);
	color: var(--text);
}

/* Fiche : sections réglages */
.fc__lecture {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fc-section {
	scroll-margin-top: 90px; /* arrivée par #aller-<id> (initialiserAller) : la section ne passe pas sous la barre du haut */
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 40px;
	padding: 26px 0;
	border-top: 1px solid var(--line);
}

/* 16 nov. 2026 : colonne de gauche proportionnelle à la largeur de la fiche (20 %), entre 200 et 300 px :
   plus étroite sur un portable, 300 px seulement sur grand écran. Vaut pour toutes les fiches
   (vente, demande, contact, centre, réglages, statistiques). Sous 900 px, une seule colonne (règle plus bas). */
@media (min-width: 901px) {
	.fc-section {
		grid-template-columns: clamp(200px, 20%, 300px) minmax(0, 1fr);
		gap: clamp(24px, 2.5%, 40px);
	}
}

.fc .fc-section:first-child {
	padding-top: 4px;
	border-top: 0;
}

.fc-section__info h2 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 650;
}

.fc-section__info p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.fc-section__info .groupe__manque {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
}

.fc-carte {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* une colonne à la largeur de la carte, jamais à celle du contenu (23 oct. 2026) */
	gap: 18px;
	min-width: 0;
	padding: 20px;
	border-radius: var(--radius-small);
	background: var(--surface);
	box-shadow: var(--ombre), inset 0 0 0 1px var(--bord-carte);
}

.fc-champ {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.fc-champ label {
	font-size: 13px;
	font-weight: 600;
}

.fc-champ label small {
	color: var(--muted);
	font-size: 12px;
	font-weight: 400;
}

.fc-champ__manque {
	color: var(--c-encours);
	font-size: 12px;
	font-weight: 600;
}

/* Champs toujours encadrés : on voit tout de suite ce qui se modifie. */
.fc .champ {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	text-align: left;
}

.fc .champ:focus {
	border-color: var(--brand);
	outline: none;
	box-shadow: 0 0 0 3px var(--ring);
}

.fc .champ:disabled {
	opacity: 0.6;
}

.fc-champ--vide .champ {
	border-style: dashed;
	border-color: var(--c-encours);
}

.fc .slug-champ .champ {
	border: 0;
	box-shadow: none;
}

.fc-aide {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.45;
}

/* Boutons au pied d'une carte (Réglages, 10 nov. 2026). */
.fc-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

/* Libellé d'un champ qui n'est pas un <label> (aperçu du logo). */
.fc-champ__lib {
	font-size: 13px;
	font-weight: 600;
}

/* Réglages : apparence, logo et fichier dans les cartes des fiches. */
.fc .note,
.fc .themes-form__actions {
	margin: 0;
}

.fc .apercu-logo {
	justify-self: start;
}

.fc .champ--fichier {
	height: auto;
	min-height: 44px;
	padding: 6px;
}

.fc-grille2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.fc-grille2--cp {
	grid-template-columns: 160px minmax(0, 1fr);
}

/* Statut : quatre choix visibles, chacun dit ce qu'il fait sur le site. */
.fc-statuts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.fc-statut {
	position: relative;
	display: grid;
	align-content: start;
	gap: 3px;
	padding: 11px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	cursor: pointer;
}

.fc-statut input {
	position: absolute;
	opacity: 0;
}

.fc-statut b {
	font-size: 13.5px;
}

.fc-statut small {
	color: var(--muted);
	font-size: 12px;
	line-height: 1.35;
}

.fc-statut:has(input:checked) {
	border-color: var(--brand);
	background: var(--brand-soft);
}

.fc-statut:has(input:focus-visible) {
	box-shadow: 0 0 0 3px var(--ring);
}

.fc-statut:has(input:disabled) {
	cursor: default;
	opacity: 0.6;
}

/* Horaires : jour, choix Ouvert | Fermé, deux plages en heures. */
.fc-jours {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* largeur de la carte, pas celle du contenu (débordait sur téléphone) */
}

.fc-jour {
	display: grid;
	grid-template-columns: 96px auto minmax(0, 1fr);
	align-items: center;
	gap: 6px 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}

.fc-jour:last-child {
	border-bottom: 0;
}

/* Ouvert | Fermé (27 oct. 2026, maquette horaires.html, variante 2) : deux boutons radio, le choix retenu en blanc. */
.fc-etat {
	position: relative;
	display: inline-grid;
	grid-template-columns: 76px 76px; /* largeur fixe : la pastille glisse d'un bouton à l'autre, et le gras ne change pas la largeur */
	padding: 2px;
	border-radius: 10px;
	background: var(--surface-2);
}

/* Pastille blanche sous le choix retenu : elle glisse de « Fermé » (à gauche) à « Ouvert » (à droite), 27 oct. 2026. */
.fc-etat::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 2px;
	width: calc(50% - 2px);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.fc-etat:has(input[value="1"]:checked)::before {
	transform: translateX(100%);
}

/* Mode nuit : la pastille doit rester plus claire que le fond du sélecteur. */
:root[data-theme="sombre"] .fc-etat::before {
	background: var(--line-strong);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .fc-etat::before {
		background: var(--line-strong);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-etat::before {
		transition: none;
	}
}

.fc-etat input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.fc-etat span {
	position: relative; /* au-dessus de la pastille */
	display: block;
	padding: 6px 0;
	border-radius: 8px;
	color: var(--muted);
	font-size: 13.5px;
	text-align: center;
	cursor: pointer;
	transition: color 0.2s ease;
}

/* « Ouvert » retenu en vert, « Fermé » retenu en noir (27 oct. 2026 ; le rouge essayé faisait alerte). */
.fc-etat input:checked + span {
	color: var(--text);
	font-weight: 600;
}

.fc-etat input[value="1"]:checked + span {
	color: var(--ok);
}

.fc-etat input:focus-visible + span {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

.fc-jour__nom {
	font-weight: 600;
}

.fc-jour .ligne__erreur {
	grid-column: 1 / -1;
	margin: 0;
}

.fc-plages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
}

.fc .fc-plages .champ {
	width: 104px;
	height: 36px;
	padding: 0 8px;
}

/* Jour fermé : plus d'heures, « Fermé » est déjà dit par le choix. */
.fc-jour:has(.fc-etat input[value="0"]:checked) .fc-plages {
	display: none;
}

.fc-carte > [data-copier-lundi] {
	justify-self: start;
	max-width: 100%;
	height: auto;
	min-height: 36px;
	padding-top: 8px;
	padding-bottom: 8px;
	white-space: normal; /* texte long : il passe à la ligne au lieu de sortir de l'écran (téléphone) */
	text-align: left;
}

/* Services liés : à droite du champ, ce que l'identifiant active sur le site. */
.fc-service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	align-items: start;
	gap: 16px;
}

.fc-effet {
	margin-top: 22px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--neutral-soft);
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.fc-effet b {
	display: block;
	color: var(--text);
	font-size: 13px;
}

.fc-effet--ok::before {
	content: "● ";
	color: var(--c-traite);
}

/* 20 nov. 2026 (maquette messages-effet.html, variante C ; avant, A avec le contour de D) : ce qui manque
   ou ne marche pas, fond ambre très léger, titre ambre foncé, pastille « ! ». Couleurs tirées de --c-encours,
   donc justes en thème clair et sombre. */
.fc-effet:has(.fc-effet--manque) {
	background: color-mix(in srgb, var(--c-encours-bg) 70%, var(--neutral-soft));
}

.fc-effet b.fc-effet--manque {
	color: color-mix(in srgb, var(--c-encours) 60%, var(--text));
}

.fc-effet--manque::before {
	content: "!";
	display: inline-grid;
	place-items: center;
	width: 15px;
	height: 15px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--c-encours);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	vertical-align: 1px;
}

/* Zone sensible, encadrée de rouge (comme la « Danger Zone » des réglages GitHub). */
.fc-sensible {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-spam) 45%, transparent);
}

.fc-sensible p {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 13px;
}

/* Pages : liens à droite des onglets de page */
.s-choix__liens {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Pages : les blocs ; l'aperçu de la page est une fenêtre (2 nov. 2026 ; avant, dessous, aussi large que les blocs, 22 oct.,
   et avant encore, 440 px à droite). */
.pc-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 18px;
}

.pc-blocs {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* une colonne à la largeur de l'écran, jamais à celle du plus long résumé (26 oct. 2026) */
	gap: 12px;
	min-width: 0;
}

.pc-bloc {
	border-radius: var(--radius-small);
	background: var(--surface);
	box-shadow: var(--ombre), inset 0 0 0 1px var(--bord-carte);
	scroll-margin-top: 90px;
}

/* Bloc ouvert : liseré bleu sur tout le tour (3 nov. 2026). Dessiné au-dessus du contenu : en ombre intérieure, la bande du bas
   (fond opaque, collée en bas de l'écran) le recouvrait en bas et sur les côtés. */
.pc-bloc {
	position: relative;
}

.pc-bloc--ouvert::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 6;
	border: 2px solid var(--brand);
	border-radius: inherit;
	pointer-events: none;
}

/* Repère : quand un clic sur l'aperçu (ou sur une tâche « À faire ») amène à un bloc, un voile bleu clair le désigne puis
   s'estompe en 2,4 s ; il tient pendant le défilement et ne gêne pas les clics (3 nov. 2026). */
.pc-bloc--repere::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 6;
	border-radius: inherit;
	background: color-mix(in srgb, var(--brand) 16%, transparent);
	pointer-events: none;
	animation: pc-repere 2.4s ease-out forwards;
}

@keyframes pc-repere {
	0% {
		opacity: 0;
	}

	12%,
	45% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.pc-bloc__tete {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
}

.pc-bloc__num {
	display: grid;
	flex: none;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-deep);
	font-size: 12.5px;
	font-weight: 700;
}

.pc-bloc__txt {
	flex: 1;
	min-width: 0;
}

.pc-bloc__txt b {
	display: block;
	font-size: 15px;
}

.pc-bloc__txt small {
	display: block;
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pc-bloc__corps {
	display: grid;
	gap: 18px;
	padding: 18px 18px 20px;
	border-top: 1px solid var(--line);
}

.pc-bloc__corps[hidden] {
	display: none;
}

/* Pied d'un bloc (2 nov. 2026, maquette apercu-blocs.html, variante 3) : « Aperçu indicatif de la page » à gauche,
   « Terminé » à droite ; la ligne reste collée en bas de l'écran tant que le bloc est ouvert et plus haut que l'écran. */
.pc-bloc__pied {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 -18px -20px;
	padding: 12px 18px;
	border-top: 1px solid var(--line);
	border-radius: 0 0 var(--radius-small) var(--radius-small);
	background: var(--surface);
	box-shadow: 0 -10px 18px -12px rgba(0, 0, 0, 0.18);
}

.pc-bloc__pied [data-bloc-fermer] {
	margin-left: auto;
}

.pc-bloc__pied .ic {
	width: 16px;
	height: 16px;
}

.pc-apercu {
	min-width: 0;
}

.pc-apercu__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

/* Aperçu de la seule partie du bloc : barre repliée au départ, tout entière cliquable. */
.pc-partie {
	border-radius: 12px;
	background: var(--bg);
	box-shadow: inset 0 0 0 1px var(--line);
}

.pc-partie summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.pc-partie summary::-webkit-details-marker {
	display: none;
}

.pc-partie summary::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.pc-partie[open] summary::before {
	transform: rotate(45deg);
}

.pc-partie summary:hover {
	background: var(--brand-soft);
}

.pc-partie__corps {
	padding: 0 12px 12px;
}

.pc-partie .ps-legende {
	margin: 0 0 8px;
	font-size: 11.5px;
}

.pc-partie .pa-apercu {
	margin: 0;
	box-shadow: 0 0 0 1px var(--line);
}

.pc-partie .ps-nom {
	display: none;
}

/* Aperçu réduit à 440 px : mêmes parties que la page, tailles adaptées pour rester lisibles. */
.pc-apercu .pa-hero {
	height: 150px;
}

.pc-apercu .pa-hero__texte h2 {
	font-size: 24px;
}

.pc-apercu .pa-hero__texte p {
	font-size: 13px;
}

.pc-apercu .pa-intro {
	padding: 16px 18px;
}

.pc-apercu .pa-intro h3 {
	font-size: 17px;
}

.pc-apercu .pa-services {
	padding: 16px 18px 18px;
}

.pc-apercu .pa-services h3 {
	font-size: 17px;
}

.pc-apercu .pa-cartes {
	gap: 10px;
}

.pc-apercu .pa-carte {
	padding: 12px;
	font-size: 12.5px;
}

.pc-apercu .pa-carte h4 {
	font-size: 14px;
}

.pc-apercu .pa-carte img {
	height: 80px;
}

/* La partie en cours de modification reste encadrée dans l'aperçu. */
.s-zone--active {
	outline: 3px solid var(--brand);
	outline-offset: -3px;
}

@media (max-width: 900px) {
	.fc-section {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.fc-statuts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fc-service {
		grid-template-columns: minmax(0, 1fr);
	}

	.fc-effet {
		margin-top: 0;
	}
}

@media (max-width: 600px) {
	.fc-carte {
		padding: 16px;
	}

	.fc-grille2,
	.fc-grille2--cp {
		grid-template-columns: minmax(0, 1fr);
	}

	.fc-jour {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.fc-plages {
		grid-column: 1 / -1;
	}

	/* Téléphone (23 oct. 2026) : heures en deux lignes, « 09:00 à 12:30 », « puis », « 13:30 à 18:00 ». */
	.fc-plages {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 6px 8px;
	}

	.fc-plages__sep {
		grid-column: 1 / -1;
	}

	.fc .fc-plages .champ {
		width: 100%;
		min-width: 0;
	}

	.pc-bloc__tete {
		flex-wrap: wrap;
	}

	.pc-bloc__txt {
		flex-basis: calc(100% - 40px);
	}

	.ct-choix__bouton h1 {
		font-size: 24px;
	}
}

/* ===== Liste des ateliers en tableau (disposition A, 20 oct. 2026, maquette liste-centres.html) =====
   <ul>/<li> dessinés en grille : en-têtes toujours visibles, colonnes alignées, actions visibles.
   Moins de place : l'adresse de la page, puis le téléphone et les services, puis les en-têtes, la fiche
   et les actions secondaires se retirent. Base des futures listes du sitepro. */
.lt-carte {
	padding: 0;
	overflow: hidden;
	container-type: inline-size;
}

.lt {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lt > li {
	display: grid;
	grid-template-columns: var(--lt-colonnes);
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-top: 1px solid var(--line);
}

.lt--selection > li {
	grid-template-columns: 22px var(--lt-colonnes);
}

.lt > li[hidden] {
	display: none;
}

/* Arrivée des lignes : de haut en bas, rapide (0,18 s, 15 ms d'écart, 0,12 s au plus ; 0,25 s, 25 ms et 0,2 s avant le 2 nov. 2026), seulement
   l'opacité et un léger glissement : la page n'attend rien. Coupée si l'appareil demande moins d'animations. */
.lt > li {
	animation: lt-entree 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lt > li:nth-child(2) { animation-delay: 0.015s; }
.lt > li:nth-child(3) { animation-delay: 0.03s; }
.lt > li:nth-child(4) { animation-delay: 0.045s; }
.lt > li:nth-child(5) { animation-delay: 0.06s; }
.lt > li:nth-child(6) { animation-delay: 0.075s; }
.lt > li:nth-child(7) { animation-delay: 0.09s; }
.lt > li:nth-child(8) { animation-delay: 0.105s; }
.lt > li:nth-child(n + 9) { animation-delay: 0.12s; }

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

@media (prefers-reduced-motion: reduce) {
	.lt > li {
		animation: none;
	}
}

.lt > .lt__tete {
	margin: 0;
	padding-top: 11px;
	padding-bottom: 11px;
	border-top: 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.lt__tri {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.lt__tri::after {
	content: " ↕";
	opacity: 0.45;
}

.lt__tri[data-sens="asc"]::after {
	content: " ↑";
	opacity: 1;
}

.lt__tri[data-sens="desc"]::after {
	content: " ↓";
	opacity: 1;
}

.lt__tri:hover {
	color: var(--text);
}

.lt__ligne {
	cursor: pointer;
	transition: background 0.15s ease;
}

.lt__ligne:hover {
	background: var(--hover);
}

.lt__ligne.is-choisie {
	background: var(--brand-soft);
}

/* Cocher une ligne (ou tout) : le bleu apparaît d'un coup, sans fondu ; le fondu reste à l'arrivée du survol
   (4 nov. 2026, demande de l'utilisateur : le fondu de toutes les lignes à la fois faisait comme un flash). */
.lt__ligne:not(:hover),
.lt__ligne.is-choisie {
	transition: none;
}

.lt--selection .lt__ligne:not(.is-choisie):not(:hover) .case {
	opacity: 0.55;
}

.lt__c {
	min-width: 0;
}

/* Première colonne de chaque liste : point (ou initiales) puis nom et sous-ligne. */
.lt__c--nom,
.lt__c--contact,
.lt__c--client,
.lt__c--compte,
.lt__c--element {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lt__c--nom > span:last-child,
.lt__c--contact > span:last-child,
.lt__c--client > span:last-child,
.lt__c--compte > span:last-child,
.lt__c--element > span:last-child {
	min-width: 0; /* sinon une ville longue déborde sur la colonne suivante au lieu d'être coupée (…) */
}

.lt__lien {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.lt__c--nom small,
.lt__c--compte small {
	display: block;
	overflow: hidden;
	color: var(--muted);
	font-size: 12.5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lt__c--tel {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.lt__c--page {
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lt__c--services {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.lt__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 7px;
	background: var(--neutral-soft);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.lt__badge--ok {
	color: var(--text);
}

.lt__badge--ok::before {
	content: "●";
	color: var(--c-traite);
	font-size: 9px;
}

.lt__complet {
	color: var(--c-traite);
	font-size: 12.5px;
	font-weight: 600;
}

.lt__manque {
	color: var(--c-encours);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.lt__tete .lt__c--actions {
	text-align: right;
	white-space: nowrap;
}

.lt__c--actions {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
}

.lt__site .ic {
	width: 15px;
	height: 15px;
	margin: 0;
}

/* Colonnes de chaque liste en tableau (20 oct. 2026). Toute colonne a une largeur fixe ou en fr, jamais
   « auto » : sinon chaque ligne calcule la sienne et les colonnes se décalent. Les colonnes les moins
   utiles disparaissent quand la place manque ; chaque palier redonne la grille complète de la liste. */
.lt__c small {
	display: block;
	overflow: hidden;
	color: var(--muted);
	font-size: 12.5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lt__texte {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lt__c--ancien {
	color: var(--c-encours);
	font-weight: 600;
}

.lt__ligne--estompee {
	opacity: 0.6;
}

.lt__c--actions form {
	margin: 0;
}

.lt__bloque {
	overflow: hidden;
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lt > li .demande__ini {
	flex: none;
}

/* Ateliers */
.lt--centres { --lt-colonnes: minmax(170px, 1.5fr) 130px 130px minmax(150px, 1.2fr) minmax(200px, 1.4fr) 120px 150px; }

@container (max-width: 1100px) {
	.lt--centres { --lt-colonnes: minmax(170px, 1.5fr) 130px 130px minmax(200px, 1.4fr) 120px 150px; }
	.lt--centres .lt__c--page { display: none; }
}

@container (max-width: 860px) {
	.lt--centres { --lt-colonnes: minmax(150px, 1fr) 130px 120px 150px; }
	.lt--centres .lt__c--tel,
	.lt--centres .lt__c--services { display: none; }
}

/* Contacts */
.lt--contacts { --lt-colonnes: minmax(180px, 1.5fr) 130px minmax(130px, 1fr) 120px 120px 110px 90px; }
.lt--contacts.lt--sans-centre { --lt-colonnes: minmax(180px, 1.5fr) minmax(130px, 1fr) 120px 120px 110px 90px; }
/* Contacts du site (13 nov. 2026) : sans Immatriculation, avec Téléphone et E-mail. Sur grand écran, le
   téléphone n'est plus répété sous le nom ; sous 800px, les deux colonnes partent et il revient sous le nom. */
.lt--contacts.lt--contacts-site { --lt-colonnes: minmax(150px, 1fr) 110px 130px minmax(170px, 1.3fr) 120px 110px 90px; }
.lt--contacts-site .lt__c--email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt--contacts-site > li .lt__c--contact small { display: none; }

@container (max-width: 1000px) {
	.lt--contacts { --lt-colonnes: minmax(180px, 1.5fr) 130px 120px 120px 110px 90px; }
	.lt--contacts.lt--sans-centre { --lt-colonnes: minmax(180px, 1.5fr) 120px 120px 110px 90px; }
	.lt--contacts.lt--contacts-site { --lt-colonnes: minmax(150px, 1fr) 130px minmax(160px, 1.2fr) 120px 110px 90px; }
	.lt--contacts .lt__c--page { display: none; }
}

@container (max-width: 800px) {
	.lt--contacts,
	.lt--contacts.lt--sans-centre { --lt-colonnes: minmax(150px, 1fr) 120px 100px 90px; }
	.lt--contacts .lt__c--plaque,
	.lt--contacts .lt__c--centre { display: none; }
	.lt--contacts-site .lt__c--tel,
	.lt--contacts-site .lt__c--email { display: none; }
	.lt--contacts-site > li .lt__c--contact small { display: block; }
}

/* Ventes en ligne (colonne Statut ajoutée le 27 oct. 2026, 110 px avant « Reçue ») */
.lt--ventes { --lt-colonnes: minmax(170px, 1.4fr) 120px minmax(150px, 1.2fr) 90px 120px 150px 110px 100px 90px; }
.lt--ventes.lt--sans-centre { --lt-colonnes: minmax(170px, 1.4fr) minmax(150px, 1.2fr) 90px 120px 150px 110px 100px 90px; }

/* Dernière colonne (« Ouvrir » et le nombre de ventes) retirée quand la place manque (4 nov. 2026) : depuis l'ajout
   de « Statut », le tableau complet demande environ 1 290 px et la dernière colonne sortait de la carte, coupée.
   La ligne entière ouvre déjà la fiche, et le nombre de ventes est sous le titre de la page. Pas sur téléphone
   (560 px et moins), où « Ouvrir » reste l'action principale de la ligne. */
@container (min-width: 561px) and (max-width: 1290px) {
	.lt--ventes { --lt-colonnes: minmax(170px, 1.4fr) 120px minmax(150px, 1.2fr) 90px 120px 150px 110px 100px; }
	.lt--ventes.lt--sans-centre { --lt-colonnes: minmax(170px, 1.4fr) minmax(150px, 1.2fr) 90px 120px 150px 110px 100px; }
	.lt--ventes .lt__c--actions { display: none; }
}

@container (max-width: 1100px) {
	.lt--ventes { --lt-colonnes: minmax(170px, 1.4fr) 120px minmax(150px, 1.2fr) 90px 150px 110px 100px; }
	.lt--ventes.lt--sans-centre { --lt-colonnes: minmax(170px, 1.4fr) minmax(150px, 1.2fr) 90px 150px 110px 100px; }
	.lt--ventes .lt__c--rdv { display: none; }
}

@container (max-width: 860px) {
	.lt--ventes,
	.lt--ventes.lt--sans-centre { --lt-colonnes: minmax(150px, 1fr) 90px 150px 110px 100px; }
	.lt--ventes .lt__c--vehicule,
	.lt--ventes .lt__c--centre { display: none; }
}

/* Étape d'une vente : progression en trois traits (prix, rendez-vous, payée) et libellé dessous, pour ne plus
   ressembler aux pastilles du statut (27 oct. 2026, maquette ventes.html, C). Demande sans prix : traits orange. */
.etape-prog {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.etape-prog__traits {
	display: flex;
	gap: 3px;
}

.etape-prog__traits i {
	width: 22px;
	height: 4px;
	border-radius: 2px;
	background: var(--line-strong);
}

.etape-prog__traits i.on {
	background: var(--brand);
}

.etape-prog--paye .etape-prog__traits i.on {
	background: var(--ok);
}

.etape-prog--sans_tarif .etape-prog__traits i {
	background: var(--warn);
}

.etape-prog small {
	color: var(--muted);
	font-size: 12px;
}

/* En-tête de la fiche d'une vente : traits et libellé sur une ligne, à côté du nom. */
.etape-prog--tete {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.etape-prog--tete small {
	font-size: 13.5px;
	font-weight: 500;
}

/* Comptes */
.lt--comptes { --lt-colonnes: minmax(200px, 1.6fr) 170px minmax(150px, 1.2fr) 150px 170px 90px; }

@container (max-width: 900px) {
	.lt--comptes { --lt-colonnes: minmax(180px, 1fr) 170px 170px 90px; }
	.lt--comptes .lt__c--acces,
	.lt--comptes .lt__c--connexion { display: none; }
}

/* Corbeille */
.lt--corbeille { --lt-colonnes: minmax(200px, 2fr) minmax(150px, 1fr) 380px; }

@container (max-width: 760px) {
	.lt--corbeille { --lt-colonnes: minmax(0, 1fr) 380px; }
	.lt--corbeille .lt__c--jete { display: none; }
}

/* Téléphone : le nom, une étiquette, l'action principale (toutes les listes). */
@container (max-width: 560px) {
	.lt > li {
		gap: 10px;
		padding: 12px 14px;
	}

	.lt > .lt__tete .lt__c:not(.lt__c--actions),
	.lt__c--actions .btn:not(:first-child),
	.lt--centres .lt__c--fiche,
	.lt--contacts .lt__c--recu,
	.lt--ventes .lt__c--prix,
	.lt--ventes .lt__c--recu,
	.lt--ventes .lt__c--statut,
	.lt--comptes .lt__c--role {
		display: none;
	}

	.lt--centres,
	.lt--contacts,
	.lt--contacts.lt--sans-centre,
	.lt--ventes,
	.lt--ventes.lt--sans-centre,
	.lt--comptes { --lt-colonnes: minmax(0, 1fr) auto auto; }

	.lt--corbeille { --lt-colonnes: minmax(0, 1fr); }

	.lt--corbeille .lt__c--actions {
		flex-wrap: wrap;
		justify-content: flex-start;
		grid-column: 1 / -1;
	}

	.lt--corbeille .lt__c--actions .btn {
		display: inline-flex;
	}

	.lt > .lt__tete {
		grid-template-columns: 22px minmax(0, 1fr);
	}

	.lt:not(.lt--selection) > .lt__tete {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===== Fiches d'un contact et d'une vente, disposition A (20 oct. 2026, maquette fiche-contact-vente.html) =====
   Mêmes sections que la fiche d'un centre (.fc-section). En plus : le message du client en citation,
   et pour une vente, trois chiffres et la frise des étapes du devis en ligne. */
.fc-message {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--neutral-soft);
	font-size: 15px;
	line-height: 1.55;
}

.fc-chiffres {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.fc-chiffre {
	min-width: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--neutral-soft);
}

.fc-chiffre small {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.fc-chiffre b {
	display: block;
	margin-top: 4px;
	overflow: hidden;
	font-size: 21px;
	letter-spacing: -0.01em;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fc-chiffre span {
	color: var(--muted);
	font-size: 12.5px;
}

.fc-etapes {
	display: flex;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.fc-etapes li {
	position: relative;
	flex: 1;
	padding-top: 22px;
	color: var(--muted);
	font-size: 12.5px;
	text-align: center;
}

.fc-etapes li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 50%;
	z-index: 1;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--line-strong);
}

.fc-etapes li + li::after {
	content: "";
	position: absolute;
	top: 10px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--line-strong);
}

.fc-etapes__faite {
	color: var(--text) !important;
	font-weight: 600;
}

.fc-etapes__faite::before,
.fc-etapes__faite + .fc-etapes__faite::after {
	background: var(--c-traite) !important;
}

.fc-etapes small {
	display: block;
	color: var(--muted);
	font-weight: 400;
}

@media (max-width: 600px) {
	.fc-chiffres {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===== Statistiques, disposition A (20 oct. 2026, maquette statistiques.html) =====
   Mêmes sections que les fiches (.fc-section). Chiffres en blocs gris, lignes jour par jour avec échelle,
   tableau par centre en liste triable (.lt), barres sur deux colonnes. Une colonne sur les petits écrans. */
.stats-page {
	max-width: 1600px;
	margin: 0 auto;
}

.stats-compare {
	margin: -4px 0 14px;
	color: var(--muted);
	font-size: 13.5px;
}

.stats-fc .fc-section__info .stats-export {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: var(--brand-deep);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.stats-fc .stats-export:hover {
	text-decoration: underline;
}

.stats-fc .stats-export .ic {
	width: 15px;
	height: 15px;
}

.stats-chiffres-grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.stats-chiffre {
	min-width: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--neutral-soft);
}

.stats-chiffre small {
	display: block;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
}

.stats-chiffre b {
	display: block;
	margin-top: 4px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.stats-chiffre span {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 12.5px;
}

.stats-evo {
	font-weight: 650;
	color: var(--muted);
}

/* Double classe (13 nov. 2026) : « .stats-chiffre span » (gris) l'emportait, les écarts des cartes restaient gris. */
.stats-evo.stats-evo--hausse { color: #15803d; }
.stats-evo.stats-evo--baisse { color: #b91c1c; }
:root[data-theme="sombre"] .stats-evo--hausse { color: #34d399; }
:root[data-theme="sombre"] .stats-evo--baisse { color: #f87171; }

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .stats-evo--hausse { color: #34d399; }
	:root[data-theme="auto"] .stats-evo--baisse { color: #f87171; }
}

.stats-fc .stats-barres {
	padding: 0;
}

.stats-fc .stats-barres li {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 36px;
}

.stats-fc .stats-vide {
	margin: 0;
	padding: 0;
}

/* Jour par jour */
.stats-courbes__centre {
	justify-self: start;
}

/* Cinq chiffres : sur un écran étroit, la rangée défile au lieu d'écraser les libellés. Largeur de son
   contenu (22 oct. 2026 : la rangée s'étirait jusqu'au bout de la carte, vide à droite). */
.stats-courbes .segments {
	justify-self: start;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.stats-courbes .segments::-webkit-scrollbar {
	display: none;
}

.stats-courbes .segments .pilule {
	flex: none;
	padding: 0 12px;
}

.stats-graphe {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 4px 10px;
}

.stats-graphe__echelle {
	position: relative;
	height: 240px;
	color: var(--muted);
	font-size: 11.5px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.stats-graphe__echelle span {
	position: absolute;
	right: 0;
	transform: translateY(-50%);
}

.stats-graphe__zone {
	position: relative;
	height: 240px;
	cursor: crosshair;
	touch-action: pan-y;
}

.stats-graphe__zone svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.stats-graphe__axe {
	display: flex;
	grid-column: 2;
	justify-content: space-between;
	color: var(--muted);
	font-size: 11.5px;
}

.courbes__grille--zero {
	stroke: var(--line-strong);
}

.courbes__colonne {
	fill: var(--line-strong);
	opacity: 0;
}

.courbes__colonne.is-visible {
	opacity: 1;
}

.teinte--total {
	--teinte: var(--brand);
}

.courbes__pt {
	fill: var(--surface);
	stroke: var(--teinte);
	stroke-width: 2;
	transform-box: fill-box;
	transform-origin: center;
}

.is-anime .courbes__pt {
	opacity: 0;
	animation: courbes-point 0.25s ease-out forwards;
}

@keyframes courbes-point {
	from { opacity: 0; transform: scale(0.4); }
	to { opacity: 1; transform: none; }
}

.courbes__bulle-ligne--vide,
.courbes__bulle-ligne--compare {
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	.is-anime .courbes__trait,
	.is-anime .courbes__pt {
		animation: none;
		stroke-dashoffset: 0;
		opacity: 1;
	}
}

/* Par centre : liste triable, chiffres alignés à droite, écart en dessous, total à part. */
.stats-lt-carte {
	gap: 0;
	padding: 0;
	overflow: hidden;
	container-type: inline-size;
}

.lt--stats {
	--lt-colonnes: minmax(130px, 1.4fr) repeat(6, minmax(64px, 1fr)) minmax(80px, 1fr) minmax(64px, 0.8fr);
}

.lt--stats > li > .lt__c--n {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.lt--stats .lt__c--n small {
	display: block;
	font-size: 11.5px;
}

.lt--stats .stats-zero {
	color: var(--muted);
}

.lt--stats-total > li {
	border-top: 1px solid var(--line-strong);
	font-weight: 650;
	animation: none; /* 20 oct. 2026 : plus de fond gris, il effaçait le bas de la carte */
}

/* Écran moyen : sans « Sans prix », « Rendez-vous » et « Montant ». Téléphone : sans « Transfo. » non plus,
   titres des colonnes gardés (la règle commune des listes les cache). */
@container (max-width: 820px) {
	.lt--stats { --lt-colonnes: minmax(100px, 1.4fr) repeat(5, minmax(48px, 1fr)); }
	.lt.lt--stats > li .lt__c.lt__c--etroit { display: none; }
}

@container (max-width: 560px) {
	.lt--stats { --lt-colonnes: minmax(86px, 1.3fr) repeat(4, minmax(40px, 1fr)); }
	.lt.lt--stats > .lt__tete { grid-template-columns: var(--lt-colonnes); font-size: 11px; }
	.lt.lt--stats > .lt__tete .lt__c { display: block; }
	.lt.lt--stats > li .lt__c.lt__c--etroit,
	.lt.lt--stats > li .lt__c.lt__c--transfo { display: none; }
	.lt.lt--stats > li { gap: 8px; padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 900px) {
	.stats-chiffres-grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	

	.stats-chiffre b {
		font-size: 22px;
	}
}

/* Appels, variante A (22 oct. 2026) : tous les centres, une colonne par endroit du site, carré de couleur
   devant chaque endroit. */
.stats-appels__tete {
	display: grid;
	gap: 12px;
	padding: 18px 20px 16px;
}

.stats-appels__total {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.stats-appels__total b {
	color: var(--text);
	font-size: 15px;
}

.stats-appels__legende {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.stats-appels__legende div {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--neutral-soft);
}

.stats-appels__legende dt {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
}

.stats-appels__legende dd {
	margin: 3px 0 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.4;
}

@media (max-width: 900px) {
	.stats-appels__legende {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.lt--appels .stats-zero {
	color: var(--muted);
}

.lt--appels {
	--lt-colonnes: minmax(130px, 1.4fr) repeat(4, minmax(80px, 1fr)) minmax(64px, 0.7fr);
}

.lt--appels > li > .lt__c--n {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-variant-numeric: tabular-nums;
}

/* Appels : ligne d'un centre qui se déplie sur ses pages (27 oct. 2026, maquette appeler.html, variante 3).
   Chevron devant le nom, fond grisé au survol, main au pointeur ; le détail s'ouvre en glissant
   (hauteur 0fr vers 1fr) et le chevron tourne. */
.lt-depli {
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.lt-depli:hover,
.lt-depli[aria-expanded="true"] {
	background: var(--hover);
}

.lt-depli:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: -2px;
}

.lt--appels > li > .lt__c:first-child {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.lt-depli__chevron,
.lt-depli__vide {
	flex: none;
	width: 14px;
	color: var(--muted);
	transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1), color 0.15s ease;
}

.lt-depli:hover .lt-depli__chevron {
	color: var(--text);
}

.lt-depli[aria-expanded="true"] .lt-depli__chevron {
	transform: rotate(90deg);
	color: var(--text);
}

.lt.lt--appels > li.lt-detail {
	display: block;
	padding: 0;
	border-top: 0;
	animation: none;
}

.lt-detail__corps {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.lt-detail__corps > div {
	overflow: hidden;
}

.lt-detail.est-ouvert .lt-detail__corps {
	grid-template-rows: 1fr;
}

.lt-detail__pages {
	margin: 0;
	padding: 2px 18px 10px 58px;
	list-style: none;
	background: var(--hover);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lt-detail.est-ouvert .lt-detail__pages {
	opacity: 1;
}

.lt-detail__pages li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 220px) 48px;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	border-top: 1px solid var(--line);
	font-size: 13px;
}

.lt-detail__pages li:first-child {
	border-top: 0;
}

.lt-detail__page small {
	margin-left: 6px;
	color: var(--muted);
	font-size: 12px;
}

.lt-detail__endroit {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--muted);
}

.lt-detail__pages b {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

@container (max-width: 560px) {
	.lt-detail__pages { padding: 2px 12px 10px 30px; }
	.lt-detail__pages li { grid-template-columns: minmax(0, 1fr) 36px; }
	.lt-detail__endroit { display: none; }
	.lt-detail__page small { display: block; margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.lt-detail__corps,
	.lt-detail__pages,
	.lt-depli__chevron {
		transition: none;
	}
}

.stats-origine {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 3px;
	background: var(--o);
}

.stats-origine--1 { --o: #1aa7ec; }
.stats-origine--2 { --o: #16a34a; }
.stats-origine--3 { --o: #7c3aed; }
.stats-origine--4 { --o: #94a3b8; }

@container (max-width: 560px) {
	.lt--appels { --lt-colonnes: minmax(80px, 1.2fr) repeat(4, minmax(38px, 1fr)) 40px; }
	.lt.lt--appels > .lt__tete { grid-template-columns: var(--lt-colonnes); font-size: 10.5px; }
	.lt.lt--appels > .lt__tete .lt__c { display: flex; }
	/* Téléphone : les carrés de couleur seuls ; la phrase au-dessus du tableau sert de légende. */
	.lt--appels .stats-origine__lib { display: none; }
	.lt.lt--appels > li { gap: 6px; padding: 10px 12px; font-size: 13px; }
}

/* ===== Code de connexion en 6 cases (23 oct. 2026, maquette code.html, variante B) =====
   Un seul champ, invisible, posé sur 6 cases dessinées (app.js) ; sans JavaScript, le champ s'affiche. */
.code-cases {
	position: relative;
	display: flex;
	gap: 10px;
	margin: 4px 0 2px;
}

.code-case {
	display: none;
}

.code-cases__champ {
	width: 100%;
	height: 60px;
	padding: 0 16px;
	border: 1.5px solid var(--line-strong);
	border-radius: 14px;
	background: var(--surface);
	color: var(--text);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-align: center;
}

.code-cases--js .code-case {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 60px;
	border: 1.5px solid var(--line-strong);
	border-radius: 14px;
	background: var(--surface);
	color: var(--text);
	font-size: 26px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.code-cases--js .code-cases__champ {
	position: absolute;
	inset: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: transparent;
	caret-color: transparent;
	opacity: 0;
	cursor: text;
}

.code-case.is-plein {
	border-color: var(--text);
	transform: translateY(-1px);
}

.code-case.is-active {
	border-color: var(--brand);
	box-shadow: 0 0 0 4px var(--ring);
}

/* Curseur clignotant dans la case en cours. */
.code-case.is-active:not(.is-plein)::after {
	content: "";
	width: 2px;
	height: 28px;
	background: var(--brand);
	animation: code-curseur 1s steps(1) infinite;
}

@keyframes code-curseur {
	50% { opacity: 0; }
}

/* Code refusé par le serveur : cases rouges, petit tremblement. */
.code-cases.is-erreur .code-case {
	border-color: var(--c-spam);
	animation: code-secoue 0.3s;
}

@keyframes code-secoue {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
	.code-case,
	.code-cases.is-erreur .code-case,
	.code-case.is-active:not(.is-plein)::after {
		animation: none;
		transition: none;
	}
}

/* ===== Historique des suppressions et modifications (23 oct. 2026, maquette historique.html, présentation A) ===== */
.historique-outils {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0 0 16px;
}

.historique-note {
	margin: 0 0 0 auto;
	max-width: 520px;
	color: var(--muted);
	font-size: 13px;
}

.lt--historique {
	--lt-colonnes: 110px minmax(130px, 0.8fr) minmax(170px, 1.1fr) 200px minmax(240px, 2fr);
}

.historique-date b,
.historique-element b,
.historique-element a {
	display: block;
	font-weight: 600;
}

/* Élément qui existe encore : lien vers sa fiche. */
.historique-element a {
	color: var(--text);
	text-decoration: none;
}

.historique-element a:hover {
	color: var(--brand-deep);
	text-decoration: underline;
}

.historique-date small,
.historique-element small {
	color: var(--muted);
	font-size: 12.5px;
}

.historique-par {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

/* Initiale du compte : même couleur que dans la liste des Comptes, en plus petit. */
.historique-par .demande__ini {
	flex: none;
	width: 30px;
	height: 30px;
	font-size: 12px;
}

.historique-detail {
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.historique-detail ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.historique-detail del {
	opacity: 0.75;
}

.historique-detail b {
	color: var(--text);
	font-weight: 600;
}

@container (max-width: 900px) {
	.lt--historique { --lt-colonnes: 100px minmax(0, 1fr) 180px; }
	.lt--historique .lt__c--par,
	.lt--historique .lt__c--detail { display: none; }
}

@container (max-width: 560px) {
	.lt.lt--historique > .lt__tete { display: none; }
	.lt--historique { --lt-colonnes: 80px minmax(0, 1fr); }
	.lt--historique > li > .lt__c:nth-child(4) { grid-column: 2; }
}

/* ===== Téléphone (23 oct. 2026, maquette mobile.html, appliquée à la demande de l'utilisateur) ===== */

/* Filtres des listes Contacts et Ventes : sur ordinateur, le bloc n'existe pas pour la mise en page. */
.filtres-repli,
.filtres-repli__corps {
	display: contents;
}

.filtres-repli__bouton {
	display: none;
}

@media (max-width: 560px) {
	/* 1. Listes : nom et détail sur une ligne chacun, statut à droite, flèche ; la ligne entière ouvre la fiche, plus de bouton « Ouvrir » ou « Fiche ». */
	.lt:not(.lt--corbeille) > li.lt__ligne .lt__c--actions { display: none; }
	.lt--contacts, .lt--contacts.lt--sans-centre, .lt--ventes, .lt--ventes.lt--sans-centre, .lt--centres, .lt--comptes { --lt-colonnes: minmax(0, 1fr) auto; }
	.lt > li { gap: 10px; padding: 12px 14px; }
	.lt > li .lt__lien, .lt > li .lt__c > span > a, .lt > li small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.lt:not(.lt--corbeille) > li.lt__ligne { position: relative; padding-right: 30px; }
	.lt:not(.lt--corbeille) > li.lt__ligne::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 1.8px solid var(--muted); border-right: 1.8px solid var(--muted); transform: rotate(45deg); }

	/* 2. Onglets de statut : fondu à droite qui montre que la rangée défile. */
	.onglets-statut { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); padding-right: 28px; }

	/* 3. Filtres repliés derrière « Filtres » (avec JavaScript ; sans, les menus restent visibles). */
	.js .filtres-repli { display: block; width: 100%; border-radius: 14px; background: var(--surface); box-shadow: var(--ombre), inset 0 0 0 1px var(--bord-carte); }
	.js .filtres-repli__bouton { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
	.js .filtres-repli__bouton small { overflow: hidden; margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
	.js .filtres-repli__bouton::after { content: ""; flex: none; width: 7px; height: 7px; margin: -3px 2px 0 0; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
	.js .filtres-repli__bouton[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
	.js .filtres-repli__corps { display: none; }
	.js .filtres-repli__bouton[aria-expanded="true"] + .filtres-repli__corps { display: grid; gap: 12px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }

	/* 4. Fiches : un seul retrait (la carte), petite icône, libellé au-dessus de la valeur. */
	.fc-carte { padding: 14px; }
	.fc-carte .infos { padding: 0; }
	.info { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; padding: 10px 0; }
	.info__ic { grid-row: span 2; width: 28px; height: 28px; }
	.info__lib { font-size: 12.5px; }

	/* 4 bis. Suivi : la barre de statut prend toute la largeur de la carte, libellés moins serrés (remarque de l'utilisateur). */
	.fc-carte .statuts-grands { margin: 0; padding: 5px; }
	.fc-carte .st-btn { gap: 6px; padding: 0 8px; font-size: 14.5px; }
	.fc-carte .st-btn > .ic { width: 17px; height: 17px; }
	.fc-carte .statut-pied { margin: 0; }

	/* 5. « À faire » des Pages du site : texte sur toute la largeur, bouton dessous. */
	.s-tache { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; }
	.s-tache__txt { flex: 1 1 calc(100% - 42px); }
	.s-tache .btn { margin-left: 42px; }

	/* 6. Corbeille : sans pointillés, deux boutons à parts égales. */
	.carte--pointilles { border: 0; }
	.lt--corbeille .lt__c--actions { display: flex; gap: 8px; }
	.lt--corbeille .lt__c--actions .btn, .lt--corbeille .lt__c--actions form { flex: 1; }
	.lt--corbeille .lt__c--actions form .btn { width: 100%; }

	/* 7. Réglages : champs encadrés comme dans les fiches, bouton de fichier au style du sitepro. */
	.groupe .ligne { display: grid; gap: 6px; }
	.groupe .ligne .champ { height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); text-align: left; }
	.groupe input[type=file] { width: 100%; font-size: 13px; color: var(--muted); }
	.groupe input[type=file]::file-selector-button { margin-right: 10px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; }
}

/* ===== Pages du site : aperçu indicatif en schéma (23 oct. 2026, maquette pages-site.html, « schéma avec titres ») =====
   Couleurs du site adoucies ; tous les textes de la page en clair (demande de l'utilisateur : sinon on ne sait
   pas ce qui sera écrit) ; texte commun ou automatique en gris foncé (--commun), texte écrit pour le centre
   surligné en vert (.pa-perso) ; photos réelles. Fond toujours clair : c'est le site, pas le sitepro. */

.ps-tete {
	display: grid;
	gap: 2px;
}

.ps-tete b {
	font-size: 15px;
}

.ps-tete small {
	color: var(--muted);
	font-size: 12.5px;
}

.ps-legende {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 6px 0 10px;
	color: var(--muted);
	font-size: 12.5px;
}

.ps-legende i {
	display: inline-block;
	width: 26px;
	height: 9px;
	margin-right: 6px;
	border-radius: 3px;
	vertical-align: middle;
}

.ps-legende__v {
	background: rgba(34, 197, 94, 0.4);
}

.ps-legende__g {
	background: #e3e7ed;
}

/* « ® » en exposant sans agrandir l'interligne, comme sur le site (26 oct. 2026). */
.pa-apercu--schema sup {
	position: relative;
	top: -0.5em;
	font-size: 0.75em;
	line-height: 0;
	vertical-align: baseline;
}

.pa-apercu--schema {
	--commun: #4a5465;
	--barre: #c9d6e6;
	--titre-bleu: #2b9bd6;
	--texte: #2e3542;
	--surligne: #d4f3de;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pa-apercu--schema .pa-hero,
.pa-apercu--schema .pa-intro,
.pa-apercu--schema .pa-services,
.pa-apercu--schema .ps-zone,
.pa-apercu--schema .ps-auto {
	position: relative;
}

.pa-apercu--schema .pa-hero img {
	opacity: 0.8;
}

.pa-apercu--schema .pa-hero__texte h2,
.pa-apercu--schema .pa-hero__texte p {
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Nom de chaque partie */
.ps-nom {
	position: absolute;
	top: 8px;
	left: 10px;
	z-index: 3;
	padding: 2px 8px;
	border: 1px solid #c9d0da;
	border-radius: 999px;
	background: #ffffff;
	color: #5b6577;
	font: 600 10.5px system-ui, sans-serif;
}

/* Parties automatiques (pas cliquables) et leur origine */
.ps-auto--marine {
	--commun: rgba(255, 255, 255, 0.82);
	--barre: rgba(255, 255, 255, 0.28);
	--titre-bleu: #7cc8f0;
	--texte: #ffffff;
	--surligne: #2e7d4f;
	background: #22394b;
	color: #ffffff;
}

.ps-auto--bleu {
	--commun: #ffffff;
	--barre: rgba(255, 255, 255, 0.5);
	background: #5fbcec;
	color: #ffffff;
}

.ps-auto--gris {
	background: #eef1f4;
}

.ps-auto__tag {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(13, 22, 48, 0.7);
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 600;
}

.ps-menu {
	display: flex;
	justify-content: center;
	gap: 18px;
	padding: 10px;
	background: #3442a6;
}

.ps-menu span {
	color: #7cc8f0;
	font-size: 10.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ps-menu span.is-actif {
	color: #ffffff;
}

.ps-infos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: center;
	padding: 22px 40px;
}

.ps-infos__nom {
	display: block;
	margin-bottom: 10px;
	color: var(--titre-bleu);
	font-size: 18px;
}

.ps-btn {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 8px;
	background: #7fcaf2;
	color: #ffffff;
	font-size: 12px;
}

.ps-plan {
	display: grid;
	place-items: center;
	height: 150px;
	border-radius: 18px;
	background: #dde9da;
	color: #6f8a6b;
	font-size: 12px;
}

.ps-zone {
	padding: 26px 30px 22px;
}

.ps-bleu {
	background: #eef4ff;
}

.ps-h {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 12px;
	color: var(--titre-bleu);
	font-size: 20px;
	text-align: center;
}

.ps-h--gauche {
	margin-left: 0;
	text-align: left;
}

.ps-h--noir {
	color: #2e3542;
}

.ps-h--marine {
	color: #2f3f9a;
}

.ps-deux {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ps-etape {
	--commun: rgba(255, 255, 255, 0.85);
	--barre: rgba(255, 255, 255, 0.3);
	--titre-bleu: #8ad3f7;
	--texte: #ffffff;
	--surligne: #2e7d4f;
	padding: 14px;
	border-radius: 14px;
	background: #2f4c60;
	text-align: center;
}

.ps-etape > b,
.ps-blanche > b {
	display: block;
	margin-bottom: 8px;
	color: var(--titre-bleu);
	font-size: 15px;
}

.ps-blanche {
	padding: 14px;
	border: 1px solid #d6e2ef;
	border-radius: 14px;
	background: #ffffff;
	text-align: center;
}

.ps-blanche > strong {
	display: block;
	margin-bottom: 8px;
	color: #2e3542;
	font-size: 13px;
}

.ps-col2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.ps-faq {
	background: #eef1f4;
	text-align: center;
}

.ps-q {
	max-width: 520px;
	margin: 0 auto 4px;
	padding: 10px 14px;
	border: 1px solid #d6e2ef;
	background: #ffffff;
	color: #2f3f9a;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.ps-petit {
	margin: 8px 0 0;
	color: #66708a;
	font-size: 12px;
	text-align: center;
}

.ps-devis,
.ps-appel,
.ps-avis {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 22px;
}

.ps-devis b {
	color: var(--titre-bleu);
	font-size: 17px;
	text-transform: uppercase;
}

.ps-devis div {
	display: flex;
}

.ps-devis div span {
	width: 150px;
	padding: 8px 10px;
	border-radius: 12px 0 0 12px;
	background: #edf0f3;
	color: #7a838c;
	font-size: 12px;
}

.ps-devis div em {
	padding: 8px 12px;
	border-radius: 0 12px 12px 0;
	background: #7fcaf2;
	color: #ffffff;
	font-size: 12px;
	font-style: normal;
}

.ps-devis i {
	color: #7cc8f0;
	font-style: normal;
	font-weight: 600;
}

.ps-appel b {
	font-size: 15px;
	text-transform: uppercase;
}

.ps-appel span {
	padding: 5px 10px;
	border-radius: 6px;
	background: #ffffff;
	color: #1aa7ec;
	font-size: 11px;
	text-transform: uppercase;
}

.ps-avis b {
	color: #2e3542;
	font-size: 19px;
}

.ps-avis__note {
	padding: 5px 12px;
	border-radius: 10px;
	background: #f3f5f8;
	color: var(--commun);
	font-size: 12px;
}

.ps-avis__cartes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	width: 100%;
}

.ps-avis__cartes span {
	display: grid;
	place-items: center;
	height: 60px;
	border-radius: 10px;
	background: #f3f5f8;
	color: #9aa3b2;
	font-size: 12px;
}

.ps-form {
	display: grid;
	gap: 6px;
	max-width: 360px;
	margin: 0 auto;
	padding: 22px;
}

.ps-form b {
	color: var(--titre-bleu);
	font-size: 17px;
	text-align: center;
}

.ps-form span {
	padding: 4px 8px;
	background: #ffffff;
	color: #9aa3b2;
	font-size: 11.5px;
}

.ps-form .ps-form__haut {
	height: 44px;
}

.ps-form em {
	padding: 5px;
	background: #7fcaf2;
	color: #ffffff;
	font-size: 12px;
	font-style: normal;
	text-align: center;
}

/* Cartes « Nos services » de l'accueil */
.pa-apercu--schema .pa-services {
	padding-top: 34px;
}

.pa-apercu--schema .pa-services h3 {
	color: var(--titre-bleu);
	font-size: 18px;
}

.pa-apercu--schema .pa-carte {
	--commun: #ffffff;
	--barre: rgba(255, 255, 255, 0.55);
	--texte: #ffffff;
	--surligne: #2e7d4f;
	background: #74c6ef;
}

.pa-apercu--schema .pa-carte__bouton {
	padding: 4px 10px;
	border: 1px solid #ffffff;
	border-radius: 8px;
	color: #ffffff;
	font-size: 12px;
}

.pa-apercu--schema .pa-intro {
	padding-top: 30px;
}

.pa-apercu--schema .pa-intro h3 {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 10px;
	color: var(--titre-bleu);
}

/* Textes : tous en clair (commun ou automatique en gris foncé), titres dans les couleurs du site */
.pa-apercu--schema p,
.pa-apercu--schema li,
.pa-apercu--schema small,
.pa-apercu--schema .ps-txt {
	color: var(--commun);
	font-size: 12.5px;
	line-height: 1.45;
}

.pa-apercu--schema .ps-txt p {
	margin: 0 0 8px;
}

.pa-apercu--schema b .ps-txt,
.pa-apercu--schema h2 .ps-txt,
.pa-apercu--schema h3 .ps-txt,
.pa-apercu--schema h4 .ps-txt,
.pa-apercu--schema h2.ps-txt,
.pa-apercu--schema h3.ps-txt,
.pa-apercu--schema h4.ps-txt {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.pa-apercu--schema .ps-q {
	margin-bottom: 6px;
}

.pa-apercu--schema .ps-q b {
	display: block;
	margin-bottom: 4px;
}

.pa-apercu--schema .ps-q .ps-txt p {
	color: var(--commun);
	font-weight: 400;
}

.pa-apercu--schema .ps-deux--suite {
	margin-top: 16px;
}

.pa-apercu--schema .pa-carte h4,
.pa-apercu--schema .ps-appel b {
	color: #ffffff;
}

.pa-apercu--schema .ps-liste {
	margin: 6px 0 8px;
	padding-left: 18px;
}

.pa-apercu--schema .ps-liste li {
	color: var(--titre-bleu);
	font-weight: 600;
}

.pa-apercu--schema .ps-infos p {
	margin: 0 0 8px;
	font-size: 12px;
}

.pa-apercu--schema .ps-infos p b {
	color: #ffffff;
}

.pa-apercu--schema .pa-hero__texte p,
.pa-apercu--schema .pa-hero__texte h2 {
	color: #ffffff;
}

/* Texte écrit pour le centre : en clair, surligné en vert */
.pa-apercu--schema .pa-perso,
.pa-apercu--schema .pa-perso *,
.pa-apercu--schema .pa-perso p {
	color: var(--texte);
	background-image: none;
}

.pa-apercu--schema .pa-perso,
.pa-apercu--schema .pa-perso p {
	background-color: var(--surligne);
	box-shadow: 0 0 0 3px var(--surligne);
	border-radius: 3px;
}

.pa-apercu--schema h2.pa-perso,
.pa-apercu--schema .pa-hero__texte .pa-perso {
	color: #ffffff;
}

.pa-apercu--schema .ps-petit {
	color: #66708a;
	background: none;
}

@media (max-width: 700px) {
	.ps-infos,
	.ps-col2,
	.ps-deux {
		grid-template-columns: 1fr;
	}
}

/* Petit chevron toujours présent à droite du bouton d'un bloc (3 nov. 2026), aussi sur téléphone. */
.pc-bloc__tete [data-bloc]::after {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s var(--ease);
}

/* Blocs : toute la ligne d'en-tête ouvre le bloc ; au survol (souris seulement), elle s'éclaire et le
   bouton passe en bleu avec une flèche. Sur téléphone et tablette, rien ne change (23 oct. 2026). */
@media (hover: hover) {
	.pc-bloc__tete {
		cursor: pointer;
		border-radius: inherit;
		transition: background-color 0.15s ease;
	}

	.pc-bloc:not(.pc-bloc--ouvert) .pc-bloc__tete:hover {
		background: color-mix(in srgb, var(--brand) 6%, transparent);
	}

	.pc-bloc__tete [data-bloc] {
		transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}

	.pc-bloc:not(.pc-bloc--ouvert) .pc-bloc__tete:hover [data-bloc] {
		border-color: var(--brand);
		background: var(--brand);
		color: #ffffff;
	}

	/* Au survol, seul le chevron bouge : le bouton ne change pas de taille et le texte ne se déplace pas (3 nov. 2026). */
	.pc-bloc:not(.pc-bloc--ouvert) .pc-bloc__tete:hover [data-bloc]::after {
		transform: translateX(3px) rotate(-45deg);
	}
}

/* ===== Barre « Modifications non enregistrées » : sombre en thème clair, claire en thème sombre,
   bouton « Enregistrer » vert (26 oct. 2026, maquette couleur-barre.html, « Sombre, bouton vert ») =====
   Le bouton se confondait avec les autres boutons bleus. Essais : bleu, vert, marine ; choix de
   l'utilisateur : sombre comme les notifications (proche du fond du mode nuit) en thème clair, et
   l'inverse, claire, en thème sombre. Seul « Enregistrer » est en couleur ; point clair devant. */
.barre-enregistrer {
	background: #141824;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

.barre-enregistrer .btn--primaire,
.barre-enregistrer .btn--primaire:hover:not(:disabled) {
	border-color: transparent;
	background: #16a34a;
	box-shadow: none;
	color: #ffffff;
	font-weight: 700;
}

.barre-enregistrer .btn--primaire:hover:not(:disabled) {
	background: #15803d;
}

.barre-enregistrer .btn--discret,
.barre-enregistrer .btn--discret:hover {
	color: #cfd6e4;
}

.barre-enregistrer .btn--discret:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

/* Thème sombre : pastille claire. */
:root[data-theme="sombre"] .barre-enregistrer {
	background: #f1f4f9;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
	color: #111827;
}

:root[data-theme="sombre"] .barre-enregistrer .btn--discret,
:root[data-theme="sombre"] .barre-enregistrer .btn--discret:hover {
	color: #374151;
}

:root[data-theme="sombre"] .barre-enregistrer .btn--discret:hover:not(:disabled) {
	background: rgba(17, 24, 39, 0.08);
	color: #111827;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .barre-enregistrer {
		background: #f1f4f9;
		box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
		color: #111827;
	}

	:root[data-theme="auto"] .barre-enregistrer .btn--discret,
	:root[data-theme="auto"] .barre-enregistrer .btn--discret:hover {
		color: #374151;
	}

	:root[data-theme="auto"] .barre-enregistrer .btn--discret:hover:not(:disabled) {
		background: rgba(17, 24, 39, 0.08);
		color: #111827;
	}
}

/* ===== Notification avec « Revenir en arrière » (26 oct. 2026, maquette barres.html) =====
   Elle part au bout de 10 s (au lieu de rester) : trait qui raccourcit, pause au survol, croix pour la
   fermer. Après, le retour reste possible par l'Historique ou la corbeille. Ajouté par app.js. */
.alerte--minutee {
	position: fixed;
	overflow: hidden;
}

.alerte__temps {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: rgba(52, 211, 153, 0.75);
	transform-origin: left;
}

.alerte__fermer {
	flex: none;
	padding: 2px 6px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.alerte__fermer:hover {
	color: #ffffff;
}

/* ===== Téléphone et tablette : la barre d'enregistrement prend la place de la barre d'onglets
   (26 oct. 2026, maquette barre-telephone.html, B) =====
   Avant, elle se posait au-dessus des onglets : 158 px du bas de l'écran couverts ; à leur place, 76 px.
   Tant qu'il y a des modifications, les onglets glissent vers le bas ; ils reviennent après
   « Enregistrer » ou « Annuler ». Quitter la page sans enregistrer garde son avertissement. */
@media (max-width: 900px) {
	.onglets-bas {
		transition: transform 0.3s ease, opacity 0.2s ease;
	}

	body:has(.barre-enregistrer:not([hidden])) .onglets-bas {
		transform: translateY(100%);
		opacity: 0;
		pointer-events: none;
	}

	.barre-enregistrer {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 45;
		max-width: none;
		margin: 0;
		padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
	}

	/* Les deux boutons suffisent : le texte « Modifications non enregistrées » reste pour les lecteurs d'écran. */
	.barre-enregistrer > span:first-child {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.barre-enregistrer__boutons {
		flex: 1;
		gap: 8px;
	}

	.barre-enregistrer__boutons .btn {
		height: 44px;
	}

	.barre-enregistrer__boutons .btn--discret {
		flex: 1;
		background: rgba(255, 255, 255, 0.16);
	}

	.barre-enregistrer__boutons .btn--primaire {
		flex: 1.4;
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	.onglets-bas {
		transition: none;
	}
}

/* ===== Ordinateur : « Annuler » et « Enregistrer » dans l'en-tête de la page (26 oct. 2026, maquette
   enregistrer.html, B) =====
   Plus de barre ni de pastille : à la place de « Voir sur le site », « Non enregistré » (ou le nombre de
   parties), « Annuler » et « Enregistrer » en vert. L'en-tête reste en haut pendant le défilement tant
   qu'il y a des modifications. Sur téléphone et tablette, la barre remplace les onglets (plus haut). */
@media (min-width: 901px) {
	:root .page-tete .barre-enregistrer {
		position: static;
		display: flex;
		align-items: center;
		gap: 8px;
		max-width: none;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: var(--text);
		animation: none;
	}

	:root .page-tete .barre-enregistrer[hidden] {
		display: none;
	}

	.barre-enregistrer__etat {
		margin-right: 4px;
		color: var(--c-encours);
		font-size: 13px;
		font-weight: 700;
		white-space: nowrap;
	}

	:root .page-tete .barre-enregistrer .btn--discret,
	:root .page-tete .barre-enregistrer .btn--discret:hover {
		color: var(--text);
	}

	:root .page-tete .barre-enregistrer .btn--discret:hover:not(:disabled) {
		background: var(--hover);
	}

	:root .page-tete .barre-enregistrer .btn--primaire,
	:root .page-tete .barre-enregistrer .btn--primaire:hover:not(:disabled) {
		border: 0;
		background: #16a34a;
		box-shadow: none;
		color: #ffffff;
	}

	:root .page-tete .barre-enregistrer .btn--primaire:hover:not(:disabled) {
		background: #15803d;
	}

	.page-tete__actions:has(.barre-enregistrer:not([hidden])) > .btn--contour {
		display: none;
	}

	.page-tete:has(.barre-enregistrer:not([hidden])) {
		position: sticky;
		top: 0;
		z-index: 40;
		margin-top: -12px;
		padding-top: 12px;
		padding-bottom: 12px;
		background: var(--bg);
		box-shadow: 0 1px 0 var(--line);
	}
}

/* Pages du site : partie modifiée et pas encore enregistrée (26 oct. 2026) : liseré orange,
   « Non enregistré » à la place de son état. */
.pc-bloc__non-enregistre {
	display: none;
	color: var(--c-encours);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.pc-bloc--modifie .pc-bloc__non-enregistre {
	display: inline;
}

.pc-bloc--modifie .pc-bloc__tete .s-ligne__etat {
	display: none;
}

.pc-bloc--modifie:not(.pc-bloc--ouvert) {
	box-shadow: var(--ombre), inset 0 0 0 2px var(--c-encours);
}

/* Fenêtre « Modifications non enregistrées » : « Enregistrer et continuer » en premier, sur toute la largeur. */
.btn--vert-plein,
.btn--vert-plein:hover:not(:disabled) {
	border: 0;
	background: #16a34a;
	color: #ffffff;
}

.btn--vert-plein:hover:not(:disabled) {
	background: #15803d;
}

.modale__actions [data-modale-autre] {
	grid-column: 1 / -1;
	order: -2;
}

/* Aperçu de Pages du site : photo commune AdBlue calée en bas, comme sur le site (26 oct. 2026). */
.pa-hero img[src$="/2026/09/adblue.webp"] {
	object-position: 50% 100%;
}

/* ===== Bandeau « Ces pages sont en ligne » de Pages du site (26 oct. 2026, maquette bandeau-en-ligne.html, C) =====
   Fond sombre, « i » orange avec un halo qui s'élargit en deux vagues, sans liseré. */
/* 2 nov. 2026 : en pastille (elle prend la largeur de son texte), claire le jour, sombre la nuit ; le « i » et son halo ne changent pas. */
.enligne {
	--enligne-fond: #ffffff;
	--enligne-texte: #1f2937;
	--enligne-titre: #b45309;
	--enligne-filet: var(--line);
	--enligne-ombre: 0 10px 22px -16px rgba(17, 24, 39, 0.4);
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	gap: 12px;
	margin: 0 0 18px;
	padding: 12px 22px 12px 12px; /* 48 px de haut, comme l'ancien bandeau (24 px + 2 x 12 px) */
	border-radius: 999px;
	background: var(--enligne-fond);
	box-shadow: inset 0 0 0 1px var(--enligne-filet), var(--enligne-ombre);
	color: var(--enligne-texte);
}

:root[data-theme="sombre"] .enligne {
	--enligne-fond: #111827;
	--enligne-texte: #ffffff;
	--enligne-titre: #fbbf24;
	--enligne-filet: rgba(255, 255, 255, 0.08);
	--enligne-ombre: 0 10px 22px -14px rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .enligne {
		--enligne-fond: #111827;
		--enligne-texte: #ffffff;
		--enligne-titre: #fbbf24;
		--enligne-filet: rgba(255, 255, 255, 0.08);
		--enligne-ombre: 0 10px 22px -14px rgba(0, 0, 0, 0.65);
	}
}

.enligne__texte {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
}

.enligne__texte b {
	color: var(--enligne-titre);
}

@media (max-width: 760px) {
	.enligne {
		border-radius: 22px;
	}
}

.enligne__i {
	position: relative;
	isolation: isolate;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #f59e0b;
	color: #111827;
	font: italic 700 15px/1 Georgia, "Times New Roman", serif;
}

.enligne__i::before,
.enligne__i::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: #f59e0b;
	opacity: 0.45;
	animation: enligne-halo 2.4s ease-out infinite;
}

.enligne__i::after {
	animation-delay: 1.2s;
}

@keyframes enligne-halo {
	from {
		transform: scale(1);
		opacity: 0.45;
	}
	to {
		transform: scale(2.4);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.enligne__i::before,
	.enligne__i::after {
		animation: none;
		opacity: 0;
	}
}

/* ===== Fiche d'un compte : « Connexion » et « Activité » à plat (27 oct. 2026, maquette compte.html, variante 1) =====
   Remplace le bloc repliable « Sécurité et historique » (cadres emboîtés, titres en capitales, compteurs répétés). */
.cs {
	margin-top: 30px;
}

.cs__titre {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
}

.cs__tete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
}

.cs__note {
	color: var(--muted);
	font-size: 13px;
}

.cs-carte {
	overflow: hidden;
	border-radius: 16px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}

.cs-l {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 12px 18px;
	border-top: 1px solid var(--line);
}

.cs-l:first-child {
	border-top: 0;
}

.cs-l__t {
	flex: 1;
	min-width: 0;
	color: var(--text);
}

.cs-l__t b {
	display: block;
	font-weight: 500;
}

.cs-l__t small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 13px;
}

.cs-l__v {
	color: var(--muted);
	font-size: 14px;
	text-align: right;
}

.cs-l form {
	margin: 0;
}

/* Appareil ou adresse IP : ligne de détail, en retrait sous sa ligne. */
.cs-l--detail {
	min-height: 0;
	padding-left: 34px;
	font-size: 14px;
}

/* Appareils connectés (27 oct. 2026) : une ligne par appareil, icône, adresse IP dessous, dernière activité à droite. */
.cs-l--appareil {
	min-height: 0;
	padding-left: 30px;
	font-size: 14px;
}

.cs-appareil {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--muted);
}

.cs-alerte {
	color: var(--bad);
}

.cs-ev {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 4px 12px;
	padding: 10px 18px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--text);
}

.cs-ev:first-child {
	border-top: 0;
}

/* Premier événement d'un jour : le jour au-dessus, sur toute la largeur. */
.cs-ev__jour {
	grid-column: 1 / -1;
	margin: -10px -18px 6px;
	padding: 9px 18px 6px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
}

.cs-ev time {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.cs-ev small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 12.5px;
}

.cs-vide {
	margin: 0;
	padding: 16px 18px;
	color: var(--muted);
}

@media (max-width: 560px) {
	.cs-l {
		flex-wrap: wrap;
	}

	.cs-l form {
		width: 100%;
	}
}

/* ===== Tableau de bord en deux blocs nommés (27 oct. 2026, maquette tableau-de-bord.html, variante A) =====
   1. En attente (toutes dates), 2. Activité de la période (titre avec la période, choix à côté).
   Tout ce qui est cliquable le montre : lignes terminées par l'action, vignettes avec un pied « Voir … › ».
   Survol : teinte bleutée nette (le gris de --surface-2 se confondait avec le fond de la page). */
.tdb-bloc {
	margin-bottom: 26px;
}

.tdb-bloc__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.tdb-bloc__titre {
	margin: 0;
	font-size: 19px;
	font-weight: 650;
	color: var(--text);
}

.tdb-bloc__sous {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.tdb-bloc .a-faire {
	padding: 0;
}

.tdb-bloc .a-faire li + li {
	border-top: 1px solid var(--line);
}

.tdb-bloc .a-faire__lien {
	justify-content: flex-start;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 0;
	font-weight: 400;
}

.tdb-bloc .a-faire li:first-child .a-faire__lien {
	border-radius: 16px 16px 0 0;
}

.tdb-bloc .a-faire li:last-child .a-faire__lien {
	border-radius: 0 0 16px 16px;
}

.tdb-bloc .a-faire li:only-child .a-faire__lien {
	border-radius: 16px;
}

/* Survol : le gris commun des listes en mode jour (--hover, plus clair que le fond de la page depuis le
   27 oct. 2026 ; le bleu ne plaisait pas) ; teinte bleutée en mode nuit. */
.tdb-bloc .a-faire__lien:hover,
.tdb-bloc .a-faire__lien:focus-visible {
	background: var(--hover);
}

:root[data-theme="sombre"] .tdb-bloc .a-faire__lien:hover,
:root[data-theme="sombre"] .tdb-bloc .a-faire__lien:focus-visible {
	background: var(--brand-soft);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .tdb-bloc .a-faire__lien:hover,
	:root[data-theme="auto"] .tdb-bloc .a-faire__lien:focus-visible {
		background: var(--brand-soft);
	}
}

.a-faire__n {
	flex: none;
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 30px;
	padding: 0 8px;
	border-radius: 9px;
	background: var(--c-nouveau-bg);
	color: var(--c-nouveau);
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.a-faire__n--sans_tarif {
	background: var(--c-encours-bg);
	color: var(--c-encours);
}

/* Mode nuit : bleu éclairci (le bleu des statuts restait trop foncé sur ce fond, 27 oct. 2026). */
:root[data-theme="sombre"] .a-faire__n:not(.a-faire__n--sans_tarif) {
	background: rgba(96, 165, 250, 0.22);
	color: #93c5fd;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .a-faire__n:not(.a-faire__n--sans_tarif) {
		background: rgba(96, 165, 250, 0.22);
		color: #93c5fd;
	}
}

.a-faire__texte {
	flex: 1;
	min-width: 0;
	font-size: 14.5px;
}

.a-faire__texte small {
	display: block;
	margin-top: 1px;
	color: var(--muted);
	font-size: 12.5px;
}

.a-faire__action {
	flex: none;
	color: var(--brand-deep);
	font-size: 13.5px;
	font-weight: 600;
}

.tdb-bloc .a-faire__lien:hover .a-faire__action {
	text-decoration: underline;
}

.tdb-chiffres {
	margin-bottom: 0;
}

/* Vignette : pas de filet ni de contour au survol (jugés pas beaux, 27 oct. 2026) ; elle se soulève. */
.tdb-chiffre {
	display: flex;
	flex-direction: column;
	padding: 18px 20px 0;
	overflow: hidden;
	color: var(--text);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdb-chiffre:hover,
.tdb-chiffre:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--ombre-survol);
}

.tdb-chiffre .indicateur__ic {
	width: 38px;
	height: 38px;
	margin-bottom: 12px;
}

.tdb-chiffre__phrase {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.35;
}

.tdb-chiffre__phrase b,
.tdb-chiffre__phrase small {
	display: block;
}

.tdb-chiffre__phrase b {
	margin-top: 2px;
	font-size: 15px;
}

.tdb-chiffre__phrase small {
	color: var(--muted);
	font-size: 12.5px;
}

.tdb-chiffre__avant {
	margin: 8px 0 14px; /* pieds alignés d'une vignette à l'autre : le pied est poussé en bas (margin-top: auto) */
	color: var(--muted);
	font-size: 12.5px;
}

.tdb-chiffre__avant b {
	color: var(--text);
}

/* Pied : le texte seul, en bleu avec une flèche (la bande bleue jugée pas belle, 27 oct. 2026) ; au survol,
   souligné et flèche qui avance. Poussé en bas : alignés d'une vignette à l'autre. */
.tdb-chiffre__pied {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding: 0 0 16px;
	color: var(--brand-deep);
	font-size: 13.5px;
	font-weight: 600;
}

.tdb-chiffre__pied::after {
	content: "→";
	transition: transform 0.2s ease;
}

/* Souligné : le texte seul, pas la flèche. */
.tdb-chiffre:hover .tdb-chiffre__pied > span,
.tdb-chiffre:focus-visible .tdb-chiffre__pied > span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tdb-chiffre:hover .tdb-chiffre__pied::after {
	transform: translateX(3px);
}

@media (max-width: 900px) {
	.tdb-chiffres {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tdb-bloc .a-faire__lien {
		flex-wrap: wrap;
		padding: 12px 14px;
	}

	.a-faire__action {
		width: 100%;
		padding-left: 56px;
	}

	.tdb-chiffre {
		padding: 14px 14px 0;
	}

	.tdb-chiffre__pied {
		padding-bottom: 14px;
	}
}

/* ===== Fiche d'une vente, section « Paiement » (27 oct. 2026, maquette paiement-vente.html, A) =====
   Montant et phrase datée, état en pastille (vert payée, rouge refusé, orange non abouti, bleu en cours,
   gris au centre), « Test » tant que PayPlug est en mode test, conseil si le centre doit rappeler. */
.pv-tete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
}

.pv-montant {
	display: block;
	font-size: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pv-phrase {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 13px;
}

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

.pv-pastille {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
}

.pv-pastille i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.pv-pastille--ok { background: var(--ok-soft); color: var(--ok); }
.pv-pastille--bad { background: var(--bad-soft); color: var(--bad); }
.pv-pastille--warn { background: var(--c-encours-bg); color: var(--c-encours); }
.pv-pastille--info { background: var(--c-nouveau-bg); color: var(--c-nouveau); }
.pv-pastille--neutre { background: var(--neutral-soft); color: var(--muted); }

.pv-test {
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(124, 58, 237, 0.12);
	color: #7c3aed;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pv-conseil {
	margin: 14px 18px 4px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
}

.pv-conseil--warn { background: var(--c-encours-bg); color: var(--text); }
.pv-conseil--bad { background: var(--bad-soft); color: var(--text); }

.pv-ref {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12.5px;
}

/* Liste : rendez-vous dont le paiement a été refusé ou n'a pas abouti. */
.etape-prog--alerte .etape-prog__traits i.on {
	background: var(--warn);
}

.etape-prog--alerte small {
	color: var(--c-encours);
	font-weight: 600;
}

/* Liste : libellé d'étape trop long (23 nov. 2026, maquette zz-maquette/defilement-etape.html, variante A).
   Au survol de la ligne, il glisse une fois jusqu'au bout, reste 3 s, puis revient d'un coup : la seconde
   animation, de durée nulle, prend le dessus. Distance et durée posées par app.js (initialiserDefilementEtape). */
.etape-prog__texte {
	display: inline-block;
}

.etape-prog small.trop {
	text-overflow: clip;
}

.lt__ligne:hover .etape-prog small.trop .etape-prog__texte {
	animation-name: etape-glisse, etape-retour;
	animation-duration: var(--duree), 0s;
	animation-delay: .3s, calc(var(--duree) + 3.3s);
	animation-timing-function: ease-in-out, linear;
	animation-fill-mode: forwards, forwards;
}

@keyframes etape-glisse { to { transform: translateX(var(--decalage)); } }
@keyframes etape-retour { to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
	.etape-prog small.trop { text-overflow: ellipsis; }
	.lt__ligne:hover .etape-prog small.trop .etape-prog__texte { animation: none; }
}

/* Bloc ouvert : le bouton « Modifier » de l'en-tête ne sert plus (2 nov. 2026) ; « Terminé » ou un clic sur la ligne referme le bloc. */
.pc-bloc--ouvert .pc-bloc__tete > [data-bloc] {
	visibility: hidden; /* garde sa place : le texte d'état à côté ne saute pas */
}

/* « Pages du site » : la place de la barre de défilement est réservée dès le départ. Sans cela, ouvrir un bloc fait apparaître
   la barre et tout le contenu se décale de quelques pixels vers la gauche (3 nov. 2026). */
html:has(.pc-blocs) {
	scrollbar-gutter: stable;
}

/* Apparence en un clic, au-dessus du compte (3 nov. 2026) : une pilule sur toute la largeur de la barre latérale, trois choix
   (automatique, clair, sombre) ; le choix actif est une pastille claire. Repliée, la pilule devient verticale. */
.apparence-rapide {
	display: flex;
	gap: 2px;
	margin: 10px 0 12px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
}

.apparence-rapide__choix {
	position: relative;
	display: grid;
	flex: 1;
	place-items: center;
	height: 28px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.apparence-rapide__choix:hover {
	color: rgba(255, 255, 255, 0.85);
}

.apparence-rapide__choix:has(input:checked) {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.apparence-rapide__choix:has(input:focus-visible) {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.apparence-rapide .ic {
	width: 15px;
	height: 15px;
}

/* Fondu de toute la page au changement de jour et nuit ; la classe n'existe que pendant la transition, pour ne pas ralentir
   celle des autres écrans. */
html.theme-anime::view-transition-old(root),
html.theme-anime::view-transition-new(root) {
	animation-duration: 0.4s;
	animation-timing-function: ease;
}

@media (min-width: 901px) {
	.side-reduite .apparence-rapide {
		flex-direction: column;
		width: 40px;
		margin: 10px auto 12px;
	}

	.side-reduite .apparence-rapide__choix {
		flex: none;
		width: 34px;
		height: 34px;
	}
}
/* Infobulle de chaque choix : même pastille sombre que celles du menu replié ; au-dessus du choix, ou à droite quand la barre est
   repliée (3 nov. 2026). */
.apparence-rapide__choix:hover::after {
	content: attr(data-bulle);
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	z-index: 40;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--toast);
	box-shadow: var(--shadow-pop);
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
	animation: bulle-haut 0.2s var(--ease);
}

@keyframes bulle-haut {
	from { opacity: 0; transform: translate(-50%, 4px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

@media (min-width: 901px) {
	.side-reduite .apparence-rapide__choix:hover::after {
		top: 50%;
		bottom: auto;
		left: calc(100% + 14px);
		transform: translateY(-50%);
		animation-name: bulle-entree;
	}
}
/* Barre repliée : plus de carré autour du compte, seulement le rond de l’initiale, de la même teinte neutre que le reste (3 nov. 2026). */
@media (min-width: 901px) {
	.side-reduite .compte__bouton {
		background: transparent;
	}

	.side-reduite .compte__bouton:hover,
	.side-reduite .compte[open] .compte__bouton {
		background: rgba(255, 255, 255, 0.06);
	}
}

/* ===== Connexion, variante E de la maquette (choisie le 4 nov. 2026) =====
   Photo : voile bleu aussi marqué qu'avant en haut (logo lisible), plus sombre en bas ; « Sitepro » sans petit
   trait, accroche plus grande en bas, puis le message du moment (salut_du_moment()) qui arrive en dernier,
   mot à mot, du flou au net. Placé en fin de fichier pour passer après les règles de connexion plus haut. Formulaire : titre plus grand, champs blancs bordés, lien sur une ligne avec « Sitepro ». */
.auth__marque::before {
	background:
		linear-gradient(180deg, rgba(8, 26, 135, 0.82) 0%, rgba(8, 26, 135, 0.82) 45%, rgba(5, 14, 70, 0.94) 100%),
		url("../img/connexion-echappement.webp") 66% 45% / cover no-repeat;
}

.auth__titre-marque::before {
	display: none;
}

.auth__titre-marque {
	font-size: 12px;
	letter-spacing: 0.24em;
	color: rgba(255, 255, 255, 0.7);
}

/* Version « Plus grand » de la maquette (4 nov. 2026) : le message ressort par sa taille, sans encadré. */
.auth__salut {
	margin: 26px 0 0;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: #ffffff;
}

/* Départ à 2,5 s : après la mise au point de la photo (2,6 s) et l'arrivée du logo et de l'accroche (0,9 s + 1,2 s). */
.auth__salut-mot {
	display: inline-block;
	opacity: 0;
	filter: blur(8px);
	transform: translateY(10px);
	animation: salut-mot 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) calc(2.5s + var(--i, 0) * 0.12s) forwards;
}

.auth__salut-fin {
	color: #6fd0ff;
}

@keyframes salut-mot {
	to { opacity: 1; filter: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.auth__salut-mot {
		animation: none;
		opacity: 1;
		filter: none;
		transform: none;
	}
}

.auth__liens-nom {
	color: var(--muted);
}

.auth__liens--deux {
	align-items: center;
}

/* Champs sans bordure (4 nov. 2026, demande de l'utilisateur) : blancs sur le fond grisé ; bordure bleue au focus. */
.auth .auth__volet .champ-bloc__saisie {
	border-color: transparent;
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(13, 22, 48, 0.04);
}

.auth .auth__volet .champ-bloc__saisie:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 4px var(--brand-soft);
}

@media (min-width: 901px) {
	.auth__accroche {
		max-width: 380px;
		font-size: 38px;
	}

	.auth__volet .auth__titre {
		font-size: 34px;
	}

	.auth__volet .auth__sous {
		margin: 8px 0 34px;
		font-size: 15px;
	}

	.auth .btn--bloc {
		height: 54px;
		font-size: 15.5px;
	}

	.auth__liens--deux {
		margin-top: 22px;
		font-size: 13.5px;
	}
}

/* Volet du formulaire légèrement grisé pour faire ressortir les champs blancs (4 nov. 2026 : #f6f7fb donné par
   l'utilisateur, puis « un poil plus foncé ») ; mode nuit inchangé. */
.auth__volet {
	background: #f0f2f7;
}

:root[data-theme="sombre"] .auth__volet {
	background: var(--surface);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .auth__volet {
		background: var(--surface);
	}
}

/* ===== Ordinateur : arrivée de « Non enregistré », « Annuler » et « Enregistrer » dans l'en-tête
   (6 nov. 2026, maquette barre-arrivee.html, variante D « Glissement depuis le haut ») =====
   Avant, la barre apparaissait d'un coup et l'en-tête grandissait d'un bloc. Maintenant, elle descend
   en fondu et la marge de l'en-tête collé arrive en douceur. Aucune animation si le système demande
   moins de mouvement. */
@media (min-width: 901px) {
	.page-tete {
		transition: padding 0.22s ease, margin 0.22s ease, box-shadow 0.22s ease;
	}

	:root .page-tete .barre-enregistrer:not([hidden]) {
		animation: barre-enregistrer-haut 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	@keyframes barre-enregistrer-haut {
		from {
			opacity: 0;
			transform: translateY(-14px);
		}
	}
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
	.page-tete {
		transition: none;
	}

	:root .page-tete .barre-enregistrer:not([hidden]) {
		animation: none;
	}
}

/* ===== Ordinateur : en-tête collé sur toute la largeur, fond légèrement flouté (6 nov. 2026, maquette
   barre-flou.html, variante F) =====
   Avant, son fond s'arrêtait au bord de la colonne (1 600 px), juste après « Enregistrer ». Le fond passe
   dans un pseudo-élément qui déborde des deux côtés ; .contenu le coupe à ses bords (overflow-x: clip,
   qui ne gêne pas la position collante), donc rien ne passe sur le menu de gauche. Fond à 78 %, flou de
   12 px ; sans prise en charge du flou, le fond reste simplement semi-transparent. */
@media (min-width: 901px) {
	.contenu:has(.page-tete .barre-enregistrer:not([hidden])) {
		overflow-x: clip;
	}

	.page-tete:has(.barre-enregistrer:not([hidden])) {
		background: transparent;
		box-shadow: none;
		isolation: isolate;
	}

	.page-tete:has(.barre-enregistrer:not([hidden]))::before {
		content: "";
		position: absolute;
		inset: 0 -100vw;
		z-index: -1;
		background: color-mix(in srgb, var(--bg) 78%, transparent);
		-webkit-backdrop-filter: blur(12px) saturate(1.4);
		backdrop-filter: blur(12px) saturate(1.4);
		box-shadow: 0 1px 0 var(--line);
	}
}

/* ===== Explications « i » des statistiques (13 nov. 2026, maquette infos-stats.html, variante A) =====
   Bouton rond « i » ; au clic, bulle blanche avec petite flèche (app.js, initialiserInfoBulles).
   --droite : coin haut droit des cartes, bulle alignée à droite ; --gauche : après un titre, bulle vers la droite. */
.stats-chiffre {
	position: relative;
}

.stats-chiffre small {
	padding-right: 30px;
}

.info-bulle {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.stats-chiffre > .info-bulle {
	position: absolute;
	top: 10px;
	right: 10px;
}

.fc-section__info h2 .info-bulle {
	margin: -3px 0 0 8px;
}

.info-bulle__bouton {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--muted);
	font: italic 600 12px/1 Georgia, "Times New Roman", serif;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.info-bulle__bouton:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.info-bulle__bouton[aria-expanded="true"] {
	border-color: var(--brand);
	background: var(--brand);
	color: #fff;
}

.info-bulle__bouton:focus-visible {
	outline: 3px solid var(--ring);
	outline-offset: 2px;
}

.info-bulle__texte {
	position: absolute;
	top: calc(100% + 10px);
	z-index: 40;
	display: block;
	width: min(300px, calc(100vw - 48px));
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--surface);
	box-shadow: 0 12px 32px rgba(13, 22, 48, 0.16), 0 2px 6px rgba(13, 22, 48, 0.06), inset 0 0 0 1px var(--bord-carte);
	color: var(--text);
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0;
	line-height: 1.5;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px) scale(0.98);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}

.info-bulle--droite .info-bulle__texte {
	right: -6px;
	transform-origin: top right;
}

.info-bulle--gauche .info-bulle__texte {
	left: -10px;
	transform-origin: top left;
}

/* Petite flèche vers le bouton. */
.info-bulle__texte::before {
	content: "";
	position: absolute;
	top: -6px;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background: inherit;
	transform: rotate(45deg);
	translate: var(--fleche, 0) 0; /* bulle recalée dans l'écran (app.js) : la flèche reste sous le « i » */
}

.info-bulle--droite .info-bulle__texte::before {
	right: 11px;
}

.info-bulle--gauche .info-bulle__texte::before {
	left: 15px;
}

.info-bulle.est-ouverte .info-bulle__texte {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}

.info-bulle__p {
	display: block;
}

.info-bulle__p + .info-bulle__p {
	margin-top: 8px;
}

.info-bulle__p--note {
	color: var(--muted);
}

:root[data-theme="sombre"] .info-bulle__texte {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .info-bulle__texte {
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	.info-bulle__texte {
		transition: none;
	}
}

/* ===== Créneaux en ligne de la fiche centre (26 nov. 2026, maquette delai-feries.html, variante C) ===== */
.cr {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.cr__titre {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 650;
}

.cr__aide {
	margin-bottom: 14px;
}

/* Délai : pilules radio, comme les segments. */
.cr-delais {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface-2);
}

.cr-delais input,
.cr-fermeture__retirer input {
	accent-color: var(--brand);
}

.cr-delais input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.cr-delais span {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.cr-delais input:checked + span {
	background: var(--surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--text);
}

:root[data-theme="sombre"] .cr-delais input:checked + span {
	background: var(--line-strong);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .cr-delais input:checked + span {
		background: var(--line-strong);
	}
}

.cr-delais input:focus-visible + span {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

/* Champ « Personnalisé » : visible seulement quand ce choix est coché (toujours visible sans :has). */
.cr-perso {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0 4px;
	font-size: 14px;
}

.cr-perso .champ {
	width: 96px;
	text-align: right;
}

.cr-perso small {
	color: var(--muted);
	font-size: 12.5px;
}

.fc-carte:has(.cr-delais input[value="perso"]:checked) .cr-perso {
	display: flex;
}

@supports not selector(:has(*)) {
	.cr-perso {
		display: flex;
	}
}

.cr-apercu {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
}

.cr-apercu p {
	margin: 0;
}

.cr-apercu p + p {
	margin-top: 6px;
}

.cr-apercu b {
	color: var(--text);
}

/* Jours fériés : une ligne par jour, Fermé | Ouvert comme les Horaires. */
.cr-ferie {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.cr-ferie:last-child {
	border-bottom: 0;
}

.cr-ferie b {
	font-size: 14px;
	font-weight: 600;
}

.cr-ferie small {
	color: var(--muted);
	font-size: 13px;
}

.cr-ferie em {
	font-style: normal;
	color: var(--muted);
	font-size: 12.5px;
}

.cr-ferie--ferme {
	opacity: 0.55;
}

@media (max-width: 600px) {
	.cr-ferie {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.cr-ferie small {
		grid-column: 1;
		grid-row: 2;
	}

	.cr-ferie .fc-etat,
	.cr-ferie em {
		grid-column: 2;
		grid-row: 1 / 3;
	}
}

/* Fermetures exceptionnelles. */
.cr-fermeture {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}

.cr-fermeture__retirer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 13px;
	cursor: pointer;
}

.cr-ajout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 8px;
	font-size: 14px;
}

.cr-ajout .champ {
	width: auto;
}

/* ===== Jours fériés du réseau, Réglages (26 nov. 2026, maquette jours-feries.html, variante A) ===== */
.fe-annees {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 14px;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface-2);
}

.fe-annees a {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.fe-annees a[aria-current="page"] {
	background: var(--surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--text);
}

:root[data-theme="sombre"] .fe-annees a[aria-current="page"] {
	background: var(--line-strong);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .fe-annees a[aria-current="page"] {
		background: var(--line-strong);
	}
}

.fe {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}

.fe b {
	font-weight: 600;
}

.fe-date small {
	display: block;
	color: var(--muted);
	font-size: 12px;
}

.fe-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--c-encours-bg, rgba(245, 158, 11, 0.18));
	color: var(--c-encours, #b45309);
	font-size: 11.5px;
	font-weight: 600;
	vertical-align: 1px;
}

.fe--retire b,
.fe--retire .fe-date {
	color: var(--muted);
}

.fe--retire .fe-date {
	text-decoration: line-through;
}

.fe-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 10px;
}

.fe-form {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.fe .lien,
.fe-modifier summary {
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--brand);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.fe-modifier summary::-webkit-details-marker,
.fe-ajout summary::-webkit-details-marker {
	display: none;
}

.fe .lien--gris {
	color: var(--muted);
}

.fe-modifier[open] {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.fe-modifier .champ,
.fe-ajout .champ {
	width: auto;
}

.fe-ajout {
	margin-top: 14px;
}

.fe-ajout summary {
	display: inline-flex;
	list-style: none;
}

.fe-ajout__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.fe-ajout__form input[type="text"] {
	flex: 1 1 240px;
}

@media (max-width: 700px) {
	.fe {
		grid-template-columns: minmax(0, 1fr);
	}

	.fe-actions {
		justify-content: flex-start;
	}
}

/* ===== Carte « À faire » de la fiche de vente (26 nov. 2026, maquette suivi-vente.html, B, sans bordure) ===== */
.af {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin: 0 0 8px;
	padding: 20px;
	border-radius: var(--radius-small); /* comme .fc-carte (harmonisé le 26 nov. 2026) */
	background: var(--surface);
	box-shadow: var(--ombre), inset 0 0 0 1px var(--bord-carte);
}

@media (max-width: 600px) {
	.af {
		padding: 16px;
	}
}

.af__txt {
	flex: 1 1 320px;
	min-width: 0;
}

.af__txt small {
	display: block;
	color: var(--brand);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.af--fini .af__txt small {
	color: var(--ok);
}

.af__txt b {
	display: block;
	margin-top: 2px;
	font-size: 18px;
	font-weight: 650;
}

.af__txt span {
	color: var(--muted);
	font-size: 13.5px;
}

.af__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

.af__actions form {
	margin: 0;
}

/* Liens d'action discrets (« Autre date », « Injoignable », « Modifier », « Annuler »). */
.af-lien {
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--brand);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.af-lien--gris {
	color: var(--muted);
}

.af-plus > summary {
	list-style: none;
	cursor: pointer;
}

.af-plus > summary::-webkit-details-marker {
	display: none;
}

.af-plus[open] {
	flex-basis: 100%;
}

.af-plus--bouton > summary {
	display: inline-flex;
}

/* Saisie ouverte (« Autre date », « Fixer une date », « Marquer encaissé ») : les actions passent sous le texte, sur
   toute la largeur, et la saisie sur sa propre ligne (correction du 26 nov. 2026 : tout se tassait à droite). */
.af:has(.af-plus[open]) .af__actions {
	flex-basis: 100%;
}

.af-plus[open] > .af-saisie {
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--surface-2);
}

.af-saisie select.champ {
	max-width: 180px;
}

.af-saisie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.af-saisie .champ {
	width: auto;
}

.af-saisie__lib {
	color: var(--muted);
	font-size: 13.5px;
}

/* Moyen d'encaissement : pilules radio, aucune cochée par défaut. */
.af-moyens {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface-2);
}

.af-moyens input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.af-moyens span {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.af-moyens input:checked + span {
	background: var(--surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--text);
}

:root[data-theme="sombre"] .af-moyens input:checked + span {
	background: var(--line-strong);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .af-moyens input:checked + span {
		background: var(--line-strong);
	}
}

.af-moyens input:focus-visible + span {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

.info__val .af-plus {
	display: block;
	margin-top: 4px;
}

.pv-etat form {
	display: inline;
	margin: 0 0 0 8px;
}

/* Liens « Modifier » et « Annuler le rendez-vous » sous la date fixée (26 nov. 2026). */
.af-liens {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 4px 14px;
	margin-top: 4px;
}

.af-liens form {
	margin: 0;
}

.af-liens .af-plus {
	margin-top: 0;
}

/* Fiche de vente simplifiée (26 nov. 2026, maquette fiche-vente-simple.html, B) : pastille de paiement en ligne,
   historique replié. */
.info__val .pv-pastille {
	margin-left: 8px;
	vertical-align: 1px;
}

.fv-repli > summary {
	display: inline-block;
	padding: 4px 0;
	list-style: none;
	cursor: pointer;
}

.fv-repli > summary::-webkit-details-marker {
	display: none;
}

.fv-repli[open] > summary {
	margin-bottom: 10px;
}

/* La saisie ouverte se place après les autres actions (le lien « Injoignable » reste sur la première ligne). */
.af__actions .af-plus[open] {
	order: 9;
}

/* En-tête de la fiche de vente (26 nov. 2026, maquette tete-vente.html, A) : deux pastilles en toutes lettres,
   et plus d'espace avant la carte « À faire ». */
.fv-etats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
}

.fv-etat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
}

.fv-etat i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.fv-etat--ok {
	background: color-mix(in srgb, var(--ok) 14%, transparent);
	color: var(--ok);
}

.fv-etat--attente {
	background: var(--c-encours-bg);
	color: #b45309; /* ambre foncé : lisible sur le fond clair */
}

:root[data-theme="sombre"] .fv-etat--attente {
	color: var(--c-encours);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .fv-etat--attente {
		color: var(--c-encours);
	}
}

.fv-etat--neutre {
	background: var(--surface-2);
	color: var(--muted);
}

.af {
	margin: 22px 0 18px;
}

/* Panneau de saisie de la carte « À faire » (26 nov. 2026, maquette fixer-date.html, A) : date du rendez-vous
   (vignettes des prochains jours d'ouverture, autre jour, matin ou après-midi) et encaissement. Formulaire classique,
   ouvert par un lien (?saisie=…) ; « Annuler » revient à la fiche. */
.af-panneau {
	flex-basis: 100%;
	margin-top: 4px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.af-titre {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.af-jours {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 8px;
}

.af-jour input,
.af-moments input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.af-jour span {
	display: block;
	flex: none;
	width: 68px;
	padding: 9px 0;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--surface);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.af-jour span:hover {
	border-color: var(--brand);
}

.af-jour small {
	display: block;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.af-jour b {
	display: block;
	font-size: 20px;
	line-height: 1.2;
}

.af-jour em {
	display: block;
	color: var(--muted);
	font-size: 11px;
	font-style: normal;
}

.af-jour input:checked + span {
	border-color: var(--brand);
	background: var(--brand);
}

.af-jour input:checked + span * {
	color: #fff;
}

.af-jour input:focus-visible + span,
.af-moments input:focus-visible + span {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.af-autre {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 18px;
	color: var(--muted);
	font-size: 13.5px;
}

.af-autre .champ {
	width: auto;
}

.af-moments {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface-2);
}

.af-moments span {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.af-moments input:checked + span {
	background: var(--surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: var(--text);
}

:root[data-theme="sombre"] .af-moments input:checked + span {
	background: var(--line-strong);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .af-moments input:checked + span {
		background: var(--line-strong);
	}
}

.af-boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

/* Calendrier du rendez-vous dans la carte « À faire » (26 nov. 2026, maquette calendrier-rdv.html) : mois en
   7 colonnes, tient sur un téléphone. Dessiné par app.js (initialiserCalendrierRdv). */
.af-grille {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); /* 26 nov. 2026 : toute la largeur de la carte */
	gap: 24px 88px; /* 26 nov. 2026 : plus d’air entre le calendrier et la colonne de droite (avant 48px) */
	align-items: start;
}

@media (max-width: 760px) {
	.af-grille {
		grid-template-columns: minmax(0, 1fr);
	}
}

.af-panneau {
	min-width: 0;
}

.af-cal__secours {
	width: auto;
}

.af-cal__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.af-cal__tete b {
	font-size: 15px;
	text-transform: capitalize;
}

.af-cal__nav {
	width: 34px;
	height: 34px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.af-cal__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.af-cal__grille {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	grid-auto-rows: 44px; /* chaque ligne garde sa hauteur, même vide : 6 lignes, toujours la même taille */
	gap: 4px;
}

.af-cal__js {
	padding: 4px 0;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.af-cal__j {
	height: 44px; /* hauteur fixe : les cases s'élargissent avec la carte sans devenir énormes */
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.af-cal__j:hover:not(:disabled) {
	background: var(--surface-2);
}

.af-cal__j:disabled {
	color: var(--line-strong);
	font-weight: 400;
	cursor: default;
}

.af-cal__j {
	position: relative;
}

/* Jour souhaité par le client : un point orange sous le chiffre, qui reste visible quand le jour est choisi
   (26 nov. 2026 ; avant, un contour qui disparaissait sous la couleur de sélection). */
.af-cal__j--souhait::after {
	content: "";
	position: absolute;
	bottom: 5px;
	left: 50%;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	border-radius: 50%;
	background: var(--c-encours);
}

.af-cal__j--souhait[aria-pressed="true"]::after {
	box-shadow: 0 0 0 1.5px #fff;
}

.af-cal__j--auj {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.af-cal__j[aria-pressed="true"] {
	background: var(--brand);
	color: #fff;
	box-shadow: none;
}

.af-cal__j:focus-visible,
.af-cal__nav:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

.af-cal__legende {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.af-cal__l {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border-radius: 4px;
}

.af-cal__l:first-child {
	margin-left: 0;
}

.af-cal__l--souhait {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-encours);
}

.af-cal__l--ferme {
	background: var(--line-strong);
}

.af-resume {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.af-resume b {
	color: var(--text);
	font-weight: 650;
}

.af-panneau .btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Espaces de la carte « À faire » harmonisés avec ceux des sections (26 nov. 2026) : même écart que entre deux
   sections (26 px, un filet, 26 px) jusqu'à la première section. */
.af {
	margin: 22px 0 26px;
}

.af + .fc .fc-section:first-child {
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

/* Souhait du client à côté du calendrier (26 nov. 2026) : toujours visible, avec « Reprendre ce créneau ». */
.af-souhait {
	display: grid;
	gap: 2px;
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--surface-2);
}

.af-souhait small {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.af-souhait b {
	font-size: 15px;
	font-weight: 650;
}

.af-souhait span {
	color: var(--muted);
	font-size: 13px;
}

.af-souhait .af-lien {
	justify-self: start;
	padding-left: 0;
}

.af-resume__souhait {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--c-encours-bg);
	color: #b45309;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.af-resume__souhait::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

:root[data-theme="sombre"] .af-resume__souhait {
	color: var(--c-encours);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .af-resume__souhait {
		color: var(--c-encours);
	}
}

/* Carte « À faire » plus visuelle (26 nov. 2026, maquette carte-a-faire.html, A) : pictogramme dans une pastille
   de la couleur de l'étape, fond à peine teinté qui s'efface vers la droite. Bleu : à faire ; vert : rien à faire ;
   ambre : en attente. */
.af {
	--ton: var(--brand);
	gap: 16px 22px;
	background: linear-gradient(100deg, color-mix(in srgb, var(--ton) 7%, var(--surface)) 0%, var(--surface) 55%);
}

.af--fini {
	--ton: var(--ok);
}

.af--attente {
	--ton: var(--c-encours);
}

.af__ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--ton) 14%, transparent);
	color: var(--ton);
}

.af__ic svg {
	width: 24px;
	height: 24px;
}

.af__txt small {
	color: var(--ton);
}

@media (max-width: 600px) {
	.af__ic {
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}
}

/* Changement de mois du calendrier (26 nov. 2026) : hauteur constante (6 lignes, voir app.js) et glissement court
   des jours dans le sens de la flèche. Rien ne bouge si l'utilisateur a demandé moins d'animations. */
.af-cal__js-ligne {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	margin-bottom: 4px;
}

.af-cal {
	overflow: hidden;
	margin: -3px; /* place pour le contour de focus des jours, que le masquage couperait */
	padding: 3px;
}

.af-cal__grille--suivant {
	animation: af-cal-suivant 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.af-cal__grille--precedent {
	animation: af-cal-precedent 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes af-cal-suivant {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
}

@keyframes af-cal-precedent {
	from {
		opacity: 0;
		transform: translateX(-24px);
	}
}

.af-cal__tete b {
	transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
	.af-cal__grille--suivant,
	.af-cal__grille--precedent {
		animation: none;
	}
}

/* Glisser pour changer de mois (26 nov. 2026, app.js) : le défilement vertical de la page reste possible au doigt ;
   pas de sélection de texte pendant le geste à la souris. */
.af-cal__grille {
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	cursor: grab;
}

.af-cal--glisse,
.af-cal--glisse * {
	cursor: grabbing;
}

.af-cal__grille--retour {
	transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}

/* Nom du mois : il glisse aussi, plus court que les jours, dans le sens du changement (26 nov. 2026). */
.af-cal__mois {
	display: inline-block;
}

.af-cal__mois--suivant {
	animation: af-cal-mois-suivant 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.af-cal__mois--precedent {
	animation: af-cal-mois-precedent 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes af-cal-mois-suivant {
	from {
		opacity: 0;
		transform: translateX(12px);
	}
}

@keyframes af-cal-mois-precedent {
	from {
		opacity: 0;
		transform: translateX(-12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.af-cal__mois--suivant,
	.af-cal__mois--precedent {
		animation: none;
	}
}

/* Mail au client quand le rendez-vous est fixé (26 nov. 2026, maquettes prevenir-mail.html D et animation-envoi.html 2). */
/* Phrase sous les boutons de la carte « À faire », sur sa propre ligne, alignée à droite : le centre sait qu'un
   mail va partir, et à quelle adresse. */
.af-mail {
	display: flex;
	flex-basis: 100%;
	justify-content: flex-end;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.af-mail .ic {
	flex: none;
	width: 16px;
	height: 16px;
}

.af-mail b {
	color: var(--text);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.af-mail--non {
	color: var(--c-encours);
}

/* Fenêtre de confirmation : date du rendez-vous en gras, pastille bleue avec l'enveloppe. */
.modale__date {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Envoi : l'enveloppe glisse hors de la pastille, les boutons s'effacent pendant que le formulaire part. */
.modale__icone {
	overflow: hidden;
}

.modale .modale__actions {
	transition: opacity 0.2s ease;
}

.modale--envoi .modale__actions {
	opacity: 0;
	pointer-events: none;
}

.modale--envoi .modale__titre {
	color: var(--muted);
}

.modale--envoi [data-modale-icone="mail"] .ic {
	animation: modale-enveloppe 0.38s cubic-bezier(0.55, 0, 0.8, 0.4) forwards;
}

@keyframes modale-enveloppe {
	30% { transform: translateX(-3px); }
	100% { transform: translateX(40px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.modale--envoi [data-modale-icone="mail"] .ic { animation: none; }
}

/* Flèches du calendrier en haut à droite, côte à côte ; le nom du mois à gauche (26 nov. 2026, maquette
   fleches-calendrier.html, B ; avant, de chaque côté de la grille). */
.af-cal__tete {
	justify-content: flex-start;
	gap: 8px;
	/* La flèche « mois suivant » centrée sur la colonne du dimanche, comme les chiffres (sinon elle paraît dépasser) :
	   demi-colonne (7 colonnes, 6 espaces de 4 px) moins la demi-largeur d'une flèche (34 px). */
	padding-right: max(0px, calc((100% - 24px) / 14 - 17px));
}

.af-cal__tete .af-cal__mois {
	order: 0;
	margin-right: auto;
}

.af-cal__nav[data-mois="-1"] {
	order: 1;
}

.af-cal__nav[data-mois="1"] {
	order: 2;
}

/* Vente perdue (le client renonce ou annule sa demande) : carte et pastille rouges (26 nov. 2026). */
.af--perdu {
	--ton: var(--bad);
}

.af--perdu .af__txt small {
	color: var(--bad);
}

.fv-etat--bad {
	background: var(--bad-soft);
	color: var(--bad);
}

/* Appels sans réponse : pastille orange sous le texte de la carte, avec l'heure du dernier (26 nov. 2026). */
.af__txt .af-appels {
	display: flex; /* sur sa propre ligne, sous le texte */
	width: fit-content;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--c-encours-bg);
	color: #b45309; /* ambre foncé : lisible sur le fond clair */
	font-size: 12.5px;
	font-style: normal;
	font-weight: 600;
}

.af__txt .af-appels .ic {
	width: 14px;
	height: 14px;
}

:root[data-theme="sombre"] .af__txt .af-appels {
	color: var(--c-encours);
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .af__txt .af-appels {
		color: var(--c-encours);
	}
}
