/* Variables CSS */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #64748B;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Layout */
.app-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Header (old - now using header.css for #appHeader) */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
}

/* Sidebar */
.sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    width: var(--sidebar-width);
    transition: width 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    flex-shrink: 0;
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Désactiver la transition au chargement initial */
.sidebar.no-transition {
    transition: none;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    overflow: visible;
}

.sidebar-toggle {
    position: absolute;
    top: 0rem;
    right: -14px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.sidebar-toggle:active {
    transform: scale(1.05);
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transform: translateX(-4px);
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: translateX(-4px) rotate(180deg);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar.collapsed .nav-item {
    padding: 0.75rem;
    justify-content: center;
    position: relative;
}

.nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.sidebar.collapsed .nav-item.active {
    border-right: none;
    border-left: 3px solid var(--primary);
}

/* Tooltips pour sidebar repliée */
.sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    padding: 0.5rem 0.75rem;
    background: var(--gray-800);
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-width: 0;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--gray-100);
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.btn-icon.edit svg {
    stroke: var(--primary);
}

.btn-icon.delete svg {
    stroke: var(--danger);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ========================================
   Form Sections (Fieldsets)
   ======================================== */
.form-section {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--gray-50);
}

.form-section legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0 0.5rem;
    background: white;
    border-radius: 0.25rem;
}

.form-section .form-group {
    margin-bottom: 1rem;
}

.form-section .form-group:last-child {
    margin-bottom: 0;
}

.form-section .form-row:last-child .form-group {
    margin-bottom: 0;
}

/* ========================================
   Info Boxes (periodInfo, halfDayInfo)
   ======================================== */
.info-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-box svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.info-box-primary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* ========================================
   Period Selector (demi-journée)
   ======================================== */
.period-selector {
    margin-bottom: 1rem;
}

.period-selector-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.period-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.period-option:hover {
    border-color: var(--primary);
}

.period-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.period-option input[type="radio"] {
    accent-color: var(--primary);
}

/* ========================================
   Spinner de chargement
   ======================================== */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Responsive Form Sections
   ======================================== */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .period-options {
        flex-direction: column;
    }

    .period-option {
        width: 100%;
    }
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: #065F46;
}

.badge-danger {
    background: var(--danger-light);
    color: #991B1B;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400E;
}

.badge-active {
    background: var(--success-light);
    color: #065F46;
}

.badge-inactive {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.service-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.info-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--gray-900);
    box-shadow: 0 0 0 2px white, 0 0 0 5px var(--gray-900);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--gray-300);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
    border-left: 4px solid var(--warning);
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    /* Sidebar mobile - overlay coulissant */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        box-shadow: none !important;
        padding-top: 60px !important;
        background: white !important;
        overflow-y: auto !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
    }

    /* Bouton fermeture dans la sidebar mobile */
    .sidebar.mobile-open .sidebar-toggle {
        display: none;
    }

    /* Assurer que les sections sont visibles */
    .sidebar .nav-section-items {
        display: flex !important;
    }

    .main-content {
        padding: 1rem;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Empêcher le scroll du body quand menu ouvert */
    body.mobile-menu-active {
        overflow: hidden;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Accordion Styles */
.accordion-card {
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.accordion-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-500);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 2000px;
    transition: max-height 0.5s ease;
}

.accordion-content > * {
    padding: 1.5rem;
}

/* ============================================
   RBAC - Styles pour le système de permissions
   ============================================ */

/* Sélecteur de permissions (modal rôles) */
.permission-domain {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.permission-domain-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.permission-domain-header:hover {
    background: var(--gray-100);
}

.permission-domain-content {
    background: white;
}

.permission-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.15s;
}

.permission-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.permission-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Arbre des groupes */
.group-node {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.group-node:hover {
    background: var(--gray-50);
}

.group-node.selected {
    background: rgba(79, 70, 229, 0.1);
    border-left: 3px solid var(--primary);
}

.group-toggle {
    transition: transform 0.2s;
    color: var(--gray-400);
    cursor: pointer;
    flex-shrink: 0;
}

.group-toggle:hover {
    color: var(--primary);
}

.group-children {
    border-left: 1px solid var(--gray-200);
    margin-left: 0.75rem;
}

/* Timeline d'audit */
.audit-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.audit-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.audit-entry {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.audit-entry:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.audit-entry-marker {
    position: absolute;
    left: -1.5rem;
    top: 1.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
}

.audit-entry.action-create .audit-entry-marker { background: var(--success); }
.audit-entry.action-update .audit-entry-marker { background: var(--warning); }
.audit-entry.action-delete .audit-entry-marker { background: var(--danger); }
.audit-entry.action-login .audit-entry-marker { background: var(--info); }
.audit-entry.action-logout .audit-entry-marker { background: var(--gray-500); }
.audit-entry.action-assign .audit-entry-marker { background: #8b5cf6; }
.audit-entry.action-revoke .audit-entry-marker { background: #ec4899; }

/* Badges spéciaux RBAC */
.badge-permission {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-system {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-500);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.badge-custom {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Section dans la sidebar - Réorganisation par catégories */
.nav-section {
    margin-bottom: 0.25rem;
}

.nav-section:first-child .nav-section-header {
    margin-top: 0;
}

.nav-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.nav-section-header svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke: var(--gray-400);
    flex-shrink: 0;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-section-items {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

/* Mode sidebar collapsed - masquer les headers de section */
.sidebar.collapsed .nav-section-header {
    display: none;
}

.sidebar.collapsed .nav-section {
    margin-bottom: 0;
}

.sidebar.collapsed .nav-separator {
    display: none;
}

/* Section cachée (aucun élément visible pour le rôle) */
.nav-section.hidden {
    display: none;
}

/* Amélioration des boutons icon-only */
.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    color: var(--gray-600);
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Table responsive pour les pages admin */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Boutons petits */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}
