/* REL Accessibilité 1.0 - classes préfixées pour éviter les collisions thème / plugins */
.rel-a11y-skip-links { position: absolute; z-index: 99999; top: 0; left: 0; }
.rel-a11y-skip-links a { position: absolute; display: block; white-space: nowrap; top: -120px; left: 12px; padding: 12px 16px; background: #fff !important; color: #111 !important; border: 3px solid #111; border-radius: 5px; font: 700 16px/1.3 system-ui, sans-serif; text-decoration: underline !important; }
.rel-a11y-skip-links a:focus { top: 12px; position: fixed; }
html.rel-a11y-focus :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid #ffbf47 !important; outline-offset: 3px !important; }
html.rel-a11y-font-1 { font-size: 112.5% !important; }
html.rel-a11y-font-2 { font-size: 125% !important; }
html.rel-a11y-font-1 body { font-size: 1.125rem !important; }
html.rel-a11y-font-2 body { font-size: 1.25rem !important; }
html.rel-a11y-links body a:not(.rel-a11y-trigger):not(.rel-a11y-close):not([role="button"]):not(.button) { text-decoration: underline !important; text-underline-offset: .17em; }
html.rel-a11y-spacing body :is(p, li, blockquote, label, article) { line-height: 1.7 !important; letter-spacing: .03em !important; word-spacing: .08em !important; }
html.rel-a11y-contrast body { background-color: #111622 !important; color: #fff !important; }
html.rel-a11y-contrast body :is(header, main, footer, article, section, nav, #content, #primary, .site-content, .site-main, .entry-content, .wp-block-group, .wp-block-cover):not(.rel-a11y-widget *) { background-color: #111622 !important; }
html.rel-a11y-contrast body :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,legend,label):not(.rel-a11y-widget *) { color: #fff !important; }
html.rel-a11y-contrast body a:not(.rel-a11y-widget *) { color: #ffeb80 !important; text-decoration: underline !important; }
html.rel-a11y-contrast body :is(input,select,textarea):not(.rel-a11y-widget *) { color: #111 !important; background-color: #fff !important; border: 2px solid #ffeb80 !important; }
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
html.rel-a11y-motion, html.rel-a11y-motion:focus-within { scroll-behavior: auto !important; }
html.rel-a11y-motion *, html.rel-a11y-motion *::before, html.rel-a11y-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
.rel-a11y-widget { --rel-a11y-bg: #fff; --rel-a11y-ink: #1a2533; --rel-a11y-border: #657388; color-scheme: light; box-sizing: border-box; position: fixed; z-index: 9990; bottom: var(--rel-a11y-bottom-desktop, 18px); left: 18px; font: 400 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; color: var(--rel-a11y-ink) !important; display: flex; flex-direction: column-reverse; align-items: flex-start; }
.rel-a11y-widget--right { left: auto; right: 18px; align-items: flex-end; }
.rel-a11y-widget *, .rel-a11y-widget *::before, .rel-a11y-widget *::after { box-sizing: border-box; }
.rel-a11y-widget button { font: inherit; cursor: pointer; }
.rel-a11y-widget .rel-a11y-trigger { display: inline-flex; gap: 9px; align-items: center; justify-content: center; background: #182c44 !important; color: #fff !important; border: 2px solid #fff !important; padding: 9px 14px; min-height: 46px; border-radius: 28px; box-shadow: 0 3px 20px #0005; line-height: 1.2; font-size: 15px !important; font-weight: 700; }
.rel-a11y-widget .rel-a11y-trigger:hover { background: #284969 !important; }
.rel-a11y-widget .rel-a11y-panel { width: min(348px, calc(100vw - 24px)); max-height: min(75vh, 660px); overflow-y: auto; overscroll-behavior: contain; border: 2px solid #536378 !important; background: #fff !important; color: #1a2533 !important; border-radius: 12px; box-shadow: 0 12px 45px #0008; padding: 16px; margin-bottom: 10px; }
.rel-a11y-widget [hidden] { display: none !important; }
.rel-a11y-widget .rel-a11y-panel__head { display: flex; gap: 14px; justify-content: space-between; align-items: start; }
.rel-a11y-widget h2 { font: 750 20px/1.3 system-ui, sans-serif !important; color: #172637 !important; margin: 0 !important; }
.rel-a11y-widget .rel-a11y-close { color: #1a2533; background: #eef1f4; border: 1px solid #62718a; border-radius: 6px; height: 38px; width: 38px; font-size: 28px; line-height: 1; }
.rel-a11y-widget p.rel-a11y-help { font-size: 13px !important; line-height: 1.5 !important; color: #394657 !important; margin: 9px 0 14px !important; }
.rel-a11y-widget .rel-a11y-size { margin-bottom: 12px; border: 0; }
.rel-a11y-widget .rel-a11y-size > span { display: block; font-weight: 700; margin-bottom: 8px; }
.rel-a11y-widget .rel-a11y-size__buttons { display: flex; gap: 6px; }
.rel-a11y-widget .rel-a11y-size__buttons button { flex: 1; min-height: 44px; padding: 6px 10px; background: #f3f5f7 !important; color: #1a2533 !important; border: 1px solid #64758a !important; border-radius: 7px; }
.rel-a11y-widget .rel-a11y-size__buttons button[aria-pressed="true"] { background: #182c44 !important; color: #fff !important; border-color: #182c44 !important; }
.rel-a11y-widget .rel-a11y-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; margin: 7px 0; padding: 10px 8px; min-height: 46px; border: 1px solid #93a0b0 !important; border-radius: 8px; background: #fff !important; color: #1a2533 !important; }
.rel-a11y-widget .rel-a11y-pill { width: 39px; height: 23px; flex: 0 0 auto; border-radius: 20px; background: #798594; border: 2px solid #657180; position: relative; }
.rel-a11y-widget .rel-a11y-pill::after { content: ''; width: 15px; height: 15px; position: absolute; top: 2px; left: 2px; background: #fff; border-radius: 50%; }
.rel-a11y-widget .rel-a11y-option[aria-pressed="true"] .rel-a11y-pill { background: #175d3e; border-color: #175d3e; }
.rel-a11y-widget .rel-a11y-option[aria-pressed="true"] .rel-a11y-pill::after { left: 18px; }
.rel-a11y-widget .rel-a11y-panel__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.rel-a11y-widget #rel-a11y-reset { padding: 8px 12px; border: 1px solid #60728b; background: #f1f3f6 !important; color: #172637 !important; border-radius: 7px; min-height: 40px; }
.rel-a11y-widget .rel-a11y-panel__footer a { color: #134a81 !important; text-decoration: underline !important; }
.rel-a11y-widget :is(a,button):focus-visible { outline: 3px solid #d67d00 !important; outline-offset: 2px !important; }
.rel-a11y-statement, .rel-a11y-sitemap { max-width: 960px; margin-inline: auto; }
.rel-a11y-sitemap ul { padding-left: 1.4em; }
.rel-a11y-audit-live { position: fixed; inset: auto 10px 10px auto; z-index: 99990; width: min(480px, calc(100vw - 20px)); max-height: 85vh; overflow: auto; color: #111 !important; background: #fff !important; border: 3px solid #172637; padding: 14px; font: 15px/1.4 system-ui, sans-serif !important; box-shadow: 0 8px 40px #0008; border-radius: 9px; }
.rel-a11y-audit-live h2 { font-size: 19px !important; margin: 0 0 10px !important; color: #111 !important; }
.rel-a11y-audit-live p, .rel-a11y-audit-live li { color: #111 !important; }
.rel-a11y-audit-live button { padding: 8px; background: #172637; color: #fff; border: 0; margin-bottom: 8px; }
.rel-a11y-audit-live code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .rel-a11y-widget { bottom: max(var(--rel-a11y-bottom-mobile, 76px), env(safe-area-inset-bottom)); left: 12px; }
  .rel-a11y-widget--right { left: auto; right: 12px; }
  .rel-a11y-widget .rel-a11y-trigger { padding: 9px 12px; min-width: 48px; }
  .rel-a11y-widget .rel-a11y-trigger span { display: none; }
  .rel-a11y-widget .rel-a11y-panel { max-height: max(140px, calc(100dvh - var(--rel-a11y-bottom-mobile, 76px) - 70px)); }
}
