/**
 * Overrides spécifiques au projet dupliqué.
 * Le cœur Formacore (theme.css + ui.css, classes fc-*) ne doit pas être modifié ici.
 */

.gras {
    font-weight: 700 !important;
}

.translation-flags {
    display: flex;
    gap: 8px;
    padding-left: 4px;
    margin-top: 2px;
}

.flag {
    width: 22px;
    cursor: pointer;
    border-radius: 3px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flag:hover {
    transform: scale(1.15);
}

/* Harmonisation des composants CORE avec le design system maquette */

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 10% 10%, rgba(35, 103, 168, 0.10), transparent 30%),
        radial-gradient(circle at 90% 5%, rgba(47, 125, 209, 0.08), transparent 28%),
        var(--bg) !important;
}

body.login-body {
    background:
        radial-gradient(circle at 80% 10%, rgba(47, 125, 209, 0.18), transparent 30%),
        radial-gradient(circle at 15% 85%, rgba(23, 63, 111, 0.12), transparent 28%),
        #f6f7fb !important;
}

.app-sidebar .sidebar-nav {
    padding: 0 4px 0 0;
}

.app-sidebar .nav-section {
    padding: 0;
    margin: 20px 12px 8px;
    font-size: 11px;
    letter-spacing: 0.10em;
    color: #97a0b3;
    font-weight: 700;
}

.profile-switch.dropdown-toggle::after {
    display: none;
}

.soft-dropdown .dropdown-item-text {
    padding: 8px 12px 4px;
    font-size: 13px;
    line-height: 1.35;
}

h1, h2, h3, .fc-panel-title {
    font-family: var(--font-title);
    font-weight: var(--font-title-weight);
    letter-spacing: -0.04em;
}

.fc-panel-title {
    font-size: 18px;
}

.fc-btn {
    border: 0;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff !important;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(35, 103, 168, 0.22);
}

.fc-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-secondary));
    color: #fff !important;
}

.fc-btn:disabled {
    background: #e8ebf1;
    color: #97a0b3 !important;
    box-shadow: none;
}

.fc-btn-outline {
    background: #f4f6fa;
    border: 1px solid var(--ligne);
    color: var(--text);
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 14px;
}

.fc-btn-outline:hover,
a.fc-btn-outline:hover {
    background: #eef2f7;
    border-color: var(--ligne);
    color: var(--text);
}

.fc-btn-link {
    color: var(--brand-primary);
    font-weight: 800;
    text-decoration: none;
}

.fc-btn-link:hover {
    color: var(--brand-primary-hover);
}

.fc-panel {
    background: #fff;
    border: 1px solid var(--ligne);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.035);
}

.fc-panel-header {
    min-height: auto;
    padding: 22px;
    background: #fff;
    border-bottom: 1px solid var(--ligne);
}

.fc-panel-header .fc-panel-title {
    font-size: 18px;
    letter-spacing: -0.04em;
}

.fc-table thead th {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #97a0b3;
}

.fc-table td {
    font-size: 14px;
    color: #414a5d;
}

.fc-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.fc-form .form-control,
.fc-form .form-select,
.filtre-select {
    border-radius: 16px;
    background: #fbfcfe;
}

.fc-form .form-control:focus,
.fc-form .form-select:focus {
    border-color: rgba(47, 125, 209, 0.55);
    box-shadow: 0 0 0 4px rgba(47, 125, 209, 0.12);
}

.fc-panel .dataTables_filter input,
.fc-panel .dataTables_length select {
    border-radius: 12px;
}

.fc-panel .dataTables_paginate .paginate_button.current,
.fc-panel .dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    border-radius: 12px !important;
}

.app-main {
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--ligne);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-brand .brand-logo img {
    display: block;
    max-height: 42px;
    max-width: 160px;
    width: auto;
    height: auto;
}

.notification-container,
.toasts {
    z-index: 80;
}
