/* Alpine.js cloak — hide elements until Alpine initializes */
[x-cloak] { display: none !important; }


/* CSS variables are now injected dynamically in base.html based on the active theme */
/* Fallback values are defined here */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;

    /* ── Echelle typographique harmonisée ── */
    --text-2xl: 1.875rem;   /* 30px — titres de page h1 */
    --text-xl: 1.5rem;      /* 24px — sous-titres h2 */
    --text-lg: 1.25rem;     /* 20px — titres cards/sections h3 */
    --text-base: 1.125rem;  /* 18px — texte courant, labels, boutons */
    --text-sm: 1.0625rem;   /* 17px — texte secondaire, badges, aide */
    --text-xs: 1rem;        /* 16px — en-têtes tableaux, metadata */
    --text-micro: 0.875rem; /* 14px — timestamps, compteurs (usage minimal) */
}

/* ── Typographie globale ── */
body {
    font-size: var(--text-base);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1, .h1 { font-size: var(--text-2xl); font-weight: 700; line-height: 1.3; }
h2, .h2 { font-size: var(--text-xl); font-weight: 700; line-height: 1.3; }
h3, .h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
h4, .h4 { font-size: var(--text-base); font-weight: 600; line-height: 1.4; }
h5, .h5 { font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }
h6, .h6 { font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }

/* Boutons — taille harmonisée */
.btn { font-size: var(--text-sm); }
.btn-sm { font-size: var(--text-xs); }
.btn-lg { font-size: var(--text-base); }

/* Formulaires — taille harmonisée */
.form-control, .form-select { font-size: var(--text-sm); }
.form-label, label { font-size: var(--text-sm); }
.form-text { font-size: var(--text-xs); }
.form-control-sm, .form-select-sm { font-size: var(--text-xs); }
.form-control-lg, .form-select-lg { font-size: var(--text-base); }

/* Badges */
.badge { font-size: var(--text-xs); }

/* Paragraphes et texte courant */
p, li, dd, dt { font-size: var(--text-base); }

/* Modales */
.modal-title { font-size: var(--text-lg); }

/* Breadcrumb */
.breadcrumb { font-size: var(--text-sm); }

body {
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 40%, #f0f4ff 100%);
    min-height: 100vh;
    /* font-size défini dans la section typographie globale ci-dessus */
}

.sidebar {
    background: linear-gradient(180deg, #e0ecff 0%, #edf2ff 40%, #f5f8ff 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(59, 130, 246, 0.12);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 2px 0 24px rgba(59, 130, 246, 0.08);
    z-index: 1040;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #475569;
    padding: 0.55rem 1rem;
    margin: 0.1rem 0.75rem;
    border-radius: 0.6rem;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #1e40af;
    background-color: rgba(59, 130, 246, 0.08);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-left: 3px solid #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.sidebar .nav-link i,
.sidebar .nav-link .sidebar-icon {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Sub-level nav links (indented) */
.sidebar .nav-link.sidebar-sub {
    padding-left: 2.2rem;
}

.sidebar-header {
    color: #1e3a5f;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.sidebar-header h4 {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.2;
    word-break: break-word;
    color: #1e3a5f;
    text-shadow: none;
}

.sidebar-logo {
    max-height: 40px;
    max-width: 60px;
    object-fit: contain;
    margin-right: 0.5rem;
    border-radius: 4px;
}

.main-content {
    margin-left: 290px;
    padding-top: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    min-height: 100vh;
}

/* White floating shell for main content */
.content-shell {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.06);
    min-height: calc(100vh - 8rem);
}

.top-bar {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.top-bar .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.top-bar .badge.bg-primary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-bar .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}
.top-bar .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 12px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border-radius: 1rem !important;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border-color: rgba(59, 130, 246, 0.15);
}

/* Glass-card — version unifiée */
.glass-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.glass-card:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    border-color: rgba(59, 130, 246, 0.15);
}

.card-header {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Stat-cards — bande colorée top via ::before */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.stat-card.success::before {
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
}

.stat-card.info::before {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.stat-card.warning::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card.danger::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-card .stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #1e293b;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Icône stat-card */
.stat-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.badge-statut {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.table th {
    font-weight: 600;
    color: #475569;
    border-bottom-width: 1px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.65rem 0.75rem;
}

.table td {
    font-size: var(--text-sm);
    padding: 0.7rem 0.75rem;
}

/* ==================== BOUTONS PREMIUM ==================== */

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border: none;
}

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

.btn-success {
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.btn-danger:hover, .btn-danger:focus {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border: none;
}

.btn-outline-secondary {
    border-color: rgba(100, 116, 139, 0.4);
    color: #475569;
    transition: all 0.2s;
}

.btn-outline-secondary:hover {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.6);
    color: #334155;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: var(--text-sm);
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: #1e3a5f;
    margin: 0;
}

/* ==================== BACK BUTTON ==================== */

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #1e40af;
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.back-btn i {
    width: 18px;
    height: 18px;
}

/* ==================== MODALES GLASSMORPHISM ==================== */

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 16px 64px rgba(30, 58, 95, 0.15);
    color: #1e293b;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    color: #1e3a5f;
}

.modal-header .modal-title {
    color: #1e3a5f;
    font-weight: 600;
    font-size: var(--text-lg);
}

.modal-header .btn-close {
    filter: none;
    opacity: 0.5;
}
.modal-header .btn-close:hover {
    opacity: 0.8;
}

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

.modal-body {
    color: #334155;
}

.modal-body label,
.modal-body .form-label {
    color: #475569;
    font-weight: 500;
}

.modal-body .form-control,
.modal-body .form-select {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.modal-body .form-control::placeholder {
    color: #94a3b8;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background: #fff;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: #1e293b;
}

.modal-body .form-select option {
    background: #fff;
    color: #1e293b;
}

.modal-backdrop.show {
    backdrop-filter: blur(4px);
}

.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.fiche-section {
    margin-bottom: 2rem;
}

.fiche-section h5 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
}

.info-value {
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.filter-bar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.15);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* ==================== SIDEBAR MOBILE AMÉLIORÉE ==================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1040;
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* ==================== DARK MODE ====================  */

[data-bs-theme="dark"] {
    --light-bg: #0f172a;
}

[data-bs-theme="dark"] body {
    background: linear-gradient(135deg, #020617 0%, #0c1929 50%, #082f49 100%);
}

[data-bs-theme="dark"] .sidebar {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .top-bar {
    background: linear-gradient(135deg, #1e40af, #2563eb, #3b82f6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.12) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.08) inset;
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.08) inset;
}

[data-bs-theme="dark"] .card-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .filter-bar {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .stat-card .stat-value {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .stat-card .stat-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .table th {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.5);
}

[data-bs-theme="dark"] .login-card {
    background: #212529;
}

[data-bs-theme="dark"] .coordination-overview-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.08) inset;
}

[data-bs-theme="dark"] .circular-progress .progress-inner {
    background: #212529;
}

[data-bs-theme="dark"] .seance-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.12);
}

[data-bs-theme="dark"] .seance-card.seance-future {
    background: #1a2332;
}

[data-bs-theme="dark"] .indicator-timeline .timeline-content {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .dialogue-stat-card {
    background: #212529;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .dialogue-stat-card .stat-value {
    color: #e9ecef;
}

[data-bs-theme="dark"] .empty-state {
    color: #adb5bd;
}

[data-bs-theme="dark"] .checklist-item {
    background: #2b3035;
}

[data-bs-theme="dark"] .checklist-item:hover {
    background: #343a40;
}

/* ==================== SIMPLE-DATATABLES OVERRIDES ==================== */

.datatable-wrapper .datatable-top {
    padding: 0.75rem 0;
}

.datatable-wrapper .datatable-search input {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: var(--text-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.datatable-wrapper .datatable-search input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    outline: none;
}

.datatable-wrapper .datatable-bottom {
    padding: 0.75rem 0;
    font-size: var(--text-xs);
    color: #6c757d;
}

.datatable-wrapper .datatable-pagination .datatable-pagination-list-item-link {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all 0.2s;
}

.datatable-wrapper .datatable-pagination .datatable-pagination-list-item.datatable-active .datatable-pagination-list-item-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.datatable-wrapper .datatable-pagination .datatable-pagination-list-item-link:hover {
    background-color: var(--light-bg);
}

.datatable-wrapper .datatable-sorter::before,
.datatable-wrapper .datatable-sorter::after {
    border-color: rgba(255, 255, 255, 0.5) transparent;
}

[data-bs-theme="dark"] .datatable-wrapper .datatable-search input {
    background-color: #2b3035;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .datatable-wrapper .datatable-pagination .datatable-pagination-list-item-link {
    border-color: #495057;
    color: #e9ecef;
}

/* ==================== TOM SELECT OVERRIDES ==================== */

.ts-wrapper .ts-control {
    border-radius: 0.375rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.ts-wrapper .ts-dropdown {
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
}

.ts-wrapper .ts-dropdown .active {
    background-color: var(--secondary-color);
    color: #fff;
}

.ts-wrapper .ts-dropdown .no-results {
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    font-style: italic;
}

.ts-wrapper .ts-dropdown .optgroup-header {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-bs-theme="dark"] .ts-wrapper .ts-control {
    background-color: #2b3035;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .ts-wrapper .ts-dropdown {
    background-color: #2b3035;
    border-color: #495057;
}

/* ==================== FLATPICKR OVERRIDES ==================== */

.flatpickr-calendar {
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.flatpickr-day.today {
    border-color: var(--secondary-color);
}

.flatpickr-day.today:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* ==================== FILEPOND OVERRIDES ==================== */

.filepond--root {
    margin-bottom: 0;
}

.filepond--panel-root {
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.filepond--drop-label {
    color: #6c757d;
    font-size: var(--text-sm);
    min-height: 4.5rem;
}

.filepond--drop-label label {
    cursor: pointer;
}

.filepond--label-action {
    color: var(--secondary-color);
    text-decoration: underline;
}

.filepond--item-panel {
    border-radius: 0.375rem;
}

[data-bs-theme="dark"] .filepond--panel-root {
    background-color: #2b3035;
    border-color: #495057;
}

[data-bs-theme="dark"] .filepond--drop-label {
    color: #adb5bd;
}

/* ==================== NOTYF OVERRIDES ==================== */

.notyf__toast {
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: var(--text-sm);
}

/* ==================== CHART.JS CONTAINER ==================== */

.chart-container {
    position: relative;
    width: 100%;
    max-height: 300px;
}

/* Theme cards */
.theme-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-card.border-primary {
    border-color: var(--secondary-color) !important;
}

.theme-preview {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Bureau table */
#tableBureau .btn-group-vertical .btn {
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

/* Nature depenses table */
#tableNaturesDepenses .btn-group-vertical .btn {
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

/* Color palette for missions/actions */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch input[type="radio"] {
    display: none;
}

.color-swatch input[type="radio"]:checked + .swatch-inner,
.color-swatch.selected {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.color-swatch .swatch-inner {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.color-swatch.selected::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Color display badge */
.color-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Icon picker swatches */
.icon-swatch {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
}
.icon-swatch:hover {
    border-color: rgba(59, 130, 246, 0.3);
}
.icon-swatch.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Mission sub-navigation pills */
.mission-pills { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.mission-pills::-webkit-scrollbar { height: 4px; }
.mission-pills::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.3); border-radius: 2px; }

/* ==================== COORDINATION / PILOTAGE ==================== */

/* Barres de progression coordination */
.coordination-progress {
    height: 22px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.coordination-progress .progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
    font-size: var(--text-micro);
    line-height: 22px;
}

/* Timeline historique indicateurs */
.indicator-timeline {
    position: relative;
    padding-left: 24px;
    border-left: 3px solid var(--secondary-color);
    margin-left: 12px;
}

.indicator-timeline .timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 16px;
}

.indicator-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.indicator-timeline .timeline-date {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.indicator-timeline .timeline-content {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ==================== VUE D'ENSEMBLE COORDINATION ==================== */

/* Cartes overview par mission */
.coordination-overview-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-width: 160px;
}

/* Vignettes cliquables */
.mission-card-clickable {
    cursor: pointer;
}

.mission-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.mission-card-clickable.card-active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
}

.mission-card-clickable.card-active .mission-label {
    color: var(--secondary-color);
}

/* Panneau mission ouvert */
.mission-panel {
    animation: panelSlideIn 0.3s ease;
}

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

.coordination-overview-card .mission-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coordination-overview-card .overview-stats {
    font-size: var(--text-xs);
    color: #6c757d;
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* Cercle de progression CSS */
.circular-progress {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.circular-progress .progress-value {
    position: absolute;
    font-size: var(--text-sm);
    font-weight: 700;
    color: #343a40;
}

.circular-progress .progress-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
}

.circular-progress .progress-value {
    z-index: 1;
}

/* Couleurs selon niveau */
.circular-high {
    background: conic-gradient(#198754 var(--progress), #e9ecef var(--progress));
}
.circular-medium {
    background: conic-gradient(#fd7e14 var(--progress), #e9ecef var(--progress));
}
.circular-low {
    background: conic-gradient(#dc3545 var(--progress), #e9ecef var(--progress));
}

/* ==================== TABLEAU COORDINATION INLINE ==================== */

.coordination-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--text-sm);
}

.coordination-table thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.6rem 0.5rem;
    border: none;
    white-space: nowrap;
}

.coordination-table thead th:first-child {
    border-radius: 0.5rem 0 0 0;
}

.coordination-table thead th:last-child {
    border-radius: 0 0.5rem 0 0;
}

.coordination-table tbody tr {
    transition: background-color 0.15s;
}

.coordination-table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.coordination-table tbody td {
    padding: 0.4rem 0.35rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Champs éditables dans le tableau */
.coordination-table .form-control,
.coordination-table .form-select {
    font-size: var(--text-xs);
    padding: 0.3rem 0.4rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.3rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.coordination-table .form-control:focus,
.coordination-table .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 13, 110, 253), 0.15);
}

/* Select statut coloré — 3 états */
.coordination-table .statut-non_debute {
    color: #6c757d;
    background-color: #f8f9fa;
}

.coordination-table .statut-en_cours {
    color: #664d03;
    background-color: #fff3cd;
    font-weight: 600;
}

.coordination-table .statut-realise {
    color: #0f5132;
    background-color: #d1e7dd;
    font-weight: 600;
}

/* Lien fichier collecté */
.piece-collectee-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--text-xs);
    color: var(--primary-color);
    text-decoration: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.piece-collectee-link:hover {
    text-decoration: underline;
}

/* Bouton supprimer PJ */
.btn-delete-piece {
    font-size: var(--text-micro);
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.2rem;
    opacity: 0.6;
}

.btn-delete-piece:hover {
    opacity: 1;
}

/* Animation flash après sauvegarde */
.field-saved {
    animation: flashSaved 0.8s ease;
}

@keyframes flashSaved {
    0% { box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.5); }
    100% { box-shadow: none; }
}

/* Bouton ajouter ligne */
.btn-add-ligne {
    font-size: var(--text-xs);
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
    background: transparent;
    border-radius: 0.3rem;
    padding: 0.35rem 0.75rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-add-ligne:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* (onglets missions supprimés — navigation par vignettes cliquables) */

/* ==================== MODULE COORDINATION MONDAY ==================== */

/* Onglets Board / Gantt */
.monday-tabs {
    border-bottom: 2px solid #e6e9ef;
    margin-bottom: 1.5rem;
}

.monday-tabs .nav-link {
    font-weight: 600;
    font-size: var(--text-sm);
    color: #676879;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1.2rem;
    transition: color 0.2s, border-color 0.2s;
}

.monday-tabs .nav-link:hover {
    color: #0073ea;
    border-bottom-color: #c3d4f5;
}

.monday-tabs .nav-link.active {
    color: #0073ea;
    border-bottom-color: #0073ea;
    background: none;
}

/* Stats cards Monday style */
.monday-stat-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-left: 4px solid #c5c7d0;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.15s, box-shadow 0.15s;
}

.monday-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.monday-stat-card.stat-total { border-left-color: #0073ea; }
.monday-stat-card.stat-done { border-left-color: #00c875; }
.monday-stat-card.stat-progress { border-left-color: #fdab3d; }
.monday-stat-card.stat-blocked { border-left-color: #e2445c; }

/* Mission header accordion */
.monday-mission-header {
    background: #f6f7fb;
    border: 1px solid #e6e9ef;
    border-left: 5px solid #0073ea;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    margin-bottom: 0.5rem;
}

.monday-mission-header:hover {
    background: #eef0f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.monday-mission-header .mission-chevron {
    transition: transform 0.25s;
}

.monday-mission-header.collapsed .mission-chevron {
    transform: rotate(-90deg);
}

/* Action row */
.monday-action-row {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-left: 4px solid transparent;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin: 0.35rem 0;
    cursor: pointer;
    transition: background 0.15s, border-left-color 0.15s;
}

.monday-action-row:hover {
    background: #f9fafb;
    border-left-color: #579bfc;
}

.monday-action-row.expanded {
    border-left-color: #0073ea;
    background: #fafbff;
}

/* Budget badges */
.monday-budget-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

.monday-budget-badge.budget-octroye {
    background: #e4f7e4;
    color: #0f5132;
}

.monday-budget-badge.budget-prev {
    background: #e8f0fe;
    color: #1a4b8c;
}

/* Indicator header */
.monday-indicator-header {
    background: #fafbfc;
    border: 1px solid #eef0f4;
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    margin: 0.25rem 0;
    cursor: pointer;
    transition: background 0.15s;
}

.monday-indicator-header:hover {
    background: #f0f2f8;
}

/* Grille de taches Monday */
.monday-task-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--text-sm);
    margin-top: 0.4rem;
}

.monday-task-table thead th {
    background: #292f4c;
    color: #d5d8df;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.5rem;
    border: none;
    white-space: nowrap;
}

.monday-task-table thead th:first-child {
    border-radius: 6px 0 0 0;
    padding-left: 0.7rem;
}

.monday-task-table thead th:last-child {
    border-radius: 0 6px 0 0;
}

.monday-task-row {
    border-bottom: 1px solid #e6e9ef;
    transition: background 0.12s;
}

.monday-task-row:hover {
    background: #f0f3ff;
}

.monday-task-row td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

.monday-task-row td:first-child {
    padding-left: 0.7rem;
}

/* Checkbox Monday */
.monday-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #c5c7d0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: #fff;
    flex-shrink: 0;
}

.monday-checkbox:hover {
    border-color: #0073ea;
}

.monday-checkbox.checked {
    background: #00c875;
    border-color: #00c875;
    color: #fff;
}

/* Libelle editable */
.monday-label-cell {
    cursor: text;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.15s;
    min-width: 120px;
}

.monday-label-cell:hover {
    background: rgba(0,115,234,0.06);
}

.monday-label-cell.editing {
    background: #fff;
    box-shadow: 0 0 0 2px #0073ea;
}

.monday-label-cell.task-done {
    text-decoration: line-through;
    color: #9ca3af;
}

/* Selecteur statut colore */
.monday-status-select {
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-weight: 600;
    font-size: var(--text-xs);
    cursor: pointer;
    text-align: center;
    min-width: 90px;
    -webkit-appearance: none;
    appearance: none;
}

.monday-status-select.status-en_cours {
    background: #fdab3d;
    color: #fff;
}

.monday-status-select.status-termine {
    background: #00c875;
    color: #fff;
}

.monday-status-select.status-bloque {
    background: #e2445c;
    color: #fff;
}

/* Selecteur priorite */
.monday-priority-select {
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-weight: 600;
    font-size: var(--text-xs);
    cursor: pointer;
    text-align: center;
    min-width: 80px;
    -webkit-appearance: none;
    appearance: none;
}

.monday-priority-select.priority-1 {
    background: #e2445c;
    color: #fff;
}

.monday-priority-select.priority-2 {
    background: #fdab3d;
    color: #fff;
}

.monday-priority-select.priority-3 {
    background: #579bfc;
    color: #fff;
}

/* Date input Monday */
.monday-date-input {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: var(--text-xs);
    background: transparent;
    transition: border-color 0.15s;
    width: 110px;
}

.monday-date-input:hover,
.monday-date-input:focus {
    border-color: #c5c7d0;
    background: #fff;
    outline: none;
}

/* Comment icon */
.monday-comment-btn {
    background: none;
    border: none;
    color: #c5c7d0;
    cursor: pointer;
    padding: 2px;
    font-size: var(--text-sm);
    transition: color 0.15s;
}

.monday-comment-btn:hover,
.monday-comment-btn.has-comment {
    color: #0073ea;
}

/* Delete button */
.monday-delete-btn {
    background: none;
    border: none;
    color: #c5c7d0;
    cursor: pointer;
    padding: 2px;
    font-size: var(--text-xs);
    transition: color 0.15s;
    opacity: 0;
}

.monday-task-row:hover .monday-delete-btn {
    opacity: 1;
}

.monday-delete-btn:hover {
    color: #e2445c;
}

/* Add task row */
.monday-add-task-btn {
    border: 1px dashed #c5c7d0;
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    font-size: var(--text-xs);
    color: #676879;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.monday-add-task-btn:hover {
    border-color: #0073ea;
    color: #0073ea;
    background: #f0f6ff;
}

/* Progress bar Monday */
.monday-progress {
    height: 6px;
    border-radius: 3px;
    background: #e6e9ef;
    overflow: hidden;
}

.monday-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.monday-progress-bar.pct-high { background: #00c875; }
.monday-progress-bar.pct-medium { background: #fdab3d; }
.monday-progress-bar.pct-low { background: #e2445c; }

/* Gantt container */
#gantt-target {
    overflow-x: auto;
    min-height: 300px;
}

#gantt-target svg {
    font-family: inherit;
}

/* Indicateur taches wrapper */
.monday-tasks-wrapper {
    padding: 0.3rem 0 0.3rem 1.5rem;
    animation: mondaySlideIn 0.2s ease;
}

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

/* Empty state */
.monday-empty {
    text-align: center;
    padding: 1rem;
    color: #9ca3af;
    font-size: var(--text-sm);
}

/* Dark mode Monday */
[data-bs-theme="dark"] .monday-mission-header {
    background: #2d3142;
    border-color: #3d4260;
}

[data-bs-theme="dark"] .monday-mission-header:hover {
    background: #353a52;
}

[data-bs-theme="dark"] .monday-action-row {
    background: #252836;
    border-color: #3d4260;
}

[data-bs-theme="dark"] .monday-action-row:hover {
    background: #2e3248;
}

[data-bs-theme="dark"] .monday-indicator-header {
    background: #2a2e3f;
    border-color: #3d4260;
}

[data-bs-theme="dark"] .monday-task-table thead th {
    background: #1e2235;
}

[data-bs-theme="dark"] .monday-task-row {
    border-bottom-color: #3d4260;
}

[data-bs-theme="dark"] .monday-task-row:hover {
    background: #2a2f45;
}

[data-bs-theme="dark"] .monday-checkbox {
    border-color: #5a5f7a;
    background: #2a2e3f;
}

[data-bs-theme="dark"] .monday-label-cell:hover {
    background: rgba(0,115,234,0.12);
}

[data-bs-theme="dark"] .monday-date-input {
    color: #d5d8df;
}

[data-bs-theme="dark"] .monday-date-input:hover,
[data-bs-theme="dark"] .monday-date-input:focus {
    border-color: #5a5f7a;
    background: #2a2e3f;
}

[data-bs-theme="dark"] .monday-stat-card {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.08) inset;
}

[data-bs-theme="dark"] .monday-progress {
    background: #3d4260;
}

[data-bs-theme="dark"] .monday-tabs {
    border-bottom-color: #3d4260;
}

[data-bs-theme="dark"] .monday-tabs .nav-link {
    color: #9ca3af;
}

[data-bs-theme="dark"] .monday-add-task-btn {
    border-color: #5a5f7a;
    color: #9ca3af;
}

[data-bs-theme="dark"] .monday-add-task-btn:hover {
    border-color: #0073ea;
    color: #0073ea;
    background: rgba(0,115,234,0.12);
}

/* ==================== ACCORDÉON ACTION IMBRIQUÉ ==================== */

.action-accordion-btn {
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
    background-color: #f8f9fa;
}

.action-accordion-btn:not(.collapsed) {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* ==================== PJ DEMANDÉES / RÉCOLTÉES ==================== */

.pj-demandee-item {
    background: #f0f4ff;
    border: 1px solid #d0d9f0;
    border-radius: 0.25rem;
    padding: 0.15rem 0.4rem;
    font-size: var(--text-xs);
}

.pj-demandee-item .pj-desc {
    color: #495057;
}

/* Zone drag-and-drop */
.drop-area {
    border: 2px dashed #ced4da;
    border-radius: 0.375rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fafbfc;
    font-size: var(--text-xs);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-area:hover,
.drop-area.drop-hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.04);
}

.drop-area .drop-label {
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.drop-area .drop-label i {
    font-size: var(--text-xs);
}

/* PJ add form inline */
.pj-add-form .pj-desc-input {
    border-radius: 0.25rem 0 0 0.25rem;
}

.pj-add-form .btn-add-pj {
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.15rem 0.4rem;
}

/* ==================== COMPTEURS VUE D'ENSEMBLE ==================== */

.overview-counter {
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.overview-counter .counter-value {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.2;
}

.overview-counter .counter-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.15rem;
}

.counter-not-started {
    background: #F1F5F9;
    color: #64748B;
}

.counter-in-progress {
    background: #FFEDD5;
    color: #9A3412;
}

.counter-done {
    background: #CCFBF1;
    color: #0F766E;
}

.counter-pj {
    background: #DBEAFE;
    color: #1D4ED8;
}

/* Badges status dans cartes overview */
.badge-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: var(--text-xs);
    font-weight: 700;
}

.badge-nd {
    background: #e9ecef;
    color: #6c757d;
}

.badge-ec {
    background: #fff3cd;
    color: #b8860b;
}

.badge-re {
    background: #d1e7dd;
    color: #0f5132;
}

/* ==================== ALERTES ÉCHÉANCES ==================== */

.alertes-section {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.alertes-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.alerte-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
}

.alerte-danger {
    background: #fdf0f0;
    border-left: 3px solid #dc3545;
}

.alerte-warning {
    background: #fefce8;
    border-left: 3px solid #f39c12;
}

.alerte-icon {
    flex-shrink: 0;
}

.alerte-danger .alerte-icon {
    color: #dc3545;
}

.alerte-warning .alerte-icon {
    color: #f39c12;
}

.alerte-content {
    flex: 1;
    line-height: 1.3;
}

/* ==================== PJ RÉCOLTÉE LABEL ==================== */

.pj-recoltee-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #495057;
    background: #f0f4ff;
    border-radius: 0.2rem;
    padding: 0.1rem 0.35rem;
    margin-bottom: 0.2rem;
    display: inline-block;
}

/* ==================== DIALOGUES DE GESTION ==================== */

/* Seance cards */
.seance-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.seance-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

.seance-card.seance-future {
    border-left: 4px solid var(--secondary-color);
    background: rgba(240, 249, 255, 0.90);
}

.seance-card.seance-passee {
    border-left: 4px solid #6c757d;
}

/* Engagement table statut colors */
.engagement-table .statut-non_demarre {
    color: #6c757d;
    background-color: #f8f9fa;
}

.engagement-table .statut-en_cours {
    color: #664d03;
    background-color: #fff3cd;
    font-weight: 600;
}

.engagement-table .statut-realise {
    color: #0f5132;
    background-color: #d1e7dd;
    font-weight: 600;
}

/* Engagement en retard */
.engagement-retard {
    background-color: #fff5f5 !important;
}

.engagement-retard td:first-child {
    border-left: 3px solid #dc3545;
}

/* Preparation summary cards */
.dialogue-stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.dialogue-stat-card .stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.dialogue-stat-card .stat-label {
    font-size: var(--text-xs);
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.25rem;
}

/* Quill editor container */
.quill-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
}

.quill-container .ql-toolbar {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-bottom: 1px solid #dee2e6;
}

.quill-container .ql-editor {
    min-height: 200px;
    font-size: var(--text-sm);
}

/* Export buttons */
.export-btn-group .btn {
    margin-right: 0.5rem;
}

/* Engagement table */
.engagement-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--text-sm);
}

.engagement-table thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.6rem 0.5rem;
    border: none;
    white-space: nowrap;
}

.engagement-table thead th:first-child {
    border-radius: 0.5rem 0 0 0;
}

.engagement-table thead th:last-child {
    border-radius: 0 0.5rem 0 0;
}

.engagement-table tbody td {
    padding: 0.4rem 0.35rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.engagement-table .form-control,
.engagement-table .form-select {
    font-size: var(--text-xs);
    padding: 0.3rem 0.4rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.3rem;
}

/* Badge type seance */
.badge-intermediaire {
    background-color: #17a2b8;
}

.badge-annuel {
    background-color: #6f42c1;
}

.badge-exceptionnel {
    background-color: #fd7e14;
}

/* Préparation cards */
.preparation-card {
    border-left: 4px solid var(--secondary-color);
    transition: box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.preparation-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preparation-card .card-header {
    background-color: rgba(var(--secondary-color-rgb, 52, 152, 219), 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Alertes séances — aligné identité Pilote */
.alerte-seances-card {
    border: 1px solid #E2E8F0;
    border-left: 4px solid #1D4ED8;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    border-radius: 10px;
}

.alerte-seances-card .card-header {
    background-color: #F8FAFC;
    color: #0F172A;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #F1F5F9;
}

.alerte-seances-card .card-header i {
    color: #1D4ED8;
    margin-right: 6px;
}

.alerte-seance-item {
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #F8FAFC;
    border-left: 3px solid #CBD5E1;
    transition: background-color 0.15s ease-out;
}

.alerte-seance-item:hover {
    background: #EFF6FF;
}

.alerte-seance-item.alerte-vert {
    background-color: #F0FDFA;
    border-left-color: #0D9488;
}

.alerte-seance-item.alerte-orange {
    background-color: #FFEDD5;
    border-left-color: #EA580C;
}

.alerte-seance-item.alerte-rouge {
    background-color: #FEE2E2;
    border-left-color: #DC2626;
}

/* Checklist items */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding: 0.4rem;
    border-radius: 0.3rem;
    background: #f8f9fa;
    transition: background-color 0.2s;
}

.checklist-item:hover {
    background: #e9ecef;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item input[type="text"] {
    flex-grow: 1;
}

/* Comparaison evolution */
.evolution-positive {
    color: #28a745;
    font-weight: 600;
}

.evolution-positive::before {
    content: "↗ +";
}

.evolution-negative {
    color: #dc3545;
    font-weight: 600;
}

.evolution-negative::before {
    content: "↘ ";
}

.evolution-neutral {
    color: #6c757d;
    font-weight: 500;
}

.evolution-neutral::before {
    content: "→ ";
}

/* ==================== PREVIEW JUSTIFICATIFS ==================== */

.justif-file-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.justif-file-item .btn-group {
    flex-shrink: 0;
}

#modalPreviewJustif .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

#modalPreviewJustif .modal-body img {
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

#modalPreviewJustif .modal-body iframe {
    background: #fff;
}


/* ══════════════════════════════════════════════════════════════
   DRAWER TASK TABLE — Monday.com style (Coordination cockpit)
   ══════════════════════════════════════════════════════════════ */

.drawer-task-table {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Header row */
.drawer-task-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: var(--text-micro);
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Task row */
.drawer-task-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}
.drawer-task-row:last-of-type {
    border-bottom: none;
}
.drawer-task-row:hover {
    background: #f8fafc;
}
.drawer-task-done {
    opacity: 0.55;
}

/* Column widths */
.drawer-task-col-check {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drawer-task-col-label {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}
.drawer-task-col-resp {
    width: 150px;
    flex-shrink: 0;
    padding: 0 4px;
    position: relative;
}
.drawer-task-col-date {
    width: 110px;
    flex-shrink: 0;
    padding: 0 4px;
}
.drawer-task-col-status {
    width: 90px;
    flex-shrink: 0;
    padding: 0;
}
.drawer-task-header .drawer-task-col-status {
    padding: 0 4px;
}
.drawer-task-col-priority {
    width: 65px;
    flex-shrink: 0;
    padding: 0;
}
.drawer-task-header .drawer-task-col-priority {
    padding: 0 4px;
}
.drawer-task-col-actions {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkbox */
.drawer-task-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    padding: 0;
}
.drawer-task-checkbox:hover {
    border-color: #94a3b8;
}
.drawer-task-checkbox-done {
    border-color: #00c875;
    background: #00c875;
}
.drawer-task-checkbox-blocked {
    border-color: #e2445c;
    background: #fef2f2;
}

/* Label inline-edit */
.drawer-task-label {
    display: block;
    font-size: var(--text-sm);
    color: #334155;
    line-height: 1.4;
    padding: 2px 4px;
    border-radius: 6px;
    outline: none;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: text;
}
.drawer-task-label:focus {
    background: #eff6ff;
    white-space: normal;
    box-shadow: 0 0 0 2px #3b82f640;
}

/* ── Member avatar ── */
.drawer-member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.drawer-member-avatar-empty {
    background: #f1f5f9;
    color: #cbd5e1;
}

.drawer-member-avatar-sm {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* ── Tom Select compact (inside drawer task rows) ── */
.drawer-tom-select + .ts-wrapper {
    min-height: 0 !important;
}
.drawer-tom-select + .ts-wrapper .ts-control {
    min-height: 26px !important;
    padding: 2px 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: var(--text-micro) !important;
    box-shadow: none !important;
    cursor: pointer;
}
.drawer-tom-select + .ts-wrapper .ts-control:hover {
    border-color: #cbd5e1 !important;
}
.drawer-tom-select + .ts-wrapper.focus .ts-control {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1) !important;
}
.drawer-tom-select + .ts-wrapper .ts-control > .item {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    color: #334155;
    font-size: var(--text-micro);
}
.drawer-tom-select + .ts-wrapper .ts-control input {
    font-size: var(--text-micro) !important;
}
.drawer-tom-select + .ts-wrapper .ts-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    margin-top: 4px;
    z-index: 100;
}
.drawer-tom-select + .ts-wrapper .ts-dropdown .option {
    padding: 6px 10px !important;
    font-size: var(--text-micro);
    border-radius: 6px;
    margin: 2px 4px;
}
.drawer-tom-select + .ts-wrapper .ts-dropdown .option.active {
    background: #eff6ff !important;
    color: #1e40af !important;
}
.drawer-tom-select + .ts-wrapper .ts-dropdown .ts-dropdown-content {
    max-height: 240px;
    padding: 4px 0;
}

/* Member trigger button */
.drawer-member-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: transparent;
    width: 100%;
}
.drawer-member-trigger:hover {
    background: #f1f5f9;
}

/* Member dropdown */
.drawer-member-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    width: 220px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-member-search {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: var(--text-xs);
    outline: none;
    background: #fafbfc;
}
.drawer-member-search::placeholder {
    color: #cbd5e1;
}

.drawer-member-list {
    overflow-y: auto;
    max-height: 220px;
    padding: 4px;
}

.drawer-member-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}
.drawer-member-option:hover {
    background: #f1f5f9;
}
.drawer-member-option-active {
    background: #eff6ff;
}

/* ── Date input ── */
.drawer-date-input {
    width: 100%;
    font-size: var(--text-micro);
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.drawer-date-input:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.drawer-date-input::placeholder {
    color: #cbd5e1;
}
.drawer-date-overdue {
    color: #e2445c !important;
    font-weight: 600;
}
.drawer-date-badge-late {
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: var(--text-micro);
    font-weight: 700;
    background: #e2445c;
    color: #fff;
    padding: 1px 5px;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Status full-cell (Monday-style) ── */
.drawer-status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 34px;
    cursor: pointer;
    transition: filter 0.15s;
}
.drawer-status-cell:hover {
    filter: brightness(1.08);
}
.drawer-status-cell-label {
    font-size: var(--text-micro);
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    user-select: none;
}

/* ── Status pill (Monday-style) ── */
.drawer-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--text-micro);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
    width: 100%;
}
.drawer-status-pill:hover {
    opacity: 0.85;
}
.drawer-status-pill:active {
    transform: scale(0.95);
}
.drawer-status-pill-cycle {
    transition: all 0.2s ease;
}
.drawer-status-pill-cycle:active {
    transform: scale(0.88);
}

/* Status dropdown */
.drawer-status-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.drawer-status-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: var(--text-micro);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.drawer-status-option:hover {
    opacity: 0.8;
}

/* ── Priority full-cell (Monday-style) ── */
.drawer-priority-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 34px;
    cursor: pointer;
    transition: filter 0.15s;
}
.drawer-priority-cell:hover {
    filter: brightness(1.08);
}
.drawer-priority-cell:active {
    transform: scale(0.95);
}
.drawer-priority-cell-label {
    font-size: var(--text-micro);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    user-select: none;
}

/* ── Priority badges ── */
.drawer-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: var(--text-micro);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 100%;
}
.drawer-priority-badge:active {
    transform: scale(0.92);
}
.drawer-priority-high {
    background: #fee2e2;
    color: #dc2626;
}
.drawer-priority-high:hover {
    background: #fecaca;
}
.drawer-priority-medium {
    background: #fef3c7;
    color: #d97706;
}
.drawer-priority-medium:hover {
    background: #fde68a;
}
.drawer-priority-low {
    background: #f1f5f9;
    color: #94a3b8;
}
.drawer-priority-low:hover {
    background: #e2e8f0;
}

/* ── Delete button ── */
.drawer-task-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    opacity: 0;
}
.drawer-task-row:hover .drawer-task-delete {
    opacity: 1;
}
.drawer-task-delete:hover {
    background: #fee2e2;
    color: #e2445c;
}

/* ── Quick add row ── */
.drawer-task-quickadd {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    border-top: 1px dashed #e2e8f0;
    background: #fafbfc;
    border-radius: 0 0 12px 12px;
}

.drawer-quickadd-input {
    width: 100%;
    font-size: var(--text-xs);
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    outline: none;
    transition: all 0.15s;
}
.drawer-quickadd-input:focus {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}
.drawer-quickadd-input::placeholder {
    color: #cbd5e1;
}
.drawer-quickadd-input:disabled {
    opacity: 0.5;
}

.drawer-quickadd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.drawer-quickadd-btn:hover {
    opacity: 0.85;
}
.drawer-quickadd-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Meeting section placeholder ── */
.drawer-meeting-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
}

/* ── Priority signal button ── */
.drawer-priority-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.15s;
    width: 100%;
}
.drawer-priority-signal:hover {
    background: #f1f5f9;
}
.drawer-priority-signal:active {
    transform: scale(0.9);
}

/* ── Quick-add ghost styles ── */
.drawer-quickadd-ghost {
    border-top: 1px dashed #e2e8f0;
    background: transparent;
    transition: all 0.2s ease;
}
.drawer-quickadd-ghost .drawer-quickadd-input::placeholder {
    color: #d1d5db;
    font-style: italic;
}
.drawer-quickadd-focused {
    background: #fafbfc;
    border-top-color: #cbd5e1;
}
.drawer-quickadd-focused .drawer-quickadd-input {
    background: #fff;
    border-color: #e2e8f0;
}
/* ── Quick-add prominent (empty state) ── */
.drawer-quickadd-prominent {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin-top: 6px;
    transition: all 0.2s ease;
}
.drawer-quickadd-prominent .drawer-quickadd-input {
    font-weight: 500;
}
.drawer-quickadd-prominent .drawer-quickadd-input::placeholder {
    color: #3b82f6;
    font-style: normal;
    font-weight: 500;
}
.drawer-quickadd-prominent.drawer-quickadd-focused {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

/* ── Source badges (reunion / project) ── */
.drawer-task-badge--reunion {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: var(--text-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    line-height: 1;
}
.drawer-task-badge--project {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: var(--text-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

/* ── Project group header ── */
.drawer-project-group-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.drawer-project-group-header .flex {
    align-items: center;
}

/* ── SortableJS drag-and-drop ── */
.drawer-task-ghost {
    opacity: 0.3;
    background: #eef2ff !important;
    border: 1px dashed #3b82f6 !important;
}
.drawer-task-drag {
    opacity: 0.9;
    box-shadow: 0 8px 25px rgba(99,102,241,0.2);
    border-radius: 8px;
    z-index: 999;
}
.drawer-task-col-check {
    cursor: grab;
}
.drawer-task-col-check:active {
    cursor: grabbing;
}

/* ── Task completion animation ── */
@keyframes task-complete {
    0% { background: transparent; }
    30% { background: rgba(0,200,117,0.08); }
    100% { background: transparent; }
}
.drawer-task-complete-anim {
    animation: task-complete 0.6s ease-out;
}
.drawer-task-complete-anim .drawer-task-col-label span {
    transition: all 0.3s ease;
}

/* ── Overdue pulse animation ── */
@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.drawer-pulse-red {
    animation: pulse-red 2s ease-in-out infinite;
}
.drawer-date-overdue {
    color: #e2445c !important;
    border-color: #fecaca !important;
}

/* ── Task status segment bar ── */
.task-statut-segment {
    font-size: var(--text-micro);
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

/* ── Task card grid (responsive) ── */
.task-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 576px) {
    .task-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .task-card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Meeting timeline items ── */
.drawer-meeting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
    border: 1px solid transparent;
}
.drawer-meeting-item:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
}
.drawer-meeting-past {
    opacity: 0.65;
    border-left: 2px solid #e2e8f0;
    padding-left: 10px;
}
.drawer-meeting-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── PV / compte-rendu link ── */
.drawer-meeting-pv-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    color: #94a3b8;
    transition: all 0.15s;
}
.drawer-meeting-pv-link:hover {
    color: #3b82f6;
    background: #eef2ff;
}

/* ── Action progress bar (full-width under action header) ── */
.drawer-action-progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
}
.drawer-action-progress-fill {
    height: 100%;
    transition: all 500ms ease;
}

/* ── Stat card clickable glow ── */
.stat-card-clickable {
    --glow: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(148,163,184,.12), 0 2px 4px -2px rgba(148,163,184,.08);
}
.stat-card-clickable:hover {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--glow) 45%, transparent),
                0 0 16px 2px color-mix(in srgb, var(--glow) 25%, transparent);
    transform: translateY(-2px);
}
.stat-card-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--glow) 10%, transparent);
    color: var(--glow);
    opacity: 0.45;
    transition: all 0.2s ease;
}
.stat-card-clickable:hover .stat-card-badge {
    opacity: 1;
    background: color-mix(in srgb, var(--glow) 18%, transparent);
    transform: translate(1px, -1px);
}

/* ── Ultra-fine borders refinement ── */
.drawer-task-table {
    border-color: #f1f5f9;
}
.drawer-task-header {
    border-bottom-color: #f1f5f9;
}
.drawer-task-row {
    border-bottom-color: #f8fafc;
}
.drawer-task-row:hover {
    background: rgba(248, 250, 252, 0.5);
}

/* ── Responsive: hide columns in small drawer ── */
@media (max-width: 768px) {
    .drawer-task-col-resp,
    .drawer-task-col-date,
    .drawer-task-col-priority {
        display: none;
    }
    .drawer-task-col-status {
        width: 70px;
    }
}

/* ═══════════════════════════════════════════════════════
   HORIZONTAL TIMELINE — Réunions (sticky bottom drawer)
   ═══════════════════════════════════════════════════════ */
.htimeline-bar {
    flex-shrink: 0;
    background: linear-gradient(180deg, #fafbff 0%, #f4f6ff 100%);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(99,102,241,0.04);
}
.htimeline-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding: 14px 20px 12px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.htimeline-scroll::-webkit-scrollbar {
    height: 4px;
}
.htimeline-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.htimeline-track {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    min-width: max-content;
    padding: 0 6px;
}
.htimeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #c7d2fe 50%, #e2e8f0 100%);
    transform: translateY(-8px);
    border-radius: 1px;
    z-index: 0;
}
.htimeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.htimeline-dot-outer {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.htimeline-dot-outer:hover {
    transform: scale(1.2);
}
.htimeline-dot-past {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
}
.htimeline-dot-past:hover {
    box-shadow: 0 0 0 4px rgba(148,163,184,0.15);
}
.htimeline-dot-future {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: 2px solid #3b82f6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.htimeline-dot-future:hover {
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15), 0 2px 8px rgba(99,102,241,0.25);
}
.htimeline-label {
    font-size: var(--text-micro);
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.htimeline-dot-future + .htimeline-label {
    color: #3b82f6;
}

/* ── Tippy popover content for réunions ── */
.htl-popover {
    padding: 4px 0;
    font-family: 'Inter Tight', system-ui, sans-serif;
}
.htl-popover-header {
    margin-bottom: 6px;
}
.htl-popover-badge {
    display: inline-block;
    font-size: var(--text-micro);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.htl-popover-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 6px;
}
.htl-popover-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-micro);
    color: #64748b;
    margin-bottom: 3px;
}
.htl-popover-meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.htl-popover-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-micro);
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #eef2ff;
    transition: background 0.15s, color 0.15s;
}
.htl-popover-link:hover {
    background: #e0e7ff;
    color: #2563eb;
}
.htl-popover-link svg {
    flex-shrink: 0;
}
.htl-popover-future {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-micro);
    font-weight: 600;
    color: #3b82f6;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef2ff;
}
.htl-popover-future svg {
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   RECHERCHE TRANSVERSALE — Cockpit coordination
   ══════════════════════════════════════════════════════════════ */

.cockpit-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(148,163,184,0.1);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cockpit-search-bar:focus-within {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08), 0 4px 16px rgba(148,163,184,0.12);
}

.cockpit-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    color: #334155;
    outline: none;
}
.cockpit-search-input::placeholder {
    color: #94a3b8;
}

/* Hidden native select — TomSelect takes over */
.cockpit-search-filter {
    width: 110px;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* TomSelect overrides inside search bar */
.cockpit-search-bar .ts-wrapper {
    min-height: 0 !important;
    border: none !important;
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}
.cockpit-search-bar .ts-wrapper .ts-control {
    min-height: 30px !important;
    padding: 3px 8px !important;
    border: none !important;
    background: transparent !important;
    font-size: var(--text-micro) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    cursor: pointer;
}
.cockpit-search-bar .ts-wrapper .ts-control > .item {
    font-size: var(--text-micro);
    color: #475569;
    font-weight: 500;
}
.cockpit-search-bar .ts-wrapper .ts-control input {
    font-size: var(--text-micro) !important;
}
.cockpit-search-bar .ts-wrapper.focus .ts-control {
    box-shadow: none !important;
}
.cockpit-search-bar .ts-wrapper .ts-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    margin-top: 4px;
    z-index: 100;
}
.cockpit-search-bar .ts-wrapper .ts-dropdown .option {
    padding: 6px 10px !important;
    font-size: var(--text-micro);
    border-radius: 6px;
    margin: 2px 4px;
}
.cockpit-search-bar .ts-wrapper .ts-dropdown .option.active {
    background: #eff6ff !important;
    color: #1e40af !important;
}
.cockpit-search-bar .ts-wrapper .plugin-clear_button .clear-button {
    font-size: var(--text-sm);
    color: #94a3b8;
}

/* Results dropdown panel */
.cockpit-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
    max-height: 420px;
    overflow-y: auto;
    z-index: 50;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.cockpit-search-results::-webkit-scrollbar {
    width: 4px;
}
.cockpit-search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Category headers */
.search-cat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-micro);
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

/* Mission group header */
.search-mission-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

/* Result row */
.search-result-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background-color 0.12s;
    cursor: default;
}
.search-result-row:hover {
    background: #f8fafc;
}

/* ══════════════════════════════════════════════════════════════
   RÉUNIONS GT — Calendrier, liste, modales
   ══════════════════════════════════════════════════════════════ */

/* Filter wrapper avec icône */
.reunion-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.reunion-filter-icon {
    position: absolute;
    left: 8px;
    width: 12px;
    height: 12px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}
/* Filter selects — compact */
.reunion-filter-select {
    font-size: var(--text-micro);
    padding: 5px 10px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    color: #475569;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}
.reunion-filter-select.reunion-filter-select-icon {
    padding-left: 28px;
}
.reunion-filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

/* Empty state */
.reunion-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}
.reunion-empty-svg {
    width: 160px;
    height: 128px;
    margin-bottom: 20px;
    opacity: 0.85;
}
.reunion-empty-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.reunion-empty-sub {
    font-size: var(--text-micro);
    color: #94a3b8;
    margin-bottom: 0;
}

/* View toggle buttons */
.reunion-view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}
.reunion-view-btn:hover {
    background: #f1f5f9;
    color: #64748b;
}
.reunion-view-btn-active {
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(99,102,241,0.3);
}

/* Calendar container */
.reunion-calendar-container {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(99,102,241,0.06), 0 2px 8px rgba(148,163,184,0.08);
    overflow: hidden;
}

/* Topbar custom (légende + bouton) */
.reunion-cal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fafbff 0%, #f8faff 100%);
}
.reunion-cal-legend-pill {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-micro);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid;
    cursor: pointer;
    transition: all 0.15s;
    color: #475569;
    background: #fff;
    line-height: 1;
}
.reunion-cal-legend-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}
.reunion-cal-legend-pill-active {
    box-shadow: 0 2px 10px rgba(99,102,241,0.25);
}

/* FullCalendar overrides */
.reunion-calendar-container .fc {
    font-family: inherit;
    padding: 16px 20px 20px;
}
.reunion-calendar-container .fc .fc-button {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: var(--text-micro) !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    transition: all 0.15s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.reunion-calendar-container .fc .fc-button:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
.reunion-calendar-container .fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
}
.reunion-calendar-container .fc .fc-button-active,
.reunion-calendar-container .fc .fc-button.fc-button-active {
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important;
}
.reunion-calendar-container .fc .fc-button-group {
    gap: 4px !important;
}
.reunion-calendar-container .fc .fc-toolbar {
    align-items: center !important;
    margin-bottom: 16px !important;
}
.reunion-calendar-container .fc .fc-toolbar-title {
    font-size: var(--text-micro) !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: -0.01em;
}
/* Events custom month view */
.reunion-fc-event-month {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 6px;
    width: 100%;
    font-size: var(--text-micro);
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}
.reunion-fc-event-time {
    font-size: var(--text-micro);
    opacity: 0.85;
    flex-shrink: 0;
}
.reunion-fc-event-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reunion-fc-event-check {
    font-size: var(--text-micro);
    opacity: 0.9;
    flex-shrink: 0;
}
/* Week view events */
.reunion-calendar-container .fc .fc-timegrid-event {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    font-size: var(--text-micro) !important;
    font-weight: 600 !important;
}
.reunion-calendar-container .fc .fc-timegrid-event .fc-event-title {
    font-weight: 600;
}
/* List view */
.reunion-calendar-container .fc .fc-list-event:hover td {
    background: #f8faff !important;
    cursor: pointer;
}
.reunion-calendar-container .fc .fc-list-event-dot {
    border-radius: 50% !important;
}
.reunion-calendar-container .fc .fc-list-day-cushion {
    background: linear-gradient(90deg, #f8faff, #f1f5f9) !important;
    font-size: var(--text-micro) !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.reunion-calendar-container .fc .fc-list-table td {
    padding: 10px 16px !important;
    font-size: var(--text-xs) !important;
}
/* Today highlight */
.reunion-calendar-container .fc .fc-day-today {
    background: rgba(99,102,241,0.03) !important;
}
.reunion-calendar-container .fc .fc-day-today .fc-daygrid-day-number {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
/* Now indicator */
.reunion-calendar-container .fc .fc-timegrid-now-indicator-line {
    border-color: #3b82f6 !important;
    border-width: 2px !important;
}
.reunion-calendar-container .fc .fc-timegrid-now-indicator-arrow {
    border-top-color: #3b82f6 !important;
    border-bottom-color: #3b82f6 !important;
}
/* Grid borders */
.reunion-calendar-container .fc th {
    font-size: var(--text-micro);
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 4px !important;
}
.reunion-calendar-container .fc td,
.reunion-calendar-container .fc th {
    border-color: #f1f5f9 !important;
}

/* Compact timegrid — less scrolling, readable events */
.reunion-calendar-container .fc .fc-timegrid-slot {
    height: 1.4em !important;
}
.reunion-calendar-container .fc .fc-timegrid-slot-label {
    font-size: var(--text-micro) !important;
}
.reunion-calendar-container .fc .fc-timegrid-axis {
    padding: 0 4px !important;
}
.reunion-calendar-container .fc .fc-col-header-cell {
    padding: 6px 4px !important;
}

/* List cards */
.reunion-list-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 24px rgba(148, 163, 184, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
}
.reunion-list-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(148,163,184,0.12);
    border-color: rgba(99,102,241,0.2);
}
.reunion-list-card-past {
    opacity: 0.7;
}
.reunion-list-card-past:hover {
    opacity: 1;
}

/* Type badge */
.reunion-type-badge {
    display: inline-block;
    font-size: var(--text-micro);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Avatar stack */
.reunion-avatar-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.reunion-avatar-stack .reunion-avatar {
    margin-left: -8px;
}
.reunion-avatar-stack .reunion-avatar:first-child {
    margin-left: 0;
}

.reunion-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.reunion-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Quill editor */
.reunion-quill-editor {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-height: 200px;
    background: #fff;
}
.reunion-quill-editor .ql-toolbar {
    border-radius: 12px 12px 0 0;
    border-color: #e2e8f0;
    background: #f8fafc;
}
.reunion-quill-editor .ql-container {
    border-radius: 0 0 12px 12px;
    border-color: #e2e8f0;
    font-size: var(--text-sm);
}
.reunion-quill-editor .ql-editor {
    min-height: 180px;
}

/* Bannière résumé rôles sélectionnés (formulaire membre) */
.roles-selected-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: var(--text-sm);
    color: #166534;
}

/* Document card in detail modal */
.reunion-doc-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    padding: 12px;
    min-height: 48px;
}

.attention-box {
  background: #fff8e1;
  border: 1px solid #facc15;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.attention-box header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.attention-box header h3 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
}
.attention-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(0,0,0,.05);
}
.attention-item:first-child {
  border-top: 0;
}
.attention-item.is-refus .attention-icon {
  color: #dc2626;
}
.attention-item.is-valid .attention-icon {
  color: #2563EB;
}
.attention-msg {
  flex: 1;
  font-size: .9rem;
}
.attention-item .btn-sm {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  padding: .25rem .75rem;
  font-size: .85rem;
  text-decoration: none;
  color: #333;
}
.attention-item .btn-sm:hover {
  background: #f4f4f5;
}
.attention-mark-all {
  background: none;
  border: 0;
  color: #2563eb;
  cursor: pointer;
  font-size: .85rem;
}

/* ════════════════════════════════════════════════════════════════════
   ACCUEIL — Design system v5 "Hub harmonisé pastel"
   Préfixe .acc-* pour éviter toute collision.
   Polices Inter Tight + Caveat + Fraunces chargées dans templates/accueil.html
   ════════════════════════════════════════════════════════════════════ */

.acc-display { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }
.acc-serif-italic { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; }
.acc-handwrite { font-family: 'Caveat', cursive; }

.acc-shell { max-width: 1500px; margin: 0 auto; }

/* Stagger reveal animation */
.acc-reveal { opacity: 0; transform: translateY(14px); animation: accReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes accReveal { to { opacity: 1; transform: translateY(0); } }
.acc-reveal-delay-1 { animation-delay: 70ms; }
.acc-reveal-delay-2 { animation-delay: 140ms; }
.acc-reveal-delay-3 { animation-delay: 210ms; }
.acc-reveal-delay-4 { animation-delay: 280ms; }

/* ════════ HERO COMPACT — pastel cyan/sky/lavande harmonisé ════════ */
/* ════════ Hero "Bonjour Eva" — gradient cobalt (brand expressif, plus lumineux que slate) ════════ */
.acc-hero {
  position: relative;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 60%, #2563EB 100%);
  border-radius: 16px;
  overflow: hidden;
  color: #FFFFFF;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
  box-shadow: 0 8px 24px -10px rgba(30, 58, 138, 0.40);
}
.acc-hero::before {
  content: '';
  position: absolute; right: -140px; top: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.acc-hero::after {
  content: '';
  position: absolute; left: -80px; bottom: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.acc-hero-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  position: relative; z-index: 2;
}
.acc-greeting-block { position: relative; z-index: 2; }
.acc-greeting-bonjour {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #93C5FD;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 6px;
}
.acc-greeting-name-line { display: flex; align-items: center; gap: 10px; }
.acc-greeting-name {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.acc-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: accWave 2.4s ease 0.3s 1;
  font-size: 1.6rem;
}
@keyframes accWave {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-10deg); }
  50% { transform: rotate(0); }
}
.acc-greeting-meta {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #CBD5E1;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.acc-role-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.30);
  border-radius: 999px;
  color: #BFDBFE;
  font-weight: 600;
  font-size: 0.72rem;
}

/* Stats inline + CTA dans le hero */
.acc-hero-actions {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.acc-stat-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
  text-decoration: none;
  color: #FFFFFF;
  cursor: pointer;
}
.acc-stat-pill:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  color: #FFFFFF;
  text-decoration: none;
}
.acc-stat-pill.primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 60%, #3B82F6 100%);
  border-color: rgba(59, 130, 246, 0.50);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45);
}
.acc-stat-pill.primary:hover {
  box-shadow: 0 10px 22px -4px rgba(37, 99, 235, 0.55);
  color: #FFFFFF;
}
.acc-stat-num {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.acc-stat-pill.primary .acc-stat-num { color: #FFFFFF; }
.acc-stat-label {
  font-size: 0.72rem;
  color: #CBD5E1;
  line-height: 1.15;
  font-weight: 500;
}
.acc-stat-label strong { display: block; font-size: 0.78rem; font-weight: 700; color: #FFFFFF; }
.acc-stat-pill.primary .acc-stat-label { color: rgba(255, 255, 255, 0.85); }
.acc-stat-pill.primary .acc-stat-label strong { color: #FFFFFF; }

.acc-hero-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 10px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 150ms ease-out;
  border: none;
  cursor: pointer;
}
.acc-hero-cta:hover {
  background: #F1F5F9;
  color: #0F172A;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Avatar initiales — gradient cobalt cohérent identité */
.acc-greeting-identity {
  display: flex; align-items: center; gap: 16px; position: relative; z-index: 2;
}
.acc-hero-avatar {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 60%, #3B82F6 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45),
              0 0 0 2px rgba(255, 255, 255, 0.08);
}
.acc-hero-avatar span {
  font-size: 1.18rem; font-weight: 800; color: #FFFFFF; letter-spacing: 0.03em;
}

/* Glass info-chip — réutilisable (RDV + autres cards) */
.acc-info-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  min-width: 100px;
}
.acc-info-chip:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(6,182,212,0.40);
}
.acc-info-chip-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-info-chip-label {
  font-size: 0.66rem; font-weight: 600; color: #1E3A8A;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1;
}
.acc-info-chip-value {
  font-size: 0.82rem; font-weight: 700; color: #142a47;
  margin-top: 3px; line-height: 1.2;
}

/* Override : quand les info-chips sont dans le hero dark (.acc-featured) */
.acc-featured .acc-info-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.acc-featured .acc-info-chip:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}
.acc-featured .acc-info-chip-icon {
  background: rgba(96, 165, 250, 0.12) !important;
  color: #93C5FD !important;
}
.acc-featured .acc-info-chip-label {
  color: #94A3B8;
}
.acc-featured .acc-info-chip-value {
  color: #FFFFFF;
}

/* ════════ CARDS ════════ */
.acc-card {
  position: relative;
  background: white;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 12px 32px -16px rgba(15,23,42,0.08);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.acc-card:hover {
  box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 24px 48px -20px rgba(15,23,42,0.16);
}
.acc-card-rail {
  position: absolute; top: 16px; left: 0; bottom: 16px;
  width: 4px; border-radius: 0 4px 4px 0;
}
/* Accueil — rainbow rails/icons/pills harmonisés en cobalt (identité Pilote) */
.acc-card-rail-cyan,
.acc-card-rail-violet,
.acc-card-rail-rose,
.acc-card-rail-indigo  { background: linear-gradient(180deg, #1D4ED8, #2563EB); }

.acc-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.acc-card-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  letter-spacing: -0.015em;
}
.acc-card-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.acc-card-icon-cyan,
.acc-card-icon-violet,
.acc-card-icon-rose,
.acc-card-icon-indigo  { background: #EFF6FF; color: #1D4ED8; }

.acc-card-pill {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.acc-card-pill-cyan,
.acc-card-pill-violet,
.acc-card-pill-rose,
.acc-card-pill-indigo  { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }

.acc-card-link {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.acc-card-link:hover { color: #1D4ED8; gap: 7px; text-decoration: none; }

/* ════════ FEATURED EVENT (Mon prochain rendez-vous) — gradient cobalt ════════ */
.acc-featured {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 60%, #2563EB 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px -10px rgba(30, 58, 138, 0.40);
  overflow: hidden;
  isolation: isolate;
  padding: 24px 28px;
  color: #FFFFFF;
}
.acc-featured::before {
  content: '';
  position: absolute; right: -140px; top: -140px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.acc-featured::after {
  content: '';
  position: absolute; left: -80px; bottom: -100px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
/* Icône calendrier */
.acc-rdv-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 60%, #3B82F6 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45), 0 0 0 2px rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.acc-featured-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.acc-featured-tag {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em;
  color: #BFDBFE;
  background: rgba(96, 165, 250, 0.12);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.30);
  flex-shrink: 0;
  white-space: nowrap;
  text-transform: uppercase;
}
.acc-featured-eyebrow {
  font-size: 0.68rem; font-weight: 700; color: #93C5FD;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-featured-meta-item {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.acc-countdown-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.acc-countdown-label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  white-space: nowrap;
  word-break: keep-all;
  position: relative; z-index: 1;
}
.acc-countdown-when {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #93C5FD;
  letter-spacing: -0.005em;
  position: relative; z-index: 1;
}
.acc-featured-body {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  position: relative; z-index: 1;
}
.acc-featured-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.acc-featured-meta {
  font-size: 0.85rem;
  color: #CBD5E1;
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  line-height: 1.4;
}
.acc-featured-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}
.acc-featured-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #FFFFFF;
  text-decoration: none;
  background: #1D4ED8;
  padding: 9px 14px;
  border-radius: 9px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  position: relative; z-index: 1;
  box-shadow: 0 4px 10px -2px rgba(29, 78, 216, 0.4);
}
.acc-featured-cta:hover {
  background: #2563EB;
  transform: translateY(-1px);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 6px 14px -2px rgba(29, 78, 216, 0.5);
}

/* ════════ AGENDA — feel papier / planificateur ════════ */
.acc-agenda-card-bg {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(6, 182, 212, 0.08) 31px, rgba(6, 182, 212, 0.08) 32px),
    linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  background-position: 0 14px;
}
.acc-agenda-card-bg::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(244, 63, 94, 0.18);
  z-index: 0;
}
.acc-agenda-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1rem;
  color: #155e75;
  margin-left: 6px;
}
.acc-agenda-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  background: white;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.acc-agenda-item:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 12px -4px rgba(6, 182, 212, 0.18);
  text-decoration: none;
}
.acc-agenda-content {
  min-width: 0;
  overflow: hidden;
}
.acc-agenda-content > .acc-agenda-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.acc-agenda-content > .acc-agenda-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}
.acc-agenda-date {
  background: linear-gradient(180deg, #ecfeff 0%, #cffafe 100%);
  border: 1px solid #a5f3fc;
  border-radius: 10px;
  padding: 8px 4px 7px;
  text-align: center;
  color: #1D4ED8;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 -1px 2px rgba(6, 182, 212, 0.15) inset,
    0 4px 10px -3px rgba(6, 182, 212, 0.35);
  transform: rotate(-2.5deg);
  transition: transform 0.25s ease;
}
.acc-agenda-item:hover .acc-agenda-date { transform: rotate(0) scale(1.04); }
.acc-agenda-date.urgent {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
  color: #ea580c;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 -1px 2px rgba(234, 88, 12, 0.15) inset,
    0 4px 10px -3px rgba(234, 88, 12, 0.35);
}
.acc-agenda-day { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.03em; }
.acc-agenda-month { font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; margin-top: 3px; }
/* trombone décoratif retiré (feedback utilisateur) */
.acc-agenda-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.acc-agenda-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.acc-countdown-chip {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #1D4ED8;
  background: white;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid #a5f3fc;
  white-space: nowrap;
}
.acc-countdown-chip.urgent { color: #ea580c; border-color: #fed7aa; background: linear-gradient(135deg, #fff7ed, #ffedd5); }

/* ════════ MES GROUPES — MOSAÏQUE COLORÉE 2x2 ════════ */
.acc-groupes-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.acc-group-tile {
  position: relative;
  border-radius: 18px;
  padding: 18px 16px 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  isolation: isolate;
  text-decoration: none;
  min-height: 130px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.4);
}
.acc-group-tile::after {
  content: '';
  position: absolute; right: -30px; bottom: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
  z-index: -1;
}
.acc-group-tile:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: 0 16px 36px -12px rgba(15,23,42,0.25);
  text-decoration: none;
}
.acc-group-tile-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  display: grid; place-items: center;
  margin-bottom: auto;
}
.acc-group-tile-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: white;
  letter-spacing: -0.01em;
  margin-top: 14px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.acc-group-tile-pulse {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  color: white;
  font-weight: 600;
  backdrop-filter: blur(6px);
  width: max-content;
}
.acc-tile-pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.acc-tile-pulse-dot.fresh {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.4);
  animation: accTilePulse 2s ease-in-out infinite;
}
.acc-tile-pulse-dot.stale { background: #fcd34d; box-shadow: 0 0 0 3px rgba(252,211,77,0.4); }
.acc-tile-pulse-dot.cold, .acc-tile-pulse-dot.none { background: rgba(255,255,255,0.5); }
@keyframes accTilePulse { 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0.05); } }

/* ════════ ANNONCES SIDEBAR ════════ */
.acc-annonces-side {
  display: flex; flex-direction: column;
  height: 100%;
}
.acc-annonces-side .acc-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}
.acc-annonces-list {
  overflow-y: auto;
  flex: 1;
}
.acc-annonce-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.acc-annonce-item:hover {
  background: linear-gradient(90deg, #f1f5f9 0%, white 60%);
  border-left-color: #475569;
}
.acc-annonce-item.important {
  border-left-color: #475569;
  background: linear-gradient(90deg, rgba(241,245,249,0.35), transparent 80%);
}
.acc-annonce-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: flex; align-items: flex-start; gap: 8px;
  flex-wrap: wrap;
}
.acc-annonce-meta {
  font-size: 0.7rem; color: #94a3b8;
  margin-top: 6px;
  display: flex; align-items: center; gap: 8px;
}
.acc-annonce-content {
  font-size: 0.78rem; color: #64748b;
  line-height: 1.5;
  margin-top: 6px;
}
.acc-badge-imp {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: white;
  border-radius: 999px;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ════════ MES TÂCHES — POST-ITS ════════ */
.acc-postit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 8px 8px;
}
.acc-postit-grid-narrow {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 8px 8px;
}
.acc-postit-grid-narrow .acc-postit {
  min-height: 96px;
  padding: 10px 10px 8px;
}
.acc-postit-grid-narrow .acc-postit-source {
  font-size: 0.56rem;
  margin-bottom: 4px;
}
.acc-postit-grid-narrow .acc-postit-title {
  font-size: 1rem;
  line-height: 1.2;
}
.acc-postit-grid-narrow .acc-postit-meta {
  margin-top: 6px;
}
.acc-postit-grid-narrow .acc-postit-check {
  width: 18px;
  height: 18px;
}
.acc-postit {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 3px;
  min-height: 150px;
  display: flex; flex-direction: column;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.1),
    0 6px 14px -4px rgba(15,23,42,0.18),
    inset 0 -2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.acc-postit::before {
  content: '';
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 50px; height: 16px;
  background: rgba(15,23,42,0.08);
  border-radius: 1px;
}
.acc-postit-yellow { background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%); transform: rotate(-1.6deg); }
.acc-postit-pink   { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); transform: rotate(1.2deg); }
.acc-postit-green  { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); transform: rotate(-0.8deg); }
.acc-postit-blue   { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); transform: rotate(2.1deg); }
.acc-postit-violet { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); transform: rotate(-1.4deg); }
.acc-postit:hover {
  transform: rotate(0) translateY(-4px) scale(1.03);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1), 0 16px 28px -8px rgba(15,23,42,0.25);
  z-index: 5;
}
.acc-postit-source {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15,23,42,0.45);
  margin-bottom: 8px;
}
.acc-postit-title {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.25rem;
  color: #0f172a;
  line-height: 1.15;
  flex: 1;
  word-break: break-word;
}
.acc-postit-meta {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  font-size: 0.7rem;
  color: rgba(15,23,42,0.6);
}
.acc-postit-due {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.acc-postit-due.overdue { color: #dc2626; }
.acc-postit-due.today { color: #ea580c; }
.acc-postit-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid rgba(15,23,42,0.25);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.acc-postit-check:hover { background: #1D4ED8; border-color: #1D4ED8; color: white; }
.acc-postit-check:hover i { color: white !important; }

.acc-postits-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
}
.acc-postits-empty .bravo {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.5rem;
  color: #1D4ED8;
  margin-top: 8px;
  transform: rotate(-3deg);
  display: inline-block;
}

/* ════════ PULSE — strip slim full-width avec arrows ════════ */
.acc-pulse-strip {
  position: relative;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 8px 22px -12px rgba(15,23,42,0.08);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
}
.acc-pulse-label {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding-right: 14px;
  border-right: 1px solid #f1f5f9;
}
.acc-pulse-label-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: grid; place-items: center;
  color: #64748b;
}
.acc-pulse-label-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
}
.acc-pulse-label-text small {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}
.acc-pulse-track-wrap {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
}
.acc-pulse-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.acc-pulse-arrow:hover { background: #2563eb; color: white; border-color: #2563eb; }
.acc-pulse-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.acc-pulse-track {
  display: flex; gap: 10px;
  overflow-x: hidden;
  flex: 1;
  scroll-behavior: smooth;
}
.acc-pulse-card {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafcff 0%, white 100%);
  border: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 9px;
  transition: all 0.2s;
  min-width: 200px;
}
.acc-pulse-card:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.acc-pulse-icon-mini {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.acc-pulse-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acc-pulse-desc { font-size: 0.78rem; font-weight: 600; color: #334155; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-pulse-time { font-size: 0.66rem; color: #94a3b8; font-weight: 500; }

/* ════════ AIDE — strip slim full-width (anciennement boîte à outils) ════════ */
.acc-toolbox {
  position: relative;
  border-radius: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 8px 22px -12px rgba(15,23,42,0.08);
  overflow: hidden;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.acc-toolbox-header {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid #f1f5f9;
}
.acc-toolbox-header-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E3A8A;
  display: grid; place-items: center;
}
.acc-toolbox-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
}
.acc-toolbox-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}
.acc-toolbox-grid {
  display: flex; gap: 8px;
  flex: 1; flex-wrap: wrap;
  align-items: center;
}
.acc-toolbox-tile {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: #f0fdf4;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  color: #1E3A8A;
  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.83rem;
  transition: all 0.2s ease;
}
.acc-toolbox-tile:hover {
  background: #DBEAFE;
  border-color: rgba(16, 185, 129, 0.45);
  color: #065f46;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -3px rgba(16, 185, 129, 0.3);
}
.acc-toolbox-tile i { color: currentColor; flex-shrink: 0; }

/* ════════ EMPTY STATES ════════ */
.acc-empty {
  text-align: center;
  padding: 24px 16px;
  color: #94a3b8;
  font-size: 0.85rem;
}
.acc-empty i { color: #cbd5e1; margin-bottom: 8px; }

/* ════════ MODALES — harmonisées style accueil ════════ */
.acc-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 42, 71, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001; /* au-dessus du demo-banner (z:9999) et de la sidebar */
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: accBackdropIn 0.25s ease;
}
.acc-modal-backdrop.open { display: flex; }
@keyframes accBackdropIn { from { opacity: 0; } to { opacity: 1; } }

.acc-modal {
  position: relative;
  max-width: 580px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  background:
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #f0f9ff 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 30px 70px -20px rgba(15, 42, 71, 0.35),
    0 12px 32px -12px rgba(15, 42, 71, 0.18);
  isolation: isolate;
  animation: accModalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc-modal::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.22) 0%, transparent 70%);
  z-index: -1;
}
@keyframes accModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.acc-modal.task {
  background:
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f5f3ff 100%);
  border-color: rgba(99, 102, 241, 0.3);
}
.acc-modal.task::before {
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
}

.acc-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 28px 16px;
  gap: 16px;
}
.acc-modal-eyebrow {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #1E3A8A;
  margin-bottom: 6px;
}
.acc-modal.task .acc-modal-eyebrow { color: #4338ca; }
.acc-modal-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #142a47;
}
.acc-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,23,42,0.1);
  color: #475569;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.acc-modal-close:hover { background: white; color: #0f172a; transform: rotate(90deg); }

.acc-modal-body { padding: 4px 28px 24px; overflow-x: hidden; }
.acc-modal-body * { min-width: 0; }
.acc-meta-tile { min-width: 0; }
.acc-meta-tile-value { word-break: break-word; overflow-wrap: anywhere; }
.acc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.acc-meta-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.acc-modal.task .acc-meta-tile { border-color: rgba(99, 102, 241, 0.2); }
.acc-meta-tile-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(6, 182, 212, 0.15);
  color: #1D4ED8;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.acc-modal.task .acc-meta-tile-icon { background: rgba(99, 102, 241, 0.15); color: #1D4ED8; }
.acc-meta-tile-label {
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #64748b;
}
.acc-meta-tile-value {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: #142a47;
  margin-top: 1px;
}
.acc-modal-section {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.acc-modal.task .acc-modal-section { border-color: rgba(99, 102, 241, 0.2); }
.acc-modal-section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #155e75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.acc-modal.task .acc-modal-section-title { color: #4338ca; }
.acc-modal-section-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  white-space: pre-line;
}

.acc-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  flex-wrap: wrap;
}
.acc-modal.task .acc-modal-footer { border-top-color: rgba(99, 102, 241, 0.18); }
.acc-btn-modal-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: #142a47;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(20,42,71,0.25);
}
.acc-btn-modal-primary:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20,42,71,0.35);
  color: white;
  text-decoration: none;
}
.acc-btn-modal-primary.success {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.acc-btn-modal-primary.success:hover { box-shadow: 0 8px 20px rgba(16,185,129,0.4); }
.acc-btn-modal-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 11px;
  color: #142a47;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.acc-btn-modal-secondary:hover {
  background: white;
  transform: translateY(-1px);
  text-decoration: none;
  color: #142a47;
}

body.acc-modal-open { overflow: hidden; }

/* ════════ TASK STRIP — full-width slim, horizontal scrollable mini post-its ════════ */
.acc-task-strip {
  position: relative;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 8px 22px -12px rgba(15,23,42,0.08);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  min-height: 88px;
}
.acc-task-strip-label {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding-right: 14px;
  border-right: 1px solid #f1f5f9;
}
.acc-task-strip-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #1D4ED8;
  display: grid; place-items: center;
}
.acc-task-strip-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
}
.acc-task-strip-text small {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}
.acc-task-strip-track-wrap {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
}
.acc-task-strip-track {
  display: flex; gap: 14px;
  overflow-x: hidden;
  flex: 1;
  scroll-behavior: smooth;
  padding: 8px 6px 8px 4px;
}
.acc-postit-mini {
  flex: 0 0 220px;
  position: relative;
  padding: 10px 12px 9px;
  border-radius: 3px;
  display: flex; flex-direction: column;
  min-height: 70px;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.1),
    0 4px 10px -3px rgba(15,23,42,0.18);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.acc-postit-mini.acc-postit-yellow { background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%); transform: rotate(-1.4deg); }
.acc-postit-mini.acc-postit-pink   { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); transform: rotate(1deg); }
.acc-postit-mini.acc-postit-green  { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); transform: rotate(-0.7deg); }
.acc-postit-mini.acc-postit-blue   { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); transform: rotate(1.6deg); }
.acc-postit-mini.acc-postit-violet { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); transform: rotate(-1.2deg); }
.acc-postit-mini:hover {
  transform: rotate(0) translateY(-3px) scale(1.03);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1), 0 12px 22px -6px rgba(15,23,42,0.22);
  z-index: 5;
}
.acc-postit-mini-source {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15,23,42,0.45);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-postit-mini-title {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.15;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.acc-postit-mini-due {
  margin-top: 4px;
  font-size: 0.66rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: rgba(15,23,42,0.6);
  display: inline-flex; align-items: center; gap: 4px;
}
.acc-postit-mini-due.overdue { color: #dc2626; }
.acc-postit-mini-due.today { color: #ea580c; }
.acc-task-strip-empty {
  flex: 1;
  font-size: 0.85rem;
  color: #94a3b8;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.acc-task-strip-empty .bravo {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.2rem;
  color: #1D4ED8;
  font-style: normal;
}

/* ════════ VIE ASSOCIATIVE — vert pastel + jeux d'effets ════════ */
.va-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.va-reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: vaReveal 0.5s ease-out forwards;
}
.va-reveal-delay-1 { animation-delay: 0.08s; }
.va-reveal-delay-2 { animation-delay: 0.16s; }
.va-reveal-delay-3 { animation-delay: 0.24s; }
@keyframes vaReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ─────── VUE D'ENSEMBLE — Hero stats panel pleine largeur ─────── */
.va-overview {
  position: relative;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 1.25rem;
  padding: 1.75rem;
  overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(16,185,129,0.18);
}
.va-overview::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.va-overview::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(5,150,105,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.va-overview-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}
.va-overview-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(16,185,129,0.4);
  flex-shrink: 0;
}
.va-overview-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A8A;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.va-overview-subtitle {
  font-size: 0.82rem;
  color: #1E3A8A;
  margin-top: 2px;
}
.va-pill-mini {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.3);
  display: inline-flex; align-items: center; gap: 5px;
  backdrop-filter: blur(6px);
}

.va-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .va-overview-stats { grid-template-columns: repeat(2, 1fr); }
}

.va-stat-tile {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 1rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}
.va-stat-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--va-tile-c1, #1D4ED8), var(--va-tile-c2, #2563EB));
}
.va-stat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgba(16,185,129,0.3);
  border-color: rgba(16,185,129,0.4);
}
.va-stat-tile-head {
  display: flex; align-items: center; gap: 0.7rem;
}
.va-stat-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--va-tile-bg1, #DBEAFE), var(--va-tile-bg2, #BFDBFE));
  color: var(--va-tile-c2, #2563EB);
  flex-shrink: 0;
}
.va-stat-num {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  color: var(--va-tile-c2, #2563EB);
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}
.va-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

/* Vie Associative tiles — full cobalt unifié (même règle que toutes les autres pages) */
.va-tile-emerald,
.va-tile-forest,
.va-tile-mint,
.va-tile-pine { --va-tile-c1: #1D4ED8; --va-tile-c2: #1E3A8A; --va-tile-bg1: #DBEAFE; --va-tile-bg2: #BFDBFE; }

/* ─────── ACTION CARDS (Membres + Organigramme) — full cobalt ─────── */
.va-action-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(29,78,216,0.18);
  border-radius: 1.25rem;
  padding: 1.4rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.va-action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #1D4ED8, #1E3A8A);
}
.va-action-card::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: transform 0.4s ease;
}
.va-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -12px rgba(29,78,216,0.25);
  border-color: rgba(29,78,216,0.4);
}
.va-action-card:hover::after {
  transform: scale(1.3);
}
.va-action-head {
  display: flex; align-items: center; gap: 1rem;
  position: relative;
  z-index: 1;
}
.va-action-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(29,78,216,0.40);
}
.va-action-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}
.va-action-desc {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}
.va-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.va-btn {
  flex: 1;
  min-width: 130px;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  position: relative;
}
.va-btn-primary {
  background: #1D4ED8;
  color: #fff;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}
.va-btn-primary:hover {
  color: #fff;
  background: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}
.va-btn-secondary {
  background: #2563EB;
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.va-btn-secondary:hover {
  color: #fff;
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.va-btn-tertiary {
  background: #1E3A8A;
  color: #fff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.va-btn-tertiary:hover {
  color: #fff;
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
}
.va-btn-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.75;
}
.va-btn-disabled:hover { color: #9ca3af; transform: none; box-shadow: none; }
.va-btn-badge {
  position: absolute;
  top: -7px; right: -7px;
  background: #f97316;
  color: #fff;
  border-radius: 999px;
  min-width: 20px; height: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(249,115,22,0.5);
}

/* ─────── PROJETS & INITIATIVES ─────── */
.va-projects {
  background: #fff;
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 12px -4px rgba(16,185,129,0.10);
}
.va-projects-header {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, #EFF6FF, #DBEAFE);
  border-bottom: 1px solid rgba(16,185,129,0.15);
}
.va-projects-header-icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(16,185,129,0.35);
}
.va-projects-header-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1E3A8A;
  letter-spacing: -0.01em;
}
.va-projects-header-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.va-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}

.va-project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.va-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -14px rgba(15,23,42,0.22);
  border-color: rgba(16,185,129,0.45);
  color: #1e293b;
  text-decoration: none;
}

.va-project-cover {
  height: 100px;
  position: relative;
  /* Force cobalt sur tous les covers — ignore la couleur du projet en DB pour uniformité */
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #1E3A8A 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.va-project-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.12) 0%, transparent 50%);
}
.va-project-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.4));
}
.va-project-cover-icon {
  position: absolute;
  bottom: -22px; left: 14px;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: #fff;
  border: 3px solid #fff;
  color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(15,23,42,0.22);
  z-index: 2;
}

/* ─────── RUBRIQUES — grille verticale invitante (3 cols) ───────
 * Cards verticales en grid, format article/publication.
 * Header de section éditorial + grid de cards qui invitent au clic.
 */
.va-rubriques-journal {
  /* Conteneur léger — pas de bordure ni padding, juste structure */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.va-rubriques-journal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
}
.va-rubriques-journal-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1D4ED8;
}
.va-rubriques-journal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 2px 0 0;
  line-height: 1.15;
}
.va-rubriques-journal-tagline {
  font-size: 0.8125rem;
  color: #64748B;
  font-style: italic;
  text-align: right;
  max-width: 280px;
  flex-shrink: 0;
}

/* Grille des rubriques — 3 cards par ligne, format publication */
.va-rubriques-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .va-rubriques-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .va-rubriques-grid-3 { grid-template-columns: 1fr; } }

/* Une rubrique — card verticale */
.va-rubrique-card2 {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease-out,
              box-shadow 200ms ease-out,
              border-color 200ms ease-out;
  position: relative;
  min-height: 240px;
}
.va-rubrique-card2:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.14);
  border-color: #BFDBFE;
  text-decoration: none;
  color: inherit;
}
.va-rubrique-card2:hover .va-rubrique-card2-arrow {
  color: #1D4ED8;
  transform: translateX(3px);
}
.va-rubrique-card2:hover .va-rubrique-card2-icon {
  background: #1D4ED8;
  color: #FFFFFF;
}

/* Bandeau supérieur — accent visuel + icône */
.va-rubrique-card2-top {
  height: 80px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  position: relative;
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
}
.va-rubrique-card2-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(29,78,216,0.10), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(96,165,250,0.08), transparent 50%);
}
.va-rubrique-card2-top.restricted {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}
.va-rubrique-card2-icon {
  position: absolute;
  bottom: -22px;
  left: 22px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1D4ED8;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.10);
  transition: background-color 200ms ease-out, color 200ms ease-out;
  z-index: 2;
}
.va-rubrique-card2-icon svg { width: 22px; height: 22px; stroke-width: 2; }

/* Kicker en haut à droite */
.va-rubrique-card2-kicker {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(29, 78, 216, 0.20);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #1D4ED8;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.va-rubrique-card2-top.restricted .va-rubrique-card2-kicker {
  border-color: rgba(146, 64, 14, 0.25);
  color: #92400E;
}

/* Corps */
.va-rubrique-card2-body {
  padding: 32px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.va-rubrique-card2-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin: 0 0 8px;
  line-height: 1.3;
}
.va-rubrique-card2-lede {
  font-size: 0.8125rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pied : meta + flèche */
.va-rubrique-card2-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}
.va-rubrique-card2-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.va-rubrique-card2-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.va-rubrique-card2-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 200ms ease-out, transform 200ms ease-out;
}
.va-rubrique-card2-arrow svg { width: 13px; height: 13px; stroke-width: 2.5; }

/* Variante "ajouter" — dashed cobalt */
.va-rubrique-card2-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 2px dashed rgba(29, 78, 216, 0.30);
  border-radius: 14px;
  padding: 32px 20px;
  text-decoration: none;
  min-height: 240px;
  gap: 12px;
  transition: all 200ms ease-out;
}
.va-rubrique-card2-add:hover {
  background: #EFF6FF;
  border-color: #1D4ED8;
  text-decoration: none;
}
.va-rubrique-card2-add-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -2px rgba(29, 78, 216, 0.35);
}
.va-rubrique-card2-add-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1E3A8A;
  text-align: center;
}
.va-rubrique-card2-add-sub {
  font-size: 0.75rem;
  color: #64748B;
  text-align: center;
  line-height: 1.4;
}

/* Legacy : ancien composant card (gardé pour compatibilité si utilisé ailleurs) */
.va-rubriques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
}
.va-rubrique-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #1D4ED8;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease-out,
              box-shadow 200ms ease-out,
              border-color 200ms ease-out;
  position: relative;
  overflow: hidden;
}
.va-rubrique-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12);
  border-color: #1D4ED8;
  border-left-color: #1D4ED8;
  color: inherit;
  text-decoration: none;
}
.va-rubrique-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.va-rubrique-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.va-rubrique-card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1D4ED8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.va-rubrique-card-eyebrow.restricted {
  color: #92400E;
}
.va-rubrique-card-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}
.va-rubrique-card-desc {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.va-rubrique-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}
.va-rubrique-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
}
.va-rubrique-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.va-rubrique-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1D4ED8;
  white-space: nowrap;
  transition: gap 150ms ease-out;
}
.va-rubrique-card:hover .va-rubrique-card-cta {
  gap: 7px;
}

/* Variante "Créer une nouvelle rubrique" — dashed cobalt */
.va-rubrique-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 2px dashed rgba(29, 78, 216, 0.30);
  border-radius: 12px;
  text-decoration: none;
  transition: all 200ms ease-out;
  cursor: pointer;
}
.va-rubrique-card-add:hover {
  border-color: #1D4ED8;
  background: #EFF6FF;
  text-decoration: none;
}
.va-rubrique-card-add-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(29, 78, 216, 0.4);
  flex-shrink: 0;
}
.va-rubrique-card-add-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.va-rubrique-card-add-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1E3A8A;
}
.va-rubrique-card-add-sub {
  font-size: 0.75rem;
  color: #64748B;
}
.va-project-status {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.3rem;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.va-project-status.en_cours {
  background: rgba(16,185,129,0.92);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.va-project-status.termine {
  background: rgba(6,78,59,0.92);
  color: #DBEAFE;
  box-shadow: 0 2px 8px rgba(6,78,59,0.3);
}
.va-project-status.en_pause {
  background: rgba(254,243,199,0.95);
  color: #92400e;
  box-shadow: 0 2px 8px rgba(146,64,14,0.18);
}

.va-project-body {
  padding: 1.6rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.va-project-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.va-project-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.va-referent-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1E3A8A;
  padding: 0.22rem 0.65rem 0.22rem 0.22rem;
  background: rgba(16,185,129,0.08);
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.2);
  align-self: flex-start;
}
.va-referent-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.va-referent-avatar img { width: 100%; height: 100%; object-fit: cover; }

.va-project-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: auto;
  flex-wrap: wrap;
}
.va-project-meta-item {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-weight: 600;
}
.va-project-deadline {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.va-project-deadline.soon { color: #b91c1c; background: #fee2e2; }

.va-project-progress {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 0.2rem;
}
.va-progress-track {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.va-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1D4ED8, #1E3A8A);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.va-progress-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: #1E3A8A;
  min-width: 32px;
  text-align: right;
}

/* Empty state */
.va-empty {
  padding: 3rem 1.25rem;
  text-align: center;
}
.va-empty-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  color: #2563EB;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 16px -6px rgba(16,185,129,0.3);
}
.va-empty-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}



/* ════════════════════════════════════════════════════════════════════
   MODULE TILES — Trésorerie & Coordination index
   Navigation cards with gradient cap + staggered reveal.
   Requires Inter Tight font loaded per-page in {% block head %}.
   ════════════════════════════════════════════════════════════════════ */

.module-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.module-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.10), 0 1px 0 rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: moduleReveal 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
}

.module-tile:hover {
  transform: translateY(-5px) scale(1.003);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.16), 0 1px 0 rgba(0,0,0,0.04);
}

@keyframes moduleReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.module-tile:nth-child(1) { animation-delay:   0ms; }
.module-tile:nth-child(2) { animation-delay:  65ms; }
.module-tile:nth-child(3) { animation-delay: 130ms; }
.module-tile:nth-child(4) { animation-delay: 195ms; }
.module-tile:nth-child(5) { animation-delay: 260ms; }
.module-tile:nth-child(6) { animation-delay: 325ms; }
.module-tile:nth-child(7) { animation-delay: 390ms; }
.module-tile:nth-child(8) { animation-delay: 455ms; }

/* Gradient cap */
.module-tile-cap {
  position: relative;
  padding: 20px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
}

/* Orb glow top-right */
.module-tile-cap::after {
  content: '';
  position: absolute; right: -16px; top: -16px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, transparent 70%);
  pointer-events: none;
}

/* Small circle bottom-left accent */
.module-tile-cap::before {
  content: '';
  position: absolute; left: -10px; bottom: -10px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Icon bubble */
.module-tile-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  position: relative; z-index: 1;
}

/* Module title in cap */
.module-tile-name {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  color: white;
  line-height: 1.2;
  position: relative; z-index: 1;
  flex: 1;
}

/* White body */
.module-tile-body {
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

/* Description */
.module-tile-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
}

/* CTA */
.module-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 11px;
  border: none;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: gap 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
  color: white;
}

.module-tile-cta:hover {
  text-decoration: none;
  color: white;
  filter: brightness(1.08);
  gap: 11px;
}

/* ════════ DASHBOARD TRÉSORERIE V2 — KPI cards & cards bonus ════════ */
.tresor-kpi {
  position: relative; display: block;
  border-radius: 16px; padding: 16px 18px 14px;
  border: 1px solid rgba(255,255,255,.6);
  background: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
}
.tresor-kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(15,23,42,.18); text-decoration: none; }
.tresor-kpi::before {
  content: ''; position: absolute; inset: 0; opacity: .55; pointer-events: none; z-index: 0;
}
.tresor-kpi-emerald::before { background: linear-gradient(135deg, #EFF6FF, #DBEAFE 60%, #BFDBFE); }
.tresor-kpi-amber::before   { background: linear-gradient(135deg, #fffbeb, #fef3c7 60%, #fde68a); }
.tresor-kpi-violet::before  { background: linear-gradient(135deg, #f5f3ff, #ede9fe 60%, #ddd6fe); }
.tresor-kpi-teal::before    { background: linear-gradient(135deg, #EFF6FF, #DBEAFE 60%, #BFDBFE); }
.tresor-kpi > * { position: relative; z-index: 1; }
.tresor-kpi-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tresor-kpi-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.tresor-kpi-help {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  color: #94a3b8; cursor: help;
}
.tresor-kpi-help:hover { color: #475569; background: rgba(255,255,255,.7); }
.tresor-kpi-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: 10px; }
.tresor-kpi-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #475569; margin-top: 5px; }
.tresor-kpi-sub { font-size: .72rem; color: #64748b; margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tresor-kpi-action {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; font-weight: 600;
  margin-top: 8px;
  padding: 3px 0;
  background: transparent; border: none;
  cursor: pointer;
}
.tresor-kpi-action:hover { text-decoration: underline; }

/* Cards bonus (prochain virement / taux couverture / forclusion) */
.tresor-bonus-card {
  padding: 14px 16px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
}
.tresor-bonus-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15,23,42,.18); text-decoration: none; }
.tresor-bonus-head { display: flex; align-items: center; gap: 8px; }
.tresor-bonus-title { font-size: .82rem; font-weight: 700; }
.tresor-bonus-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.tresor-bonus-desc { font-size: .73rem; line-height: 1.35; }

/* Insight rows ("Année en bref") */
.tresor-insight-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
}
.tresor-insight-row + .tresor-insight-row { margin-top: 8px; }
.tresor-insight-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.tresor-insight-text { font-size: .9rem; color: #0f172a; line-height: 1.45; }
.tresor-insight-text strong { font-weight: 700; }
.tresor-insight-text .pos { color: #1E3A8A; }
.tresor-insight-text .neg { color: #b91c1c; }

/* ════════ ACI BUDGET CARD — premium blue (dashboard trésorerie) ════════ */
.aci-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 1px 3px rgba(37,99,235,.08), 0 12px 28px -16px rgba(37,99,235,.28);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.aci-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(37,99,235,.1), 0 18px 36px -16px rgba(37,99,235,.4); }

/* Header gradient bleu profond + halo lumineux */
.aci-header {
  position: relative;
  padding: 18px 18px 22px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 35%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  overflow: hidden;
}
.aci-header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 110%, rgba(96,165,250,.45), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(147,197,253,.35), transparent 50%);
  pointer-events: none;
}
.aci-header-content { position: relative; z-index: 1; }
.aci-header-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  color: #fff;
}
.aci-header-title {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .02em;
}
.aci-header-badge {
  margin-left: auto;
  font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
}
.aci-header-value {
  font-size: 2.4rem; font-weight: 800;
  line-height: 1; letter-spacing: -.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.aci-header-unit {
  font-size: 1.4rem; font-weight: 700;
  margin-left: 2px; opacity: .85;
}
.aci-header-sub {
  font-size: .72rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-top: 2px;
}
.aci-header-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.aci-header-bar-wrap {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
  margin-top: 12px;
}
.aci-header-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, #dbeafe 100%);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255,255,255,.6);
  transition: width .6s ease-out;
}

/* Body : liste de missions */
.aci-body {
  padding: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 80px);
  flex: 1;
  overflow: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.aci-mission {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e7ff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.aci-mission:hover {
  transform: translateX(2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 12px -4px rgba(37,99,235,.18);
}
.aci-mission-warn { border-color: #fde68a; background: #fffdf5; }
.aci-mission-warn:hover { border-color: #fbbf24; }
.aci-mission-over { border-color: #fca5a5; background: #fff5f5; }
.aci-mission-over:hover { border-color: #ef4444; }

.aci-mission-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.aci-mission-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 2px 6px -1px rgba(37,99,235,.4);
}
.aci-mission-warn .aci-mission-num { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 2px 6px -1px rgba(245,158,11,.4); }
.aci-mission-over .aci-mission-num { background: linear-gradient(135deg, #b91c1c, #ef4444); box-shadow: 0 2px 6px -1px rgba(239,68,68,.4); }

.aci-mission-title {
  flex: 1; min-width: 0;
  font-size: .76rem; font-weight: 700; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aci-mission-pct {
  font-size: .82rem; font-weight: 800;
  color: #1d4ed8;
  letter-spacing: -.02em;
}
.aci-mission-warn .aci-mission-pct { color: #b45309; }
.aci-mission-over .aci-mission-pct { color: #b91c1c; }

.aci-mission-bar {
  height: 7px; border-radius: 999px;
  background: #eff6ff;
  overflow: hidden;
}
.aci-mission-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 0 4px rgba(37,99,235,.4);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.aci-mission-warn .aci-mission-bar { background: #fef3c7; }
.aci-mission-warn .aci-mission-bar-fill { background: linear-gradient(90deg, #d97706, #f59e0b); box-shadow: 0 0 4px rgba(245,158,11,.4); }
.aci-mission-over .aci-mission-bar { background: #fee2e2; }
.aci-mission-over .aci-mission-bar-fill { background: linear-gradient(90deg, #b91c1c, #ef4444); box-shadow: 0 0 4px rgba(239,68,68,.4); }

.aci-mission-meta {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: #64748b;
  margin-top: 4px;
}
.aci-mission-meta strong { color: #0f172a; }
.aci-mission-budget { color: #94a3b8; }

/* Footer : total + lien */
.aci-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border-top: 1px solid #bfdbfe;
  font-size: .72rem;
  color: #1e3a8a;
}
.aci-footer-total { display: flex; align-items: center; gap: 6px; }
.aci-footer-total strong { color: #1e3a8a; font-weight: 800; }
.aci-footer-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: rgba(37,99,235,.15);
  color: #1d4ed8;
}
.aci-footer-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: #2563eb; color: #fff !important;
  font-size: .68rem; font-weight: 700;
  text-decoration: none !important;
  transition: all .2s;
  white-space: nowrap;
}
.aci-footer-link:hover { background: #1d4ed8; transform: translateX(2px); box-shadow: 0 4px 10px -2px rgba(37,99,235,.5); }
