/**
 * Pied de page (footer.php). Mesures et couleurs reprises du site source
 * (thème galaxyy, scss/modules/_footer.scss).
 */

.site-footer {
    padding: 70px 0 50px;
    background-color: var(--gt-color-neutral-900);
    color: var(--gt-color-white);
}

.site-footer a {
    color: var(--gt-color-neutral-400);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 50px;
}

/* Logo en ligne (comme sur le site source) : l'espace sous l'image fait partie du rythme
   vertical entre le logo et le slogan. */
.site-footer__tagline {
    margin: 16px 0;
}

.site-footer__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: bold;
}

.site-footer__title--accent {
    color: var(--gt-color-primary);
}

.site-footer__links li {
    margin-bottom: 10px;
}

.site-footer__links strong {
    font-weight: bold;
    color: var(--gt-color-white);
}

.site-footer__links a:hover,
.site-footer__legal a:hover {
    text-decoration: underline;
}

.site-footer__external {
    color: #a7afb5;
}

.site-footer__note {
    font-size: 12px;
    font-style: italic;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 50px;
}

.site-footer__copyright {
    margin: 0;
    font-size: 16px;
    line-height: normal;
}

.site-footer__legal {
    display: flex;
}

/* Séparateur « | » entre les liens légaux, en blanc comme sur le site source */
.site-footer__legal li + li::before {
    content: " | ";
    white-space: pre;
    color: var(--gt-color-white);
}

@media (max-width: 1199px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer__column {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* 100px : sur le site source, une cellule vide entre copyright et liens légaux
       s'ajoutait aux deux espacements de 50px. */
    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        row-gap: 100px;
    }
}
