/**
 * Bloc "Notice accessible" — front + éditeur
 * RGAA 7.5 — messages de statut
 *
 * Couleurs vérifiées pour contraste ≥ 4.5:1 entre la couleur du texte
 * (`--text`) et la couleur d'arrière-plan (`--bg`) de chaque niveau.
 */
.a11y-booster-notice {
    --bg: #e7f5ff;
    --text: #1c3d5a;
    --border: #0073aa;

    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    margin: 1em 0;
    padding: 1em 1.25em;
    border-left: 4px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.a11y-booster-notice--info {
    --bg: #e7f5ff;
    --text: #1c3d5a;
    --border: #0073aa;
}

.a11y-booster-notice--success {
    --bg: #e6f4ea;
    --text: #1e4620;
    --border: #1e8e3e;
}

.a11y-booster-notice--warning {
    --bg: #fff4e5;
    --text: #5c3c00;
    --border: #d68f00;
}

.a11y-booster-notice--error {
    --bg: #fce8e6;
    --text: #5e1d11;
    --border: #cc1818;
}

.a11y-booster-notice__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    color: var(--border);
}

.a11y-booster-notice__icon-svg {
    width: 100%;
    height: 100%;
}

.a11y-booster-notice__content {
    flex: 1;
    min-width: 0;
}

/* Premier / dernier enfant : pas de marge externe parasite */
.a11y-booster-notice__content > *:first-child {
    margin-top: 0;
}

.a11y-booster-notice__content > *:last-child {
    margin-bottom: 0;
}

/* Liens internes — soulignement + couleur héritée pour rester contrasté
   avec le fond coloré, sans risquer un bleu de thème mal contrasté. */
.a11y-booster-notice__content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.a11y-booster-notice__content a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}
