body{
    color: black;
}

#projet-titre {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 3%;
    transition: color 0.3s ease; /* Animation fluide sur le survol */
    cursor: default;
    border-radius: 20px;
    background-color: #b4dbdc;
    padding: 15px;
    width: 50%;
    margin-left: 25%;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#projet-titre:hover {
    background-color: #50898b;
    color: white;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.projet-image {
    margin-top: 1.5%; 
    margin-bottom: 4%;
    display: flex; /* Utilise Flexbox pour aligner les images */
    justify-content: center; /* Centre les images */
}

.projet-image img {
    margin: 30px;
    width: 300px; /* Taille par défaut des images */
    height: 300px;
    transition: transform 0.5s ease; /* Animation fluide sur le survol */
    border-radius: 15px; /* Coins arrondis */
}

.projet-image img:hover {
    transform: scale(1.17); /* Agrandit l'image de 17% */
    transition: transform 0.5s ease; /* Animation fluide sur le survol */
}

.image-namiberry img {
    margin-left: 7%;
    margin-top: 3%;
    margin-bottom: 3%;
    width: 90%; /* Utilisez 100% pour que les images prennent toute la largeur de leur conteneur */
    max-width: 500px; /* Taille maximale des images */
    height: auto; /* Maintient le ratio d'aspect des images */
    transition: transform 0.5s ease; /* Animation fluide sur le survol */
    border-radius: 15px; /* Coins arrondis */
}

.image-namiberry img:hover {
    transform: scale(1.17); /* Agrandit l'image de 17% */
    transition: transform 0.5s ease; /* Animation fluide sur le survol */
}

#fond-projet img {
    background-size: cover;
    margin-top: 3%;
    margin-bottom: -2%;
}

/* Ressort de devart 2025*/

#ressort-projet {
    background-size: cover;
    margin-top: 3%;
    margin-bottom: -4%;
    max-width: 0.1%;
}

#ressort-projet {
    transition: transform 0.3s ease;
}

#ressort-projet:hover img {
    animation: pliage 1s ease-out; /* Lancer l'animation "pliage" sur 1 seconde avec un effet fluide */
}

/*Animation pour le pliage*/

@keyframes pliage {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.3);
    }
    100% {
        transform: scaleY(1);
    }
}

.projet-animation {
    width: 120px; 
    height: 120px;
    margin-right: -1%;
    transition: transform 0.2s ease; /* Effet de retour fluide */
}

.projet-animation:hover {
    animation: moveFantome 01s infinite;  /* Lancer l'animation "pacman" sur 0.5 secondes avec un effet fluide */
}

@keyframes moveFantome { 
    /* Début et fin de l'animation : le personnage est au sol */
    0%, 100% {
        transform: translateY(0);
    }
    /* Milieu de l'animation : le personnage monte */
    50% {
        transform: translateY(-50px);
    }
}

.cadre-bulle {
    margin-top: 2%;
    margin-bottom: 2%;
    margin-left: 5%;
    gap: 10px;
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si nécessaire */
}

.cadre-bulle span {
    background-color: #b4dbdc;
    color: black;
    border-radius: 10px;
    padding: 15px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les bulles */   
    border: 1px solid #ddd; /* Bordure discrète pour définir la bulle */ 
    margin-bottom: 2%;
    margin-left: 1%;
    transition: background-color 0.3s ease, color 0.3s ease; /* Animation fluide sur le survol */
    cursor: default;
}

.cadre-bulle span:hover {
    background-color: #50898b;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cadre-bulle1 {
    margin-top: 2%;
    margin-bottom: 2%;
    gap: 10px;
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si nécessaire */
    justify-content: center; 
}

.cadre-bulle1 span {
    background-color: #b4dbdc;
    color: black;
    border-radius: 10px;
    padding: 15px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les bulles */   
    border: 1px solid #ddd; /* Bordure discrète pour définir la bulle */ 
    margin-bottom: 2%;
    margin-left: 1%;
    transition: background-color 0.3s ease, color 0.3s ease; /* Animation fluide sur le survol */
    cursor: default;
}

.cadre-bulle1 span:hover {
    background-color: #50898b;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.description {
    display: flex; /* Utilise Flexbox pour aligner les éléments */
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre les éléments verticalement */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si nécessaire */
    margin: 2px; /* Espacement autour des bulles */
}

.description span {
    display: inline-block; 
    padding: 20px 20px; /* Espace interne pour donner la forme de bulle */
    margin-left: 23px; 
    border-radius: 15px; /* Coins arrondis pour l'effet bulle */
    background-color: white; 
    border: 1px solid #ddd; /* Bordure discrète pour définir la bulle */
    color: rgb(0, 0, 0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les bulles */    
    max-width: 1090px;
}

.btn-download {
    padding: 10px 20px; /* Espace interne pour donner la forme de bulle */
    border-radius: 15px; /* Coins arrondis pour l'effet bulle */
    background-color: #011e31; /* Couleur de fond */
    border: 1px solid #ddd; /* Bordure discrète pour définir la bulle */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les bulles */
    color: white; /* Couleur du texte */
    text-decoration: none; /* Supprime la décoration de lien */
    float: right; /* Flotte à droite */
    transition: background-color 0.3s ease, color 0.3s ease; /* Animation fluide sur le survol */
}

.btn-download:hover {
    background-color: #50898b;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}    

.btn-download-box {
    padding: 10px 20px; /* Espace interne pour donner la forme de bulle */
    margin-right: 4%;
    margin-top: 2%;
    border-radius: 15px; /* Coins arrondis pour l'effet bulle */
    background-color: #011e31; /* Couleur de fond */
    border: 1px solid #ddd; /* Bordure discrète pour définir la bulle */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les bulles */
    color: white; /* Couleur du texte */
    text-decoration: none; /* Supprime la décoration de lien */
    float: right; /* Flotte à droite */
    transition: background-color 0.3s ease, color 0.3s ease; /* Animation fluide sur le survol */
}

.btn-download-box:hover {
    background-color: #50898b;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}    


@media screen and (max-width: 800px) {
    .image-namiberry img:hover {
        transform: scale(1); /* Agrandit l'image de 10% */
        transition: transform 0.5s ease; /* Animation fluide sur le survol */
    }
    .projet-image img:hover {
        transform: scale(1.1); /* Agrandit l'image de 10% */
        transition: transform 0.5s ease; /* Animation fluide sur le survol */
    }

    #projet-titre {
        width: 75%;
        margin-left: 10%;
    }

    .description span {
        margin-left: 0; /* Supprime le margin par défaut */
    }
}