/* Fondworks : Conteneur principal */
.fondworks {
    display: flex;
    width: 100%;
    padding-top: 90px;
    padding-bottom: 90px;
    padding-inline: 50px;
    justify-content: space-between;
    padding-inline: var(--espacecote);
}

img {
    max-height: 80vh;
}

video {
    max-height: 80vh;
}

.titreworks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: grey;
    padding-top: 1.5rem;
}

.nom {
    display: flex;
    align-items: center;
}

.nom h3::selection {
    background-color: var(--soulignage);
}

.nom span::selection {
    background-color: var(--soulignage);
}

.nom h3 {
    font-size: 1.7rem;
    font-family: var(--ibm);
}

.nom img {
    width: 1.7rem;
    opacity: 0.4;
}

.nom span {
    font-size: 1rem;
    font-family: var(--ibm);
}

.logiciel span {
    font-size: 1rem;
    font-family: var(--ibm);
}

.logiciel span::selection {
    background-color: var(--soulignage);
}

.barre-verticaleblack {
    width: 2px;
    /* Largeur de la barre */
    height: 25px;
    /* Hauteur de la barre */
    background-color: grey;
    /* Couleur de la barre */
    margin-inline: 10px;
    /* Espacement autour de la barre */
}

/* Travaux : Section des projets */
.works {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gapimage);
}

/* Projet individuel */
.projet1 {
    position: relative;
    z-index: 1;
    padding: 30px;
    gap: 0px;
    display: flex;
    flex-direction: column;
    background: var(--greymouvaplan);
    color: black;
    border-radius: var(--anglesprojets);
    font-size: 18px;
}

.imagesworks {
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.imagesworks img {
    max-width: 33.33%;
    padding: 0px;
    margin: 0px;
    max-height: 80vh;
}

.burgertruc {
    display: flex;
    flex-direction: column;
}

.imagesworkspop {
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.imagesworkspop img {
    max-width: 25%;
    padding: 0px;
    margin: 0px;
    max-height: 80vh;
}

.imagesworksposters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.imagesworksposters img {
    width: auto;
    padding: 0px;
    margin: 0px;
    max-height: 80vh;
    max-width: 100vh;
}

.imagesworkspop video {
    max-width: 25%;
    padding: 0px;
    margin: 0px;
    max-height: 80vh;
}

.imagesworks video {
    max-height: 80vh;
    max-width: 100%;
    padding: 0px;
    margin: 0px;
}

.texteworks p {
    color: grey;
    padding: 0px;
    margin: 0px;
}

.texteworks ::selection {
    background: var(--soulignage);
}

/* Barre verticale */

.droite {
    position: relative;
    /* Définit le contexte de positionnement pour les enfants */
    width: 120px;
    display: flex;
    padding-left: 27px;
    overflow: hidden;
    /* Masque les éléments qui dépassent */
}

.swinging-image {
    position: absolute;
    /* Relative à .droite */
    bottom: -10px;
    /* Ajuster la position pour qu'elle commence dans .droite */
    right: 10px;
    z-index: 99999;
}

.barreverticale {
    width: 4px;
    background: var(--greymouvaplan);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.imgcent {
    position: relative;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    display: flex;
    width: 100%;
}

.imgcent img {
    max-width: 100%;
}

.nemotel {
    position: relative;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    display: flex;
    width: 100%;
}

.nemotel img {
    max-width: 100%;
}

.imgcent video {
    max-width: 100%;
}

.imgcinq {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.imgcinq img {
    object-fit: contain;
    max-height: 80vh;
    max-width: calc(50% - 10px);
}

.imgvingt {
    display: flex;
}

.imgvingt img {
    max-width: 20%;
}

.lienprojets {
    z-index: 2;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-family: var(--ibm);
    background-color: rgba(0, 0, 0, 0.23);
    padding: 7.5px 15px;
    border-radius: 10px;
    transition: 0.2s ease;
    text-align: center;
    /* Pour centrer le texte du bouton */
    text-transform: uppercase;
    margin-left: 1rem;
    transition: 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-items: center;
    opacity: 1;
    gap: 0.5rem;
}

.lienprojets img {
    width: 1.3rem;
    padding: 0px;
    margin: 0px;
    opacity: 1;
}

.lienprojets:hover {
    background-color: rgb(165, 165, 165);
    color: white;
    opacity: 1;
    scale: 1.03;
}

.date {
    font-weight: bold;
    font-size: 1rem;
    font-family: var(--ibm);
    background-color: var(--greymouvaplan);
    padding: 10px;
    padding-inline: 20px;
    position: absolute;
    color: rgb(86, 86, 86);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    right: -108px;
    margin-top: -30px;
}



/* Styles pour les vidéos Vimeo responsive */
.vimeo-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #ffffff00;
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background-size: cover;
    background-position: center;
}

.vimeo-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* Pour les vidéos Vimeo en taille fixe (optionnel) */
.vimeo-fixed {
    display: flex;
    justify-content: center;
    max-width: 100%;
}

.vimeo-fixed iframe {
    max-width: 100%;
    max-height: 80vh;
    border: 0;
    border-radius: 8px;
}

/* Adaptation mobile pour Vimeo */
@media (max-width: 768px) {
    .vimeo-container {
        padding-bottom: 75%; /* Ratio plus adapté au mobile si besoin */
    }
}

@media (max-width: 768px) {

    .fondworks {
        padding-top: 60px;
    }

    .droite {
        display: none;
    }

    .date {
        display: none;
    }

    .logiciel {
        display: none;
    }

    .titreworks {
        display: none;
    }

    .projet1 {
        width: 100%;
        padding: 1px;
        border-radius: 0px;
        background: none;
    }


    .texteworks {
        display: none;
    }

    .imagesworksposters img {
        width: 100%;
    }
}

@media (min-width: 1080px) {

    .fondworks {
        padding-inline: var(--espacecote);
    }
}