/* ==========================================================================
   PAGE NOS RÉALISATIONS - FILTRAGE SERVEUR (HTTP GET)
   ========================================================================== */

/* Banner En-tête */
.page-banner {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.90), rgba(5, 24, 43, 0.92)), url('../images/banner-realisations.jpg') center/cover no-repeat;
    padding: 5rem 5%;
    text-align: center;
    color: var(--pure-white);
}

.banner-content h1 {
    color: var(--pure-white);
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.banner-content p {
    color: var(--technical-gray);
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
}

.section-padding { padding: 4.5rem 5%; }

/* Navigation des filtres (Boutons liens <a> pour GET) */
.portfolio-filter-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.4rem;
    background: var(--technical-gray);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-gray);
    text-decoration: none; /* Transformation des balises <a> en boutons */
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.filter-btn i { color: var(--accent-red); }

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
}

.filter-btn.active i, .filter-btn:hover i {
    color: var(--pure-white);
}

/* Grille des Cartes Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Visuel de la carte */
.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Badges de catégories */
.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: var(--pure-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-clean { background: #0284c7; }
.badge-industrial { background: #d97706; }
.badge-atelier { background: #059669; }

/* Bouton Lightbox */
.lightbox-trigger {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(10px);
}

.project-card:hover .lightbox-trigger {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-trigger:hover {
    background: var(--accent-red);
    color: var(--pure-white);
}

/* Infos du projet */
.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.project-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-meta i {
    color: var(--accent-red);
}

.project-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* Message si aucun projet */
.no-projects-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--technical-gray);
    border-radius: 8px;
}

.no-projects-msg i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Bandeau Call to Action */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-blue), #05182b);
    padding: 4.5rem 5%;
    text-align: center;
    color: var(--pure-white);
}

.cta-content h2 {
    color: var(--pure-white);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.cta-content p {
    color: var(--technical-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.btn-large {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

/* Modal Lightbox Popup */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--pure-white);
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--pure-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-red);
}

/* Responsivité */
@media (max-width: 768px) {
    .banner-content h1 { font-size: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 1.7rem; }
}