@font-face{
    font-family: SuperDream;
    src: url(../Styles/police_SuperDream.ttf);
    font-family: AeroMatics;
    src: url(../Styles/police_AeroMatics.ttf)
}

.contenu{
    min-height: calc(100vh - 80px);
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100vw;
}

input{
    display: none;
}

.menu-filtres{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    margin: 40px 0 10px 0;
}

.menu-filtres label{
    background-color: #C36622;
    padding: 10px 15px 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    user-select: none;
    font-weight: bold;
}

.menu-filtres label:hover{
    background-color: #FFA200;   
}

.menu-filtres label:has(input:checked){
    background-color: #FFA200;
}

.liste-videos{
    box-sizing: border-box;
    max-width: 100vw;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.video{
    flex: 0 1 calc((100% - 10px)/2);
    min-height: 210px;
    max-width: 445px;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #FFA200;
    text-shadow: -1px -1px 0 #333,   
                 1px -1px 0 #333,   
                 -1px  1px 0 #333,   
                 1px  1px 0 #333;
    font-weight: bold;
    user-select: none;
    cursor: pointer;
}

.video:hover{
    transform: scale(1.01);
}

.v1{
    background-image: url(../Images/Affichages_videos/La\ monstruora\ \(Orian\).webp);
}

.v2{
    background-image: url(../Images/Affichages_videos/Les\ parents.webp);
}

.v3{
    background-image: url(../Images/Affichages_videos/K.ZA\ 1.webp);
}

.v4{
    background-image: url(../Images/Affichages_videos/K.ZA\ 2.webp);
}

.v5{
    background-image: url(../Images/Affichages_videos/Arnaud\ Dubois\ coach.webp);
}

.v6{
    background-image: url(../Images/Affichages_videos/Au\ fil\ de\ l\ etang.webp);
}

.v7{
    background-image: url(../Images/Affichages_videos/Jeunes\ en\ scene.webp);
}

.v8{
    background-image: url(../Images/Affichages_videos/Salon-du-livre.webp);
}

.v9{
    background-image: url(../Images/Affichages_videos/RBG.webp);
}

.v10{
    background-image: url(../Images/Affichages_videos/Toc-toc-dans-ma-cite.webp);
}

.v11{
    background-image: url(../Images/Affichages_videos/Tu-vas-et-tu-viens.webp);
}

.v12{
    background-image: url(../Images/Affichages_videos/Huck.webp);
}

.v13{
    background-image: url(../Images/Affichages_videos/20e.webp);
}

.v14{
    background-image: url(../Images/Affichages_videos/KiwaCar-2025.webp);
}

#fond-boite-de-dialogue{
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.315);
    backdrop-filter: blur(1px);
    display: none;
    align-items: center;
    justify-content: center;
}

#boite-de-dialogue{
    position: relative;
    margin: 0 10px 0 10px;
    padding: 20px;
    background-color: white;
    max-width: 690px;
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    animation: affichage-boite-de-dialogue 0.2s linear;
}


#boite-de-dialogue::-webkit-scrollbar {
    display: none;         
}

#fermeture-boite-de-dialogue{
    position: absolute;        
    top: 10px;
    right: 10px;
    width: 30px;               
    height: 30px;             
    border-radius: 50%;        
    background-color: white;  
    font-size: 24px;          
    display: flex;            
    align-items: center;      
    justify-content: center;  
    cursor: pointer;         
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#iframe{
    border: none;
    aspect-ratio: 16/9;
    width: 100%;
}

#titre-iframe{
    margin: 0;
    text-align: right;
    color: #C36622;
    padding: 20px 0 20px 0;
}

#texte-iframe{
    text-align: right;
}

@keyframes affichage-boite-de-dialogue{
    0%{transform: translate(-100px,0);
    opacity: 0%;}
    100%{transform: translate(0,0);
    opacity: 100%;}
}

@keyframes affichage-boite-de-dialogue2{
    0%{transform: translate(0,0);
    opacity: 100%;}
    100%{transform: translate(100px,0);
    opacity: 0%;}
}

@media screen and (min-width: 769px){
    .titre{
        max-width: 700px;
        font-size: 76px;
    }
}

@media screen and (min-width: 1025px){
    .titre{
        max-width: 1000px;
    }

    .liste-videos{
        max-width: 1400px;
    }

    .robot-jaune{
        height: 230px;
    }

    .video{
        flex: 0 0 calc((100% - 20px)/3);
        max-width: 360px;
    }

    #boite-de-dialogue{
        flex-direction: row;
        gap: 20px;
        margin: 0 10% 0 10%;
        padding: 40px 2% 40px 2%;
        max-width: none;
    }

    #boite-iframe{
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        max-height: 300px;
        max-width: 100%;
    }

    #iframe{
        height: 100%;
        width: auto;
    }

    #boite-information{
        flex: 1 ;
        height: 300px;
        width: 890px;
    }
}