@font-face {
    font-family: typo_maxou;
    src: url('typo/ITCGaramondStd-LtNarrow.otf') format('opentype');
}

@font-face {
    font-family: bricolage;
    src: url(typo/BricolageGrotesque-VariableFont_opsz\,wdth\,wght.ttf) format('opentype');
}

@font-face {
    font-family: logo;
    src: url(typo/Fontspring-DEMO-limerick_serial-xbold.otf) format('opentype');
}


body {
    margin: 0;
    padding: 0;
    background-color: black;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    /*font-family: bricolage, sans-serif;*/
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent noir */
    z-index: 999; /* Assure que le calque soit au-dessus de tout le contenu */
}

.background-image-contact {
    background-image: url('contact/MASTER\ WUOM\ VI\ avec\ FN\ PRORES.01_08_13_07.Still113.jpg'); /* Chemin vers votre image */
    background-size: cover;
    background-position: center;
    height: 100vh; /* 100% de la hauteur de la fenêtre visible */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.logo {
    position: fixed;
    top: 30px; /* Position verticale par rapport au haut de la page */
    right: 40px; /* Position horizontale par rapport à la gauche de la page */
    z-index: 999; /* Assurez-vous que le logo est au-dessus de tout autre contenu */
    text-align: right;
    align-items: right;
    /*color : #f51919;
    font-weight: 900;
    font-size: 70px;
    font-family: logo;*/
}

.logo img{
    width: 39%;
    align-items: right;

}

.grid-container {
/*display: grid;
grid-template-columns: auto auto auto;*/
column-gap: 0px;
/*background-color: #2196F3;*/
padding: 0px;
}

.grid-item {
    background-color: rgb(0, 0, 0);
    border: 0px solid rgba(0, 0, 0, 0.8);
    padding: 0px;
    font-size: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.grid-item img {
    /*width: calc(100vw / 3);*/
    height: auto; 
    display: block;
    margin: auto; 
    transition: transform 0.3s ease-in-out;
    filter: brightness(100%);
}

.text {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translate(-50%, -105%);
    opacity: 0;
    transition-duration: 0.5s;
    z-index:2;
    font-size: 10px;
    color: white;
}

.text span{
    font-size: 12px;
}

.projet_name{
    font-weight: bold;
}

.grid-item iframe {
    width: calc(100vw / 3);
    height: 100%;
    display: block;
    margin: auto; 
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.grid-item:hover .text {

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    opacity: 1;
    top: 95%;
    left: 50%;
    transform: translate(-50%, -95%);
}

.grid-item:hover .text span{
    padding-bottom: 2px;
    font-size: 12px;
}

.grid-item:hover img {
    /*opacity: 00;*/ /* Masquer l'image au survol */
    filter: brightness(100%);
}

.grid-item:hover iframe {
    opacity: 0; /* Afficher la vidéo au survol */
}


/*@media (min-width: 768px) {*/
.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
}

.grid-item img{
    width: calc(100vw / 3);
}
/*}*/

@media (max-width: 1200px) {
    .grid-container {
        display: block;
    }
    .grid-item img{
        width: 100vw;
    }
    .grid-item iframe {
        width: 100vw;
    }
}


.grid-item video {
    width: auto;
    height: 100%;
    display: block;
    margin: auto; 
    /*transition: transform 0.3s ease-in-out;*/
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}


.grid-item:hover video {
    opacity: 1;
}

.container_links {
    position: fixed;
    top: 40%;
    left: 10px;
    z-index: 999;
    display: inline-block;
}

.container_links a {
    margin: 0 0px;
    color: white;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-display: swap;
}

.link {
    text-decoration: none;
    color: #000; 
    padding: 5px 10px; 
}

.link:hover {
    /*text-decoration: underline;*/
    font-weight: bold;
}

.maxime_kathari{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    flex-direction: column; 
    /*background-color: black; */
    color: white; 
    height: 200px;
}

.content-contact {
    position: absolute;
    right: 150px; /* Padding de 10px à gauche */
    /*top: 300px;*/ /* Aligner en haut de son conteneur */
    /*top: calc(30% - 100px);*/
    top : 37%;
}

.text-contact {
    text-align: right; /* Aligner le texte sur la gauche */
}

.text-contact p{
    padding: 0px;
    margin: 0px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    }

.text-contact p a{
    font-weight: bold;
    color: white;
    text-decoration: none;
    }

@media (max-width: 767px) {
    .content-contact {
        left: 20px;
    }
}

@media (max-width: 1200px) {

    .container_links{
        top:40vh;
    }

    .container_links a{
        font-size: 14px;
    }

    .project-video{
        display: none;
    }

    .logo img{
        width: 80%;
    }

    .content-contact{
        top:15%;
        right:10%;
    }

}

