/* 
 * public/home/footer.css
 * Footer Home
 * 
 * @author SIMON Stephane <stephane@bvb-software.fr>
 * @version 1.1.0
*/

/* ------ FOOTER ------ */

.footer {
    background-color: var(--primary-dark);
    z-index: 0;
    position: relative;
    padding: 6rem 0 5rem 0;
    display: flex;
    justify-content: center;
}

.footer div a {
    text-decoration: none;
}

.footer span {
    text-align: center;
}

.footer div {
    font-size: 1.3em;
    text-align: center;
}

.footer-icon {
    color: white;
}

.footer2 {
    background-color: rgba(122, 121, 121, 0.8);
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5vh 0 5vh 0;
}

.footer2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #2C4594, #5A9EDC, #5DD9C1);
}

.footer2 div {
    display: flex;
    align-items: center;
}

footer i {
    padding-right: 10px;
}

.footer2 a {
    color: inherit;
    text-decoration: none;
    background: none;
    font-weight: normal;
    border: none;
    cursor: pointer;
}

.footer__cat:hover a, .footer__cat:hover i, .footer__cat:hover span {
    color: var(--tertiary-main);
    text-decoration: none;
}

.footer button:focus,
.footer button:hover,
.footer button:active {
    color: var(--tertiary-main);
    text-decoration: none;
}

footer span {
    color: white;
    display: flex;
}

.adress span {
    text-align: center;
}

.btn-footer {
    box-shadow: none !important;
    color: #ffffff;
    font-size: 100%;
    transition: all 0.4s ease-in-out;
}

.btn-footer:hover {
    color: #ffffff;
    transition: all 0.3s ease-in-out;
    font-size: 110%;
}

/* --------- Footer Part 3 ---------- */
.page__copyright {
    position: relative; /* Nécessaire pour le positionnement du pseudo-élément */
    background-color: rgba(122, 121, 121, 0.8);
    color: var(--secondary-easy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.page__copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Épaisseur de la "bordure" */
    background: linear-gradient(to right, #2C4594, #5A9EDC, #5DD9C1);
}


.page__copyright a {
    color: var(--secondary-easy);
}

.page__copyright a:hover {
    color: var(--tertiary-main);
}

.page__copyright .col-md-8 {
    display: flex;
    align-items: center;
    text-align: center;
}

.page__copyright p {
    margin: 0;
    line-height: 1.5;
}

/* Alignement vertical des éléments dans les colonnes */
.page__copyright .row > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajustement de l'espacement des icônes */
.social-icons a {
    margin-right: 10px;
}

/* ------------ MOBILE VIEW ------------ */

/* Grands tablettes et petits laptops */
@media screen and (max-width: 1024px) {
}

@media all and (max-width: 991px) {

    .footer2 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* deux colonnes */
        gap: 20px; /* espace entre les colonnes et les lignes */
        width: 100vw;
        margin: auto;
        font-size: 0.9rem;
    }

    .footer__cat {
        padding: 0 10px;
    }

    .page__copyright {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Ajustement pour petits écrans */
@media (max-width: 767px) {
    .footer2 {
        grid-template-columns: 1fr; /* une colonne */
        padding-left: 0;
    }

    .footer2 > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .page__copyright .row > div {
        justify-content: center;
    }

    .social-icons a {
        margin-right: 5px;
    }
}

/* Ajustement pour écrans moyens et plus grands */
@media (min-width: 768px) {
    .page__copyright .col-md-8 {
        justify-content: flex-start;
    }

    .page__copyright .col-md-4 {
        justify-content: flex-end;
    }
}