/* REMARQUE : C'est le contenu de ton ancienne balise <style> */
:root {
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --brand-color: #007aff;
    --accent-color-green: #28a745;
    --accent-color-red: #dc3545;
    --accent-color-purple: #6f42c1;
}

html.dark {
    --background-color: #1c1c1e;
    --card-background: #2c2c2e;
    --text-primary: #f2f2f7;
    --text-secondary: #a1a1a6;
    --text-muted: #8e8e93;
    --border-color: #444446;
}

body { font-family: 'Inter', sans-serif; background-color: var(--background-color); color: var(--text-primary); }
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border-color); padding: 10px; text-align: left; vertical-align: middle; }
th { background-color: #f8f9fa; font-weight: 600; font-size: 0.875rem; color: var(--text-secondary); }
html.dark th { background-color: #3a3a3c; }
td { font-size: 0.875rem; background-color: var(--card-background); }
tfoot td { background-color: #f8f9fa; font-weight: bold; }
html.dark tfoot td { background-color: #3a3a3c; }
.input-cell { width: 100%; padding: 4px 8px; border: 1px solid #ced4da; border-radius: 4px; background-color: #fff; transition: border-color 0.2s, box-shadow 0.2s; color: #212529; }
html.dark .input-cell { background-color: #3a3a3c; border-color: #545458; color: var(--text-primary); }
.input-cell:focus { outline: none; border-color: var(--brand-color); box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25); }
.input-cell:disabled { background-color: #e9ecef; }
html.dark .input-cell:disabled { background-color: #3a3a3c; opacity: 0.5; }
.output-cell { font-weight: 600; color: var(--brand-color); text-align: right; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.5rem; }
.card { background-color: var(--card-background); border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid #e9ecef; }
html.dark .card { border-color: #3a3a3c; }
.currency:before { content: "$"; }
.percentage:after { content: "%"; }

/* --- AJOUT DE LA NOUVELLE CLASSE ICI --- */
.results-simulation-box {
    /* Utilise la couleur de fond de la page pour le mode clair */
    background-color: #f8f9fa; /* Fallback */
    background-color: var(--background-color); 
}

html.dark .results-simulation-box {
    /* Utilise la couleur de fond des cartes pour le mode sombre */
    background-color: #2c2c2e; /* Fallback */
    background-color: var(--card-background);
}
/* --- FIN DE L'AJOUT --- */

/* Tooltip Styles */
.tooltip-container { position: relative; display: inline-flex; align-items: center; }
.tooltip-icon { margin-left: 8px; width: 16px; height: 16px; border-radius: 50%; background-color: #adb5bd; color: white; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.tooltip-text { visibility: hidden; width: 250px; background-color: #343a40; color: #fff; text-align: left; border-radius: 6px; padding: 8px; position: absolute; z-index: 51; bottom: 125%; left: 50%; margin-left: -125px; opacity: 0; transition: opacity 0.3s; font-size: 0.75rem; font-weight: normal; }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #343a40 transparent transparent transparent; }
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }
