/* Styles pour l'administration du calculateur hypothécaire */
.wp-admin .calculateur-hypothecaire .wrap {
    max-width: 100%;
    margin-right: 20px;
}

.wp-admin .calculateur-hypothecaire .card {
    width: 100%;
    box-sizing: border-box;
}

.wp-admin .calculateur-hypothecaire .wp-list-table {
    width: 100%;
    table-layout: fixed;
}

.wp-admin .calculateur-hypothecaire .wp-list-table th,
.wp-admin .calculateur-hypothecaire .wp-list-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px;
}

.wp-admin .calculateur-hypothecaire .form-table td {
    padding: 10px;
    vertical-align: middle;
}

.wp-admin .calculateur-hypothecaire .metabox-holder {
    width: 100%;
}

.wp-admin .calculateur-hypothecaire .postbox {
    width: 100%;
}

/* Amélioration de la largeur des colonnes */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(1) { width: 10%; }  /* ID */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(2) { width: 15%; }  /* Nom */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(3) { width: 20%; }  /* Email */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(4) { width: 15%; }  /* Prix */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(5) { width: 10%; }  /* Durée */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(6) { width: 15%; }  /* Mensualité */
.wp-admin .calculateur-hypothecaire .wp-list-table th:nth-child(7) { width: 15%; }  /* Date */
/**/
.wp-admin .calculateur-hypothecaire .wp-list-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.wp-admin .calculateur-hypothecaire .wp-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.wp-admin .calculateur-hypothecaire .wp-list-table tr:hover {
    background-color: #f5f5f5;
}
/* Styles pour le calculateur hypothécaire */
.calculateur-hypothecaire {
    display: flex;
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.calculateur-titre {
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    width: 100%;
}

.calculateur-titre h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.calculateur-gauche {
    flex: 3;
    padding: 30px;
    background-color: #fff;
}

.calculateur-droite {
    flex: 2;
    background-color: #d84315;
    color: white;
    padding: 30px;
}

.groupe-calcul {
    margin-bottom: 25px;
}

.calculateur-hypothecaire label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.calculateur-hypothecaire input[type="number"],
.calculateur-hypothecaire input[type="email"],
.calculateur-hypothecaire input[type="text"],
.calculateur-hypothecaire textarea,
.calculateur-hypothecaire select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.calculateur-hypothecaire textarea {
    min-height: 80px;
    resize: vertical;
}

.champ-monetaire {
    position: relative;
}

.symbole-devise {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.champ-monetaire input {
    padding-left: 25px;
}

.slider-container {
    margin-top: 10px;
    position: relative;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d84315;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d84315;
    cursor: pointer;
}

#acompte-pourcentage,
#taxes-pourcentage,
#taux-interet-valeur,
[id^="acompte-pourcentage-"],
[id^="taxes-pourcentage-"],
[id^="taux-interet-valeur-"] {
    position: absolute;
    left: 0;
    bottom: -25px;
    font-weight: bold;
    color: #d84315;
}

.formulaire-email {
    margin-top: 40px;
}

.formulaire-email p {
    margin-bottom: 10px;
    font-weight: bold;
}

.champ-email {
    display: flex;
}

.champ-email input {
    flex: 3;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.champ-email button {
    flex: 2;
    background-color: #d84315;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.champ-email button:hover {
    background-color: #bf360c;
}

.resultat-paiement {
    text-align: center;
}

.montant-mensuel {
    font-size: 3.5rem;
    margin: 0;
    font-weight: bold;
}

.libelle-paiement {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 30px;
}

.detail-paiement {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.ligne-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.libelle-detail {
    text-align: left;
}

.montant-detail {
    font-weight: bold;
}

/* Champs supplémentaires pour les informations personnelles */
.champs-additionnels {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.champs-additionnels h3 {
    margin-bottom: 15px;
    color: #333;
}

.champ-groupe {
    margin-bottom: 15px;
}

/* Message après envoi du courriel */
.message-resultat {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.message-resultat:not(:empty) {
    display: block;
}

.message-resultat.erreur {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.message-resultat.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Sélecteurs pour les IDs dynamiques avec suffixes */
[id^="prix-achat-"],
[id^="duree-pret-"],
[id^="acompte-"],
[id^="taxes-"],
[id^="taux-interet-slider-"],
[id^="assurance-"] {
    /* Hériter les styles des principaux éléments */
}

/* Responsive design */
@media (max-width: 768px) {
    .calculateur-hypothecaire {
        flex-direction: column;
    }
    
    .calculateur-gauche,
    .calculateur-droite {
        width: 100%;
    }
    
    .champ-email {
        flex-direction: column;
    }
    
    .champ-email input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .champ-email button {
        border-radius: 4px;
    }
    
    .montant-mensuel {
        font-size: 2.5rem;
    }
}

/* Styles pour les écrans très petits */
@media (max-width: 480px) {
    .calculateur-gauche,
    .calculateur-droite {
        padding: 15px;
    }
    
    .montant-mensuel {
        font-size: 2rem;
    }
    
    .libelle-paiement {
        font-size: 1rem;
    }
}