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

.input {
    position: absolute;
}

.scene {
    width: 1440px;
    max-width: 100%;
    min-height: 100vh;
    margin: auto;
    padding: 40px 30px;
}

.carte-wrap {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
    margin-bottom: 5px;
    /* margin-top: -120px; */
}

.carte2-wrap {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
    margin-bottom: 5px;
    /* margin-top: -120px; */
}

.carte,
.front,
.back,
.carte-photo {
    width: 100%;
    height: 100%;
}

.carte2,
.front2,
.back2,
.carte2-photo {
    width: 100%;
    height: 100%;
}

.carte-face {
    position: absolute;
    -webkit-backface-visibility: hidden;
}

.carte2-face {
    position: absolute;
    -webkit-backface-visibility: hidden;
}

.carte {
    position: relative;
    transform-style: preserve-3d;
    -webkit-transition: transform 1s, box-shadow .4s;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302), 0 1px 3px 1px rgba(60, 64, 67, 0.149);
    border-radius: 10px;
}

.carte2 {
    position: relative;
    transform-style: preserve-3d;
    -webkit-transition: transform 3.5s, box-shadow .4s;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302), 0 1px 3px 1px rgba(60, 64, 67, 0.149);
    border-radius: 10px;
}

.carte-photo {
    object-fit: none;
    border-radius: 10px;
}

.carte2-photo {
    object-fit: none;
    border-radius: 10px;
}

.carte:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.302), 0 4px 8px 3px rgba(60, 64, 67, 0.149);
}

.carte2:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.302), 0 4px 8px 3px rgba(60, 64, 67, 0.149);
}

.back {
    background-color: white;
    -webkit-transform: rotateY(180deg);
    text-align: center;
    color: darkgray;
    /* border-radius: 10px; */
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.back2 {
    background-color: white;
    -webkit-transform: rotateY(180deg);
    text-align: center;
    color: darkgray;
    /* border-radius: 10px; */
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.back p {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
}

.back2 p {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
}

.flipcarte {
    opacity: 0;
}

.flipcarte2 {
    opacity: 0;
}

input:checked+.carte {
    -webkit-transform: rotateY(180deg);
}

input:checked+.carte2 {
    -webkit-transform: rotateY(180deg);
}

@media screen and (min-width: 960px) {
    .scene {
        display: flex;
        justify-content: space-around;
    }
}