/* CVE Accessibilité Public - aucun asset externe */
.cve-a11y-skip {
    position: fixed;
    z-index: 2147483647;
    left: 1rem;
    top: .5rem;
    transform: translateY(-160%);
    padding: .75rem 1rem;
    background: #fff;
    color: #111;
    border: 3px solid #111;
    border-radius: .4rem;
    font-weight: 700;
    text-decoration: underline;
}
.cve-a11y-skip:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #ffbf47 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 1px #111 !important;
}

.cve-a11y {
    position: fixed;
    z-index: 2147483000;
    bottom: 1rem;
    font: 16px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cve-a11y--right { right: 1rem; }
.cve-a11y--left { left: 1rem; }

.cve-a11y__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .65rem .9rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #145a32;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.24);
}
.cve-a11y__toggle:hover { background: #0e4626; }

.cve-a11y__panel {
    position: absolute;
    bottom: calc(100% + .65rem);
    width: min(340px, calc(100vw - 2rem));
    padding: 1rem;
    border: 2px solid #145a32;
    border-radius: .75rem;
    background: #fff;
    color: #171717;
    box-shadow: 0 8px 28px rgba(0,0,0,.24);
}
.cve-a11y--right .cve-a11y__panel { right: 0; }
.cve-a11y--left .cve-a11y__panel { left: 0; }

.cve-a11y__head,
.cve-a11y__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.cve-a11y__head { margin-bottom: .85rem; font-size: 1.05rem; }
.cve-a11y__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: .4rem;
    background: transparent;
    color: #111;
    font-size: 1.75rem;
    cursor: pointer;
}
.cve-a11y__group { margin: .5rem 0 .75rem; }
.cve-a11y__label { display: block; margin-bottom: .4rem; font-weight: 700; }
.cve-a11y__row button,
.cve-a11y__option,
.cve-a11y__reset {
    min-height: 44px;
    border: 2px solid #145a32;
    border-radius: .45rem;
    background: #fff;
    color: #143d25;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.cve-a11y__row button { flex: 1; padding: .5rem; }
.cve-a11y__option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .6rem;
    margin: .5rem 0;
    padding: .65rem .75rem;
    text-align: left;
}
.cve-a11y__option[aria-pressed="true"] {
    background: #145a32;
    color: #fff;
}
.cve-a11y__reset {
    width: 100%;
    margin-top: .3rem;
    padding: .65rem .75rem;
    background: #f3f5f4;
}
.cve-a11y__page {
    display: inline-block;
    margin-top: .85rem;
    color: #0b572b;
    font-weight: 700;
    text-decoration: underline;
}
.cve-a11y__note {
    margin: .75rem 0 0;
    font-size: .82rem;
    line-height: 1.4;
    color: #404040;
}

html.cve-a11y-links body a:not(.cve-a11y__toggle) {
    text-decoration: underline !important;
    text-decoration-thickness: .12em !important;
    text-underline-offset: .15em !important;
}

html.cve-a11y-contrast body,
html.cve-a11y-contrast body :where(main, header, footer, nav, section, article, aside, div, p, ul, ol, li, table, tr, td, th, form, label) {
    background-color: #000 !important;
    color: #fff !important;
    background-image: none !important;
}
html.cve-a11y-contrast body a { color: #ffeb3b !important; }
html.cve-a11y-contrast body :where(button, input, select, textarea) {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
html.cve-a11y-contrast img,
html.cve-a11y-contrast video,
html.cve-a11y-contrast svg { background-color: transparent !important; }

html.cve-a11y-motion *,
html.cve-a11y-motion *::before,
html.cve-a11y-motion *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

.cve-a11y-status-wrap {
    position: relative;
    z-index: 10;
    padding: .5rem 1rem;
    text-align: center;
    background: #f5f5f5;
    color: #222;
    font-size: .9rem;
}
.cve-a11y-status { color: inherit; text-decoration: underline; }

@media (max-width: 520px) {
    .cve-a11y { bottom: .65rem; }
    .cve-a11y--right { right: .65rem; }
    .cve-a11y--left { left: .65rem; }
    .cve-a11y__toggle span:last-child { display: none; }
    .cve-a11y__toggle { width: 48px; height: 48px; justify-content: center; padding: 0; border-radius: 50%; }
}

/* v1.2 - sélecteur de taille de texte plus clair et réellement actif */
.cve-a11y__size-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .4rem;
}
.cve-a11y__size-head .cve-a11y__label { margin-bottom: 0; }
.cve-a11y__size-value {
    font-size: .85rem;
    font-weight: 700;
    color: #404040;
}
.cve-a11y__row button[aria-pressed="true"] {
    background: #145a32;
    color: #fff;
    box-shadow: inset 0 0 0 1px #fff;
}
