/* =====================================================================
   Accessibilité — boutons ronds (accessibilité, cookies) et panneau de réglages
   Thème Sophie Bousquet. Le panneau est mesuré en px : il garde sa taille
   quand le visiteur agrandit le texte du site.
   ===================================================================== */

/* ---------- Boutons ronds flottants (partagés avec le bouton des cookies) ---------- */
.sb-pastille {
	--pastille: 58px;
	--marge: 20px;
	position: fixed; bottom: var(--marge); z-index: 2147483000;
	width: var(--pastille); height: var(--pastille); padding: 0; margin: 0;
	display: grid; place-items: center;
	border: 0; border-radius: 50%; cursor: pointer;
	color: var(--papier);
	background:
		radial-gradient(120% 120% at 28% 18%, rgba(169, 191, 166, .38) 0%, transparent 46%),
		linear-gradient(155deg, #2C523C 0%, var(--feuillage) 48%, var(--feuillage-profond) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .22),
		inset 0 0 0 1px rgba(255, 255, 255, .07),
		0 14px 30px -12px rgba(26, 49, 36, .62),
		0 4px 10px -3px rgba(26, 49, 36, .3);
	-webkit-tap-highlight-color: transparent;
	transform: translateY(calc(-1 * var(--leve, 0px)));
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, opacity .3s ease, color .35s ease;
}
/* Version claire, quand le bouton passe sur un fond vert (bandeau défilant, « Le cabinet », pied de page) */
.sb-pastille::after { z-index: 1; }
.sb-pastille > .sb-pastille__ico { position: relative; z-index: 1; }
.sb-pastille > .sb-pastille__fond {
	position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .35s ease;
	background: radial-gradient(120% 120% at 30% 18%, #fff 0%, var(--papier) 55%, #E7EBE0 100%);
	box-shadow: inset 0 0 0 1px rgba(26, 49, 36, .08), inset 0 -2px 0 rgba(26, 49, 36, .06);
}
.sb-pastille.sur-sombre { color: var(--feuillage); box-shadow: 0 0 0 3px rgba(227, 185, 95, .55), 0 14px 30px -10px rgba(5, 14, 9, .75), 0 4px 10px -2px rgba(5, 14, 9, .45); }
.sb-pastille.sur-sombre > .sb-pastille__fond { opacity: 1; }
.sb-pastille.sur-sombre.est-regle::after { box-shadow: 0 0 0 2.5px var(--papier); }
/* Posé au-dessus du bandeau défilant : il suit le défilement sans retard */
.sb-pastille.est-leve { transition: box-shadow .4s ease, opacity .3s ease, color .35s ease; }
.sb-pastille.se-replace { transition: none; animation: sb-pastille-retour .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sb-pastille-retour { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.sb-pastille[hidden] { display: none; }
.sb-pastille--gauche { left: var(--marge); }
.sb-pastille--droite { right: var(--marge); }
/* Anneau moutarde qui se dessine au survol */
.sb-pastille::before {
	content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
	border: 1.5px solid var(--rideau-clair);
	opacity: 0; transform: scale(.82);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.sb-pastille .sb-pastille__ico { width: 28px; height: 28px; stroke-width: 2.1; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.sb-pastille:hover { transform: translateY(calc(-1 * var(--leve, 0px) - 3px)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 36px -12px rgba(26, 49, 36, .7), 0 6px 14px -4px rgba(26, 49, 36, .35); }
.sb-pastille:hover::before, .sb-pastille:focus-visible::before, .sb-pastille[aria-expanded="true"]::before { opacity: 1; transform: scale(1); }
.sb-pastille:active { transform: translateY(calc(-1 * var(--leve, 0px))) scale(.96); }
.sb-pastille:focus-visible { outline: 3px solid var(--terre); outline-offset: 8px; }
.sb-pastille--a11y:hover .sb-pastille__ico { transform: scale(1.1); }
.sb-pastille--cookies:hover .sb-pastille__ico { transform: rotate(-18deg) scale(1.06); }

/* Pastille de rappel : des réglages d'accessibilité sont actifs */
.sb-pastille.est-regle::after {
	content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%;
	background: var(--rideau-clair); box-shadow: 0 0 0 2.5px var(--feuillage);
}

/* Bulle de nom, au survol et au clavier */
.sb-pastille__bulle {
	position: absolute; top: 50%; white-space: nowrap; pointer-events: none;
	padding: 8px 13px; border-radius: 999px;
	background: var(--feuillage-profond); color: var(--papier);
	font: 600 13px/1 var(--texte); letter-spacing: .01em;
	box-shadow: 0 10px 22px -10px rgba(26, 49, 36, .6);
	opacity: 0; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sb-pastille--gauche .sb-pastille__bulle { left: calc(100% + 14px); transform: translate(-6px, -50%); }
.sb-pastille--droite .sb-pastille__bulle { right: calc(100% + 14px); transform: translate(6px, -50%); }
.sb-pastille:hover .sb-pastille__bulle, .sb-pastille:focus-visible .sb-pastille__bulle { opacity: 1; transform: translate(0, -50%); }
.sb-pastille[aria-expanded="true"] .sb-pastille__bulle { opacity: 0; }
@media (hover: none) {
	.sb-pastille__bulle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
}

/* Menu mobile ouvert : les boutons s'effacent */
body.nav-ouverte .sb-pastille { opacity: 0; pointer-events: none; }

@media (max-width: 600px) {
	.sb-pastille { --pastille: 52px; --marge: 14px; }
	.sb-pastille .sb-pastille__ico { width: 25px; height: 25px; }
}

/* ---------- Panneau ---------- */
.sb-a11y {
	position: fixed; inset: auto auto 92px 20px; margin: 0; padding: 0; border: 0;
	width: min(408px, calc(100vw - 40px)); max-width: none; max-height: none;
	overflow: visible; background: transparent; color: var(--encre);
	font: 400 15px/1.45 var(--texte); letter-spacing: normal; word-spacing: normal;
}
.sb-a11y--droite { inset: auto 20px 92px auto; }
.sb-a11y::backdrop { background: rgba(26, 49, 36, .14); }
.sb-a11y *, .sb-a11y *::before, .sb-a11y *::after { box-sizing: border-box; }
.sb-a11y .sb-ico { width: 22px; height: 22px; flex: none; }

.sb-a11y__boite {
	display: flex; flex-direction: column;
	max-height: min(740px, calc(100dvh - 112px));
	background: var(--platre); border-radius: 28px; overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(26, 49, 36, .08),
		0 50px 90px -40px rgba(26, 49, 36, .65),
		0 18px 40px -24px rgba(26, 49, 36, .4);
	transform-origin: bottom left;
}
.sb-a11y--droite .sb-a11y__boite { transform-origin: bottom right; }

/* En-tête vert, aurores et feuille comme sur l'accueil */
.sb-a11y__tete {
	position: relative; isolation: isolate; overflow: hidden; flex: none;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
	padding: 22px 18px 22px 20px;
	color: var(--papier);
	background:
		radial-gradient(circle at 8% 0%, rgba(169, 191, 166, .35), transparent 52%),
		radial-gradient(circle at 100% 120%, rgba(227, 185, 95, .28), transparent 55%),
		var(--feuillage-profond);
}
.sb-a11y__tete::after {
	content: ""; position: absolute; z-index: -1; right: 58px; bottom: -22px; width: 112px; height: 112px;
	background: var(--rideau); opacity: .2; transform: scaleX(-1) rotate(4deg);
	-webkit-mask: url("../img/branche.svg") center / contain no-repeat;
	mask: url("../img/branche.svg") center / contain no-repeat;
}
.sb-a11y__embleme {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: rgba(249, 249, 244, .1); box-shadow: inset 0 0 0 1.5px rgba(227, 185, 95, .7);
	color: var(--rideau-clair);
}
.sb-a11y__embleme .sb-ico { width: 26px; height: 26px; stroke-width: 2; }
.sb-a11y__titres { min-width: 0; }
.sb-a11y .sb-a11y__titre {
	margin: 0; font: 400 24px/1.1 var(--titre); letter-spacing: -.01em; color: var(--papier);
}
.sb-a11y .sb-a11y__intro { margin: 5px 0 0; font-size: 13.5px; line-height: 1.35; color: #C9D4C4; }
.sb-a11y__fermer {
	align-self: start; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(249, 249, 244, .1); color: var(--papier);
	transition: background-color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sb-a11y__fermer:hover { background: rgba(249, 249, 244, .2); transform: rotate(90deg); }
.sb-a11y__tete :focus-visible { outline: 3px solid var(--rideau-clair); outline-offset: 2px; }

/* Corps défilant */
.sb-a11y__corps {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
	padding: 20px 16px 6px;
}
.sb-a11y__bloc { margin: 0 0 20px; }
.sb-a11y .sb-a11y__rubrique {
	display: flex; align-items: center; gap: 8px; margin: 0 4px 10px;
	font: 600 11.5px/1.2 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce);
}
.sb-a11y__rubrique::before {
	content: ""; width: 10px; height: 13px; flex: none; background: var(--rideau);
	-webkit-mask: url("../img/feuille.svg") center / contain no-repeat;
	mask: url("../img/feuille.svg") center / contain no-repeat;
}
.sb-a11y :focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }

/* Profils : pilules */
.sb-a11y__profils { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-a11y__profil {
	display: inline-flex; align-items: center; gap: 7px; margin: 0;
	padding: 8px 14px 8px 10px; border: 1px solid #D8DCCF; border-radius: 999px; cursor: pointer;
	background: var(--papier); color: var(--feuillage);
	font: 600 13.5px/1.1 var(--texte);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s ease;
}
.sb-a11y__profil .sb-ico { width: 18px; height: 18px; }
.sb-a11y__profil:hover { border-color: var(--sauge); background: #fff; transform: translateY(-1px); }
.sb-a11y__profil[aria-pressed="true"] { background: var(--feuillage); border-color: var(--feuillage); color: var(--papier); }
.sb-a11y__profil[aria-pressed="true"] .sb-ico { color: var(--rideau-clair); }

/* Carte « Texte » */
.sb-a11y__carte { padding: 4px 14px 6px; background: var(--papier); border: 1px solid #DDE0D5; border-radius: 20px; }
.sb-a11y__ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.sb-a11y__ligne + .sb-a11y__ligne, .sb-a11y__jauge + .sb-a11y__ligne { border-top: 1px solid #E4E7DD; }
.sb-a11y__ligne--choix { flex-direction: column; align-items: stretch; gap: 9px; }
.sb-a11y__libelle { font: 600 14px/1.3 var(--texte); color: var(--encre); }

.sb-a11y__pas { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--platre); }
.sb-a11y__pas button {
	display: grid; place-items: center; width: 34px; height: 34px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; cursor: pointer; background: #fff; color: var(--feuillage);
	box-shadow: 0 1px 2px rgba(26, 49, 36, .14), 0 0 0 1px rgba(26, 49, 36, .05);
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.sb-a11y__pas button .sb-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.sb-a11y__pas button:hover:not(:disabled) { background: var(--feuillage); color: var(--papier); }
.sb-a11y__pas button:disabled { opacity: .38; cursor: default; box-shadow: none; }
.sb-a11y__valeur { min-width: 66px; text-align: center; font: 600 14px/1 var(--texte); font-variant-numeric: tabular-nums; color: var(--feuillage); }
.sb-a11y__jauge { display: flex; gap: 5px; padding: 0 0 12px; }
.sb-a11y__jauge i { flex: 1; height: 4px; border-radius: 4px; background: #E1E5D9; transition: background-color .3s ease; }
.sb-a11y__jauge i.est-plein { background: var(--sauge); }
.sb-a11y__jauge i.est-plein:last-of-type, .sb-a11y__jauge i.est-plein:has(+ i:not(.est-plein)) { background: var(--feuillage); }

.sb-a11y__segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 13px; background: var(--platre); }
.sb-a11y__segments button {
	margin: 0; padding: 8px 4px; border: 0; border-radius: 10px; cursor: pointer;
	background: transparent; color: var(--encre-douce);
	font: 600 13px/1.15 var(--texte);
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.sb-a11y__segments button:hover { color: var(--feuillage); }
.sb-a11y__segments button[aria-pressed="true"] { background: #fff; color: var(--feuillage); box-shadow: 0 1px 3px rgba(26, 49, 36, .16), 0 0 0 1px rgba(26, 49, 36, .06); }
.sb-a11y__segments[data-a11y-choix="police"] button[data-valeur="dys"] { font-family: "OpenDyslexic", var(--texte); font-size: 12px; }
.sb-a11y__segments[data-a11y-choix="police"] button[data-valeur="simple"] { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12.5px; }

/* Tuiles */
.sb-a11y__tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sb-a11y__tuile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
	min-height: 96px; margin: 0; padding: 14px 8px 12px;
	border: 1px solid #DDE0D5; border-radius: 18px; cursor: pointer;
	background: var(--papier); color: var(--feuillage);
	font: 600 12.5px/1.22 var(--texte); text-align: center;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.sb-a11y__tuile > .sb-ico { width: 26px; height: 26px; }
.sb-a11y__tuile-mot { text-wrap: balance; }
.sb-a11y__tuile:hover { border-color: var(--sauge); transform: translateY(-2px); box-shadow: 0 12px 22px -16px rgba(26, 49, 36, .55); }
.sb-a11y__tuile[aria-pressed="true"] {
	background: linear-gradient(160deg, #2C523C, var(--feuillage) 60%); border-color: var(--feuillage); color: var(--papier);
	box-shadow: 0 12px 22px -14px rgba(26, 49, 36, .7);
}
.sb-a11y__tuile[aria-pressed="true"] > .sb-ico { color: var(--rideau-clair); }
.sb-a11y__coche {
	position: absolute; top: 7px; right: 7px; display: grid; place-items: center;
	width: 19px; height: 19px; border-radius: 50%;
	background: var(--rideau-clair); color: var(--feuillage-profond);
	opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.sb-a11y .sb-a11y__coche .sb-ico { width: 12px; height: 12px; stroke-width: 3.2; }
.sb-a11y__tuile[aria-pressed="true"] .sb-a11y__coche { opacity: 1; transform: scale(1); }

/* Pied du panneau */
.sb-a11y__pied {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; flex: none;
	padding: 12px 16px 14px; background: var(--papier); border-top: 1px solid #E1E4DA;
}
.sb-a11y__raz {
	display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 15px 9px 12px;
	border: 1px solid #D3D8CB; border-radius: 999px; cursor: pointer;
	background: transparent; color: var(--feuillage); font: 600 13px/1 var(--texte);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.sb-a11y__raz .sb-ico { width: 17px; height: 17px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sb-a11y__raz:hover:not(:disabled) { background: var(--terre-bouton); border-color: var(--terre-bouton); color: #fff; }
.sb-a11y__raz:hover:not(:disabled) .sb-ico { transform: rotate(-200deg); }
.sb-a11y__raz:disabled { opacity: .45; cursor: default; }
.sb-a11y .sb-a11y__decl {
	display: inline-flex; align-items: center; gap: 6px;
	font: 600 13px/1.2 var(--texte); color: var(--feuillage); text-decoration: none;
}
.sb-a11y__decl .sb-ico { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sb-a11y .sb-a11y__decl:hover { color: var(--terre-fonce); text-decoration: underline; text-underline-offset: .2em; }
.sb-a11y__decl:hover .sb-ico { transform: translateX(3px); }

/* Ouverture et fermeture */
.sb-a11y[open] .sb-a11y__boite { animation: sb-a11y-entree .42s cubic-bezier(.2, .9, .25, 1) both; }
.sb-a11y[open]::backdrop { animation: sb-a11y-fondu .3s ease both; }
.sb-a11y.est-sortant .sb-a11y__boite { animation: sb-a11y-sortie .2s ease-in both; }
.sb-a11y.est-sortant::backdrop { animation: sb-a11y-fondu .2s ease reverse both; }
@keyframes sb-a11y-entree { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes sb-a11y-sortie { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes sb-a11y-fondu { from { opacity: 0; } }

/* Mobile : feuille qui monte du bas de l'écran */
@media (max-width: 600px) {
	.sb-a11y, .sb-a11y--droite { inset: auto 0 0 0; width: 100%; }
	.sb-a11y::backdrop { background: rgba(26, 49, 36, .4); }
	.sb-a11y__boite { max-height: 90dvh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); background: var(--platre); }
	.sb-a11y__tete { padding-top: 26px; }
	.sb-a11y__tete::before {
		content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
		border-radius: 4px; background: rgba(249, 249, 244, .3);
	}
	.sb-a11y[open] .sb-a11y__boite { animation-name: sb-a11y-monte; }
	.sb-a11y.est-sortant .sb-a11y__boite { animation-name: sb-a11y-descend; }
	@keyframes sb-a11y-monte { from { transform: translateY(100%); } }
	@keyframes sb-a11y-descend { to { transform: translateY(100%); } }
}
@media (max-width: 360px) {
	.sb-a11y__tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.sb-pastille, .sb-pastille *, .sb-pastille::before, .sb-pastille.se-replace, .sb-a11y *, .sb-a11y::backdrop, .sb-a11y .sb-a11y__boite { transition: none !important; animation: none !important; }
}
@media print {
	.sb-pastille, .sb-a11y, .sb-a11y-regle, .sb-a11y-masque { display: none !important; }
}

/* =====================================================================
   Réglages appliqués au site (classes posées sur <html>)
   Seuls l'en-tête, le contenu et le pied de page sont concernés : le panneau reste stable.
   ===================================================================== */

/* Interlignage et espacement (valeurs du critère WCAG 1.4.12) */
html.a11y-interligne-1 :is(.entete, main, .pied) :is(p, li, dd, dt, td, th, blockquote, figcaption, label, address, caption, small) { line-height: 1.9 !important; }
html.a11y-interligne-2 :is(.entete, main, .pied) :is(p, li, dd, dt, td, th, blockquote, figcaption, label, address, caption, small) { line-height: 2.3 !important; }
html.a11y-interligne-1 :is(.entete, main, .pied) :is(h1, h2, h3, h4, h5, h6) { line-height: 1.4 !important; }
html.a11y-interligne-2 :is(.entete, main, .pied) :is(h1, h2, h3, h4, h5, h6) { line-height: 1.6 !important; }
html.a11y-interligne-2 :is(.entete, main, .pied) p { margin-bottom: 1.6em; }
html.a11y-espacement-1 :is(.entete, main, .pied) { letter-spacing: .06em !important; word-spacing: .1em !important; }
html.a11y-espacement-1 :is(.entete, main, .pied) * { letter-spacing: inherit !important; word-spacing: inherit !important; }
html.a11y-espacement-2 :is(.entete, main, .pied) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-espacement-2 :is(.entete, main, .pied) * { letter-spacing: inherit !important; word-spacing: inherit !important; }

/* Polices */
html.a11y-police-simple :is(.entete, main, .pied),
html.a11y-police-simple :is(.entete, main, .pied) *:not(svg, svg *) { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; }
html.a11y-police-dys :is(.entete, main, .pied),
html.a11y-police-dys :is(.entete, main, .pied) *:not(svg, svg *) { font-family: "OpenDyslexic", Verdana, Tahoma, Arial, sans-serif !important; }

/* Contraste renforcé : on durcit les couleurs de la charte */
html.a11y-contraste {
	--encre: #000; --encre-douce: #1C2620; --filet: #5E6B62;
	--feuillage: #0F2619; --feuillage-profond: #08170F; --sauge: #4F6B55;
	--terre: #8C3420; --terre-bouton: #8C3420; --terre-fonce: #6E2716;
	--papier: #FFF; --platre: #FFF;
}
html.a11y-contraste body::before { display: none !important; } /* grain de papier */
html.a11y-contraste .entete, html.a11y-contraste .entete--defile { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 2px solid #000; }
html.a11y-contraste .pied, html.a11y-contraste .pied a, html.a11y-contraste .pied p { color: #fff !important; }
html.a11y-contraste main a:not(.bouton) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-contraste .ouverture::before, html.a11y-contraste .ouverture::after { display: none !important; }

/* Noir et blanc, couleurs douces (filtre sur la page entière) */
html.a11y-attenue { filter: saturate(.45); }
html.a11y-gris { filter: grayscale(1); }

/* Liens soulignés */
html.a11y-liens :is(.entete, main, .pied) a:not(.bouton) {
	text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .22em !important;
}
html.a11y-liens main :is(p, li, td, dd) a:not(.bouton) { background-color: rgba(227, 185, 95, .28); border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
html.a11y-liens .bouton { box-shadow: 0 0 0 3px var(--rideau-clair) !important; }

/* Titres repérés */
html.a11y-titres :is(.entete, main, .pied) :is(h1, h2, h3, h4, h5, h6) {
	outline: 2px solid var(--rideau) !important; outline-offset: 6px; border-radius: 3px;
	background-color: rgba(227, 185, 95, .14);
}

/* Focus renforcé : double anneau, visible sur fond clair comme sur fond vert */
html.a11y-focus :focus-visible {
	outline: 3px solid var(--rideau-clair) !important; outline-offset: 3px !important;
	box-shadow: 0 0 0 7px var(--feuillage-profond) !important; border-radius: 4px;
}

/* Grand curseur */
html.a11y-curseur, html.a11y-curseur * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M7 3v33l8.6-8 5.6 13 6-2.6-5.6-12.8H33.5Z' fill='%231A3124' stroke='%23F9F9F4' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 7 3, auto !important;
}
html.a11y-curseur :is(a, button, [role="button"], label, select, summary, input[type="checkbox"], input[type="radio"]),
html.a11y-curseur :is(a, button, [role="button"], label, select, summary) * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M7 3v33l8.6-8 5.6 13 6-2.6-5.6-12.8H33.5Z' fill='%23B25640' stroke='%23F9F9F4' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 7 3, pointer !important;
}
html.a11y-curseur :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), textarea) { cursor: text !important; }

/* Règle et masque de lecture (calques créés par le script) */
.sb-a11y-regle {
	position: fixed; left: 0; right: 0; top: 0; height: 12px; z-index: 2147482995; pointer-events: none;
	background: rgba(227, 185, 95, .5); border-block: 2px solid var(--feuillage-profond);
	box-shadow: 0 0 0 1px rgba(249, 249, 244, .7);
}
.sb-a11y-masque { position: fixed; left: 0; right: 0; z-index: 2147482990; pointer-events: none; background: rgba(13, 26, 18, .6); }
.sb-a11y-masque--haut { top: 0; height: 40vh; box-shadow: 0 2px 0 var(--rideau-clair); }
.sb-a11y-masque--bas { bottom: 0; top: 60vh; box-shadow: 0 -2px 0 var(--rideau-clair); }

/* Sans animations */
html.a11y-calme *, html.a11y-calme *::before, html.a11y-calme *::after {
	animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
	transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}

/* Masquer les images (le logo reste) */
html.a11y-images :is(main, .pied) :is(img, picture, video, iframe):not(.pied__logo img, .reseau__logo),
html.a11y-images .ouverture .rideau { visibility: hidden !important; }

/* Lecture à voix haute */
html.a11y-voix :is(main, .entete, .pied) :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, th, td, blockquote, figcaption):hover {
	outline: 2px dashed rgba(201, 147, 46, .85); outline-offset: 4px; border-radius: 3px;
}
.sb-a11y-lu { outline: 3px solid var(--rideau) !important; outline-offset: 4px; background-color: rgba(227, 185, 95, .2) !important; border-radius: 3px; }
