/* =========================================================
   FOOTER BST — COLONNES ET LIENS
   ========================================================= */

.public-footer {
    margin-top: 56px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #173247 0%,
            #102b3d 100%
        );

    border-top:
        4px solid
        #f3cf67;
}

.public-footer__inner {
    width:
        min(
            calc(100% - 40px),
            1280px
        );

    margin: 0 auto;
    padding:
        44px 0
        24px;

    display: grid;

    grid-template-columns:
        minmax(280px, 1.8fr)
        minmax(260px, 1.35fr)
        minmax(150px, 0.8fr)
        minmax(150px, 0.8fr);

    gap: 32px;
    align-items: start;
}

/* =========================================================
   IDENTITÉ
   ========================================================= */

.public-footer__identity {
    min-width: 0;
}

.public-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;

    font-weight: 850;
    line-height: 1.3;
    text-decoration: none;
}

.public-footer__logo {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    object-fit: contain;
}

.public-footer__identity p {
    max-width: 49ch;

    margin:
        18px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.84
        );

    line-height: 1.65;
}

/* =========================================================
   COLONNES
   ========================================================= */

.public-footer__column {
    min-width: 0;

    padding-left: 22px;

    border-left:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );
}

.public-footer__column h2 {
    position: relative;

    margin:
        0 0
        20px;

    padding-bottom: 10px;

    color: #ffffff;

    font-size: 1.25rem;
    line-height: 1.25;
}

.public-footer__column h2::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;

    width: 42px;
    height: 3px;

    border-radius: 999px;

    background: #f3cf67;
}

/* =========================================================
   LIENS GÉNÉRAUX
   ========================================================= */

.public-footer__links,
.public-footer__publications {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 9px;
}

.public-footer__links > a {
    position: relative;

    display: block;

    width: 100%;
    padding:
        8px 10px
        8px 20px;

    border-radius: 8px;

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    line-height: 1.4;
    text-decoration: none;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.public-footer__links > a::before {
    content: "›";

    position: absolute;
    top: 7px;
    left: 7px;

    color: #f3cf67;

    font-size: 1.1rem;
    font-weight: 900;
}

.public-footer__links > a:hover {
    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );

    transform:
        translateX(3px);
}

.public-footer__links > a:focus-visible,
.public-footer__publications > a:focus-visible,
.public-footer__brand:focus-visible {
    outline:
        3px solid
        #f3cf67;

    outline-offset: 3px;
}

/* =========================================================
   PUBLICATIONS RÉCENTES
   ========================================================= */

.public-footer__publications > a {
    display: block;

    width: 100%;
    padding:
        11px 12px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 10px;

    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            0.045
        );

    line-height: 1.4;
    text-decoration: none;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.public-footer__publications > a strong {
    display: block;

    margin:
        0 0
        5px;

    color: #ffffff;

    font-size: 0.96rem;
    line-height: 1.4;
}

.public-footer__publications > a span {
    display: block;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 0.82rem;
    line-height: 1.4;
}

.public-footer__publications > a:hover {
    border-color:
        rgba(
            243,
            207,
            103,
            0.65
        );

    background:
        rgba(
            243,
            207,
            103,
            0.11
        );

    transform:
        translateY(-2px);
}

.public-footer__loading {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );
}

/* =========================================================
   BAS DU FOOTER
   ========================================================= */

.public-footer__bottom {
    grid-column:
        1 / -1;

    margin-top: 10px;
    padding-top: 20px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    color:
        rgba(
            255,
            255,
            255,
            0.68
        );

    font-size: 0.84rem;
    text-align: center;
}

.public-footer__bottom p {
    margin: 0;
}

/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1050px) {
    .public-footer__inner {
        grid-template-columns:
            minmax(260px, 1.5fr)
            minmax(240px, 1.2fr)
            minmax(160px, 0.8fr);
    }

    .public-footer__column:last-of-type {
        grid-column: 3;
    }
}

/* =========================================================
   PETITE TABLETTE
   ========================================================= */

@media (max-width: 820px) {
    .public-footer__inner {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            32px 24px;
    }

    .public-footer__identity {
        grid-column:
            1 / -1;

        padding-bottom: 8px;
    }

    .public-footer__column:last-of-type {
        grid-column: auto;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 580px) {
    .public-footer {
        margin-top: 40px;
    }

    .public-footer__inner {
        width:
            min(
                calc(100% - 32px),
                1280px
            );

        grid-template-columns: 1fr;

        padding:
            34px 0
            22px;

        gap: 28px;
    }

    .public-footer__identity {
        grid-column: auto;
    }

    .public-footer__column {
        padding:
            22px 0 0;

        border-left: 0;

        border-top:
            1px solid
            rgba(
                255,
                255,
                255,
                0.16
            );
    }

    .public-footer__column h2 {
        margin-bottom: 14px;
    }

    .public-footer__links > a {
        padding:
            10px 10px
            10px 21px;
    }

    .public-footer__bottom {
        text-align: left;
    }
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {
    .public-footer a {
        transition: none;
    }
}

/*
 * Liens et boutons de la rubrique Informations.
 */
#public-footer-information a,
#public-footer-information .public-footer__action {
    position: relative;

    display: block;

    width: 100%;

    margin: 0;
    padding: 6px 0 6px 18px;

    color: #ffffff;
    background: transparent;

    border: 0;

    font: inherit;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        color 160ms ease,
        padding-left 160ms ease;
}

/*
 * Flèche dorée commune.
 */
#public-footer-information a::before,
#public-footer-information .public-footer__action::before {
    content: "›";

    position: absolute;
    top: 50%;
    left: 4px;

    color: #d5a93f;

    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;

    transform: translateY(-52%);
}

/*
 * Survol et navigation au clavier.
 */
#public-footer-information a:hover,
#public-footer-information .public-footer__action:hover,
#public-footer-information a:focus-visible,
#public-footer-information .public-footer__action:focus-visible {

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );
border-radius: 8px;
    transform:
        translateX(3px);
}

/*
 * Focus accessible.
 */
#public-footer-information a:focus-visible,
#public-footer-information .public-footer__action:focus-visible {
    outline: 1px solid #d5a93f;
    outline-offset: 3px;
}
