/* Variables CSS - Palette douce et professionnelle */
:root {
    --primary: #4FC3F7;          /* Bleu ciel doux */
    --primary-dark: #0288D1;     /* Bleu plus foncé */
    --secondary: #81C784;        /* Vert menthe doux */
    --accent: #BA68C8;           /* Violet pastel */
    --black: #f5f7fa;            /* Blanc cassé pour fond */
    --dark-gray: #e8ecf1;        /* Gris très clair */
    --medium-gray: #d1d8e0;      /* Gris moyen doux */
    --light-gray: #f8f9fb;       /* Gris ultra clair */
    --white: #ffffff;
    --text-dark: #2c3e50;        /* Texte principal */
    --text-gray: #546e7a;        /* Texte secondaire */
    --border-gray: #cfd8dc;      /* Bordures douces */
    --shadow: rgba(79, 195, 247, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.08);
    --success: #66BB6A;
    --warning: #FFA726;
    --error: #EF5350;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Page de connexion */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4f8 50%, #e1f5fe 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-box {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.5s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.logo-section p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
}

.login-footer p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.sytelis-credit {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sytelis-credit:hover {
    color: var(--primary-dark);
}

/* Alertes */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: shake 0.5s;
}

.alert-error {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

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

/* Formulaires */
.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select:hover {
    border-color: var(--primary);
    background-color: rgba(79, 195, 247, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

/* Checkbox labels pour les checkpoints */
.checkpoint-checkbox-label {
    transition: all 0.2s ease;
}

.checkpoint-checkbox-label:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.15);
    transform: translateY(-1px);
}

.checkpoint-checkbox-label:has(input:checked) {
    border-color: var(--primary) !important;
    background: rgba(79, 195, 247, 0.05) !important;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.2);
}

.checkbox-grid {
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-grid::-webkit-scrollbar {
    width: 8px;
}

.checkbox-grid::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.checkbox-grid::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

.checkbox-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #888;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: var(--white);
    transform: translateX(5px);
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check label {
    cursor: pointer;
    flex: 1;
    margin-bottom: 0;
    color: var(--text-gray);
}

/* Boutons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

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

.btn-danger {
    background: rgba(239, 83, 80, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 0;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-icon::before {
    content: '';
    width: 20px;
    height: 20px;
    display: block;
}

.btn-icon:hover {
    background: var(--white);
    transform: scale(1.1);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 83, 80, 0.1);
}

/* Icône Status (changer statut - power button) */
.btn-icon[title*="Marquer"],
.btn-icon[title*="terminée"]::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'%3E%3C/path%3E%3Cline x1='12' y1='2' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
    background-size: 18px 18px;
}

.btn-icon[title*="Marquer"]:hover::before,
.btn-icon[title*="terminée"]:hover::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'%3E%3C/path%3E%3Cline x1='12' y1='2' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
    background-size: 18px 18px;
}

/* Icône Edit (modifier) */
.btn-icon[title*="Modifier"]::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-icon[title*="Modifier"]:hover::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

/* Icône Delete (supprimer) */
.btn-icon[title*="Supprimer"]::before,
.btn-icon.btn-danger::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF5350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-icon[title*="Supprimer"]:hover::before,
.btn-icon.btn-danger:hover::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF5350' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

/* Header */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--white);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(79, 195, 247, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Icônes du menu navigation */
.nav-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.nav-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    display: block;
}

.icon-dashboard::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-dashboard::before,
.nav-link:hover .icon-dashboard::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-tasks::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'%3E%3C/path%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'%3E%3C/rect%3E%3Cpath d='M9 14l2 2 4-4'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-tasks::before,
.nav-link:hover .icon-tasks::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'%3E%3C/path%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'%3E%3C/rect%3E%3Cpath d='M9 14l2 2 4-4'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-calendar::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-calendar::before,
.nav-link:hover .icon-calendar::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-reports::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-reports::before,
.nav-link:hover .icon-reports::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-stats::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'%3E%3C/polyline%3E%3Cpolyline points='17 6 23 6 23 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-stats::before,
.nav-link:hover .icon-stats::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'%3E%3C/polyline%3E%3Cpolyline points='17 6 23 6 23 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-teams::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-teams::before,
.nav-link:hover .icon-teams::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-checkpoints::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'%3E%3C/path%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'%3E%3C/path%3E%3Cpolyline points='10 8 12 10 16 6'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-checkpoints::before,
.nav-link:hover .icon-checkpoints::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'%3E%3C/path%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'%3E%3C/path%3E%3Cpolyline points='10 8 12 10 16 6'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-users::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'%3E%3C/circle%3E%3Cpath d='M20 21a8 8 0 1 0-16 0'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-link.active .icon-users::before,
.nav-link:hover .icon-users::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'%3E%3C/circle%3E%3Cpath d='M20 21a8 8 0 1 0-16 0'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    color: var(--text-dark);
    font-weight: 500;
}

.user-role {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: var(--white);
    border: 1px solid var(--border-gray);
    color: var(--primary);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--white);
    color: var(--primary);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-gray);
    margin: 0.5rem 0;
}

.text-danger {
    color: var(--error) !important;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Dashboard */
.dashboard,
.admin-panel {
    animation: fadeIn 0.5s ease-out;
}

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

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

.welcome-section h1 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.date-today {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 3rem;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.stat-content h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.stat-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Section Card */
.section-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: slideUp 0.5s ease-out;
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-gray);
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 600;
}

/* Checkpoints Grid */
.checkpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
    gap: 1rem;
    justify-content: start;
}

.checkpoint-item {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.checkpoint-item.checked {
    border-color: var(--primary);
    background: rgba(79, 195, 247, 0.08);
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.15);
}

/* Dashboard - petites vignettes compactes */
.checkpoint-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem 0.6rem;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 100px;
    text-align: center;
}

.checkpoint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-dark);
}

.checkpoint-card .cp-icon {
    font-size: 2rem;
    filter: grayscale(0.2);
    transition: filter 0.2s ease;
}

.checkpoint-card:hover .cp-icon {
    filter: grayscale(0);
}

.checkpoint-card .cp-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.checkpoint-card .cp-status {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 0.2rem;
    border: 1px solid;
}

/* État validé - vert pastel */
.checkpoint-card.is-completed {
    border-color: var(--success);
    background: rgba(102, 187, 106, 0.04);
}

.checkpoint-card.is-completed .cp-status {
    background: rgba(102, 187, 106, 0.15);
    color: var(--success);
    border-color: rgba(102, 187, 106, 0.3);
}

.checkpoint-card.is-completed .cp-icon {
    filter: grayscale(0);
}

/* État non réalisé - rouge pastel */
.checkpoint-card.is-not-done {
    border-color: var(--error);
    background: rgba(239, 83, 80, 0.04);
}

.checkpoint-card.is-not-done .cp-status {
    background: rgba(239, 83, 80, 0.15);
    color: var(--error);
    border-color: rgba(239, 83, 80, 0.3);
}

/* État en attente - orange pastel */
.checkpoint-card.is-pending {
    border-color: var(--warning);
    background: var(--white);
}

.checkpoint-card.is-pending .cp-status {
    background: rgba(255, 167, 38, 0.15);
    color: var(--warning);
    border-color: rgba(255, 167, 38, 0.3);
}

.checkpoint-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.checkpoint-icon {
    font-size: 2rem;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.checkpoint-item.checked .checkpoint-icon {
    filter: grayscale(0);
}

.checkpoint-label {
    color: var(--text-gray);
    font-weight: 500;
}

.status-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
}

.status-badge.success {
    background: rgba(102, 187, 106, 0.12);
    color: var(--success);
    border-color: rgba(102, 187, 106, 0.25);
}

.status-badge.pending {
    background: rgba(255, 167, 38, 0.12);
    color: var(--warning);
    border-color: rgba(255, 167, 38, 0.25);
}

/* Badges de priorité */
.priority-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
}

.priority-badge.priority-urgente {
    background: rgba(239, 83, 80, 0.12);
    color: #d32f2f;
    border-color: rgba(239, 83, 80, 0.25);
}

.priority-badge.priority-haute {
    background: rgba(255, 152, 0, 0.12);
    color: #f57c00;
    border-color: rgba(255, 152, 0, 0.25);
}

.priority-badge.priority-normale {
    background: rgba(3, 169, 244, 0.12);
    color: #0277bd;
    border-color: rgba(3, 169, 244, 0.25);
}

.priority-badge.priority-basse {
    background: rgba(158, 158, 158, 0.12);
    color: #616161;
    border-color: rgba(158, 158, 158, 0.25);
}

.status-badge.danger {
    background: rgba(239, 83, 80, 0.12);
    color: var(--error);
    border-color: rgba(239, 83, 80, 0.25);
}

/* Nouveaux badges harmonisés (style pastel uniforme) */
.status-badge-new {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
}

.status-badge-new.success {
    background: rgba(102, 187, 106, 0.12);
    color: var(--success);
    border-color: rgba(102, 187, 106, 0.25);
}

.status-badge-new.pending {
    background: rgba(255, 167, 38, 0.12);
    color: var(--warning);
    border-color: rgba(255, 167, 38, 0.25);
}

.status-badge-new.danger {
    background: rgba(239, 83, 80, 0.12);
    color: var(--error);
    border-color: rgba(239, 83, 80, 0.25);
}

.checkpoint-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-left: 3px solid var(--primary);
    border-radius: 5px;
}

.checkpoint-notes h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.task-item.priority-urgente {
    border-left-color: var(--error);
}

.task-item.priority-haute {
    border-left-color: var(--warning);
}

.task-item.priority-normale {
    border-left-color: var(--primary);
}

.task-item.priority-basse {
    border-left-color: var(--text-gray);
}

.task-content {
    flex: 1;
}

.task-content h3 {
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.task-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-recrutement {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ED;
}

.badge-annonce {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.badge-contrat,
.badge-presence {
    background: rgba(147, 112, 219, 0.2);
    color: #9370DB;
}

.badge-briefing {
    background: rgba(32, 178, 170, 0.2);
    color: #20B2AA;
}

.badge-satisfaction,
.badge-communication {
    background: rgba(255, 105, 180, 0.2);
    color: #FF69B4;
}

.badge-autre {
    background: rgba(128, 128, 128, 0.2);
    color: #999;
}

.badge-admin {
    background: rgba(255, 0, 0, 0.2);
    color: var(--error);
}

.badge-user {
    background: rgba(57, 255, 20, 0.2);
    color: var(--primary);
}

.task-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.task-deadline {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem 0.25rem 2rem;
    border-radius: 4px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    display: inline-block;
    position: relative;
}

.task-deadline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232196F3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.task-deadline.deadline-urgent {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    font-weight: 600;
    animation: pulse-warning 2s ease-in-out infinite;
}

.task-deadline.deadline-urgent::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffc107" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>');
}

.task-deadline.deadline-expired {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    font-weight: 600;
}

.task-deadline.deadline-expired::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ef5350" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>');
}

.task-deadline.deadline-completed {
    background: rgba(102, 187, 106, 0.12);
    border: 1px solid rgba(102, 187, 106, 0.25);
    color: var(--success);
}

.task-deadline.deadline-completed::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2366bb6a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>');
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
}

/* Boutons radio de statut dans les modals */
.status-radio-btn {
    transition: all 0.2s;
}

.status-radio-btn:hover {
    border-color: var(--primary) !important;
    background: rgba(79, 195, 247, 0.05);
}

.status-radio-btn input[type="radio"]:checked ~ * {
    font-weight: 600;
}

.status-radio-btn.status-completed input[type="radio"]:checked {
    accent-color: var(--success);
}

.status-radio-btn.status-notdone input[type="radio"]:checked {
    accent-color: var(--error);
}

.status-radio-btn.status-pending input[type="radio"]:checked {
    accent-color: var(--warning);
}

/* Icônes de statut */
.status-radio-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.status-completed .icon-check {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2366bb6a" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
}

.status-notdone .icon-cross {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ef5350" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>');
}

.status-pending .icon-hourglass {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffa726" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2h12v6l-6 6 6 6v6H6v-6l6-6-6-6V2z"/></svg>');
}

/* === AGENDA PAGE === */
.agenda-day-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.agenda-day-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.agenda-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08) 0%, rgba(79, 195, 247, 0.02) 100%);
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.agenda-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.date-month {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: capitalize;
}

.date-year {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.agenda-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.agenda-checkpoints {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agenda-checkpoint-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid #4fc3f7;
    transition: all 0.2s ease;
}

.agenda-checkpoint-card:hover {
    background: rgba(79, 195, 247, 0.05);
    transform: translateX(4px);
}

.agenda-checkpoint-card.completed {
    border-left-color: #66bb6a;
    background: rgba(102, 187, 106, 0.05);
}

.agenda-checkpoint-card.not-done {
    border-left-color: #ef5350;
    background: rgba(239, 83, 80, 0.05);
}

.checkpoint-icon-wrapper {
    flex-shrink: 0;
}

.checkpoint-content {
    flex: 1;
    min-width: 0;
}

.checkpoint-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkpoint-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.checkpoint-note {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.checkpoint-expired-note {
    background: rgba(239, 83, 80, 0.08);
    border-color: rgba(239, 83, 80, 0.3);
    color: #c62828;
    font-weight: 500;
}

.checkpoint-expired-note .note-icon {
    color: #ef5350;
}

.agenda-checkpoint-card.expired {
    opacity: 0.8;
}

.note-icon {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.1rem;
}

.checkpoint-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.status-time {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

.checkpoint-action {
    flex-shrink: 0;
}

.btn-icon-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3);
}

.btn-icon-round:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
}

.btn-icon-round:active {
    transform: scale(0.95);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
}

.empty-state p {
    font-size: 1.1rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: var(--white);
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.users-table th {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.users-table td {
    color: var(--text-gray);
}

.users-table tbody tr {
    transition: all 0.3s ease;
}

.users-table tbody tr:hover {
    background: var(--white);
}

.actions-cell {
    white-space: nowrap;
}

/* Activities */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--white);
    transform: translateX(5px);
}

.activity-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    border: 1px solid var(--border-gray);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.activity-date {
    font-size: 0.85rem;
    color: #888;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px var(--shadow);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1001;
}

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

.modal-content.modal-small {
    max-width: 450px;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--error);
    background: rgba(255, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-gray);
}

.checkpoints-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: -450px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 0 30px var(--shadow);
    z-index: 2000;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 420px;
}

.notification.show {
    right: 2rem;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-success .notification-icon {
    background: rgba(57, 255, 20, 0.2);
    color: var(--primary);
}

.notification-error .notification-icon {
    background: rgba(255, 0, 0, 0.2);
    color: var(--error);
}

.notification-warning .notification-icon {
    background: rgba(255, 165, 0, 0.2);
    color: #ffaa00;
}

.notification-info .notification-icon {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ED;
}

.notification-message {
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: left;
    flex: 1;
}

/* Checkpoints History */
.checkpoints-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkpoint-history-item {
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
}

.checkpoint-history-item .date {
    color: var(--primary);
    font-weight: 500;
}

.checkpoint-history-item .points {
    color: var(--text-gray);
    margin-left: 1rem;
}

.progress-bar {
    margin-top: 0.5rem;
    height: 8px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transition: width 0.5s ease;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-menu {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .checkpoints-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header .btn {
        width: 100%;
    }
}

/* Footer */
.main-footer {
    background: var(--white);
    border-top: 1px solid var(--border-gray);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content {
    flex: 1;
}

.footer-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-dev {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.sytelis-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sytelis-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-version {
    color: var(--text-gray);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 20px;
}

/* Teams */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.team-header h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.team-actions {
    display: flex;
    gap: 0.5rem;
}

.team-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.team-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.team-stat .stat-icon {
    font-size: 1.5rem;
}

.team-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.team-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.team-footer {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Charts Container */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Icônes uniformes style flat pour checkpoints et tâches */
.cp-icon-styled {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.checkpoint-card:hover .cp-icon-styled {
    background: rgba(79, 195, 247, 0.1);
}

.checkpoint-card.is-completed .cp-icon-styled {
    background: rgba(102, 187, 106, 0.15);
}

.checkpoint-card.is-not-done .cp-icon-styled {
    background: rgba(239, 83, 80, 0.15);
}

.checkpoint-card.is-pending .cp-icon-styled {
    background: rgba(255, 167, 38, 0.1);
}

/* Icônes SVG par type */
.icon-recrutement::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-annonce::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2381C784' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 5H19a2 2 0 0 1 2 2v8.5a2 2 0 0 1-2 2h-7l-4 4v-4H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3'%3E%3C/path%3E%3Cpath d='M8 12h8'%3E%3C/path%3E%3Cpath d='M8 16h5'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-contrat::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BA68C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-presence::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFA726' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-briefing::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366BB6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-satisfaction::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329B6F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-mail::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AB47BC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-communication::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-wifi::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.55a11 11 0 0 1 14.08 0'%3E%3C/path%3E%3Cpath d='M1.42 9a16 16 0 0 1 21.16 0'%3E%3C/path%3E%3Cpath d='M8.53 16.11a6 6 0 0 1 6.95 0'%3E%3C/path%3E%3Cline x1='12' y1='20' x2='12.01' y2='20'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-download::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

.icon-phone::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Stats page specific styles */
#users-tbody tr:hover {
    background: rgba(57, 255, 20, 0.05);
    transform: translateX(2px);
}

#users-tbody tr {
    transition: all 0.2s ease;
}

.chart-container {
    position: relative;
    padding: 1rem;
    min-height: 300px;
}

#checkpoints-by-type-container,
#tasks-by-type-container {
    animation: fadeIn 0.3s ease;
}

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

/* Badge variations */
.badge-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
}

/* Form hints and quick links */
.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.form-hint a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.form-hint a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

