@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth; /*Pour que les déplacements soient lent*/
    font-family: mundial, inter;
}

html {
    font-size: 70%;
    overflow-x: hidden; /*Si le contenu dépasse, alors il sera masqué*/
}

body {
    background: black;
    /* color: var(--text-color); */
    color: wheat;
}

/* HEADER */

.header {
    position: fixed; /* Pour la rendre flottante */
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-decoration: none;
    z-index: 2;
}

.header-right {
    width: 25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    cursor: pointer;
    width: 20px;
 }

 .navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 2rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: 0.5s;
}

.navbar a:hover,
.navbar a.active {
    /* background: rgba(32, 32, 32, 0.334); */
    text-decoration: underline;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* CONTENT */

.title {
    position: absolute;
    /* position: fixed; */
    width: 100%;
    top: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    padding: 20px;
    margin-top: 130px;
    margin-bottom: 10px;
}

.vid {
    margin-top: 50px;
}

.vid a {
    display: flex;
    flex-direction: column;
}

.description {
    color: white;
    font-size: 25px;
    padding-top: 5px;
    font-weight: 200;
}

.space {
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 120px;
}

/* FOOTER */

.section-footer {
    display: flex;
    flex-direction: column; /* Empile les vidéos verticalement */
    justify-content: flex-start; /* Commence en haut de la fenêtre */
    align-items: stretch; /* Assure que les vidéos prennent toute la largeur de l'écran */
    width: 100vw; /* Prend toute la largeur de l'écran */
    overflow: hidden; /* Cacher tout débordement (évite des scrollbars) */
    background-color: green;
}

.section-footer-vid {
    position: relative;
}

.section-footer-vid a:hover p  {
    color: whitesmoke;
    transform: scale(1.1); /* Agrandit légèrement le bouton */
}


.section-footer-vid video:hover {
    filter: grayscale(0%);
}

.vid-footer {
    width: 100vw; /* Prend 100% de la largeur de l'écran */
    height: 130px; /* Chaque vidéo prend un tiers de la hauteur de l'écran */
    object-fit: cover; /* Remplit l'espace sans déformation, rogne si nécessaire */
    display: block; /* Élimine les espaces entre les vidéos */
    filter: grayscale(100%); /* Applique un effet noir et blanc */
    transition: filter 0.3s ease; /* Transition fluide */
}

.verlay p {
    z-index: 100;
    position: absolute;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.784);
    font-family: mundial;
    font-size: 50px;
    font-style: italic;
    left: 10%;
    text-align: center;
    margin-top: 2%;
    transition: color 0.3s ease, transform 0.3s ease; /* Transition pour la couleur et la taille */
    pointer-events: none; /* Désactive les interactions pour le texte */
}

/* .verlay p:hover {
    color: whitesmoke;
    transform: scale(1.1);
} */

/* .section-footer a {
    color: rgba(255, 255, 255, 0.659);
    font-family: mundial;
    font-size: 40px;
    font-style: italic;
    transition: color 0.3s ease, transform 0.3s ease; /* T
} */

/* .section-footer a:hover {
    color: whitesmoke;
    transform: scale(1.1); 
} */


/* RESPONSIVE */

@media (max-width: 3000px) {
    #menu-icon {
        display: block; 
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 1rem;
        width: 20%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.414);
        border-top: .1rem solid rgb(0, 0, 0);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
        border-radius: 10px;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        font-weight: 100;
    }

}

@media only screen and (min-width: 1500px) {
    .verlay p {
        margin-top: 1%;
    }
}

@media only screen and (min-width: 750px) {
    .content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Colonnes responsives */
      gap: 16px; /* Espace entre les vidéos */
      padding: 30px;
    }
}

@media only screen and (max-width: 780px) {

    .logo img {
        width: 110px;
    }

    .header-right img {
        width: 100px;
    }

    .navbar {
        width: 40%;
    }

    .header-right {
        width: 15rem;
    }   

    .title img {
        width: 300px;
    }

    .title {
        top: 8%;
    }

    .vid-footer {
        height: 100px; /* Chaque vidéo prend un tiers de la hauteur de l'écran */
    }
    
    .verlay p {
        margin-top: 4%;
        font-size: 40px;
        left: 10%;
    }

}
   


