/* ===========================================
   SGC V2 - Modern UI Refresh
   Ajouté par-dessus le template Regal existant
   =========================================== */

/* --- Animation apparition cards --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Police Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body,
.main-navigation,
.main-nav-collapsible,
input,
select,
textarea,
button,
.btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Cards modernisees --- */
.card,
.rg-card-simple,
.rg-card-action,
.rg-card-ecommerce {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.card:hover,
.rg-card-simple:hover,
.rg-card-action:hover,
.rg-card-ecommerce:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* --- Boutons --- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

.btn-success {
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

.btn-danger {
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

/* --- Tableaux --- */
table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

table.dataTable thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    border-bottom: 2px solid #e9ecef;
    padding: 12px 16px;
}

table.dataTable tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

table.dataTable tbody tr:hover {
    background-color: #f8f9ff;
}

/* --- Formulaires --- */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

select.form-control {
    border-radius: 8px;
}

/* --- Navigation sidebar --- */
aside {
    transition: width 0.25s ease;
}

main > header .main-navigation nav.navbar .navbar-nav {
    flex-wrap: wrap;
}

main > header .main-navigation nav.navbar .navbar-nav .nav-item:hover {
    background: rgba(0, 0, 0, 0.4);
}

main > header .main-navigation nav.navbar .navbar-nav .dropdown-menu .dropdown-item:focus,
main > header .main-navigation nav.navbar .navbar-nav .dropdown-menu .dropdown-item:hover,
main > header .main-navigation nav.navbar .navbar-nav .dropdown-menu .dropdown-item:active {
    background: #e0e2e6;
}

/* --- Tabs --- */
.rg-tabs {
    border-radius: 16px;
    overflow: hidden;
}

.rg-tabs .nav-tabs {
    margin: 0;
    padding: 0;
}

.rg-tabs .nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid #ffffff;
    margin-bottom: -1px;
}

/* --- Badges --- */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* --- Alertes --- */
.alert {
    border: none;
    border-radius: 10px;
}

/* --- Modals --- */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f1f3f5;
}

.modal-footer {
    border-top: 1px solid #f1f3f5;
}

/* --- Pagination --- */
.page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    transition: background-color 0.15s ease;
}

/* --- Transitions generales --- */
a,
.nav-link {
    transition: color 0.15s ease;
}
