main{
    display: flex;
    justify-content: center;
}

.mainSection{
    text-align: center;
    width: 64%;
}

h2{
    font-weight: normal;
    font-size: xx-large;
    color: #7ebd17;
    text-align: center;
}

#formules{
    display: flex;
    justify-content: space-between;
}

h3{
    font-size: x-large;
}

.formule{
    background-color: #deeccf;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    /*border: 2px solid #ccc;*/
    border-radius: 10px;
    padding: 20px;
}

.prixContent{
    padding-left: 20px;
    display: flex;
    align-items: end;
    font-size: small;
}

.prix{
    margin: 0;
    font-size: xxx-large;
    color: #7ebd17;
    padding-right: 10px;
    letter-spacing: -5px;
}

.euro{
    margin: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: x-large;
}

button {
    display: inline-block;
    padding: .75rem 1.25rem;
    border: none;
    border-radius: 1rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: .15rem;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #7ebd17;
        border-radius: 1rem;
        z-index: -2;
    }
    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #689b13;
        transition: all .3s;
        border-radius: 1rem;
        z-index: -1;
    }
    &:hover {
        color: #fff;
        &:before {
            width: 100%;
        }
    }
}

@media screen and (max-width: 1400px) {
    .mainSection {
        width: 80%;
    }
}

@media screen and (max-width: 1000px) {
    .mainSection {
        width: 90%;
    }

    .formule{
        width: 16%;
    }

    .prixContent {
        padding-left: 0;
    }
    #mini h3{
        font-size: 1.25em;
    }
}

@media screen and (max-width: 800px) {
    #formules{
        flex-direction: column;
        align-items: center;
    }

    .formule{
        width: 60%;
        margin-bottom: 15px;
    }

    .formule h3{
        font-size: 2.8em;
        margin: 25px 0;
    }

    #mini h3{
        font-size: 2.6em;
    }
}

@media screen and (max-width: 600px) {
    .prix {
        font-size: 3.2em;
    }

    .euro{
        font-size: large;
    }
}

@media screen and (max-width: 500px) {
    #mini h3{
        font-size: 2em;
    }
    .formule h3{
        font-size: 2em;
    }
    .prix{
        padding-right: 4px;
        letter-spacing: -2px;
    }
    .euro {
        font-size: medium;
    }
}
