﻿

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 50px;

    padding: 35px 15px 20px;

    background: #f8fafc;

    border-top: 1px solid #e2e8f0;

    box-sizing: border-box;
}


.footer-inner {
    width: 100%;
    max-width: 1180px;

    margin: auto;
}


/* =========================================================
   LES 3 NIVEAUX
========================================================= */

.footer-columns {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* =========================================================
   CARTE NIVEAU
========================================================= */

.footer-level {
    padding: 18px;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.footer-level:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(30, 64, 175, .08);
}


/* =========================================================
   TITRE DU NIVEAU
========================================================= */

.footer-level-title {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;

    text-decoration: none;

    color: #1e293b;
}


/* Icône */

.footer-icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eff6ff;

    border-radius: 11px;

    font-size: 22px;
}


/* Titre */

.footer-level-title strong {
    display: block;

    font-size: 17px;

    line-height: 1.2;
}


/* Sous-titre */

.footer-level-title small {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #94a3b8;

    font-weight: 600;
}


/* =========================================================
   LIENS DES CLASSES
========================================================= */

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.footer-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 31px;

    padding: 5px 11px;

    box-sizing: border-box;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 7px;

    color: #475569;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.footer-links a:hover {
    background: #eff6ff;

    border-color: #93c5fd;

    color: #2563eb;
}


/* =========================================================
   NAVIGATION RAPIDE
========================================================= */

.footer-navigation {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 6px 18px;

    margin-top: 30px;

    padding-top: 22px;

    border-top: 1px solid #e2e8f0;
}


.footer-navigation a {
    color: #64748b;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}


.footer-navigation a:hover {
    color: #2563eb;
}


/* =========================================================
   BAS DU FOOTER
========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #e2e8f0;

    color: #94a3b8;

    font-size: 11px;
}


.footer-bottom div {
    display: flex;

    gap: 15px;
}


.footer-bottom a {
    color: #64748b;

    text-decoration: none;
}


.footer-bottom a:hover {
    color: #2563eb;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 800px) {

    .footer-columns {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .footer-level {
        padding: 15px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    .site-footer {
        margin-top: 35px;

        padding: 25px 10px 15px;
    }


    .footer-level-title strong {
        font-size: 16px;
    }


    .footer-links {
        gap: 6px;
    }


    .footer-links a {
        font-size: 11px;

        padding: 5px 9px;
    }


    .footer-navigation {
        gap: 8px 14px;

        margin-top: 22px;
    }


    .footer-bottom {
        flex-direction: column;

        justify-content: center;

        text-align: center;
    }

}