/*
Theme Name: Generatepress Enfant
Description: Theme enfant de Generatepress. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: generatepress
Version: 1.0
*/
/* Fond sombre derrière la modale */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* La fenêtre modale elle-même */
.modal-content {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* Animation d'ouverture */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Bouton de fermeture (la croix) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    font-weight: bold;
}
.modal-close:hover {
    color: #d9534f;
}

/* Contenu de la modale */
.modal-body h2 {
    margin-top: 0;
    color: #333;
}
.modal-body p {
    line-height: 1.6;
    color: #666;
}
.modal-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
}
.modal-btn:hover {
    background: #005177;
}
