/* ==================== SECTION RÉALISATIONS ==================== */
.section-realisations {
    padding: 80px 0;
    background: var(--gray-50);
}

.realisations-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: transparent;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.realisations-grid.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    group: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    align-self: flex-start;
}

.project-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.project-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.project-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 900px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* No-image variant */
.project-card--no-img {
    aspect-ratio: auto;
    background: white;
    border: 1px solid var(--gray-200, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 24px;
    transition: transform 0.4s ease, border-color 0.3s;
}

.project-card--no-img:hover {
    transform: translateY(-6px);
    border-color: var(--accent, #00D863);
}

.project-card--no-img .project-overlay {
    display: none;
}

.project-card-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 216, 99, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-card-icon i {
    font-size: 2rem;
    color: var(--accent, #00D863);
}

.project-card--no-img .project-tag {
    position: static;
    margin-bottom: 12px;
    align-self: center;
}

.project-card--no-img .project-title {
    color: var(--primary, #0F172A);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.project-card--no-img .project-location {
    color: var(--gray-500, #64748B);
    font-size: 0.9rem;
    margin-bottom: 4px;
    justify-content: center;
}

.project-card--no-img .project-date {
    color: var(--gray-400, #94a3b8);
    font-size: 0.85rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .realisations-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        aspect-ratio: 16/9;
    }

    .project-card--no-img {
        aspect-ratio: auto;
    }
}