/* Fond semi-transparent */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Effet de fond grisé */
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Contenu de la popin */
#popin {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Ajustements pour les très petits écrans */
@media (max-width: 480px) {
    #popin {
        width: 95%;
        padding: 15px;
    }
}

#popin p{
	font-size:20px;
}

#popin a{
	color:blue;
}

/* Bouton de fermeture */
#closePopin {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    float: right;
}

/* Effet d'apparition */
#overlay.active, #popin.active {
    display: block;
    opacity: 1;
}
