/* Variables CSS pour le thème dark */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: #404040;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f0f 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Styles pour les logos de serveur dans la sidebar */
.sidebar-header .logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 1.3rem;
}

.sidebar-header .logo img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    border-radius: 8px;
}

.sidebar-header .logo:hover img {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.sidebar-header .logo .server-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-header .logo .server-name {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.nav-item a:hover::before {
    left: 100%;
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    z-index: 1050;
    transition: var(--transition);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 0;
}

.sidebar-item {
    margin: 0.5rem 0;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.sidebar-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: var(--transition);
}

.sidebar-item a:hover::before,
.sidebar-item.active a::before {
    transform: scaleY(1);
}

.sidebar-item a:hover,
.sidebar-item.active a {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

.sidebar-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Sections de la sidebar */
.sidebar-section {
    margin: 1.5rem 0 0.5rem;
    padding: 0 2rem;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section-title i {
    margin-right: 0.75rem;
    font-size: 1rem;
    color: var(--primary-color);
}

/* Sous-éléments de la sidebar */
.sidebar-sub-item {
    margin-left: 1rem;
}

.sidebar-sub-item a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sidebar-sub-item a:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.sidebar-sub-item.active a {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.15);
    border-left: 3px solid var(--primary-color);
}

/* Main content */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #66bb6a);
    color: var(--text-primary);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #ffb74d);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #e57373);
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

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

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

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

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-purple {
    background: #8e44ad;
    color: white;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success-color);
    color: #4caf50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--error-color);
    color: #f44336;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--warning-color);
    color: #ff9800;
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.col {
    flex: 1;
    padding: 1rem;
}

.col-2 { flex: 0 0 16.666667%; padding: 1rem; }
.col-3 { flex: 0 0 25%; padding: 1rem; }
.col-4 { flex: 0 0 33.333333%; padding: 1rem; }
.col-6 { flex: 0 0 50%; padding: 1rem; }
.col-8 { flex: 0 0 66.666667%; padding: 1rem; }
.col-9 { flex: 0 0 75%; padding: 1rem; }
.col-12 { flex: 0 0 100%; padding: 1rem; }

/* Utilitaires */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }
    
    .sidebar.active {
        transform: translateX(0);
        z-index: 1050;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col,
    .col-2,
    .col-3,
    .col-4,
    .col-6,
    .col-8,
    .col-9 {
        flex: 0 0 100%;
    }
}

/* Page de connexion */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

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

.auth-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.tab:hover,
.tab.active {
    color: var(--text-primary);
}

.tab.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Corrections pour éviter les conflits de z-index */
.modal {
    z-index: 1060 !important;
}

.modal-content {
    z-index: 1061 !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
}

/* Masquer les éléments indésirables qui pourraient passer au-dessus */
body > div[style*="position: fixed"]:not(.sidebar):not(.main-content):not(.modal) {
    z-index: 999 !important;
}

/* Correction pour les tooltips */
.tooltip {
    z-index: 1070 !important;
}

/* Hiérarchie des z-index pour éviter les conflits */
/* 
Hiérarchie établie :
- header: z-index: 1000
- sidebar: z-index: 1050
- modales: z-index: 1060
- boutons de fermeture des modales: z-index: 1065
- tooltips: z-index: 1070
*/

/* Forcer la position correcte pour tous les éléments de navigation */
.sidebar,
.sidebar * {
    z-index: 1050 !important;
}

/* S'assurer que le main-content reste derrière la sidebar */
.main-content {
    z-index: 1 !important;
}

/* Corrections spécifiques pour les éléments qui pourraient créer des conflits */
.dropdown-menu,
.popover,
.alert {
    z-index: 1040 !important;
}

/* Correction pour les éléments en position absolute dans la sidebar */
.sidebar .sidebar-item a::before {
    z-index: -1 !important;
}

/* Corrections spécifiques pour la page staff-management.php */
body.staff-management .sidebar {
    z-index: 1050 !important;
    position: fixed !important;
}

body.staff-management .main-content {
    z-index: 1 !important;
}

body.staff-management .staff-list-table thead {
    z-index: 5 !important;
}

body.staff-management .modal {
    z-index: 1060 !important;
}

/* Forcer tous les tableaux sticky à un z-index bas */
.staff-list-table thead,
table thead {
    z-index: 5 !important;
}

/* Styles pour le contenu personnalisé du guide */
.custom-content-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.custom-content-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.custom-content-section.redstart {
    border-left-color: #28a745;
}

.custom-content-section.sincity {
    border-left-color: #ffc107;
}

.custom-content-section.procedures {
    border-left-color: #6f42c1;
}

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

.custom-content-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-content-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-edit {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.custom-content-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.custom-content-body h4,
.custom-content-body h5 {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.custom-content-body ul,
.custom-content-body ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.custom-content-body li {
    margin: 0.3rem 0;
}

.custom-content-body strong {
    color: var(--text-primary);
}

.custom-content-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animation pour la suppression */
.custom-content-section.deleting {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease-out;
}

/* Confirmation de suppression */
.delete-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.delete-confirmation-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.delete-confirmation h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.delete-confirmation p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.delete-confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Styles pour l'édition du guide */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.form-radio:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
}

.form-radio input[type="radio"] {
    margin-top: 0.2rem;
    accent-color: var(--primary-color);
}

.form-radio span {
    font-weight: 500;
    color: var(--text-primary);
}

.form-radio small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-radio input[type="radio"]:checked + span {
    color: var(--primary-color);
}

/* Styles pour le contenu modifié */
.modified-default-content {
    border-left: 4px solid var(--warning-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 152, 0, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.default-content {
    position: relative;
}

/* Styles pour l'aide au formatage */
#format-help-content {
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary) !important;
}

#format-help-content code {
    background: var(--bg-primary);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

#format-help-content .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

#format-help-content .badge-info {
    background: var(--primary-color);
    color: white;
}

#format-help-content .badge-warning {
    background: var(--warning-color);
    color: white;
}

#format-help-content .badge-danger {
    background: var(--error-color);
    color: white;
}

#format-help-content .badge-success {
    background: var(--success-color);
    color: white;
}

#format-help-content .badge-secondary {
    background: var(--text-muted);
    color: white;
}

/* Animation pour l'icône d'aide */
#format-help-icon {
    transition: transform 0.3s ease;
}

.card-header[onclick] #format-help-icon.fa-chevron-up {
    transform: rotate(180deg);
}

/* Styles pour les alertes formatées dans le contenu */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.alert i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.alert strong {
    margin-right: 0.5rem;
}

/* Styles spécifiques pour les alertes Discord */
.alert.alert-info {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert.alert-warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert.alert-danger {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert.alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert.alert-secondary {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-muted);
    border-left: 4px solid var(--text-muted);
}

/* Styles pour le code formaté */
code {
    background: var(--bg-primary);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
}

/* Styles pour les boutons d'édition inline */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Styles pour le texte d'aide des formulaires */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
} 