/*Format mobile*/
footer{
    font-size: 15px;
    &>div{
        background-color: #016736;
        width: 100%;
        color: white;
        display: flex;
        flex-direction: column;
        padding: 2rem 0;
        gap: 2rem;
        margin-top: -5rem;

        section {
            display: flex;
            gap: 1rem;
            width: 100%;
            justify-content: center;
            align-items: center;
        }
    }
}

footer>img{
    width: 100%;
    margin-bottom: -1rem;
}

#footer_informations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    #footer_logo {
        border-radius: clamp(5px, 5vw, 30px);
        width: clamp(105px, 10vw, 256px);
        height: clamp(105px, 10vw, 256px);
    }

    #footer_text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        font-weight: 400;
        gap: 0.5rem;
    }

    #social a {
        color: white;
        text-decoration: none;
    }
    svg {
        width: clamp(35px, 5vw, 80px);
        height: clamp(35px, 5vw, 80px);
        cursor: pointer;
        transition: transform 0.3s ease;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    white-space: pre-line;
    line-height: 1;
    text-align: center;

    & h3:last-of-type {
        text-align: center;
    }
}

/* Format tablette*/
@media (min-width: 550px) {
    footer {
        font-size: 18px;
        &>div{
            margin-top: -10rem;
            &>section{
                z-index: 4;
            }
        }
    }

    #footer_informations {
        flex-direction: row;
        align-items: flex-start;

        #footer_text {
            align-items: flex-start;
        }
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: "col1 col2" "col3 col3";
        /*donne un nom à chaque zone*/

        &>div:nth-child(1) {
            grid-area: col1;
        }

        &>div:nth-child(2) {
            grid-area: col2;
        }

        &>div:nth-child(3) {
            grid-area: col3;
            width: 100%;
        }
    }
}

/* Format desktop*/
@media (min-width: 990px) {
    #footer_text svg {
        width: clamp(15px, 5vw, 80px);
        height: clamp(15px, 5vw, 80px);
        cursor: pointer;
        transition: transform 0.3s ease;

        &:hover {
            transform: scale(1.10);
        }
    }

    #footer_newsletter {
        width: auto;
    }

    .grid {
        display: flex;
        align-items: flex-start;

        &>div {
            flex: 1;
            min-width: 200px;
        }
    }

}

@media (min-width: 1024px) {
    footer{
        position: relative;
        &>div{
            margin-top: 0;
            position: absolute;
            bottom: 0;
            height: 100%;
            justify-content: space-between;
            background-color: initial;
            padding: 0;
            #footer_text{
                color: black;
                #social>a{
                    color: #016736;
                }
            }
        }
        #footer_informations{
            justify-content: flex-start;
            margin-left: 15rem;
            width: calc(100% - 15rem);
        }
    }
}
@media (min-width: 1600px) {
    footer .grid{
        margin-block: 150px;
    }
}
@media (min-width: 1920px) {
    footer{
       font-size: 24px;
    }
}
