/* --- PAGE LISTE PROJETS --- */

.projects-section {
    position: relative;
    z-index: 10;
}

.filter-container {
    background-color: var(--card-bg);
    border: 1px solid #334155;
    border-radius: 15px 5px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #475569;
    border-radius: 8px 3px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: #64748b;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.75rem 1rem;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #475569;
    border-radius: 8px 3px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--accent);
    outline: none;
}

.filter-group select option {
    background-color: #0d0a2c;
    color: var(--text-primary);
}

.btn-reset {
    padding: 0.75rem 1.5rem;
    background-color: #475569;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-reset:hover {
    background-color: #64748b;
}

.results-info {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.projects-grid .card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.projects-grid .card a {
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-reset {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .filter-container {
        padding: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        font-size: 16px; /* Évite le zoom sur mobile */
    }
}
