/* Modal overlay */
#proModal {
    display: none; 
    position: fixed; /* Indépendant du scroll du 'screen' */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999; /* Au dessus de TOUT */
    /* On crée notre propre fond ici pour ne pas dépendre du body */
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(3px); /* Floute la page qui change derrière */
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

/* Force le contenu du modal à rester propre */
.pro-modal-content {
    position: relative;
    z-index: 1000000;
    width: 1200px !important;
    max-width: 1000px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    height: 600px;
    border-radius: 12px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     border: 2px solid #ffffff;
}

.pro-modal-image {
    width: 250px !important;
    height: 250px !important;
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* optional for round image */
    margin-bottom: 16px;
    border: 3px solid #00ffcc;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pro-content h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.8em;
    color: #ffffff !important;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.pro-content p {
    margin: 6px 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3rem;
    
    
}

.button-style,
.close-pro-btn {
    margin-top: 18px;
    padding: 8px 24px;
    background: #222;
    color: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.2s;
}
.button-style:hover,
.close-pro-btn:hover {
    background: #19e485;
    color: #000000;
}

/* 1. Le conteneur parent (l'écran noir transparent) */
#proModal {
    display: none;
    position: fixed; /* Fixé au hublot de l'écran */
    z-index: 99999;  /* Très haut pour passer devant tout */
    left: 0;
    top: 0;
    width: 100vw;    /* Toute la largeur */
    height: 100vh !important;   /* Toute la hauteur */
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-opaque */
    backdrop-filter: blur(5px); /* Floute le fond de main.html pour l'isoler */
    display: flex;   /* Pour centrer le contenu facilement */
    align-items: center;
    justify-content: center;
    height: auto; /* Permet au modal de s'adapter à son contenu */
}

/* 2. Le contenu du modal (la boîte blanche) */
.pro-modal-content {
     background: linear-gradient(45deg,#000000, #be0b6e, #000000);
    width: 100%; /* Évite de dépasser de l'écran */
    
    border-radius: 15px;
    height: auto;
    overflow-y: auto; /* Scroll interne si texte trop long */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: fadeInModal 0.3s ease-out; /* Petit effet d'entrée */
}

/* 3. L'image en haut du modal *

/* 4. Le texte à l'intérieur */
.pro-content {
    padding: 25px;
    color: #333; /* Force la couleur du texte pour éviter l'héritage */
    height: 600px;
    text-align: center;
     background: linear-gradient(45deg,#000000, #be0b6e, #000000);
     border-radius: 12px;
     border: 2px solid #ffffff;
     overflow-y: auto;
     width: 800px !important;
     scrollbar-width: thin;
        scrollbar-color: #ffffff transparent;
}

.pro-content h2 {
    margin-top: 0;
    color: #000;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    
    border-radius: 16px;
}

.pro-content p {
    margin: 10px 0;
    line-height: 1.5;
}

/* 5. Bouton Fermer */
.pro-content .button-style {
    margin-top: 3rem;
    padding: 10px 20px;
    background-color: #47ffe0;
    color: rgb(0, 0, 0);
    border: 2px solid #00ffcc;
    border-radius: 5px;
    cursor: pointer;
    width: 30%;
    font-weight: bold;
}

/* Animation d'apparition */
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}