main {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

section {
    border: 5px solid black;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 0;
    align-items: center;

    /*Les deux sections auront la même taille, même s'ils sont réduits*/
}

h3 {
    text-align: center;
}

form {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#boîtes {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.section-formulaire {
    border: 2px solid black;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px;
    max-width: 300px;

    p {
        grid-column: 1/3;
    }
}


#Contacts {
    margin: 5px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;

    h4 {
        display: flex;
        width: 750px;
        border: 2px dotted black;
        padding: 2px;
        justify-content: flex-start;
    }
}



#ContactEntreprise {
    border: 5px solid black;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    width: max-content;
    height: max-content;
}

.card-entreprise {
    margin: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    h2 {
        margin: 0px;
    }

    p {
        margin: 1px;
    }
}

.grille-contacts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1000px;
    justify-content: center;

}

.ContactProfs {
    border: 5px solid black;
    padding: 10px;
    gap: 5px;
    height: max-content;
    width: max-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

}

.ContactSoutien {
    border: 5px solid black;
    padding: 10px;
    gap: 5px;
    height: max-content;
    width: max-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

}

.contact-card-infos {
    margin: 5px;
    width: 225px;
    gap: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;

    .NomContact {
        margin: 0px;
    }

    .vocation {
        margin: 5px;
    }


    .contact-icones {
        display: flex;
        gap: 5px;
        justify-content: space-around;


        img {
            width: 25px;
        }
    }
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: palegreen;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

/*Media Query*/

@media (max-width:775px) {
    main {
        flex-direction: column;
        width: auto;
        text-align: center;
    }

    #boîtes {
        flex-direction: column;
    }

    #Contacts {

        h4 {
            display: flex;
            width: auto;
            border: 2px dotted black;
            padding: 2px;
            justify-content: center;
        }
    }

    #ContactEntreprise {
        flex-direction: column;
        align-items: center;
        width: auto;
        height: auto;

        h2 {
            text-align: center;
        }

        p {
            text-align: center;
            font-size: small;
        }

        >img {
            width: 150px;
            height: 150px;
        }

    }

    footer {
        flex-direction: column;
        font-size: small;
    }
}

@media(max-width:375px) {

    section {
        border: 0px;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;

        /*Les deux sections auront la même taille, même s'ils sont réduits*/
    }

    form {

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    #boîtes {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .section-formulaire {
        border: 2px solid black;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 10px;
        max-width: 300px;

        p {
            grid-column: 1/3;
        }
    }

    #ContactEntreprise {
        width: auto;
        height: auto;
    }

    .card-entreprise {
        margin: 0px;
        width: auto;
        justify-content: center;

        h2 {
            margin: 0px;
        }

        p {
            margin: 1px;
        }
    }

    .grille-contacts {
        flex-direction: column;
        max-width: auto;
        justify-content: center;

    }

    .ContactProfs {
        border: 1px solid black;
        height: auto;
        width: auto;
        flex-direction: column;
        justify-content: center;

    }

    .ContactSoutien {
        border: 1px solid black;
        height: auto;
        width: auto;
        flex-direction: column;
        justify-content: center;


    }

    .contact-card-infos {
        margin: 5px;
        width: auto;
        gap: 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;

        .NomContact {
            margin: 0px;
        }

        .vocation {
            margin: 5px;
        }


        .contact-icones {
            display: flex;
            gap: 5px;
            justify-content: center;

            img {
                width: 25px;
            }
        }
    }
}