section {
    text-align: left;
}

section h2 {
    text-align: center;
}

.passed {
    position: relative;
}

.passed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5); /* Filtre blanc semi-transparent */
    pointer-events: none; /* Empêche l'interaction avec l'élément overlay */
}

.atelier-contenu {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: stretch; /* Assure que tous les éléments enfants s'étirent à la même hauteur */
}

.img-containerA {
    border-radius: 10px;
    flex-shrink: 0;
    flex-basis: 200px; /* Largeur de base fixe pour l'image */
    max-height: 100%; /* L'image ne dépassera pas la hauteur de son parent */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-containerA img {
    width: 100%;
    height: auto; /* Conserve les proportions de l'image */
    max-height: 100%; /* Limite la hauteur de l'image à celle de son conteneur */
    object-fit: cover;
    object-position: center;
}

.atelier-description {
    text-align: left;
    padding: 10px 10px 10px 50px;
    flex: 1; /* Permet à la description de prendre l'espace restant */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.atelier-description p {
    margin-top: 0;
}

.atelier-time {
    text-align: center;
    padding: 10px 20px;
    background-color: #e0f7fa;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    color: #00695c;
    flex-shrink: 0;
}

li {
    text-align: justify;
}

p, ul, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

ul {
    padding:  0;
}

@media (max-width: 800px) {
    .atelier-contenu {
        width: 100%;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center-align elements */
        box-sizing: border-box;
    }
    
    .img-containerA {
        flex-basis: auto;
        width: 100%; /* Make image take full width */
        height: auto; /* Adjust the height to maintain aspect ratio */
        max-width: 400px; /* Limit maximum image width for better visual balance */
        margin-bottom: 20px; /* Add some space between image and description */
    }

    .atelier-description {
        padding: 10px; /* Reduce padding for smaller screens */
        text-align: center; /* Center text for better alignment on mobile */
        margin: 0; /* Supprime les marges supplémentaires */
        text-align: center;
        word-wrap: break-word; /* Assure que les longues chaînes de texte se cassent */
        box-sizing: border-box;
    }

    .atelier-time {
        padding: 10px;
        margin-bottom: 15px;
    }

}

/* Very Small Screens (Mobile Portrait) */
@media (max-width: 480px) {
    .img-containerA {
        max-width: 100%; /* Ensure the image stretches across full width */
    }

    .atelier-time {
        padding: 8px;
        width: 90%;
    }

    .atelier-description {
        padding: 10px 5px; /* Reduce padding further on small devices */
        margin: 0; /* Supprime les marges supplémentaires */
    }
}
