/* Import des fonts Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables CSS pour la cohérence */
:root {
    --primary-color: #00c9ff;
    --primary-dark: #00b1ff;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Layout principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ajoutez ces styles pour l'image du logo */
.logo img {
    height: 50px; /* Ajustez selon vos besoins */
    width: auto; /* Garde les proportions */
    max-height: 60px; /* Limite maximale */
    object-fit: contain; /* Assure que l'image garde ses proportions */
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.05); /* Petit effet au survol */
}

/* Version responsive */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
        max-height: 45px;
    }
    
    .header-content {
        flex-direction: row; /* Garde le header horizontal sur mobile */
        flex-wrap: wrap;
    }
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.5);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid var(--border-color);
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--light-bg);
    border-color: var(--text-medium);
}

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    margin: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-medium);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

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

.table th {
    background: rgba(248, 250, 252, 0.8);
    font-weight: 600;
    color: var(--text-dark);
}

.table tr:hover {
    background: rgba(248, 250, 252, 0.5);
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-medium);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Messages d'alerte */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
    color: var(--success-color);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
    color: var(--warning-color);
}

/* ===== AMÉLIORATIONS MOBILE HEADER (garder le style original) ===== */

/* Bouton menu mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

/* Navigation mobile */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #e0f7ff;
    color: #00c9ff;
}

.mobile-user-section {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-user-info .user-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.75rem;
}

.mobile-logout-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .user-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Ajustements pour très petits écrans */
    @media (max-width: 480px) {
        .mobile-nav-link {
            padding: 0.875rem 1rem;
            font-size: 0.9rem;
        }
        
        .mobile-user-section {
            padding: 0.875rem 1rem;
        }
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================= */
/* STYLES DE LA PAGE ACCUEIL */
/* ============================= */

.accueil-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

/* Animation d'entrée */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section de bienvenue */
.welcome-section {
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: baseline;
}

.bienvenue, .prenom {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bienvenue {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1;
}

.prenom {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    background: #00c9ff;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 201, 255, 0.3);
    transition: transform 0.3s ease;
}

.prenom:hover {
    transform: translateY(-2px);
}

.welcome-date {
    color: var(--text-medium);
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
}

.btn-nouveau-projet {
    background: #00c9ff;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 201, 255, 0.3);
}

.btn-nouveau-projet:hover {
    background: #0fb3e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 201, 255, 0.4);
}

/* Dashboard avec statistiques */
.dashboard-section {
    margin-bottom: 3rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.stat-card::before {
    display: none !important;
}

.stat-card:hover::before {
    opacity: 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: #00c9ff;
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: #00c9ff;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

.stat-trend {
    opacity: 0.5;
    color: var(--text-light);
    font-size: 1rem;
}

.stat-trend.positive {
    color: #10b981;
}

/* Section des actions */
.actions-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: #00c9ff;
}

.action-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    background: #00c9ff;
    color: white;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.action-content p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.action-arrow {
    font-size: 1.2rem;
    color: #00c9ff;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Section projets récents */
.recent-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    color: #00c9ff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #0fb3e6;
    transform: translateX(2px);
}

.recent-projects {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.recent-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.recent-project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00c9ff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recent-project-item:hover::before {
    transform: scaleY(1);
}

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

.recent-project-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-project-item:hover .project-name {
    color: var(--primary-color);
}

.project-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-type {
    color: var(--text-medium);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.project-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-en-cours {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-ouvert {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-annule {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.counter {
    display: inline-block;
}

/* ============================= */
/* STYLES DE LA PAGE PROJETS */
/* ============================= */

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

.projets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Container recherche + stats */
.search-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

/* Barre de recherche */
.search-container {
    flex: 1;
    max-width: 600px;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
}

/* Statistiques compactes */
.stats-compact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-width: 80px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-1px);
}

.stat-en-cours .stat-number { color: #f59e0b; }
.stat-ouvert .stat-number { color: #10b981; }
.stat-annule .stat-number { color: #ef4444; }
.stat-total .stat-number { color: var(--primary-color); }

/* Résultats de recherche */
.search-results {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.clear-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clear-search:hover {
    background: #00c9ff;
}

/* Grille des projets */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.projet-card {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.projet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.projet-card.hidden {
    display: none;
}

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

.projet-info {
    flex: 1;
}

.projet-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.projet-zone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.projet-type {
    color: var(--text-medium);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.projet-statut {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.statut-en-cours {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.statut-ouvert {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.statut-annule {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.projet-card:hover .action-buttons {
    opacity: 1;
}

.btn-action {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-edit:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.btn-delete:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.projet-body {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.projet-body > div {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.projet-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.projet-meta {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* États vides */
.empty-state, .empty-search {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-medium);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3, .empty-search h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ============================= */
/* STYLES DE LA PAGE PARCS */
/* ============================= */

.parcs-list {
    max-height: 400px;
    overflow-y: auto;
}

.parc-item {
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #f8f9fa;
    cursor: pointer;
}

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

.parc-item h6 {
    margin: 0 0 5px 0;
    color: #495057;
}

.parc-item small {
    color: #6c757d;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

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

/* Header style comme projets */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.header-left {
    flex: 1;
}

.header-right {
    flex-shrink: 0;
}

/* Pins colorés en fallback si les images ne chargent pas */
.custom-pin {
    background: none !important;
    border: none !important;
}

.pin-container {
    position: relative;
    width: 60px;
    height: 75px;
}

.pin-icon {
    width: 45px;
    height: 45px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 4px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 7px;
}

.pin-emoji {
    font-size: 18px;
    transform: rotate(45deg);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.pin-shadow {
    width: 30px;
    height: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 15px;
    transform: skew(-10deg, 0deg);
}

/* Boutons de filtrage */
.filter-buttons {
    margin-top: 10px;
}

.btn-group-sm .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.parc-item.hidden {
    display: none !important;
}

/* Styles pour les boutons de franchise */
.btn[data-filter="royal_kids"]:hover,
.btn[data-filter="royal_kids"].active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-outline-warning:hover,
.btn-outline-warning.active {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: white !important;
}

.btn[data-filter="planet_park"]:hover,
.btn[data-filter="planet_park"].active {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: white !important;
}

#resetView {
    background-color: #00c9ff;
    border-color: #00c9ff;
    color: white;
}

#resetView:hover {
    background-color: #00B1ff;
    border-color: #00B1ff;
}

/* ============================= */
/* STYLES DE LA PAGE PROJET DETAIL */
/* ============================= */

.projet-detail-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-medium);
}

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

.breadcrumb .separator {
    margin: 0 0.5rem;
}

.projet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.projet-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.projet-subtitle {
    color: var(--text-medium);
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.statut-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.statut-select {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.statut-select.statut-en-cours {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: #d97706;
}

.statut-select.statut-ouvert {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: #059669;
}

.statut-select.statut-annule {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: #dc2626;
}

.info-section {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.info-item span {
    color: var(--text-dark);
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.tabs-container {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.etapes-section, .coffre-section {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    height: fit-content;
}

.etapes-section h3, .coffre-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.tabs-nav {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

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

.partages-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.partages-section h4 {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.1rem;
}

.partages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.partage-item:hover {
    border-color: #3b82f6;
}

.partage-info {
    flex: 1;
}

.partage-info strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.partage-scope {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.partage-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.partage-actions {
    display: flex;
    gap: 0.25rem;
}

.text-danger {
    color: #dc2626 !important;
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.share-url-content {
    padding: 1.5rem;
}

.url-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.url-container input {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #d1d5db;
}

.share-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.folder-navigation {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-folder {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-folder:hover {
    background: rgba(37, 99, 235, 0.1);
}

.current-folder {
    font-weight: 600;
    color: var(--text-dark);
}

.etapes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.etape-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 4px solid;
}

.etape-card.statut-a_faire {
    border-left-color: #6b7280;
}

.etape-card.statut-en_cours {
    border-left-color: #f59e0b;
}

.etape-card.statut-terminee {
    border-left-color: #10b981;
}

.etape-card.statut-bloquee {
    border-left-color: #ef4444;
}

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

.etape-header h4 {
    margin: 0;
    color: var(--text-dark);
}

.etape-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.btn-icon.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.etape-statut {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--light-bg);
    color: var(--text-medium);
}

.etape-responsable {
    margin-bottom: 1rem;
}

.responsable-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.responsable-avatar {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.etape-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.etape-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.priorite {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.priorite-basse { background: #f3f4f6; color: #6b7280; }
.priorite-normale { background: #dbeafe; color: #1d4ed8; }
.priorite-haute { background: #fef3c7; color: #d97706; }
.priorite-critique { background: #fee2e2; color: #dc2626; }

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.file-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-icon {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.file-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

/* ============================= */
/* STYLES CORRIGÉS POUR LA FRISE D'ÉTAPES */
/* ============================= */

.permission-info {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.statut-readonly {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.statut-readonly.statut-en-cours {
    background: rgba(59, 130, 246, 0.1);
    color: #00c9ff;
}

.statut-readonly.statut-ouvert {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.statut-readonly.statut-annule {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge-success {
    background-color: #10b981;
    color: white;
}

/* Styles pour la frise des étapes principales */
.etapes-principales-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.etapes-principales-section h2 {
    margin-bottom: 3rem;
    color: #1f2937;
    text-align: center;
    font-size: 1.75rem;
}

.frise-etapes-principales {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 2rem;
    margin: 3rem 0;
}

.etape-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.etape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 3px solid #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.etape-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Statuts des cercles avec vos couleurs */
.etape-circle.statut-non_commencee {
    background: white;
    border-color: #d1d5db;
}

.etape-circle.statut-en_cours {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.etape-circle.statut-validee {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.etape-numero {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    position: relative;
    z-index: 3;
}

.etape-circle.statut-en_cours .etape-numero,
.etape-circle.statut-validee .etape-numero {
    color: white;
}

/* Anneau de progression simplifié */
.etape-progress-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    pointer-events: none;
}

.progress-ring {
    display: none !important;

    transform: rotate(-90deg);
    width: 88px;
    height: 88px;
}

.progress-ring-bg {
    display: none !important;

    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2;
}

.progress-ring-fill {
    display: none !important;

    fill: none;
    stroke: #00c9ff;  /* ← Changez cette couleur */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: calc(2 * 3.14159 * 35);
    stroke-dashoffset: calc(2 * 3.14159 * 35 * (1 - var(--progress, 0) / 100));
    transition: stroke-dashoffset 0.5s ease;
}

.etape-labels {
    margin-top: 1rem;
    text-align: center;
}

.etape-nom {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.etape-progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Connecteurs entre les étapes */
.etape-connector {
    position: absolute;
    top: 40px;
    left: 50%;
    right: -50%;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.etape-timeline-item:last-child .etape-connector {
    display: none;
}

.etape-connector.statut-en_cours,
.etape-connector.statut-validee {
    background: #10b981;
}

/* Modal des sous-étapes */
.etape-progress-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
    text-align: right;
}

.sous-etapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.sous-etape-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.sous-etape-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sous-etape-item.statut-non_commencee {
    border-color: #e5e7eb;
}

.sous-etape-item.statut-en_cours {
    border-color: #fbbf24;
    background: #fefbf2;
}

.sous-etape-item.statut-validee {
    border-color: #10b981;
    background: #f0fdf4;
}

.sous-etape-numero {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.sous-etape-item.statut-en_cours .sous-etape-numero {
    background: #fbbf24;
    color: white;
}

.sous-etape-item.statut-validee .sous-etape-numero {
    background: #10b981;
    color: white;
}

.sous-etape-nom {
    flex: 1;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.statut-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: white;
    margin-left: 1rem;
    flex-shrink: 0;
}

.sous-etape-item.statut-en_cours .statut-indicator {
    background: #fbbf24;
    border-color: #fbbf24;
}

.sous-etape-item.statut-validee .statut-indicator {
    background: #10b981;
    border-color: #10b981;
    position: relative;
}

.sous-etape-item.statut-validee .statut-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ============================= */
/* STYLES DE L'ADMIN PARTAGES */
/* ============================= */

.admin-partages-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

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

.table-container {
    overflow-x: auto;
}

.partages-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.partages-table th,
.partages-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.partages-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.partages-table tr:hover {
    background: #f9fafb;
}

.partages-table tr.expired {
    background: #fef2f2;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.protected {
    background: #fef3c7;
    color: #92400e;
}

.project-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.project-info small {
    color: #6b7280;
}

.scope-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.scope-badge.folder {
    background: #dbeafe;
    color: #1e40af;
}

.scope-badge.project {
    background: #d1fae5;
    color: #065f46;
}

.expired-date {
    color: #dc2626;
    font-weight: 600;
}

.valid-date {
    color: #059669;
}

.no-expiration {
    color: #6b7280;
    font-style: italic;
}

.popular-shares {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-share-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.rank {
    background: #00c9ff;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.share-details {
    flex: 1;
}

.share-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.download-count {
    text-align: center;
}

.download-count .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00c9ff;
}

.download-count .label {
    font-size: 0.8rem;
    color: #6b7280;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.activity-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    text-align: center;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-weight: 600;
    color: #1f2937;
}

.activity-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.activity-time {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: right;
}

/* ============================= */
/* MODALS GÉNÉRIQUES */
/* ============================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.text-warning {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.close {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0.25rem;
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

.modal form {
    padding: 1.5rem;
}

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

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.form-control select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

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

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

/* ============================= */
/* RESPONSIVE GLOBAL */
/* ============================= */

@media (max-width: 1024px) {
    .search-stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stats-compact {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .accueil-container,
    .projets-container,
    .parcs-container,
    .projet-detail-container,
    .admin-partages-container {
        padding: 1rem;
    }
    
    .welcome-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .bienvenue {
        font-size: 1.25rem;
    }
    
    .prenom {
        font-size: 2.5rem;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .recent-project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-meta {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .projets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .projets-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .stats-compact {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 70px;
        padding: 0.5rem 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .action-buttons {
        opacity: 1;
    }
    
    .sections-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .etapes-section, .coffre-section {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .etape-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .folder-navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .partage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .partage-actions {
        align-self: stretch;
        justify-content: center;
    }
    
    .share-options {
        flex-direction: column;
    }
    
    .url-container {
        flex-direction: column;
    }

    .file-actions {
        opacity: 1;
    }
    
    .coffre-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }

    /* Responsive pour la frise d'étapes */
    .permission-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .statut-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .frise-etapes-principales {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }
    
    .etape-timeline-item {
        width: 100%;
        max-width: none;
    }
    
    .etape-connector {
        display: none;
    }
    
    .sous-etapes-grid {
        grid-template-columns: 1fr;
    }
    
    .etape-circle {
        width: 70px;
        height: 70px;
    }
    
    .etape-numero {
        font-size: 1.25rem;
    }
    
    .progress-ring {
        width: 78px;
        height: 78px;
    }
    
    .etape-progress-ring {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-user-section {
        padding: 0.875rem 1rem;
    }
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}