* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(174, 245, 221);
    background: linear-gradient(to bottom, rgb(174, 245, 221), rgb(228, 245, 174));
}

.enTete {
    text-align: center;
    padding: 1.25em;
    color: #52987b;
    font-size: 3em;
    font-family: 'Montserrat Alternates', sans-serif;
}

main {
    width: 90%;
    max-width: 1500px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.item-wrapper {
    position: relative;
    height: 300px;
    width: 400px;
    margin: 10px;
    perspective: 2000px;
    perspective-origin: top;
}

.item-wrapper:hover .item {
    transform: rotateY(180deg);
}

.item {
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.05, 1);
}

.item-front,
.item-back {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 20px;
    border-radius: 5px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.item-front {
    color: #52987b;
    font-family: 'Montserrat Alternates', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 3px solid #7DC2A5;
    background-image: url(../img/background-item.svg);
    background-size: cover;
}

.item-front .analogie {
    display: flex;
    justify-content: flex-end;
}

.item-front .contLogo {
    display: flex;
    width: 100%;
    justify-content: center;
}

.item-front #monLogo {
    font-size: 100px;
}

.item-back {
    padding-top: 9px;
    color: #F1F1D3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotateY(180deg);
    border: 3px solid #7DC2A5;
    background-image: url(../img/background-back-item.svg);
    background-size: cover;
}

.item-back .explication {
    margin-top: 30px;
    color: #52987b;
    font-family: 'Nunito', sans-serif;
    overflow-y: scroll;
    word-wrap: break-word;
}

.item-back h2 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.9375em;
}

#boutonOuvreFormulaire {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px;
    cursor: pointer;
    color: #52987b;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.1em;
    background-color: #F1F1D3;
    border: 3px solid #7DC2A5;
    border-radius: 50px;
    transition: 0.2s;
}

#boutonOuvreFormulaire:hover {
    background-color: #ebebc3;

}

#boutonOuvreFormulaire:active {
    box-shadow: inset 2px 2px 10px rgb(96, 95, 95);
}

button,
#envoiFormulaire {
    width: auto;
    height: auto;
    padding: 10px;
    cursor: pointer;
    color: #F1F1D3;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.1em;
    background-color: #7DC2A5;
    border: 3px solid #7DC2A5;
    border-radius: 50px;
    transition: 0.2s;
}

button:hover {
    background-color: #52987b;
}

#envoiFormulaire:hover {
    background-color: #52987b;
}

button:active {
    box-shadow: inset 2px 2px 10px rgb(96, 95, 95);
}

#envoiFormulaire:active {
    box-shadow: inset 2px 2px 10px rgb(96, 95, 95);
}

#popup {
    border-radius: 10px;
    color: #52987b;
    font-family: 'Nunito', sans-serif;
    background-color: #F1F1D3;
    border: 3px solid #7DC2A5;
    width: 26em;
    text-align: center;
    position: absolute;
    top: -100%;
    margin: auto;
    z-index: 20;
    transition: 0.8s;
    padding-bottom: 1.5em;
}

.identiteVisiteur label {
    text-align: center;
    display: block;
}

input {
    width: 18.75em;
    height: 2em;
    border: 3px solid #7DC2A5;
    display: block;
    margin: auto;
    cursor: pointer;
    background-color: whitesmoke;
    border-radius: 20px;
    transition: 0.2s;
    padding: 10px;
}

input:hover {
    border: 3px solid #52987b;
}

input:focus {
    outline: none;
    border: 3px solid #52987b;
}

#fermeFormulaire {
    font-size: 1.5em;
    display: flex;
    justify-content: flex-end;
    padding: 5px;
    padding-bottom: 0px;
}

#croix {
    cursor: pointer;
    transition: 0.2s;
}

#croix:hover {
    color: red;
}

footer {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    bottom: 0px;
}

footer h3 {
    background-color: #52987b;
    padding: 40px;
    padding-top: 10px;
    padding-bottom: 5px;
    cursor: pointer;
    color: #F1F1D3;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.1em;
    border: 3px solid #7DC2A5;
    border-bottom: none;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-left: 10vw;
    margin-right: auto;
    width: auto;
    height: auto;

}

footer .mesCredits {
    box-shadow: inset 2px 2px 10px rgb(96, 95, 95);
    display: flex;
    flex-direction: column;
    width: auto;
    height: 0px;
    background-color: #52987b;
    border-top: 3px solid #7DC2A5;
    transition: 0.3s;
}

footer:hover .mesCredits {
    height: 180px;
}

.monCredit {
    display: flex;
    padding: 10px;
}

h4,
a {
    color: #F1F1D3;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1em;
}

h4 {
    font-weight: 900;
    margin-right: 20px;
}

a {
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    font-weight: 700;
}