/*
 * Bandeau d'information sur les cookies (templates/_cookie_notice.html.twig).
 * Fichier statique : chargé sur toutes les pages, bundles React compris.
 * z-index 950 : au-dessus des barres du bas (900), sous les fenêtres modales (1000)
 * et sous le menu du header déplié (1100).
 * Styles posés sur des classes propres, avec les marges et tailles explicites : les
 * feuilles globales du projet donnent à `div`, `p`, `span` des règles (flex, 1rem,
 * line-height) qu'il faut neutraliser ici.
 */
.pb-cookie-notice {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    max-width: 44rem;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: #003c47;
    color: #ffffff;
    box-shadow: 0 0.5rem 1.75rem rgba(0, 30, 36, 0.35);
    font-family: inherit;
}

.pb-cookie-notice[hidden] {
    display: none;
}

.pb-cookie-notice__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.pb-cookie-notice .pb-cookie-notice__title {
    display: block;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #ffe4b5;
}

.pb-cookie-notice .pb-cookie-notice__body,
.pb-cookie-notice .pb-cookie-notice__status {
    display: block;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #ffffff;
}

.pb-cookie-notice .pb-cookie-notice__status[hidden] {
    display: none;
}

.pb-cookie-notice .pb-cookie-notice__link {
    color: #ffe4b5;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.pb-cookie-notice__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.pb-cookie-notice .pb-cookie-notice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.1rem;
    border: 2px solid #ffe4b5;
    border-radius: 0.5rem;
    background: #ffe4b5;
    color: #003c47;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: normal;
    cursor: pointer;
}

.pb-cookie-notice .pb-cookie-notice__btn--secondary {
    background: transparent;
    color: #ffe4b5;
}

.pb-cookie-notice .pb-cookie-notice__btn[hidden] {
    display: none;
}

.pb-cookie-notice .pb-cookie-notice__btn:focus-visible,
.pb-cookie-notice .pb-cookie-notice__link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

@media (min-width: 40rem) {
    .pb-cookie-notice {
        flex-direction: row;
        align-items: center;
    }

    .pb-cookie-notice__text {
        flex: 1 1 auto;
    }

    .pb-cookie-notice__actions {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
    }
}

@media print {
    .pb-cookie-notice {
        display: none !important;
    }
}

/* Pied de page Twig : « Gestion des cookies », un bouton qui se lit comme un lien. */
.pb-cookie-open {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.pb-cookie-open[hidden] {
    display: none;
}
