@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ═══════════════════════════════════════════
   VARIABLES (Design System Premium)
═══════════════════════════════════════════ */
:root {
    /* Colors */
    --bg-deep:      #030303;
    --bg-main:      #080808;
    --bg-sidebar:   rgba(10, 10, 10, 0.7);
    --bg-card:      rgba(18, 18, 18, 0.6);
    --bg-input:     rgba(255, 255, 255, 0.03);

    --accent:       #5865F2; 
    --accent-hover: #4752c4;
    --accent-glow:  rgba(88, 101, 242, 0.35);
    
    --purple:       #a855f7;
    --purple-glow:  rgba(168, 85, 247, 0.25);

    --text-main:      #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted:     #606060;

    --border:       rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.1);

    --success: #10b981;
    --danger:  #ff4d4d;
    --warning: #fbbf24;
    --info:    #3b82f6;

    /* Specs */
    --radius-sm:  10px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-2xl: 36px;

    --font-main:    'Inter', -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;

    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Blobs (Premium Depth) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}
body::before {
    background: var(--accent);
    top: -10%;
    left: -10%;
}
body::after {
    background: var(--purple);
    bottom: -10%;
    right: -10%;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.main-view {
    margin-left: 280px;
    flex: 1;
    padding: 60px 80px;
    min-width: 0;
    max-width: calc(100vw - 280px);
}

/* ═══════════════════════════════════════════
   CARDS (Premium Glassmorphism)
═══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light); /* Reflet supérieur */
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   SIDEBAR ELEMENTS
═══════════════════════════════════════════ */
.project-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 0 18px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.05rem;
    width: 20px;
    display: flex;
    justify-content: center;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.nav-item.active {
    background: rgba(88, 101, 242, 0.08);
    color: var(--accent);
    border: 1px solid rgba(88, 101, 242, 0.15);
}

.nav-item.active i {
    color: var(--accent);
    opacity: 1;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin: 15px 18px;
}

/* ═══════════════════════════════════════════
   GLOBAL TOP STATUS BAR
═══════════════════════════════════════════ */
.top-status-bar {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 8px 32px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-badge-global {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clock-block-global {
    text-align: center;
    min-width: 150px;
}

#live-time {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 0 15px var(--accent-glow);
}

#live-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.user-card-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.user-card-sidebar:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.user-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

/* ═══════════════════════════════════════════
   BUTTONS & INPUTS
═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.5);
}

.btn-danger {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}
.btn-danger:hover {
    background: rgba(255, 77, 77, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 77, 77, 0.4);
}

input, select, textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
}

/* Flèche uniquement sur les select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 46px;
    cursor: pointer;
}

/* Input date — icône calendrier visible */
input[type="date"] {
    appearance: auto;
    -webkit-appearance: auto;
    color-scheme: dark;
    padding-right: 16px;
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) brightness(1.4);
    cursor: pointer;
    opacity: 0.8;
    padding: 2px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(200deg) brightness(1.2);
}

/* Textarea — pas de flèche, hauteur auto */
textarea {
    background-image: none;
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

select option { background-color: #0f0f0f; color: white; padding: 15px; }

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.12);
}

/* ═══════════════════════════════════════════
   FULLCALENDAR (Premium Polish)
═══════════════════════════════════════════ */
.fc .fc-toolbar-title {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
}

.fc .fc-button-primary {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 1px;
}

.fc .fc-button-active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 5px 15px var(--accent-glow) !important;
}

.fc-event {
    border-radius: 12px !important;
    padding: 8px 12px !important;
    margin: 4px 8px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
    transition: all 0.2s ease !important;
}
.fc-event:hover { transform: scale(1.03) translateY(-2px); filter: brightness(1.1); }

.event-avatar { 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    border: 1px solid rgba(255,255,255,0.25); 
}

/* ═══════════════════════════════════════════
   MODALS (Premium Focus)
═══════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center; /* Centrage vertical */
    justify-content: center; /* Centrage horizontal */
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
}

.modal-card {
    width: 100%;
    max-width: 580px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-2xl);
    padding: 45px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════ */
.login-card {
    width: 450px;
    padding: 70px 55px;
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(40px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 50px 120px rgba(0,0,0,0.8), 0 0 30px rgba(88, 101, 242, 0.1);
    text-align: center;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 1150px)
═══════════════════════════════════════════ */
@media (max-width: 1150px) {
    .sidebar {
        width: 72px;
        padding: 28px 12px;
    }
    .project-logo { font-size: 0; margin-bottom: 32px; justify-content: center; }
    .logo-icon { margin: 0; }
    .nav-section-label { display: none; }
    .nav-item {
        width: 48px;
        height: 48px;
        min-width: 48px;
        justify-content: center;
        padding: 0;
        margin: 0 auto 6px;
        border-radius: var(--radius-md);
        font-size: 0;        /* masque le texte direct */
        overflow: hidden;
        white-space: nowrap;
    }
    .nav-item i {
        font-size: 1.2rem !important;
        width: auto !important;
        display: block;
        flex-shrink: 0;
    }
    .main-view {
        margin-left: 72px;
        padding: 40px 36px;
        max-width: calc(100vw - 72px);
    }
    .user-card-sidebar { justify-content: center; padding: 10px; }
    .user-card-sidebar > div { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-card-wide { max-width: calc(100vw - 48px); }
    .status-picker { gap: 6px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   Sidebar en overlay bas, hamburger
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    body { flex-direction: column; }

    .sidebar {
        width: 100%;
        height: 64px;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        border-right: none;
        border-top: 1px solid var(--border);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: 200;
        gap: 0;
        overflow: hidden;
    }
    .project-logo,
    .nav-section-label,
    .user-card-sidebar { display: none !important; }

    .sidebar > div:last-child { display: none !important; }

    /* Chaque lien nav : carré centré, texte masqué */
    .nav-item {
        width: 52px;
        height: 52px;
        min-width: 52px;
        max-width: 52px;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 0;
        border-radius: var(--radius-md);
        font-size: 0;          /* masque les nœuds texte directs */
        overflow: hidden;
        white-space: nowrap;
    }
    /* L'icône reprend sa taille normale */
    .nav-item i {
        font-size: 1.25rem !important;
        width: auto !important;
        flex-shrink: 0;
        display: block;
    }

    .main-view {
        margin-left: 0;
        margin-bottom: 76px; /* hauteur barre nav bottom */
        padding: 28px 20px;
        max-width: 100vw;
    }

    /* Header */
    .page-header h1 { font-size: 1.9rem; }
    .page-header { margin-bottom: 28px; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
    .stat-card { padding: 20px; }
    .stat-value { font-size: 1.8rem; }

    /* Cards */
    .card { padding: 22px; margin-bottom: 20px; }
    .card-header { flex-wrap: wrap; gap: 12px; }

    /* Project block */
    .project-block { padding: 22px 20px; margin-bottom: 18px; }
    .project-block-header { gap: 12px; }
    .project-block-name { font-size: 1.05rem; }

    /* Task items */
    .task-item-main { flex-wrap: wrap; gap: 8px; }
    .task-item-right {
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
        padding-left: 21px; /* aligne sous le titre */
    }
    .task-item-title { white-space: normal; }

    /* Team row */
    .team-row { flex-wrap: wrap; gap: 12px; }
    .team-actions { flex-wrap: wrap; gap: 8px; }

    /* Task strip (admin) */
    .task-strip { flex-wrap: wrap; gap: 8px; }

    /* Log item */
    .log-item { flex-wrap: wrap; gap: 4px; }

    /* Modal */
    .modal { padding: 20px 12px; }
    .modal-card,
    .modal-card-wide {
        max-width: 100%;
        padding: 28px 22px;
        border-radius: var(--radius-xl);
    }
    .status-picker { gap: 6px; }
    .status-pill { padding: 7px 10px; font-size: 0.74rem; }

    /* Comments */
    .comment-form { gap: 8px; }
    .comment-form input { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-value { font-size: 1.6rem; }
    .stat-icon { width: 32px; height: 32px; font-size: 0.85rem; margin-bottom: 10px; }

    .project-block { padding: 18px 16px; }
    .project-block-icon { width: 38px; height: 38px; font-size: 0.95rem; }
    .project-block-progress-ring { width: 46px; height: 46px; }
    .project-block-progress-ring svg { width: 46px; height: 46px; }

    .task-item { padding: 12px 14px; }
    .badge { font-size: 0.67rem; padding: 3px 9px; }

    .page-header h1 { font-size: 1.6rem; }

    .card { padding: 18px; }
    .modal-card, .modal-card-wide { padding: 22px 16px; }

    .team-row { padding: 14px 16px; }
    .btn-sm { padding: 7px 12px; font-size: 0.78rem; }

    .task-strip { padding: 10px 12px; }
    .task-title { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════
   UTILS & ANIMATIONS
═══════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 30px 0; }
.animate { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════ */
.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
}

.header-accent {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   STATS GRID
═══════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--shadow-premium);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 0 18px var(--accent-glow);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ═══════════════════════════════════════════
   CARD HEADER
═══════════════════════════════════════════ */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════ */
.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   TASK COMPONENTS
═══════════════════════════════════════════ */
.task-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: all 0.25s ease;
}

.task-card:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
    transform: translateX(4px);
}

.task-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.task-strip:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
}

.task-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.task-details i { margin-right: 4px; }

.task-description {
    margin-top: 10px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.task-description p { margin-bottom: 8px; }
.task-description p:last-child { margin-bottom: 0; }
.task-description code {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════
   STATUS DOT
═══════════════════════════════════════════ */
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.st-EN_COURS { background: var(--info);    color: var(--info);    box-shadow: 0 0 8px rgba(59,130,246,0.6); }
.st-TERMINE  { background: var(--success); color: var(--success); box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.st-RETARD   { background: var(--danger);  color: var(--danger);  box-shadow: 0 0 8px rgba(255,77,77,0.6);  }
.st-AVANCE   { background: var(--purple);  color: var(--purple);  box-shadow: 0 0 8px rgba(168,85,247,0.6); }
.st-IMPREVU  { background: var(--warning); color: var(--warning); box-shadow: 0 0 8px rgba(251,191,36,0.6);  }

/* ═══════════════════════════════════════════
   BADGES
═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-blue   { background: rgba(59,130,246,0.12);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2);  }
.badge-green  { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.2);  }
.badge-red    { background: rgba(255,77,77,0.12);   color: #f87171; border: 1px solid rgba(255,77,77,0.2);   }
.badge-purple { background: rgba(168,85,247,0.12);  color: #c084fc; border: 1px solid rgba(168,85,247,0.2);  }
.badge-orange { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2);  }

/* ═══════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════ */
.comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.comments-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.comment-count-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    padding: 1px 7px;
    font-size: 0.68rem;
    font-weight: 800;
}

.comment-bubble {
    padding: 12px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.comment-bubble:hover { border-color: var(--border-hover); }

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-author {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
}

.comment-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: auto;
}

.comment-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.comment-form input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.88rem;
}

/* ═══════════════════════════════════════════
   FORM GROUPS
═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

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

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

/* ═══════════════════════════════════════════
   BUTTON VARIANTS
═══════════════════════════════════════════ */
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.82rem;
    border-radius: 10px;
}

.btn-sm.btn-icon {
    width: 36px;
    height: 36px;
}

.w-100 {
    width: 100%;
    margin-top: 8px;
}

/* Status select inline */
.status-select {
    width: auto !important;
    min-width: 130px;
    font-size: 0.82rem;
    padding: 8px 36px 8px 14px !important;
    border-radius: 10px;
    /* hérite du background-image SVG défini sur select */
}

/* ═══════════════════════════════════════════
   MODAL CLOSE BUTTON
═══════════════════════════════════════════ */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,77,77,0.1);
    border-color: rgba(255,77,77,0.3);
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-card { position: relative; }

/* ═══════════════════════════════════════════
   FILTER BAR (Premium Integration)
═══════════════════════════════════════════ */
.filter-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: 14px;
    margin-top: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn i {
    font-size: 0.9rem;
    opacity: 0.6;
}

.filter-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
    background: rgba(88, 101, 242, 0.1);
    color: var(--accent);
    border-color: rgba(88, 101, 242, 0.2);
}

.filter-btn.active i {
    color: var(--accent);
    opacity: 1;
}
.empty-state {
    text-align: center;
    padding: 70px 40px;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
    opacity: 0.4;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 340px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   FLASH MESSAGES
═══════════════════════════════════════════ */
.flash-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(18, 18, 18, 0.97);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    pointer-events: all;
    animation: flashIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    max-width: 400px;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateX(20px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.flash-success { border-left: 3px solid var(--success); }
.flash-success i { color: var(--success); }

.flash-danger, .flash-error { border-left: 3px solid var(--danger); }
.flash-danger i, .flash-error i { color: var(--danger); }

.flash-warning { border-left: 3px solid var(--warning); }
.flash-warning i { color: var(--warning); }

.flash-info { border-left: 3px solid var(--info); }
.flash-info i { color: var(--info); }

/* ═══════════════════════════════════════════
   TEAM ROW
═══════════════════════════════════════════ */
.team-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.team-row:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
    transform: translateX(4px);
}

.team-info { flex: 1; min-width: 0; }

.team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.team-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.team-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FULLCALENDAR EVENT CONTENT
═══════════════════════════════════════════ */
.fc-event-content {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
}

.event-title {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FC overrides */
.fc {
    --fc-border-color: var(--border);
    --fc-page-bg-color: transparent;
    --fc-today-bg-color: rgba(88, 101, 242, 0.06);
    --fc-neutral-bg-color: rgba(255,255,255,0.03);
    --fc-event-bg-color: var(--accent);
    --fc-event-border-color: transparent;
    --fc-list-event-hover-bg-color: rgba(255,255,255,0.04);
    color: var(--text-main);
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
}

.fc .fc-daygrid-day:hover { background: rgba(255,255,255,0.02); cursor: pointer; }

/* ═══════════════════════════════════════════
   TOOLTIPS
═══════════════════════════════════════════ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.95);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid var(--border-hover);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 500;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ═══════════════════════════════════════════
   RESPONSIVE — stats grid
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-value { font-size: 1.8rem; }
    .team-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
}

/* ═══════════════════════════════════════════
   MODAL TASK DETAIL (Rich View)
═══════════════════════════════════════════ */
.modal-card-wide {
    max-width: 680px;
}

.task-modal-header {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.task-modal-status-bar {
    height: 6px;
    width: 100%;
    transition: background 0.3s ease, border-top 0.3s ease;
}

.task-modal-header > div:last-child {
    padding: 20px 22px;
}

.task-modal-status-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.task-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.task-modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-modal-meta i { font-size: 0.75rem; }

.task-modal-section {
    margin-bottom: 22px;
}

.task-modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.task-modal-description {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Status Picker pills */
.status-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
    user-select: none;
}

.status-pill:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-hover);
    color: var(--text-main);
}

.status-pill.active {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.status-pill[data-status="EN_COURS"].active { border-color: rgba(59,130,246,0.5);  background: rgba(59,130,246,0.1);  color: #60a5fa; }
.status-pill[data-status="TERMINE"].active  { border-color: rgba(16,185,129,0.5);  background: rgba(16,185,129,0.1);  color: #34d399; }
.status-pill[data-status="RETARD"].active   { border-color: rgba(255,77,77,0.5);   background: rgba(255,77,77,0.1);   color: #f87171; }
.status-pill[data-status="AVANCE"].active   { border-color: rgba(168,85,247,0.5);  background: rgba(168,85,247,0.1);  color: #c084fc; }
.status-pill[data-status="IMPREVU"].active  { border-color: rgba(251,191,36,0.5);  background: rgba(251,191,36,0.1);  color: #fbbf24; }

/* Comments list in modal */
.modal-comments-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-comments-list::-webkit-scrollbar { width: 4px; }
.modal-comments-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 10px; }

/* ═══════════════════════════════════════════
   LOGIN PAGE — éléments manquants
═══════════════════════════════════════════ */
.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 28px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    letter-spacing: 0.2px;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(88, 101, 242, 0.6);
}

.btn-discord i { font-size: 1.2rem; }

.version-tag {
    margin-top: 28px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ═══════════════════════════════════════════
   ACTIVITY LOG
═══════════════════════════════════════════ */
.log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    padding: 14px 0;
    border-radius: 0;
}

.log-item:last-child { border-bottom: none; }

.log-item:hover {
    background: rgba(255,255,255,0.015);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: var(--radius-sm);
}

.log-action {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: ui-monospace, 'Cascadia Code', monospace;
}

/* ═══════════════════════════════════════════
   MARKDOWN CONTENT (marked.js output)
═══════════════════════════════════════════ */
.markdown-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.markdown-content p        { margin-bottom: 10px; }
.markdown-content p:last-child { margin-bottom: 0; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    margin: 16px 0 8px;
}
.markdown-content h1 { font-size: 1.15rem; }
.markdown-content h2 { font-size: 1.05rem; }
.markdown-content h3 { font-size: 0.95rem; }

.markdown-content ul, .markdown-content ol {
    margin: 8px 0 10px 18px;
}
.markdown-content li { margin-bottom: 4px; }

.markdown-content code {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 0.82rem;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    color: var(--accent);
}

.markdown-content pre {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 10px 0;
}
.markdown-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
}

.markdown-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    margin: 10px 0;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.markdown-content strong { color: var(--text-main); font-weight: 700; }
.markdown-content hr     { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ═══════════════════════════════════════════
   STAT CARD — icône
═══════════════════════════════════════════ */
.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   PROJECT BLOCK (client view)
═══════════════════════════════════════════ */
.project-block {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-block:hover {
    border-color: var(--border-hover);
    box-shadow: 0 28px 60px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
}

.project-block-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.project-block-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.project-block-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.2;
}

.project-block-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Anneau SVG de progression */
.project-block-progress-ring {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-block-progress-ring svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.project-progress-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.project-block-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   TASKS LIST (client view)
═══════════════════════════════════════════ */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}

.task-item-done {
    opacity: 0.6;
}

.task-item-done:hover { opacity: 0.85; }

.task-item-late {
    border-left: 3px solid var(--danger);
    background: rgba(255,77,77,0.04);
}

.task-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-item-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.task-item-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.task-item-desc {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════
   DISCUSSION TOGGLE (collapsible)
═══════════════════════════════════════════ */
.task-item-discussion {
    margin-top: 12px;
}

.discussion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.discussion-toggle:hover { color: var(--text-secondary); }

.discussion-toggle-open { color: var(--accent); }

.toggle-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 2px;
}

.discussion-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.discussion-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 2px;
}

.discussion-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease;
}

.discussion-comment:hover { border-color: var(--border-hover); }

/* ═══════════════════════════════════════════
   TASK EMPTY STATE (dans un projet)
═══════════════════════════════════════════ */
.task-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.task-empty i { font-size: 1.1rem; opacity: 0.5; }

/* ═══════════════════════════════════════════
   TOGGLE SWITCHES
═══════════════════════════════════════════ */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .slider {
    background-color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

input:checked + .slider:before {
    transform: translateX(20px);
}
