/* Import Google Font JERSEY 20 */
@import url('https://fonts.googleapis.com/css2?family=Jersey+20&display=swap');

/* Design minimaliste noir, blanc et orange */

/* Optimisations mobile */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection de texte */
::selection {
    background: var(--orange);
    color: var(--white);
}

::-moz-selection {
    background: var(--orange);
    color: var(--white);
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --orange: #FF6B35;
    --orange-hover: #FF8555;
    --orange-light: rgba(255, 107, 53, 0.1);
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #333333;
    
    /* Thème par défaut (clair) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F5F5F5;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --border-color: #E0E0E0;
    --border-hover: #FF6B35;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(255, 107, 53, 0.2);
}

/* Thème sombre */
[data-theme="dark"] {
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #252525;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: #303030;
    --border-hover: #FF6B35;
    --gray-light: #2A2A2A;
    --gray-dark: #CCCCCC;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(255, 107, 53, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Navigation */
nav {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Menu hamburger pour mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--orange);
}

nav .logo {
    font-family: 'Jersey 20', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--orange);
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

nav a:hover {
    color: var(--orange);
    background: var(--orange-light);
}

/* Bouton de changement de thème */
.theme-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
    animation: fadeIn 0.4s ease;
}

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

/* Messages flash */
.flash-messages {
    margin: 1rem 0;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: var(--orange-light);
    border-color: var(--orange);
    color: var(--text-primary);
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #FF0000;
    color: #CC0000;
}

.alert-info {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Formulaires */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px var(--orange-light);
    transform: translateY(-1px);
}

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

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 2px solid var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 10px;
}

.btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

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

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    color: var(--white);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-danger {
    background: var(--bg-primary);
    border-color: #CC0000;
    color: #CC0000;
}

.btn-danger:hover {
    background: #CC0000;
    color: #FFFFFF;
    border-color: #CC0000;
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

/* Cartes de projet */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-hover);
    border-color: var(--orange);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-card .meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.75rem 0;
    opacity: 0.8;
}

.project-card .status {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    border: none;
}

.status-en_cours {
    background: var(--orange);
    color: var(--white);
}

.status-termine {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.status-presente {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.project-card .deadline {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.overdue {
    color: #FF3333;
    font-weight: 700;
    background: rgba(255, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Sections du dashboard */
.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--orange);
    position: relative;
}

.dashboard-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--orange);
}

/* Détails du projet */
.project-detail {
    max-width: 800px;
    margin: 2rem auto;
}

.project-header {
    border-bottom: 3px solid var(--orange);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.project-header h1 {
    margin-bottom: 0.5rem;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: var(--bg-primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.assigned-users {
    margin: 2rem 0;
}

.user-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--orange-light);
    color: var(--orange);
    border: 2px solid var(--orange);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-tag:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.05);
}

.actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tableau admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 1.25rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.admin-table tr {
    transition: all 0.2s ease;
}

.admin-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.admin-table tr:hover {
    background: var(--orange-light);
    transform: scale(1.01);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--orange);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Page de connexion */
.auth-container {
    max-width: 420px;
    margin: 5rem auto;
    padding: 3rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.auth-container .logo-large {
    text-align: center;
    font-family: 'Jersey 20', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--orange);
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--orange);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    transition: all 0.3s ease;
    box-shadow: 0 -2px 8px var(--shadow);
}

footer .copyright {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

footer .evolv-labs {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

footer .evolv-labs:hover {
    color: var(--orange-hover);
}

/* Profils et Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-hover);
    border-color: var(--orange);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--orange);
}

.team-card-info h3 {
    margin-bottom: 0.25rem;
}

.job-title {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.bio {
    margin: 1rem 0;
    line-height: 1.6;
}

.team-card-footer {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.profile-picture-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--orange);
    object-fit: cover;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.profile-picture-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.profile-picture-xl {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--orange);
    object-fit: cover;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.3s ease;
}

.profile-picture-xl:hover {
    transform: scale(1.05);
}

/* Page de profil */
.profile-container {
    max-width: 900px;
    margin: 2rem auto;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px var(--shadow);
}

.profile-header-info {
    flex: 1;
}

.profile-header-info h1 {
    margin-bottom: 0.5rem;
}

.job-title-large {
    color: var(--orange);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 6px 20px var(--shadow);
    transform: translateY(-2px);
}

.profile-section h2 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--orange);
}

.quote-section blockquote {
    font-style: italic;
    font-size: 1.1rem;
    padding: 1.5rem;
    border-left: 4px solid var(--orange);
    background: var(--orange-light);
    margin: 1rem 0;
    border-radius: 8px;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
}

/* Édition de profil */
.current-profile-picture {
    text-align: center;
    margin: 2rem 0;
}

.current-profile-picture p {
    margin-top: 1rem;
    color: var(--gray-dark);
}

input[type="file"] {
    padding: 0.5rem;
    width: 100%;
}

/* Tâches */
.tasks-container {
    margin-top: 1.5rem;
}

.task-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.task-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
    border-color: var(--orange) !important;
}

.task-status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.task-status-todo {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.task-status-in_progress {
    background: var(--orange);
    color: var(--white);
}

.task-status-done {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.priority-badge {
    display: inline-block;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    /* Navigation mobile */
    nav {
        padding: 1rem;
    }
    
    nav .logo {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--text-primary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--orange);
        padding: 0;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a,
    nav ul li button {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: left;
    }
    
    .theme-toggle {
        width: 100%;
        text-align: left;
        border: none;
        border-radius: 0;
    }
    
    /* Overlay pour fermer le menu */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-overlay.active {
        display: block;
    }

    /* Container */
    .container {
        padding: 1.5rem 1rem;
    }
    
    /* Grilles */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Cartes de projet */
    .project-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .project-card:hover {
        transform: translateY(-4px);
    }
    
    .project-card h3 {
        font-size: 1.2rem;
    }
    
    /* Tables admin - scroll horizontal */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    /* Formulaires */
    .form-container {
        margin: 1rem;
        padding: 2rem;
        border-radius: 16px;
    }
    
    .auth-container {
        margin: 2rem 1rem;
        padding: 2rem;
        border-radius: 16px;
    }
    
    .auth-container .logo-large {
        font-size: 3rem;
    }
    
    /* Inputs et textarea */
    input, textarea, select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
    
    /* Profil */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .profile-picture-xl {
        width: 120px;
        height: 120px;
    }
    
    .profile-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .team-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .team-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Actions buttons */
    .actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .actions .btn {
        width: 100%;
    }
    
    .team-card-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .team-card-footer .btn {
        width: 100%;
    }
    
    /* Tâches en mobile */
    .task-item {
        padding: 1.25rem;
    }
    
    .task-item:hover {
        transform: translateY(-2px);
    }
    
    .task-item .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Stats cards */
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Info boxes */
    .project-info {
        grid-template-columns: 1fr;
    }
    
    /* Boutons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Dashboard sections */
    .dashboard-section {
        margin-bottom: 2rem;
    }
    
    .dashboard-section h2 {
        font-size: 1.5rem;
    }
    
    /* Touch targets - minimum 44px */
    button, .btn, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    nav ul li a,
    nav ul li button {
        min-height: 44px;
    }
    
    /* Alertes */
    .alert {
        margin: 1rem;
        border-radius: 8px;
    }
    
    /* User tags */
    .user-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    /* Info boxes */
    .info-box {
        padding: 1rem;
    }
    
    /* Navigation améliorée */
    nav {
        padding: 1rem;
        box-shadow: 0 2px 12px var(--shadow);
    }
    
    /* Améliorer espacement général */
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    nav .logo {
        font-size: 1.75rem;
    }
    
    .auth-container .logo-large {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-picture-xl {
        width: 100px;
        height: 100px;
    }
    
    .profile-picture-large {
        width: 60px;
        height: 60px;
    }
    
    .form-container,
    .auth-container {
        padding: 1.5rem;
        margin: 1rem 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
    
    .task-item {
        padding: 1rem;
    }
    
    .team-card {
        padding: 1.25rem;
    }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Checkbox customisé */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: normal;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-group label:hover {
    background: var(--bg-secondary);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

/* Amélioration scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
    transition: background 0.3s;
}

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

