/* ================================================================
   Discours Publics — Styles personnalisés
   ================================================================ */

body {
    background-color: #f5f6fa;
    font-size: 0.92rem;
}
#wrapper { min-height: 100vh; }

/* Sidebar */
#sidebar {
    min-width: 230px;
    max-width: 230px;
    background-color: #1a2c42 !important;
    transition: min-width 0.2s;
}
#sidebar .sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}
#sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2px;
    transition: background 0.15s;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}
#sidebar .nav-link i { width: 18px; display: inline-block; text-align: center; }
#sidebar .sidebar-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    padding: 0.75rem 0.75rem 0.25rem;
    margin-top: 0.5rem;
}

#page-content { background-color: #f5f6fa; min-height: 100vh; }

/* Cards */
.card { border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-radius: 8px; }
.card-header { background-color: #fff; border-bottom: 1px solid #eee; font-weight: 600; }

/* Tables */
.table th {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: #6c757d; border-top: none; white-space: nowrap;
}
.table td { vertical-align: middle; }

/* Type badges */
.badge-ordinaire  { background-color: #0d6efd; }
.badge-symposium  { background-color: #fd7e14; }
.badge-special    { background-color: #0dcaf0; color: #000; }
.badge-congres    { background-color: #6c757d; }

.btn-action { padding: 0.2rem 0.45rem; font-size: 0.8rem; }

/* Forms */
.form-label { font-weight: 500; margin-bottom: 0.25rem; }
.form-section {
    border: 1px solid #dee2e6; border-radius: 8px;
    padding: 1.25rem; margin-bottom: 1rem; background: #fff;
}
.form-section-title {
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: #6c757d; margin-bottom: 1rem;
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2c42 0%, #2c4a6e 100%);
    display: flex; align-items: center; justify-content: center;
}
.login-card { width: 100%; max-width: 400px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.login-card .card-header { background: #1a2c42; color: white; border-radius: 12px 12px 0 0; text-align: center; padding: 1.5rem; }

@media (max-width: 768px) {
    #sidebar { min-width: 0; max-width: 0; overflow: hidden; padding: 0 !important; }
    #sidebar.show { min-width: 230px; max-width: 230px; padding: 1rem !important; }
}
@media print {
    #sidebar, .btn, .no-print { display: none !important; }
    #page-content { padding: 0 !important; }
}
