/* Bandeau du site public */

.public-alert-banner {
    padding: 20px 0;
    background: #fff0cd;
    color: #4b3500;
    border-bottom: 3px solid #a86d00;
}

.public-alert-banner--information {
    background: #e6f2fa;
    color: #123f59;
    border-color: #236688;
}

.public-alert-banner--urgent {
    background: #fff0f0;
    color: #761d26;
    border-color: #a51d30;
}

.public-alert-banner-inner {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.public-alert-banner p {
    margin: 5px 0;
}

.public-alert-banner a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.public-alert-label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Informations associées aux alertes */

.public-alert-meta {
    padding: 14px 16px;
    margin: 16px 0;
    border-left: 4px solid #a86d00;
    background: #fff6df;
    color: #4b3500;
    font-size: .92rem;
}

.public-alert-meta--information {
    background: #edf6fc;
    border-color: #236688;
    color: #123f59;
}

.public-alert-meta--urgent {
    background: #fff0f0;
    border-color: #a51d30;
    color: #761d26;
}

.public-alert-meta--expired {
    background: #f0f2f3;
    border-color: #58656c;
    color: #35434b;
}

.public-alert-meta p {
    margin: 5px 0;
}

/* Case du formulaire de rédaction */

.editorial-form .alert-priority-option {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #a86d00;
    border-radius: 12px;
    background: #fff6df;
    color: #4b3500;
}

.editorial-form label.alert-priority-label {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.editorial-form input.alert-priority-checkbox[type="checkbox"] {
    appearance: auto;
    position: static;
    display: block;
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    margin: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    accent-color: #176b43;
    cursor: pointer;
}

.editorial-form .alert-priority-checkbox:focus-visible {
    outline: 3px solid #174f85;
    outline-offset: 4px;
}

.editorial-form .alert-priority-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.editorial-form .alert-priority-text strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.editorial-form .alert-priority-text > span {
    font-size: .95rem;
    font-weight: 400;
}

.editorial-form .alert-priority-option:has(
    .alert-priority-checkbox:checked
) {
    border-color: #176b43;
    background: #eaf6ee;
    color: #16462e;
}

[data-alert-banner][hidden],
[data-alert-fields][hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .public-alert-banner-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .editorial-form .alert-priority-option {
        padding: 16px;
    }
}
