﻿html, body {
    margin: 0;
    padding: 0;
}

.layout-grid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Ajout important */
}

.main-content {
    flex-grow: 1;
}

.footer {
    width: 100%;
    background-color: var(--background-light-color);
    color: var(--text-color);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    border-top: 4px solid var(--secondary-color);
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.25rem 0;
    white-space: nowrap;
}

    .footer-link:hover {
        color: var(--secondary-color);
        transform: translateX(5px);
    }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-contact p {
        margin: 0;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        color: var(--primary-color);
    }

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact i {
    margin-right: 0.3rem;
    color: var(--primary-color);
    width: 20px;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    background-color: var(--link-background-color);
}

    .footer-social-link:hover {
        color: #ffffff;
        background-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 4px 6px var(--shadow-color-light);
    }

/* Media Queries pour la responsivité */
@media (max-width: 992px) {

    .layout-grid {
        min-height: 100vh;
    }

    .main-content {
        padding-bottom: 150px; /* Augmentez si nécessaire pour les écrans plus petits */
    }

    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translateY(100%);
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .footer-section {
        width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-link {
        padding: 0.25rem 0.5rem;
    }

        .footer-link:hover {
            transform: translateY(-2px);
        }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 1.5rem 1rem;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-link,
    .footer-contact p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.1rem;
    }

    .footer-link,
    .footer-contact p {
        font-size: 0.85rem;
    }
}