/* Projets Index Styles */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.projet-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.projet-image {
    height: 220px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.projet-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.projet-image i {
    position: relative;
    z-index: 2;
}

.projet-content {
    padding: 30px;
}

.projet-title {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.projet-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.projet-title a:hover {
    color: #27ae60;
}

.projet-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.projet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
    gap: 15px;
    flex-wrap: wrap;
}

.projet-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.projet-meta i {
    color: #27ae60;
}

.no-projets {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.no-projets i {
    font-size: 64px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.no-projets h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a, .pagination span {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.pagination .active span {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Projet Show Styles */
.projet-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
}

.projet-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.projet-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.projet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-item i {
    font-size: 20px;
}

.projet-main {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.projet-main h2 {
    color: #1e293b;
    margin: 40px 0 20px;
    font-size: 28px;
}

.projet-main p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
    color: #229954;
}

@media (max-width: 768px) {
    .projet-container {
        padding: 0 20px;
        margin: 40px auto;
    }

    .projets-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .projet-header {
        padding: 40px 30px;
    }

    .projet-header h1 {
        font-size: 28px;
    }

    .projet-main {
        padding: 30px 25px;
    }

    .projet-details {
        grid-template-columns: 1fr;
    }

    .projet-image {
        height: 200px !important;
        font-size: 48px !important;
        margin: 30px 0 !important;
    }
}
