:root {
    --footer-imt-primary: #075985;
    --footer-imt-dark: #082f49;
    --footer-imt-light: #e0f2fe;

    --footer-rap-primary: #237f47;
    --footer-rap-dark: #123d28;
    --footer-rap-light: #dcfce7;

    --footer-white: #ffffff;
    --footer-text-light: rgba(255, 255, 255, 0.72);
    --footer-border: rgba(255, 255, 255, 0.14);
    --footer-radius: 22px;
}

/* COULEURS DES ÉTABLISSEMENTS */

.site-footer-imt {
    --footer-primary: var(--footer-imt-primary);
    --footer-dark: var(--footer-imt-dark);
    --footer-light: var(--footer-imt-light);
}

.site-footer-rap {
    --footer-primary: var(--footer-rap-primary);
    --footer-dark: var(--footer-rap-dark);
    --footer-light: var(--footer-rap-light);
}

/* STRUCTURE GÉNÉRALE */

.site-footer {
    width: 100%;
    margin-top: 80px;
    color: var(--footer-white);
    background: var(--footer-dark);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

/* CONTACT */

.site-footer-contact {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    transform: translateY(-45px);
}

.site-footer-contact-container {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: var(--footer-radius);
    background: var(--footer-white);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.16);
}

.site-footer-contact-card {
    position: relative;
    min-height: 145px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 22px;
    color: #172033;
}

.site-footer-contact-card:not(:last-child)::after {
    position: absolute;
    top: 30px;
    right: 0;
    bottom: 30px;
    width: 1px;
    background: #e2e8f0;
    content: "";
}

.site-footer-contact-icon {
    width: 58px;
    height: 58px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 18px;
    background: var(--footer-light);
}

.site-footer-contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer-contact-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.site-footer-contact-content span {
    color: var(--footer-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.site-footer-contact-content p,
.site-footer-contact-content a {
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.site-footer-contact-content a {
    transition: color 0.25s ease;
}

.site-footer-contact-content a:hover {
    color: var(--footer-primary);
}

/* PARTIE PRINCIPALE */

.site-footer-main {
    padding: 40px 20px 70px;
}

.site-footer-main-container {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.55fr 1.1fr;
    gap: 70px;
    align-items: start;
}

/* IDENTITÉ */

.site-footer-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-logo {
    width: 115px;
    height: 115px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--footer-border);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer-identity-content {
    margin-top: 25px;
}

.site-footer-identity-content h2 {
    margin: 0;
    color: var(--footer-white);
    font-size: 25px;
    line-height: 1.25;
}

.site-footer-identity-content p {
    margin: 10px 0 0;
    color: var(--footer-text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* NAVIGATION */

.site-footer-title {
    display: block;
    margin-bottom: 24px;
    color: var(--footer-white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.site-footer-navigation nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer-navigation nav a {
    position: relative;
    width: fit-content;
    color: var(--footer-text-light);
    font-size: 15px;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.site-footer-navigation nav a::before {
    position: absolute;
    top: 50%;
    left: -16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--footer-primary);
    opacity: 0;
    content: "";
    transform: translateY(-50%);
    transition: opacity 0.25s ease;
}

.site-footer-navigation nav a:hover {
    color: var(--footer-white);
    transform: translateX(8px);
}

.site-footer-navigation nav a:hover::before {
    opacity: 1;
}

/* CARTE */

.site-footer-map {
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--footer-border);
    border-radius: var(--footer-radius);
    background: rgba(255, 255, 255, 0.06);
}

.site-footer-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: grayscale(15%);
}

/* BAS DU FOOTER */

.site-footer-bottom {
    padding: 22px 20px;
    border-top: 1px solid var(--footer-border);
    background: rgba(0, 0, 0, 0.12);
}

.site-footer-bottom-container {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 13px;
}

.site-footer-bottom-links {
    display: flex;
    gap: 25px;
}

.site-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    transition: color 0.25s ease;
}

.site-footer-bottom-links a:hover {
    color: var(--footer-white);
}

/* TABLETTE */

@media screen and (max-width: 1000px) {
    .site-footer-contact-container {
        grid-template-columns: 1fr;
    }

    .site-footer-contact-card {
        min-height: 115px;
    }

    .site-footer-contact-card:not(:last-child)::after {
        top: auto;
        right: 30px;
        bottom: 0;
        left: 30px;
        width: auto;
        height: 1px;
    }

    .site-footer-main-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .site-footer-map {
        grid-column: 1 / -1;
        height: 350px;
    }
}

/* MOBILE */

@media screen and (max-width: 650px) {
    .site-footer {
        margin-top: 60px;
    }

    .site-footer-contact {
        padding: 0 15px;
        transform: translateY(-35px);
    }

    .site-footer-contact-card {
        min-height: auto;
        padding: 25px 22px;
    }

    .site-footer-contact-icon {
        width: 52px;
        height: 52px;
        padding: 14px;
        border-radius: 15px;
    }

    .site-footer-main {
        padding: 20px 20px 55px;
    }

    .site-footer-main-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .site-footer-map {
        grid-column: auto;
        height: 280px;
    }

    .site-footer-bottom-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-bottom-links {
        flex-wrap: wrap;
        gap: 15px 22px;
    }
}