/* Styles spécifiques pour la page projets */
.page-header {
    margin-bottom: 2rem;
    padding-top: 2rem;
    padding-right: 60px;
    padding-left: 1rem;
}

.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-direction: row-reverse;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.page-header-btn {
    padding: 0.5rem 1rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #d1d5db;
}

.project-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.project-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech .tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* Filter Modal */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.filter-modal-content {
    background: #fafafa;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-modal-header h2 i {
    color: #6366f1;
}

.filter-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.filter-modal-body {
    padding: 2rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section h3 i {
    color: #6366f1;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #374151;
}

.filter-checkbox:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.filter-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: #6366f1;
    font-weight: 600;
}

.filter-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
}

.filter-badge {
    background: #6366f1;
    color: #f5f5f5;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-top {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
        order: 2;
    }
    
    .page-header .page-title,
    .page-header-top .page-title {
        order: 1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Mode sombre - styles spécifiques aux projets */
.dark-mode .project-info h3 {
    color: var(--text-primary);
}

.dark-mode .project-info p {
    color: var(--text-secondary);
}

.dark-mode .page-header-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .page-header-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark-mode .filter-modal-header {
    border-bottom-color: var(--border-color);
}

.dark-mode .filter-modal-close {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.dark-mode .filter-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark-mode .filter-modal-footer {
    border-top-color: var(--border-color);
}

.dark-mode .filter-checkbox {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .filter-checkbox:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.dark-mode .filter-checkbox input[type="checkbox"]:checked + span {
    color: var(--accent-color);
}

.dark-mode .project-tech .tech-tag {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #f5f5f5;
    border-color: #6366f1;
}

