footer {
    font-family: 'Poppins', sans-serif;
    background-color: #4d2814;
    color: white;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    padding: 20px 0; /* Ajout de padding pour l'espacement */
}

.footer-overlay-image {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: -50px;
    z-index: 0;
    top: -20px;
    overflow-x: auto;
}

.footer-overlay-image img {
    height: auto;
    max-width: 200%;
    object-fit: cover;
}

.footer-top-image {
    background-image: url('https://static.igem.wiki/teams/5055/footer-images/terre.webp');
    background-repeat: repeat-x;
    height: 200px;
    width: 100%;
    margin: 0;
    background-position: top center;
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    z-index: 3;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    padding-top: 50px;
    box-sizing: border-box;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #fff;
}

.footer-column img {
    margin: 0 auto;
    max-width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-images {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-images img {
    max-width: 35%;
    height: auto;
    object-fit: contain;
    max-height: 100px;
}

.footer-column p, .footer-column ul, .footer-column a {
    color: #fff;
    font-size: 0.9em;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-columns > .footer-column:not(:last-child) {
    border-right: 2px solid #fff; /* Bordure blanche entre les colonnes */
}

.footer-image img {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

hr {
    border: 0;
    border-top: 2px solid #fff;
    margin: 20px 0;
}

.footer-bottom-text {
    font-size: 0.8em;
    color: #bbb;
}

.sponsor-text h4 {
    margin: 5px 0;
    margin-top: 40px;
    font-size: 1.8em;
    color: #fff;
    padding-left: 40px;
    text-align: left;
}

.footer-image {
    margin: 0 40px;
}

.custom-hr {
    width: 80%;
    margin: 20px auto;
    border-top: 2px solid #fff;
}

/* Styles responsives */
@media (max-width: 1200px) {
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        min-width: 100%;
        padding: 0 15px;
        margin-bottom: 20px; /* Ajout d'espace entre les colonnes empilées */
    }

    .footer-column h4 {
        font-size: 1.6em;
    }

    .footer-images img {
        max-width: 45%;
    }

    .footer-overlay-image img {
        max-width: 250%; /* Agrandir encore plus l'image sur les très petits écrans */
    }

    .footer-columns > .footer-column:not(:last-child) {
        border-right: none; /* Retirer la bordure entre les colonnes sur petits écrans */
    }
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        padding-top: 30px;
    }

    .footer-column {
        min-width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 1.5em;
    }

    .footer-images img {
        max-width: 50%;
    }

    .footer-top-image {
        height: 150px;
    }

    .footer-bottom-text {
        font-size: 0.7em;
    }

    .footer-overlay-image img {
        max-width: 400%; /* Agrandir encore plus l'image sur les très petits écrans */
    }

    .footer-columns > .footer-column:not(:last-child) {
        border-right: none; /* Retirer la bordure entre les colonnes sur petits écrans */
    }
}

@media (max-width: 480px) {
    .footer-columns {
        flex-direction: column;
        padding-top: 20px;
    }

    .footer-column {
        min-width: 100%;
        padding: 0 10px;
    }

    .footer-column h4 {
        font-size: 1.4em;
    }

    .footer-images img {
        max-width: 60%;
    }

    .footer-top-image {
        height: 100px;
    }

    .footer-image img {
        width: 100%;
        height: auto;
    }

    .footer-bottom-text {
        font-size: 0.6em;
    }

    .custom-hr {
        width: 90%;
    }

    .footer-overlay-image img {
        max-width: 400%; /* Agrandir encore plus l'image sur les très petits écrans */
    }

    .footer-columns > .footer-column:not(:last-child) {
        border-right: none; /* Retirer la bordure entre les colonnes sur petits écrans */
    }
}
