/* allocations-simulation.css */

/* Style du formulaire */
.allocations-simulation-form {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.allocations-simulation-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.allocations-simulation-form input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.allocations-simulation-form button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.allocations-simulation-form button:hover {
    background-color: #005177;
}

/* Style des informations résumé */
.allocations-summary {
    font-size: 14px; /* Ajustez selon vos besoins */
    margin-top: 10px; /* Espace au-dessus */
    font-weight: bold;
}

/* Style du tableau des résultats */
.allocations-simulation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.allocations-simulation-table th, .allocations-simulation-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.allocations-simulation-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .allocations-simulation-table, .allocations-simulation-table thead, .allocations-simulation-table tbody, .allocations-simulation-table th, .allocations-simulation-table td, .allocations-simulation-table tr {
        display: block;
    }

    .allocations-simulation-table tr {
        margin-bottom: 15px;
    }

    .allocations-simulation-table th {
        display: none;
    }

    .allocations-simulation-table td {
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .allocations-simulation-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
}
