/* Outil d'accessibilité : bouton, panneau et modes d'affichage */
#a11y { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 9500; font-family: Arial, 'Noto Sans Hebrew', sans-serif; }
#a11y .a11y-toggle { display: flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; padding: 0; border: 0; border-radius: 50%; background: #1B4F9C; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer; }
#a11y .a11y-toggle svg { width: 1.9rem; height: 1.9rem; fill: #fff; }
#a11y .a11y-panel { position: absolute; right: 0; bottom: 4rem; width: 15.5rem; max-height: 70vh; overflow-y: auto; padding: .9rem; border-radius: 1rem; background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); color: #111; text-align: right; }
#a11y .a11y-panel[hidden] { display: none; }
#a11y .a11y-title { margin: 0 0 .6rem; font-size: 1.125rem; font-weight: 700; }
#a11y ul { margin: 0; padding: 0; list-style: none; }
#a11y li + li { margin-top: .3rem; }
#a11y .a11y-panel button, #a11y .a11y-panel a { display: block; width: 100%; min-height: 2.75rem; padding: .55rem .8rem; border: 1.5px solid #D7DCE5; border-radius: .6rem; background: #F5F7FA; font: inherit; font-size: 1.05rem; text-align: right; color: #111; text-decoration: none; cursor: pointer; }
#a11y .a11y-panel button[aria-pressed="true"] { background: #1B4F9C; border-color: #1B4F9C; color: #fff; }
#a11y .a11y-panel a { background: #fff; text-decoration: underline; color: #1B4F9C; }
#a11y :focus-visible { outline: 3px solid #E8A200; outline-offset: 2px; }

html.a11y-gray { filter: grayscale(100%); }
html.a11y-invert { filter: invert(100%) hue-rotate(180deg); }
html.a11y-invert img, html.a11y-invert video, html.a11y-invert iframe { filter: invert(100%) hue-rotate(180deg); }
html.a11y-contrast body, html.a11y-contrast body *:not(img):not(svg):not(path):not(circle) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #FFE600 !important; }
html.a11y-contrast .btn { border: 2px solid #FFE600 !important; }
html.a11y-light body, html.a11y-light body *:not(img):not(svg):not(path):not(circle) { background-color: #fff !important; background-image: none !important; color: #000 !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html.a11y-light a, html.a11y-light a * { color: #0033CC !important; }
html.a11y-light .btn { border: 2px solid #000 !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700 !important; }
html.a11y-links a:not(#a11y a) { background-color: #FFF3B0 !important; color: #000 !important; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }
