/* Smooth scroll pour toute la page */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}



/* Styles pour les vidéos */
    body{
        margin: 0;
        padding: 0;
        background-color: #bea076;
    }
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2%;
        background-color: #1a1a1a;
        position: relative;
        z-index: 10;
        box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.25);
        height: 90px;
        box-sizing: border-box;
    }


    .logo{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 5vw;
    }
    .logo img{
        height: 60px;
        object-fit: cover;
    }

    .menu{
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: rgb(173, 238, 130);
        list-style-type: none;
        width: 70%;
        font-size: 16px;
    }
    
    .navliens {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        list-style: none;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;

        justify-content: center;
        transition: right 0.3s ease;

        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    }
    
    .navliens li {
        height: 15vh;
        margin-left: 15vw;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    
    .navliens a {
        color: white;
        text-decoration: none;
        font-size: 25px;
    }
    
    .navliens a:hover {
        color: #e6b800;
    }
    

    .burger {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 24px;
    }
    
    .burger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    .burger {
        display: block;
        z-index: 100;
    }



    .navliens.active {
        right: 0;
    }

    .burger.active {
        position: fixed;
        top: 4vh;
        right: 2vw;
    }

    .burger.active span:nth-child(1) {
        
        transform: translateY(.35rem) rotate(-45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-.6rem) rotate(45deg);
    }
    #accueil{
        position: relative;
        height: 200vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .video-container{
        display: flex;
        justify-content: center;
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }
    #myVideo, #secondVideo {
        top: 0;
        position: fixed;
        z-index: -1;
        width: 100%;
        height: 100vh;
        object-fit: cover;
      }

    .video-container #titre{
        position: absolute;
        top: 30vh;
        display: flex;
        justify-content: center;
        z-index: 1;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        font-family: 'Times New Roman', serif;
        font-weight: bold;
        font-size: 20px;
    }

    .video-container #scroll{
        position: absolute;
        bottom: 20vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 20%;
    }

    .video-container #scroll img {
        width: auto;
        height: 50px;
        object-fit: cover;
    }
    .video-container #scroll h2{
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        font-family: 'Times New Roman', serif;
        font-weight: bold;
        font-size: 20px;
    }

    .section1{
        position: absolute;
        bottom: 0;
        width: 100vw;

        background-color: rgba(26, 26, 26, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        padding: 0;
        color: #f0f0f0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .section1 div{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 10%
    }
    .section1 h1 {
        margin-bottom: 20px;
        font-size: 2rem;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }
    
    .section1 p {
        line-height: 1.6;
        font-size: 1.1rem;
        color: #e6e6e6;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
        font-weight: 400;
    }
    .active-video {
    opacity: 1;
    transition: opacity 1s ease-in-out;
    }

    .hidden-video {
        opacity: 0;
        transition: opacity 1s ease-in-out;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* listing */

    .grille {
        display: grid;
        grid-template-columns: 40% 40%;
        padding: 10px;
        gap: 20px;
        justify-content: center;
      }
      
    .grille > div {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 20px;
        font-size: 16px;
        text-align: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .grille > div img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        object-fit: cover;
    }

    .grille > div .info-supplementaire {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 20px;
        text-align: center;
    }

    .grille > div:hover .info-supplementaire {
        opacity: 1;
    }

    #listing {
        background-image: url('../img/fond.webp');
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        min-height: fit-content;
    }

    footer {
        background-color: #333;
        color: #fff;
        padding: 20px 0;
        bottom: 0;
        width: 100%;
    }
    
    .footer_contenu {
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .footer {
        margin: 10px 0;
    }
    
    .liste_reseaux {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .reseaux {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .liste_reseaux a:hover {
        color: #ccc;
    }
    #recherche {
        position: relative;
        width: 100vw;
        background-image: url('../img/fond.webp'); 
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        min-height: fit-content;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        padding: 20px;
        color: #f0f0f0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .barre_recherche {
        width: 80%;
        padding: 10px;
        margin: 10px 0;
        border: none;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        font-size: 16px;
    }
    
    .divrecherche button {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        font-size: 16px;
        cursor: pointer;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        color: #ffffff;
        transition: transform 0.3s ease;
    
    }
    
    .divrecherche button:hover {
        background-color: rgba(255, 255, 255, 0.3);
    
    }    
    .divrecherche{
        margin-top: 10vh;
    }

    .nouvelle-recherche {
        display: inline-block;
        padding: 10px 20px;
        margin: 20px 0;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        color: #ffffff;
        text-decoration: none;
        transition: background-color 0.3s ease;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .nouvelle-recherche:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .resultats .grille {
        display: grid;
        grid-template-columns: 30% 30%;
        padding: 10px;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .resultats .grille.single-result {
        grid-template-columns: 80%;
    }

    .resultats .grille-item {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 20px;
        font-size: 16px;
        text-align: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .resultats .grille-item img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        object-fit: cover;
    }

    .resultats .grille-item .info-supplementaire {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 20px;
        text-align: center;
    }

    .resultats .grille-item:hover .info-supplementaire {
        opacity: 1;
    }







@media screen and (min-width: 576px) {
    #listing{ 
        min-height: fit-content;
    }

    .video-container #titre{
        position: absolute;
        top: 30vh;
        display: flex;
        justify-content: center;
        z-index: 1;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        font-family: 'Times New Roman', serif;
        font-weight: bold;
        font-size: 28px;
    }


    .grille {
        display: grid;
        grid-template-columns: 20% 20% 20% 20%;
        padding: 10px;
        gap: 20px;
        justify-content: center;
      }
      
    .grille > div {
        margin-top: 10vh;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 20px;
        font-size: 16px;
        text-align: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;

    }

    .grille > div img {
        width: 100px;
        height: 100px;
        border-radius: 10px;
        object-fit: cover;
    }
    .navliens{
        width: 30vw;

    }
    .navliens li{
        margin-left: 10vw;
    }

    .barre_recherche {
        width: 100%;
        border: none;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        font-size: 16px;
    }
    .divrecherche {
        margin-top: 10vh;
        padding: 10px;
        width: 80vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    
    }
    #recherche {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .resultats .grille {
        grid-template-columns: 40% 40% ;
    }
       
    .resultats .grille-item {
        margin-top: 10vh;
    }
    
    .resultats .grille-item img {
        width: 100px;
        height: 100px;
    }
}






