.charte {
    background-color: #ef5350;
    padding: 20px 10px;
    text-align: center;
    border-radius: 12px;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.charte:hover {
    color: black;
    transform: scale(1.05);
}

/* Popup caché */
.popup.hidden {
    display: none;
}

/* Popup affiché */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
}

/* Contenu de la fenêtre */
.popup-content {
    background-color: lightgray;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    animation: popupOpen 0.3s ease forwards;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
}

/* Croix pour fermer */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close:hover {
    transform: scale(1.3);
    color: #c62828;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupOpen {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes popupClose {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

.charte-img {
    width: 80%;
    height: auto;
    display: block;
    margin: 20px auto; /* centrer l’image */
    border-radius: 12px; /* arrondi optionnel */
}