* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    line-height: 1.6;
}

body {
    background-image: url("img/fond.png")
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28;
}

h3 {
    font-size: 24px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Dela Gothic One';
}

p {
    font-size: 20px;
    font-family: 'Montserrat'
}

.navbar {
    position: absolute;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.navbar a {
    color: black;
}

.navbar .nav-links ul {
    display: flex;
}

.navbar .menu-burger {
    display: none;
    width: 35px;
    position: absolute;
    top: 50px;
    right: 35px;
}

@media screen and (min-width: 900px) {
    .chiffres .sujet {
        display: inline-flex;
    }
    .chiffres .box-c1 {
        width: 50%;
    }
    .explications .bloc1,
    .bloc2,
    .bloc3 {
        display: inline-flex;
        align-items: center;
    }
    .explications .bloc1 p {
        margin-right: 50px;
    }
    .acceuil img {
        margin-right: 10px;
    }
    img #right {
        float: right;
    }
    .acceuil {
        min-height: 80vh;
        height: max-content;
        display: flex;
        line-height: 1.6;
        margin-right: 10px;
        align-items: center;
        margin-left: 50px;
    }
    .QSN .box {
        display: flex;
        margin-top: 50px;
    }
    .QSN .box .box-qsn1,
    .box-qsn2,
    .box-qsn3 {
        border-radius: 10px;
        margin-left: 50px;
        width: 30%;
        border: solid;
        background: white;
        color: #15221A;
    }
    .QSN {
        height: 100vh;
    }
    .QSN .box .box-qsn3 {
        margin-right: 50px;
    }
}

@media screen and (max-width: 900px) {
    .navbar {
        padding: 0;
    }
    .navbar .logo {
        position: absolute;
        top: 30px;
        left: 50px;
    }
    .navbar .menu-burger {
        display: block;
    }
    .nav-links {
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgba(255, 255, 255, 0.20);
        backdrop-filter: blur(7px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }
    .nav-links.mobile-menu {
        margin-left: 0;
    }
    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar .nav-links ul li {
        margin: 25px 0;
        font-size: 1.2em;
    }
    .QSN .box h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .chiffres .bloc-c1,
    .bloc-c2 {
        display: block;
    }
    .acceuil {
        height: 80vh;
        display: block;
        line-height: 1.6;
        margin-right: 10px;
        align-items: center;
    }
    .chiffres .box-c1 {
        margin-bottom: 10px;
        align-items: center;
        text-align: center;
    }
    .chiffres .box-c2 {
        margin-bottom: 10px;
        align-items: center;
        text-align: center;
    }
    .QSN .box {
        display: block;
        margin-top: 50px;
    }
    .QSN .box .box-qsn1,
    .box-qsn2,
    .box-qsn3 {
        border-radius: 10px;
        margin-left: auto;
        margin-right: auto;
        width: 60%;
        border: solid;
        background: white;
        color: #15221A;
        margin-bottom: 10px;
    }
    .QSN {
        height: max-content;
    }
}

header {
    height: 20vh;
}

.acceuil {
    min-height: 80vh;
    height: max-content;
    line-height: 1.6;
    margin-right: 10px;
    align-items: center;
}

.acceuil p {
    margin-bottom: 25px;
}

.acceuil h1 {
    margin-left: 50px;
    margin-right: 50px;
    line-height: 1.6;
}

.acceuil .mascotte {
    display: inline-block;
}

.acceuil img {
    width: auto;
    height: auto;
}

.button {
    font-size: 18px;
    text-decoration: none;
    background: white;
    color: #15221A;
    padding: 10px 20px;
    border: 0.5px #15221A solid;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s ease;
    margin-left: 50px;
}

.button::after,
.button::before {
    content: "";
    position: absolute;
    background: white;
    border-radius: inherit;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    transition: transform 0.5s ease;
}

.button:hover {
    transform: translate(10px, 10px);
}

.button:hover::after {
    transform: translate(4px, 4px);
    background: #51B0F8;
}

.button:hover::before {
    transform: translate(8px, 8px);
    background: #ec7854;
}

.chiffres .titre {
    display: block;
}

.chiffres {
    min-height: 30vh;
    height: max-content;
    background: #2A8DD8;
    color: #FFFCF8;
    text-align: center;
    align-items: center;
    margin-top: 50px;
}

.chiffres p {
    margin-bottom: 20px;
}

.explications {
    height: max-content;
    margin: 40px 25px 25px 40px;
    display: inline-block;
    text-align: center;
    align-items: center;
}

.explications .h1,
h3 {
    margin-left: 50px;
    margin-right: 50px;
}

.explications .h1 {
    margin-bottom: 50px;
}

.explications .img-explication {
    height: auto;
    width: 250px;
    margin-top: 50px;
}

.explications .img-explication,
.h3 {
    text-align: center;
    align-items: center;
}

.QSN {
    width: 100%;
    background: #218B4D;
    color: #FFFCF8;
    display: inline-block;
    text-align: justify;
    align-items: center;
}

.QSN .titre {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.QSN .box {
    justify-content: center;
    text-align: center;
}

.articles {
    min-height: 80vh;
    max-width: max-content;
    margin-bottom: 50px;
    margin-top: 15px;
}

.articles h1 {
    margin-bottom: 20px;
    margin-left: 50px;
}

.challenge {
    height: 60vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.challenge .bande {
    margin-top: 40px;
    width: 100%;
}

.challenge h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.challenge p {
    margin-bottom: 10px;
}

footer {
    min-height: 30vh;
    max-height: max-content;
    display: flex;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
    background: #ec7854;
    width: 100%;
}

.gras {
    text-align: center;
}

.vert {
    color: #218B4D;
}

.jaune {
    color: #fada61;
}

.bleu {
    color: #2A8DD8;
}

.rouge {
    color: #ec7854;
}

.icon {
    height: 40px;
    width: 40px;
    margin-left: 10px;
}

.logo {
    height: 90px;
    width: 90px;
    margin-left: 10px;
}


/* test carousel */

* {
    box-sizing: border-box;
}


/* //mettre nom de la zone contre body */

.evenements {
    display: inline-block;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    transition: .4s ease-in;
    height: 100vh;
    background: #fada61;
}

.evenements h2 {
    text-align: center;
}

.evenements p {
    text-align: center;
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: 50px;
}

input[type=radio] {
    display: none;
}

.card {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform .4s ease;
    cursor: pointer;
}

.container {
    width: 60%;
    max-width: 800px;
    max-height: 600px;
    height: 60%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.cards {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
}

.evenements img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

#item-1:checked~.cards #song-3,
#item-2:checked~.cards #song-1,
#item-3:checked~.cards #song-2 {
    transform: translatex(-80%) scale(.8);
    opacity: .4;
    z-index: 0;
}

#item-1:checked~.cards #song-2,
#item-2:checked~.cards #song-3,
#item-3:checked~.cards #song-1 {
    transform: translatex(80%) scale(.8);
    opacity: .4;
    z-index: 0;
}

#item-1:checked~.cards #song-1,
#item-2:checked~.cards #song-2,
#item-3:checked~.cards #song-3 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}

.evenements img {
    box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
}

.player {
    background-color: #fada61;
    border-radius: 8px;
    width: 500px;
    height: 200px;
    padding: 16px 10px;
}

.upper-part {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    height: 300px;
    overflow: hidden;
}

.song-info {
    width: calc(100% - 32px);
    display: block;
}

.song-info .title {
    color: #403d40;
    font-size: 14px;
    line-height: 24px;
}

.info-area {
    width: 100%;
    position: absolute;
    top: 0;
    left: 30px;
    transition: transform .4s ease-in;
}

#item-2:checked~.player #test {
    transform: translateY(0px);
}

#item-2:checked~.player #test {
    transform: translateY(-90px);
}

#item-3:checked~.player #test {
    transform: translateY(-150px);
}


/* card */

.challenge .container {
    margin: 0;
    float: inline-start;
}

.challenge .row {
    margin: 0;
    display: inline;
    margin-right: 0px;
    flex-wrap: wrap;
}

.challenge .image img {
    max-width: 200px;
    opacity: 0.8;
    position: flex;
    transition: 0.6s;
    transition-property: opacity;
    float: inline-start;
}

.challenge .image {
    position: relative;
    flex: 1;
    margin: 0;
    float: inline-start;
}

.challenge .image:hover img {
    opacity: 1;
    background: white;
}

.challenge .image .details {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.challenge .image .details p {
    margin: 10px 10px 0 10px;
    font-size: 15px;
    color: #15221A;
    text-align: center;
    opacity: 0;
    transition: 0.6s;
    transition-property: opacity, transform;
    background: #ec7854;
}

.challenge .image:hover .details p {
    opacity: 1;
    transform: translateY(40px);
}


/* end */

.articles .container {
    position: relative;
    width: 320px;
    margin: 100px auto 0 auto;
    perspective: 1000px;
}

.articles .carousel {
    margin-left: 50%;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate360 20s infinite forwards linear;
    align-items: center;
}

.articles .carousel__face {
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    width: 300px;
    height: 187px;
    top: 20px;
    left: 10px;
    right: 10px;
    background-size: cover;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    display: flex;
}

span {
    margin: auto;
    font-size: 15px;
    color: #FFFCF8;
    align-items: center;
    justify-content: center;
}

.carousel_face a {
    align-items: center;
}

.carousel__face:nth-child(1) {
    background-image: url("../img/guide.png");
    transform: rotateY( 0deg) translateZ(430px);
}

.carousel__face:nth-child(2) {
    background-image: url("../img/sobriete.png");
    transform: rotateY( 40deg) translateZ(430px);
}

.carousel__face:nth-child(3) {
    background-image: url("../img/effetNeg.png");
    transform: rotateY( 80deg) translateZ(430px);
}

@keyframes rotate360 {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(-70deg);
    }
}

.evenements .container {
    margin-bottom: 50px;
}

#articles {
    margin-left: 70%;
}

.evenements a {
    margin-left: 50%;
}

.articles .container {
    margin: 0;
    float: inline-start;
}

.articles .row {
    margin: 0;
    display: inline;
    margin-right: 0px;
    flex-wrap: wrap;
}

.articles .image img {
    max-width: 200px;
    opacity: 0.8;
    position: flex;
    transition: 0.6s;
    transition-property: opacity;
    float: inline-start;
}

.articles .image {
    position: relative;
    flex: 1;
    margin: 0;
    float: inline-start;
}

.articles .image:hover img {
    opacity: 1;
    background: white;
}

.articles .image .details {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.articles .image .details p {
    margin: 10px 10px 0 10px;
    font-size: 15px;
    color: #15221A;
    text-align: center;
    opacity: 0;
    transition: 0.6s;
    transition-property: opacity, transform;
    background: #51B0F8;
}

.articles .image:hover .details p {
    opacity: 1;
    transform: translateY(40px);
}

footer .lien {
    margin-top: 20px;
    margin-bottom: 50px;
    color: #FFFCF8;
}

footer a {
    color: #FFFCF8;
}

footer .mention {
    color: #FFFCF8;
}

footer .mention p {
    justify-content: center;
    text-align: center;
}

.acceuil .orange {
    color: #FFFCF8;
    background: #ec7854;
    width: max-content;
}

.acceuil h1 {
    display: inline;
    margin: 0;
}

.btnUp {
    height: 100px;
    width: 100px;
    display: flex;
    justify-content: end;
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
}

.icone {
    width: 50px;
}