/* Bouton (Aspect "Clone PayPal") */
.trouma-bouton-paypal {
    background-color: #0070ba; /* Bleu PayPal */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.trouma-bouton-paypal:hover {
    background-color: #004c99;
}

/* -------------------------------------- */
/* Structure de l'Overlay / Modal */
/* -------------------------------------- */
.trouma-overlay-modal {
    display: none; /* Cache la fenêtre par défaut */
    position: fixed; /* Reste fixe au défilement */
    z-index: 9999; /* Assure que la fenêtre est au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Fond sombre et transparent */
}

.trouma-modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Centre la fenêtre verticalement et horizontalement */
    padding: 0;
    border: 1px solid #888;
    width: 90%; /* Largeur de la fenêtre */
    height: 90%; /* Hauteur de la fenêtre pour l'iframe */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
}

/* -------------------------------------- */
/* CORRECTION : L'iframe DOIT cibler la balise elle-même à l'intérieur du contenu */
/* -------------------------------------- */
.trouma-modal-content iframe { /* Cible toutes les balises iframe dans le contenu modal */
    width: 100%;
    height: 100%; /* CRUCIAL : Fait en sorte qu'elle remplisse les 90% de hauteur du parent */
    display: block;
}

/* Style de l'Iframe */
#trouma-external-frame {
    width: 100%;
    height: 100%;
    display: block;
}

/* Bouton de Fermeture */
.trouma-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 5px;
    z-index: 10000;
}

.trouma-close-button:hover,
.trouma-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
