main.Projets{
    width: 94%;
    position: relative;
    margin-top: 5%;
    margin-left: 1%;
    overflow-x: hidden;
    overflow-y: hidden;
    min-height: 70vh;
}

#project-cards {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    padding: 20px 20px;
    align-items: flex-start;
    margin-top: 5em;
}

.project-card {
    position: relative;
    width: 14em;
    height: 11em;
    min-width: 258px;
    min-height: 140px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 7px rgba(90, 90, 90, 0.4);
    cursor: pointer;
    background-color: oklch(20.5% 0 0);

}


@media (max-width: 555px) {
    .project-card {
        width: 90%;
        height: 160px;
    }
}

@media (max-width : 1000px) {
    #TitreProjet{
        margin-left: 4vw !important;
    }

    #langagesUtilises{
        margin-left: 10vw !important;
    }

    .firstLink {
        margin-left: 10vw !important;
    }

}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.4s ease-in-out;
    opacity: 80%;
    overflow: hidden;
    background-size: 0 0; /* Bg img just served for the after and before bg */
    background-repeat: no-repeat;
}

/* Fond flouté */
.card-background::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: inherit; /* get .card-background img */
    background-size: 100% 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px) brightness(0.7);
    z-index: 1;
}

/* Image nette par-dessus */
.card-background::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 80%;
    background-image: inherit; /* get .card-background img */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}


.card-info, .card-description {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-info {
    color: var(--pinky-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.visible-layer > * {
    background: rgba(30, 30, 30, 0.7);
    padding: 2px;
}

.card-description {
    color: var(--pinky-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; 
}

.project-card:hover .card-background {
    transform: scale(1.05);
    opacity: 50%;
}

.project-card:hover .card-info {
    opacity: 0;
    transform: translateY(-20px); 
}

.project-card:hover .card-description {
    opacity: 1;
    transform: translateY(0);
}


/* Output style */
#TitreProjet{
    margin: 6px 0px 0px 24vw;
}

#langagesUtilises{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 6px 0px 6px 16vw;
}

#langagesUtilises>h4{
    padding-right: 1.2em;
}

.langage {
    position: relative;    
    height: 2.5em;      
    margin-right: 1em;
    overflow: hidden; 
}

.langage img {
    width: 100%;
    height: 100%;
    transition: filter 1s ease; /* Animation pour le floutage */
}

.langage .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--pinky-white);
    font-size: 0.5em;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* Texte lisible sur fond flouté */
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.5s ease; /* Animation pour l'apparition du texte */
    pointer-events: none; /* Évite d'intercepter les événements de la souris */
}

.langage:hover img {
    filter: blur(2px); /* Floute l'image */
}

.langage:hover .overlay-text {
    opacity: 1; /* Rend le texte visible */
}


.firstLink {
    margin: 6px 10px 6px 16vw;
}


#outputProjet p{
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    text-align: justify;
}

/*Groupe d'images affichées sur la même ligne*/
.groupeImages{
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.groupeImages figure {
    margin : auto;
}

.groupeImages img {
    width: 100%;
}

.groupeImages figcaption {
    font-size: 0.6em;
    color: var(--red-color);
}

.imageG{
    width: 28%;
    margin: auto;
}

/* Pour toutes les images pas visibles à cause du fond noir */
.imgPasNette {
    filter: contrast(45%);
}

iframe {
    width : 98%;
    height : 68vh;
}