:root {
    /* --- PALETTE DE COULEURS --- */
    --c-main-bg: #f7f6f3;
    --c-sidebar-bg: #161412;
    --c-topbar-bg: #1f1f1f;
    --c-surface-bg: #dadada20;
    --c-surface-alt: #d2d7d9bf;
    --c-text-1: #0b0b0b;
    --c-text-2: #dadada;
    --c-text-3: #0b0b0b;
    --c-text-4: #dadada;
    --c-text-muted: #cccccc;
    --c-text-footer: #8d8d8dba;
    --c-brand-primary: #1f7cff;
    --c-brand-secondary: #0c1b2f;
    --c-brand-tertiary: #EF6510;
    --c-accent: #1e2d45;
    --c-cards: #ffffff;
    --c-shadow: #333333;
    --c-shadow-light: #3333330d;
    --c-hover: #0c1b2f15;
    --c-hover-white: #ffffff1a;
}

/* --- STYLES S'APPUYANT STRICTEMENT SUR :ROOT --- */

.reg-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem 1rem; 
}

.reg-back-wrapper { 
    margin-bottom: 2rem; 
    text-align: center; 
}

.btn-reg-back { 
    border-radius: 30px; 
    padding: 0.5rem 1.5rem; 
    border: 1px solid var(--c-brand-primary); 
    color: var(--c-brand-primary); 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.3s ease; 
}

.btn-reg-back:hover { 
    background: var(--c-hover-white); 
}

.reg-alert-error { 
    background: rgba(245, 106, 106, 0.1); 
    color: var(--c-error); 
    padding: 20px; 
    border-radius: 12px; 
    text-align: center; 
    border: 1px solid var(--c-error); 
}

.reg-header { 
    text-align: center; 
    margin-bottom: 2rem; 
}

.reg-header .tag { 
    display: inline-block; 
    padding: 6px 15px; 
    border-radius: 20px; 
    background: var(--c-sidebar-bg); 
    color: var(--c-text-2); 
    font-size: 0.8rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 1rem; 
}

.reg-header h1 { 
    font-size: 2.5rem; 
    margin: 0 0 10px 0; 
    color: var(--c-text-1); 
    font-family: inherit; 
}

.reg-header p { 
    font-size: 1rem; 
    color: var(--c-text-1); 
}

.reg-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

@media (max-width: 900px) { 
    .reg-grid { 
        grid-template-columns: 1fr; 
    } 
}

.reg-card { 
    background: var(--c-surface-alt); 
    border-radius: 12px; 
    padding: 2rem; 
    border: 1px solid var(--c-sidebar-bg); 
}

.reg-card-title { 
    font-size: 1.2rem; 
    margin-top: 0; 
    margin-bottom: 1.5rem; 
    padding-bottom: 1rem; 
    border-bottom: 2px solid var(--c-sidebar-bg); 
    color: var(--c-text-1); 
}

.table-responsive { 
    overflow-x: auto; 
}

.reg-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.reg-table th { 
    text-align: left; 
    padding: 10px 5px; 
    color: var(--c-text-1); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 1px solid var(--c-sidebar-bg); 
}

.reg-table td { 
    padding: 12px 5px; 
    border-bottom: 1px solid var(--c-surface-bg); 
    color: var(--c-text-1); 
    font-size: 0.95rem; 
}

.reg-table tr:last-child td { 
    border-bottom: none; 
}

.reg-table th.text-right, 
.reg-table td.text-right { 
    text-align: right; 
}

.reg-table th.text-center, 
.reg-table td.text-center { 
    text-align: center; 
}

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

.text-muted-half { 
    opacity: 0.5; 
}

.text-sm { 
    font-size: 0.85rem; 
}

.tx-arrow { 
    margin: 0 10px; 
    color: var(--c-text-1); 
}

.badge { 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: bold; 
    text-transform: uppercase; 
}

.badge.creation { 
    background: var(--c-success); 
    color: var(--c-main-bg); 
}

.badge.transfert { 
    background: var(--c-brand-primary); 
    color: var(--c-main-bg); 
}

.view-switcher { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 3rem; 
    flex-wrap: wrap; 
}

.btn-view { 
    padding: 8px 18px; 
    border-radius: 30px; 
    border: 1px solid var(--c-sidebar-bg); 
    background: transparent; 
    color: var(--c-text-1); 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-view.active { 
    border-color: var(--c-brand-primary); 
    background: var(--c-brand-primary); 
    color: var(--c-main-bg); 
}

.chart-container-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 400px; 
}

.chart-canvas-wrapper { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    min-height: 300px; 
}