/* Styles pour le calculateur de potentiel personnalisé */

.calculator-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.calculator-header h3 {
    margin: 0;
    color: #2366c9;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.range-value {
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

.results-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.result-section {
    margin-bottom: 20px;
}

.result-section h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2366c9;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.result-label {
    color: #555;
}

.result-value {
    font-weight: bold;
    color: #333;
}

.action-button {
    background-color: #2366c9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #1a4fa0;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .calculator-panel {
        width: 95%;
        max-height: 95vh;
        padding: 15px;
    }
    
    .form-group label {
        font-size: 0.9em;
    }
}
