@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Bebas Neue', sans-serif;
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    padding: 20px;
    background-color: #000000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.titre{
    width: 20%;
    display: none;
}

.titre.show {
    display: block;
    animation-duration: 2s;
    animation-name: apparition;
}

@keyframes apparition {
    from {
        opacity: 0;
    }
    90% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 100;
    transition: 1s;
}

.background-video.hidden {
    z-index: 100;
    animation-duration: 2s;
    animation-name: miseEnPlace;
    animation-fill-mode: forwards;
}

@keyframes miseEnPlace {
    from {
        opacity: 1;
        scale: 1;
        width: 100%;
        transform: translate(0);
    }
    10%{
        opacity: 1;
        scale: 0.2;
    }
    75%{
        opacity: 0;
        scale: 0.2;
    }
    to {
        opacity: 0;
        scale: 0.2;
        transform: translate(0px, -230%);
        object-fit: cover;
        display: none;
    }
}

.hidden2 {
    animation-duration: 2s;
    animation-name: disparition;
    animation-fill-mode: forwards;
}

@keyframes disparition {
    from {
        display: block;
    }
    to {
        display: none;
    }
}

main {
    scroll-snap-type: y mandatory;
    height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.cont-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    /* background-image: url(media/fondQuestions.png); */
    scroll-snap-align: start;
    transition: 3s;
}

#contN_0 {
    width: 100%;
    height: 100vh;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    /* background-image: url(media/fondQuestions.png); */
    scroll-snap-align: start;
    transition: 3s;
    /* display: none; */
}

.next {
    position: absolute;
    display: flex;
    justify-content: center;
    bottom: 10%;
    /* left: 50%; */
    right: 50%;
    background-color: #1e1e1e;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.next:hover {
    background-color: #323232;
}

.Top {
    position: absolute;
    display: flex;
    justify-content: center;
    bottom: 10%;
    right: 5%;
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transform: rotate(180deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.Top:hover {
    background-color: #ee0000;
}


#fleche1{
    width: 150px;
    filter: invert();
    rotate: 93deg;
    position: absolute;
    top: 26%;
    left: 58%;
    display: none;
}
#fleche2{
    width: 150px;
    filter: invert();
    rotate: 93deg;
    position: absolute;
    top: 26%;
    left: 58%;
    display: none;
}

.titreQuestions {
    color: white;
    font-variant: small-caps;
    font-size: 92px;
    text-align: center;
}

.text_rouge {
    color: #981414;
}

.content {
    width: 100%;
    height: auto;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

/* .content div:nth-child(odd) {
    background-color: #000000;
    color: white;
} */

.cont-2 {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    scroll-snap-align: start;
}

#contN_9{
    height: auto;
    scroll-snap-align: end;
}


.secondTop-2{
    height: 10%;
    max-height:100px ;
    width: auto;
    text-align: center;  
    position: absolute;
    top:10%;       
    padding: 10px;   
}
.contX2{
    position: relative;;
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 15px;           /* Marges internes */
    font-size: 1rem;
    top:12%
}
.secondTop-2 h2{
    font-size: 3rem;   
}


.TitreCont{
    font-size: 5rem;
    color: white;
    text-align: center;
    margin-top: 10vh;
}
.secondTop-2 h2{
    font-size: 3rem;
    margin-bottom: 20px;
}



.card-podcast {
    position: absolute;
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    background-color: #981414;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#audio2, #audio4{
    right: 20%;
    top: 20%;
}

#audio1, #audio3{
    left: 20%;
    bottom:20%;
}


.card-podcast h3 {
    text-align: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.card-podcast p {
    text-align: start;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: montserrat;
}

.texte{
    text-align: start;
    width: 80vw;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 4vh;
    font-family: montserrat;
}

.texteTitre{
    text-align: start;
    width: 80vw;
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    font-family: montserrat;
}

#lienGal {
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: black;
    background-color: beige;
    padding: 60px;
    border-radius: 10px;
    font-size: large;
    position: absolute;
    z-index: 10;
}
#lienGal:hover{
    background-color: rgb(228, 228, 205);
}


#fondGal{
    opacity: 0.2;
    width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
    position: absolute;
    z-index: 0;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {

    /* Général */
    body, html {
        font-family: 'Montserrat', sans-serif;
        background-color: #000000;
    }

    /* Header */
    header {
        padding: 10px;
    }

    .titre {
        width: 40%;
    }

    /* Vidéo d'introduction */
    .background-video {
        height: 60%;
        width: auto;
        overflow-x: hidden;
        object-fit: contain;
    }

    /* Sections */
    .cont-section {
        text-align: center;
    }

    .titreQuestions {
        font-size: 1.5rem;
        text-align: center;
        width: 90vw;
        margin: auto;
    }
    .TitreCont{
        font-size: 1rem;
        text-align: center;
    }

    .next {
        position: absolute;
        display: flex;
        margin: auto;
        bottom: 5%;
        background-color: #1e1e1e;
        color: #ffffff;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-size: 1rem;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transform: translate(6vw, -10vh);
        justify-content: center;
        align-items: center;

    }

    .next:hover {
        background-color: #323232;
    }

    /* Supprimer les flèches */
    #fleche1, #fleche2 {
        display: none;
    }

    /* Podcasts */
    .card-podcast {
        position: relative;
        width: 90vw;
        max-width: 400px;
        margin: 10px auto;
    }

    .card-podcast h3 {
        font-size: 1.2rem;
    }

    .card-podcast p {
        font-size: 0.9rem;
    }

    .contX2{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #audio1,#audio2,#audio3,#audio4{
        left: auto;
        right: auto;
    }

    /* Bouton galerie */
    #lienGal {
        padding: 30px;
        font-size: medium;
    }

    #fondGal {
        width: 90vw;
        opacity: 0.2;
        margin-left: 5%;
        margin-right: 5%;
    }
}