/* Lannoy Com Manager - Dashboard Styles v2.0 */
/* Scoped within .lcm-wrapper to avoid conflicts with WordPress theme */

.lcm-wrapper {
  all: initial;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #E91E8C;
            --primary-dark: #C71A75;
            --secondary: #2C3E50;
            --accent: #3498DB;
            --success: #27AE60;
            --warning: #F39C12;
            --danger: #E74C3C;
            --light: #ECF0F1;
            --dark: #2C3E50;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        /* Login Screen */
        .login-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-box {
            background: white;
            border-radius: 20px;
            padding: 50px 40px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            max-width: 450px;
            width: 100%;
            text-align: center;
        }

        .login-logo {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            margin: 0 auto 30px;
        }

        .login-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 10px;
        }

        .login-subtitle {
            color: #7f8c8d;
            margin-bottom: 40px;
            font-size: 15px;
        }

        .login-form {
            text-align: left;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
            font-size: 14px;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.3s;
            font-family: inherit;
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
        }

        .btn-login {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(233, 30, 140, 0.3);
        }

        .login-error {
            background: #fee;
            color: var(--danger);
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: none;
        }

        .login-error.active {
            display: block;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .login-footer {
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px solid #e0e0e0;
            color: #7f8c8d;
            font-size: 13px;
        }

        .login-footer a {
            color: var(--primary);
            text-decoration: none;
        }

        /* App Container */
        .app-container {
            display: none;
        }

        .app-container.active {
            display: block;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 30px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 28px;
        }

        .header h1 {
            font-size: 28px;
            font-weight: 700;
        }

        .header-subtitle {
            font-size: 14px;
            opacity: 0.9;
            margin-top: 5px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logout-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
            font-size: 14px;
        }

        .logout-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        
        .user-btn {
            background: rgba(255,255,255,0.3);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
            font-size: 14px;
            margin-right: 10px;
        }
        
        .user-btn:hover {
            background: rgba(255,255,255,0.4);
        }

        /* Navigation */
        .nav-tabs {
            display: flex;
            background: var(--light);
            padding: 0 40px;
            border-bottom: 2px solid #ddd;
        }

        .nav-tab {
            padding: 20px 30px;
            cursor: pointer;
            font-weight: 600;
            color: #7f8c8d;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
            background: none;
            border: none;
            font-family: inherit;
            font-size: 15px;
        }

        .nav-tab:hover {
            color: var(--primary);
            background: rgba(233, 30, 140, 0.05);
        }

        .nav-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: white;
        }
        
        /* Events Tab Buttons */
        .events-tab-btn {
            padding: 12px 20px;
            border: none;
            background: #f5f6fa;
            color: #2c3e50;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .events-tab-btn:hover {
            background: #e8e9ee;
            transform: translateY(-2px);
        }
        
        .events-tab-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* Main Content */
        .main-content {
            padding: 40px;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

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

        /* Dashboard Grid - 2 colonnes comme le modèle */
        .dashboard-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        /* Cards */
        .card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            border: 1px solid #f0f0f0;
            margin-bottom: 20px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Mini Calendar */
        .calendar-mini {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .month-label {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 15px;
            text-align: center;
        }

        .calendar-grid-mini {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            text-align: center;
        }

        .calendar-day-mini {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            background: rgba(255,255,255,0.1);
            transition: all 0.2s;
            cursor: pointer;
        }

        .calendar-day-mini:hover {
            background: rgba(255,255,255,0.2);
        }

        .calendar-day-mini.today {
            background: white;
            color: var(--primary);
        }

        .calendar-day-mini.has-event {
            background: rgba(255,255,255,0.3);
            position: relative;
        }

        .calendar-day-mini.has-event::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
        }

        /* Tasks List */
        .task-list {
            list-style: none;
        }

        .task-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .task-checkbox {
            width: 20px;
            height: 20px;
            min-width: 20px;
            border: 2px solid var(--primary);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .task-checkbox.checked {
            background: var(--primary);
            position: relative;
        }

        .task-checkbox.checked::after {
            content: '✓';
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
            font-weight: bold;
        }

        .task-text {
            flex: 1;
            font-size: 14px;
            color: var(--dark);
        }

        .task-time {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
        }

        /* Events List */
        .event-item {
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 12px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s;
            border-left: 4px solid transparent;
            display: flex;
            gap: 12px;
            align-items: start;
        }

        .event-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .event-item.completed {
            opacity: 0.6;
            background: #e8f8f0;
        }

        .event-item.completed .event-title {
            text-decoration: line-through;
        }

        .event-item.high {
            border-left-color: var(--danger);
        }

        .event-item.medium {
            border-left-color: var(--warning);
        }

        .event-item.low {
            border-left-color: var(--success);
        }

        .event-date {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 5px;
        }

        .event-title {
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 5px;
        }

        .event-meta {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        /* Badges */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-category {
            background: var(--accent);
            color: white;
        }

        .badge-location {
            font-size: 11px;
            padding: 3px 10px;
        }

        .badge-location.athena {
            background: #9B59B6;
            color: white;
        }

        .badge-location.mairie {
            background: #E67E22;
            color: white;
        }

        .badge-location.ecole {
            background: #E91E8C;
            color: white;
        }

        .badge-location.salle {
            background: #16A085;
            color: white;
        }

        .badge-location.exterieur {
            background: #27AE60;
            color: white;
        }

        .badge-time {
            background: #e3f2fd;
            color: var(--accent);
        }

        /* Templates Grid */
        .templates-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        /* Buttons */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: inherit;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(233, 30, 140, 0.3);
        }

        .btn-outline {
            background: white;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        .btn-success {
            background: var(--success);
            color: white;
        }

        .btn-success:hover {
            background: #229954;
        }

        /* Time Tracker */
        .time-tracker {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .time-display {
            font-size: 48px;
            font-weight: 700;
            color: var(--primary);
            text-align: center;
            margin-bottom: 20px;
            font-family: 'Courier New', monospace;
        }

        .timer-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .timer-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .timer-btn.start {
            background: var(--success);
            color: white;
        }

        .timer-btn.pause {
            background: var(--warning);
            color: white;
        }

        .timer-btn.stop {
            background: var(--danger);
            color: white;
        }

        /* Project Focus Section */
        .project-focus {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .focus-stat {
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
        }

        .focus-stat-value {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .focus-stat-label {
            font-size: 13px;
            color: #7f8c8d;
        }

        /* Import Section */
        .import-box {
            border: 2px dashed var(--primary);
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s;
        }

        .import-box:hover {
            background: #e9ecef;
            border-color: var(--primary-dark);
        }

        .import-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        /* Tasks By Day */
        .day-group {
            margin-bottom: 30px;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        .day-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 15px 20px;
            font-weight: 700;
            font-size: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .day-header.past {
            background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
        }

        .day-header.today {
            background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
        }

        .day-tasks {
            padding: 15px;
        }

        .day-task {
            display: flex;
            gap: 12px;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.2s;
            align-items: start;
        }

        .day-task:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .day-task.completed {
            opacity: 0.6;
            background: #e8f8f0;
        }

        /* Magazine Section */
        .magazine-progress {
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px;
            margin: 20px;
        }

        .progress-bar-container {
            background: rgba(255,255,255,0.3);
            height: 30px;
            border-radius: 15px;
            overflow: hidden;
            margin-top: 15px;
        }

        .progress-bar-fill {
            background: white;
            height: 100%;
            border-radius: 15px;
            transition: width 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--primary);
        }

        .article-item {
            display: flex;
            gap: 15px;
            padding: 20px;
            border-radius: 12px;
            margin: 15px 20px;
            background: white;
            border: 2px solid #e0e0e0;
            cursor: pointer;
            transition: all 0.3s;
            align-items: start;
        }
        
        /* Couleurs de fond selon le statut */
        .article-item.status-todo {
            background: #ffe5e5; /* Rouge pâle - À faire */
        }
        
        .article-item.status-inprogress {
            background: #ffe5f0; /* Rose - En cours */
        }
        
        .article-item.status-done {
            background: #e5f5e5; /* Vert - Terminé */
        }
        
        .article-item.status-sent {
            background: #e5f0ff; /* Bleu - Envoyé */
        }

        .article-item:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateX(5px);
        }

        .article-status-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .article-status-icon.todo {
            background: #ecf0f1;
            color: #7f8c8d;
        }

        .article-status-icon.inprogress {
            background: #e3f2fd;
            color: var(--primary);
        }

        .article-status-icon.done {
            background: #e8f8f0;
            color: var(--success);
        }

        .article-status-icon.sent {
            background: #f3e5f5;
            color: #9c27b0;
        }

        .article-content {
            flex: 1;
        }

        .article-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 10px;
        }

        .article-title {
            font-weight: 700;
            font-size: 16px;
            color: #2c3e50;
        }

        .article-meta {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .article-actions {
            display: flex;
            gap: 8px;
        }

        .article-actions .btn {
            padding: 6px 12px;
            font-size: 12px;
        }

        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-badge.todo {
            background: #ecf0f1;
            color: #7f8c8d;
        }

        .status-badge.inprogress {
            background: #e3f2fd;
            color: var(--primary);
        }

        .status-badge.done {
            background: #e8f8f0;
            color: var(--success);
        }

        .status-badge.sent {
            background: #f3e5f5;
            color: #9c27b0;
        }

        /* Status Dropdown */
        .status-badge-wrapper {
            position: relative;
            display: inline-block;
        }

        .status-badge.clickable {
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
        }

        .status-badge.clickable:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        }

        .status-badge.clickable::after {
            content: ' ▼';
            font-size: 9px;
            opacity: 0.7;
            margin-left: 4px;
        }

        .status-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 5px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            z-index: 1000;
            min-width: 150px;
            overflow: hidden;
            animation: dropdownFadeIn 0.2s ease;
        }

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

        .status-dropdown-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 600;
            border-bottom: 1px solid #f0f0f0;
        }

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

        .status-dropdown-item:hover {
            background: #f8f9fa;
            transform: translateX(3px);
        }

        .status-dropdown-item.active {
            background: #e3f2fd;
        }

        .status-dropdown-item.todo {
            color: #7f8c8d;
        }

        .status-dropdown-item.inprogress {
            color: var(--primary);
        }

        .status-dropdown-item.done {
            color: var(--success);
        }

        .status-dropdown-item.sent {
            color: #9c27b0;
        }

        .no-articles {
            text-align: center;
            padding: 60px 20px;
            color: #7f8c8d;
        }

        .no-articles-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        @media print {
            .nav-tabs, .header, .btn, .logout-btn, .card-header button, #monthFilter {
                display: none !important;
            }
            
            .main-content {
                padding: 20px;
            }
            
            .day-group {
                page-break-inside: avoid;
                margin-bottom: 20px;
            }
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 1000;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 700px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: slideUp 0.3s ease;
        }

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

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .modal-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--dark);
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 32px;
            cursor: pointer;
            color: #7f8c8d;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
        }

        .close-modal:hover {
            background: #f8f9fa;
            color: var(--primary);
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* Success Message */
        .success-message {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--success);
            color: white;
            padding: 15px 25px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            z-index: 2000;
            animation: slideInRight 0.3s ease;
            display: none;
            font-weight: 600;
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(100px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .success-message.active {
            display: block;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
            
            .project-focus {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 0;
            }

            .login-box {
                border-radius: 0;
                padding: 40px 30px;
            }

            .container {
                border-radius: 0;
            }

            .main-content {
                padding: 20px;
            }

            .header {
                padding: 20px;
                flex-direction: column;
                gap: 20px;
            }

            .header h1 {
                font-size: 20px;
            }

            .nav-tabs {
                padding: 0 20px;
                overflow-x: auto;
            }

            .templates-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* ============================================
           PROFIL
           ============================================ */
        .profile-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        .profile-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 15px;
            padding: 40px;
            color: white;
            display: flex;
            align-items: center;
            gap: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .profile-avatar {
            font-size: 80px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            width: 120px;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .profile-info h2 {
            margin: 0 0 10px 0;
            font-size: 32px;
        }
        
        .profile-username {
            font-size: 16px;
            opacity: 0.9;
            margin: 5px 0;
        }
        
        .profile-role {
            display: inline-block;
            background: rgba(255,255,255,0.3);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            margin-top: 10px;
        }
        
        .profile-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .profile-section h3 {
            margin: 0 0 20px 0;
            color: var(--dark);
            font-size: 20px;
        }
        
        .profile-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .stat-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 10px;
            padding: 25px;
            text-align: center;
        }
        
        .stat-number {
            font-size: 48px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .stat-label {
            color: var(--text);
            font-size: 14px;
            font-weight: 600;
        }
        
        .users-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .user-card {
            background: var(--light);
            border-radius: 10px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .user-card-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .user-card-username {
            color: var(--text);
            font-size: 14px;
        }
        
        .badge-admin {
            background: #e74c3c;
            color: white;
        }
        
        .badge-editor {
            background: #3498db;
            color: white;
        }
        /* Day Events Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            max-width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease;
        }

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

        .modal-header {
            padding: 25px;
            border-bottom: 2px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 22px;
            color: var(--dark);
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 32px;
            color: #999;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .close-btn:hover {
            background: #f0f0f0;
            color: var(--dark);
        }

        .modal-body {
            padding: 25px;
        }

        /* Tasks Accordion Styles */
        .calendar-day-mini:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }

        .calendar-day-mini.has-event {
            font-weight: 700;
            position: relative;
        }

        /* ========================================
           ACCORDÉON ÉVÉNEMENTS
           ======================================== */
        .event-item {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .event-item:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .event-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
            background: #f8f9fa;
            border-top: 1px solid #e0e0e0;
        }

        .event-details.open {
            max-height: 2000px;
            padding: 20px;
        }

        .event-tasks-list {
            list-style: none;
            padding: 0;
            margin: 15px 0;
        }

        .event-task-item {
            padding: 12px 15px;
            margin: 8px 0;
            background: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s;
        }

        .event-task-item:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .event-task-checkbox {
            width: 22px;
            height: 22px;
            border: 2px solid #3498db;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            position: relative;
        }

        .event-task-checkbox:hover {
            border-color: #2980b9;
            transform: scale(1.1);
        }

        .event-task-checkbox.checked {
            background: #3498db;
        }

        .event-task-checkbox.checked::after {
            content: '✓';
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 14px;
            font-weight: bold;
        }

        .event-task-item.completed {
            text-decoration: line-through;
            opacity: 0.6;
        }

        .event-detail-row {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #e8e8e8;
        }

        .event-detail-row:last-child {
            border-bottom: none;
        }

        .event-detail-label {
            font-weight: 600;
            width: 160px;
            color: #2c3e50;
            flex-shrink: 0;
        }

        .event-detail-value {
            flex: 1;
            color: #7f8c8d;
        }

        /* ========================================
           CALENDRIER CLIQUABLE
           ======================================== */
        .calendar-day-mini {
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .calendar-day-mini:hover:not(.disabled) {
            background: #e3f2fd !important;
            transform: scale(1.15);
            font-weight: 600;
        }

        .calendar-day-mini.has-event::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background: #3498db;
            border-radius: 50%;
        }

        .calendar-day-mini.today.has-event::after {
            background: white;
        }

        /* ========================================
           POPUP ÉVÉNEMENTS DU JOUR
           ======================================== */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
            backdrop-filter: blur(3px);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .day-events-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.3);
            padding: 35px;
            max-width: 550px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            z-index: 10000;
            animation: popupSlideIn 0.3s ease;
        }

        @keyframes popupSlideIn {
            from {
                opacity: 0;
                transform: translate(-50%, -40%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 3px solid #3498db;
        }

        .popup-header h2 {
            margin: 0;
            color: #2c3e50;
            font-size: 22px;
        }

        .popup-close {
            background: #f8f9fa;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #7f8c8d;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .popup-close:hover {
            background: #e74c3c;
            color: white;
            transform: rotate(90deg);
        }

        .day-event-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            padding: 18px;
            margin: 12px 0;
            border-radius: 12px;
            border-left: 5px solid #3498db;
            cursor: pointer;
            transition: all 0.3s;
        }

        .day-event-card:hover {
            transform: translateX(8px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        }

        .day-event-card.high {
            border-left-color: #e74c3c;
            background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
        }

        .day-event-card.medium {
            border-left-color: #f39c12;
            background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
        }

        .day-event-card.low {
            border-left-color: #95a5a6;
        }

        .day-event-card.completed {
            opacity: 0.6;
            background: #ecf0f1;
        }

        .day-event-title {
            font-weight: 700;
            font-size: 17px;
            margin-bottom: 8px;
            color: #2c3e50;
        }

        .day-event-meta {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 10px;
        }

        .day-event-stats {
            font-size: 13px;
            color: #95a5a6;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

    