/* Style général des popups */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    overflow-y: auto;
}

.popup-content {
    background-color: #fff5a7;
    margin: 20% auto;
    padding: 80px;
    border-radius: 12px;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Bouton de fermeture */
.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    margin-top: -10px;
    margin-right: -10px;
}

/* Formulaires dans popup */
.popup-content form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #e60000;
    font-size: 14px;
}

.popup-content form input,
.popup-content form select {
    width: 75%;
    padding: 10px;
    margin-bottom: 10px; /* 🔧 espacement réduit */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* Bouton principal */
.btn-submit {
    background-color: #4B0082;
    color: white;
    padding: 14px 0;
    width: 100%;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #360066;
}

/* Texte du montant total */
#montant-total {
    font-weight: bold;
    color: #4B0082;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* ✅ Adaptation mobile */
@media (max-width: 800px) {
    .popup-content {
        max-width: 50%;
        padding: 14px;
    }

    .popup-content form input,
    .popup-content form select {
        padding: 1px;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .popup-content form label {
        font-size: 10px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 15px;
    }

    .close-btn {
        font-size: 20px;
    }
}

/* Réduit la taille des champs de saisie */
.popup-content input,
.popup-content select {
    padding: 1px;              /* Réduit l’espace interne */
    font-size: 10px;           /* Réduit la taille du texte */
    height: auto;              /* Empêche que la hauteur soit trop grande */
    margin-bottom: 5px;       /* Réduit l’espace entre les champs */
}


.btn-gain-diamant {
    display: inline-block;
    background: linear-gradient(135deg, #8e44ad, #2980b9); /* Violet -> Bleu diamant */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.3s ease;
}

.btn-gain-diamant:hover {
    background: linear-gradient(135deg, #9b59b6, #3498db);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .btn-gain-diamant {
        font-size: 16px;
        padding: 12px 20px;
        width: 90%;
    }
}

.btn-plan {
    display: inline-block;
    background-color: #f39c12;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-plan:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .btn-plan {
        font-size: 16px;
        padding: 12px 18px;
        width: 90%;
    }
}

.btn-retour {
    background-color: #ccc;
    color: #333;
    margin-top: 10px;
}

.btn-retour:hover {
    background-color: #bbb;
}

