/* ************************************************************ */
/*    SITE ALERT                                                */
/*    Remplace css/site_alert.css du module (libraries-override) */
/* ************************************************************ */

/* Bandeau pleine largeur placé sous la navigation fixe (70px). */
.site-alert-bar {
    position: relative;
    z-index: 101; /* au-dessus de header (z-index: 100) */
    margin-top: 70px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.site-alert-bar .block {
    margin: 0;
}

.site-alert {
    width: 100%;
    text-align: left;
}

/* Couleurs choisies pour un contraste AA minimum avec le texte blanc. */
.ifits-alert {
    --alert-color: #074DA2;

    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.45;
    color: #fff;
    background-color: var(--alert-color);
}

.ifits-alert + .ifits-alert {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.ifits-alert.severity-low {
    --alert-color: #074DA2;
}

.ifits-alert.severity-medium {
    --alert-color: #B3570B;
}

.ifits-alert.severity-high {
    --alert-color: #C8243B;
}

.ifits-alert__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.ifits-alert__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.3rem;
    color: var(--alert-color);
    background-color: #fff;
    border-radius: 50%;
}

.ifits-alert__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ifits-alert__text p {
    margin: 0;
}

.ifits-alert__text p + p {
    margin-top: 0.4rem;
}

.ifits-alert__text strong,
.ifits-alert__text b {
    font-weight: 700;
}

.ifits-alert__text a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.ifits-alert__text a:hover,
.ifits-alert__text a:focus {
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 36em) {
    .ifits-alert {
        font-size: 1rem;
    }

    .ifits-alert__inner {
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    .ifits-alert__icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
    }
}
