:root {
    --bg-main: #0b0f19;
    --bg-surface: #131b2e;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --border-color: #27354f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    height: 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border-radius: 8px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-brand h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-main);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.nav-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* INDICATEUR TEMPS RÉEL (LIVE) */
.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}


.btn-capture {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-capture:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 3px 10px 3px 4px;
    border-radius: 20px;
    background: rgba(19, 27, 46, 0.6);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.user-pill:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    object-fit: cover;
    background: var(--bg-surface);
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
}

/* VUES APPLICATIVES */
.view-section {
    display: none;
    flex: 1;
}

.view-section.active {
    display: flex;
    flex-direction: column;
}

/* KANBAN BOARD */
.board-container {
    flex: 1;
    overflow-x: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.board-lists {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: calc(100vh - 108px);
}

.list-column {
    width: 300px;
    min-width: 300px;
    max-height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.list-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.list-title {
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.list-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-counter {
    background: var(--bg-card);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--text-secondary);
}

.btn-icon-danger {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
}

.btn-icon-danger:hover {
    color: var(--danger);
}

.list-cards {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
    -webkit-overflow-scrolling: touch;
}

.list-cards.drag-over {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
}

.list-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
}

.btn-add-card {
    width: 100%;
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-add-card:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* CARTE KANBAN PROPRE ET BIEN STRUCTURÉE */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    cursor: grab;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    position: relative;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card:active {
    cursor: grabbing;
}

.card.dragging {
    opacity: 0.35;
}

.card.touch-drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.9;
    box-shadow: 0 12px 28px rgba(0,0,0,0.6);
    border-color: var(--primary);
    transform: scale(1.03);
}

.card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-badge {
    height: 6px;
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* BADGES DE STATUT DISPATCH */
.status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.status-en-service {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-standby {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-hors-service {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.bg-green { background: #10b981; box-shadow: 0 0 5px rgba(16, 185, 129, 0.7); }
.bg-orange { background: #f59e0b; box-shadow: 0 0 5px rgba(245, 158, 11, 0.7); }
.bg-red { background: #ef4444; box-shadow: 0 0 5px rgba(239, 68, 68, 0.7); }

.btn-card-edit {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.15s ease;
}

.card:hover .btn-card-edit {
    opacity: 1;
}

.btn-card-edit:hover, .btn-card-edit:focus {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: scale(1.1);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.35;
}

.card-desc-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FORMATIONS RÉUNIES SUR LA CARTE */
.card-trainings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.card-training-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(11, 15, 25, 0.65);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.card-training-pill:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.card-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
}

.card-meta-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-item {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(11, 15, 25, 0.5);
    color: var(--text-secondary);
    border: 1px solid rgba(39, 53, 79, 0.5);
}

.badge-service-time {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

.service-start-display {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-members-cluster {
    display: flex;
    align-items: center;
}

.member-avatar-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
    object-fit: cover;
    margin-left: -6px;
    background: var(--bg-surface);
}

.member-avatar-mini:first-child {
    margin-left: 0;
}

.btn-add-list {
    min-width: 300px;
    height: 52px;
    background: rgba(19, 27, 46, 0.5);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    flex-shrink: 0;
}

.btn-add-list:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* SÉLECTEUR DE COULEURS & HEX PERSONNALISÉ */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

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

.color-dot.active {
    border-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.custom-hex-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 4px 10px 4px 6px;
    border-radius: 8px;
}

.custom-color-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hex-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    display: inline-block;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-color-trigger:hover .hex-color-preview {
    transform: scale(1.15);
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.custom-color-trigger input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.hex-text-input {
    width: 86px !important;
    padding: 2px 4px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hex-text-input:focus {
    outline: none;
}

/* SÉLECTION DES MEMBRES & BARRE DE RECHERCHE */
.members-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-mini-box input.member-search-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-mini-box input.member-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.members-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px 4px 6px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
    user-select: none;
}

.member-chip:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.member-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
}

.member-chip.selected {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.member-chip-meta {
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    margin-left: 4px;
    opacity: 0.9;
}

.member-chip.selected .member-chip-meta {
    color: #c7d2fe;
    opacity: 1;
}


/* EFFECTIFS & FORMATIONS (VUE CENTRÉE ET ÉPURÉE) */
.users-container {
    padding: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.users-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 260px;
    max-width: 480px;
}

.search-box input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.user-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.user-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    object-fit: cover;
    background: var(--bg-card);
}

.user-card-meta {
    flex: 1;
}

.user-card-meta h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.user-custom-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.user-badge-pill {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 3px;
    font-weight: 600;
}

.trainings-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
}

.training-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.training-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.user-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* BOUTONS & FORMULAIRES */
.btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.15s ease;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--text-secondary); background: var(--bg-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-logout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.8rem;
}
.btn-logout:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* AUTHENTIFICATION DISCORD */
.auth-container {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 44px;
    border-radius: 18px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}

.auth-logo {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.auth-card h2 { margin-bottom: 8px; font-size: 1.4rem; }
.auth-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 24px; }

.btn-discord {
    background: #5865F2;
    color: #fff;
    justify-content: center;
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    border-radius: 10px;
}
.btn-discord:hover { background: #4752C4; }

/* MODALS BIEN CENTRÉES & DESIGN ÉPURÉ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-backdrop.hidden { display: none; }

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 26px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.modal-lg { max-width: 680px; }

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* BANNIÈRE PROFIL CENTRÉE & AVATAR */
.profile-avatar-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    gap: 10px;
}

.profile-avatar-wrapper {
    position: relative;
}

.avatar-hero {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    background: var(--bg-card);
}

.profile-identity-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.modal-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.btn-close:hover {
    color: var(--text-primary);
}

.profile-form-grid, .assign-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.span-2 { grid-column: span 2; }
.flex-end { display: flex; justify-content: flex-end; }

.form-group { margin-bottom: 12px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.trainings-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.assigned-trainings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.assigned-training-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assigned-training-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assigned-training-title {
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.assigned-training-meta {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.add-training-box {
    background: rgba(11, 15, 25, 0.6);
    border: 1px dashed var(--border-color);
    padding: 14px;
    border-radius: 10px;
}

.add-training-box h5 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.catalog-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* RESPONSIVE MOBILE & TABLETTE */
@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 12px 14px;
        gap: 12px;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-tab {
        text-align: center;
    }

    .nav-user {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .board-container {
        padding: 12px;
        scroll-snap-type: x mandatory;
    }

    .board-lists {
        height: calc(100vh - 150px);
        gap: 12px;
    }

    .list-column {
        width: 86vw;
        min-width: 86vw;
        scroll-snap-align: center;
    }

    .btn-add-list {
        width: 86vw;
        min-width: 86vw;
        scroll-snap-align: center;
    }

    .profile-form-grid, .assign-form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 { grid-column: span 1; }

    .webhook-input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* SCROLLBAR ÉLÉGANTE */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
