/* --------------------------- */
/* premiere page de bienvenue  */
/* --------------------------- */

/* ------------------------ */
/* carde reprenant acceuil */
/* ------------------------ */

.card {
    margin: 6% 7%;
    width: 380px;
    height: 650px;
    perspective: 1000px;
    text-align: center;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    height: 100%;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 16px;
    border-radius: 5%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.card-front {
    background-image: url('../images/matrix.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-front:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    background: linear-gradient(0deg, rgb(89, 88, 88), transparent);
}

.card-front .card-content {
    z-index: 1;
    color: white;
    font-family: 'Rubik Puddles', cursive;
    font-size: 10em;
}

.card-front .card-content p {
    color: #ececec;
}

.card-back {
    transform: rotateY(180deg);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    transition: opacity .6s;
}

.card:hover .card-front {
    opacity: 0;
}

.hoverCard {
    font-size: 0.3em;
    margin: 0;
}

.quiCard {
    margin-bottom: 0.4em;
}

.helloCard {
    margin-bottom: 0.4em;
}



/* -------------------------------------------------------contenu face arriere------------------------------------------------------- */

.entete {
    width: 380px;
    background-color: rgba(251, 251, 251, 0.727);
    border-radius: 5%;
    padding: 4% 2%;
    text-align: center;
    border: 1px solid rgb(58, 57, 57);
}

/* (div) texte de bien venue + nom */

.acceuil {
    margin: 0% 0% 10%;
}

.hello {
    margin-bottom: 5%;
    font-size: 2em;
}

.helloUtilisateur {
    text-transform: uppercase;
    font-size: 2em;
    color: #ac0827;
    margin: 0;
    font-family: 'Rock Salt', cursive;
}

/* -------------------------------- */
/* partie contact en bas de la page */
/* -------------------------------- */

.contact {
    width: inherit;
}

/* parametre texte contact */
.lien {
    text-decoration: none;
    background-color: #555;
    color: white;
    font-size: 1.5em;
    padding: 5% 20%;
    border: 1px solid white;
}

.lien:hover {
    background-color: #777;
    color: rgb(163, 247, 255);
}

.lienContactHome {
    font-size: 2em;
    padding-right: 5%;
}

.telbtn {
    background: transparent;
    border: none;
    font-size: 2em;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* .telDeroulan-content {
    right: 0;
} */

/* .mailDeroulant-content {
    right: 0;
} */

/* ----------------------------------------------------partie Media Screen----------------------------------------------------------------- */

@media (max-width: 1280px) {
    .card{
        margin: 7% 8%;
    }
}

@media (max-width: 1024px) {
    .card{
        margin: 9% 10%;
    }
}

@media (max-width: 800px) {
    .card{
        margin: 13% auto;
    }
}

@media (max-width: 600px) {
    .card{
        margin: 30% auto 10%;
        width: 250px;
        height: 500px;
    }
    .entete{
        width: 250px;
    }
    .quiCard{
        margin-bottom: 0.1em;
    }
    .card-front .card-content{
        font-size: 7em;
    }
    .acceuil{
        font-size: 0.6em;
    }
    .lien{
        font-size: 1em;
    }
}
