/* user/themes/regard-sur/css/section-grille-realisations.css */
/* Grille des dernières réalisations - Style moderne et sobre */

.section-grille-realisations {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f9f9f9;
}

.section-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.grille-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.projet-card {
    background-color: #262626;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(238, 121, 0, 0.2);
}

.projet-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* Ratio 3:2 */
    overflow: hidden;
    background-color: #1c1c1c;
}

.projet-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projet-card:hover .projet-image {
    transform: scale(1.05);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #262626;
    color: #666;
}

.image-placeholder i {
    font-size: 3rem;
}

.image-placeholder span {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 20px;
}

.projet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(28, 28, 28, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projet-card:hover .projet-overlay {
    opacity: 1;
}

.projet-info {
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.projet-titre {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f9f9f9;
}

.projet-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.projet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.projet-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.badge.secteur {
    background: rgba(238, 121, 0, 0.15);
    color: #EE7900;
}

.badge.category {
    background: rgba(249, 249, 249, 0.1);
    color: #b0b0b0;
}

.projet-link {
    display: inline-flex;
    align-items: center;
    color: #EE7900;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
    gap: 8px;
    white-space: nowrap;
}

.projet-card:hover .projet-link {
    gap: 12px;
}

.projet-arrow {
    width: 20px;
    height: 20px;
    stroke: #EE7900;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.projet-card:hover .projet-arrow {
    transform: translateX(3px);
}

.cta-container {
    text-align: center;
    margin-top: 50px;
}

.btn-tous-projets {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    border: 2px solid #EE7900;
    color: #EE7900;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-tous-projets:hover {
    background-color: #EE7900;
    color: #1c1c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .section-grille-realisations {
        padding: 60px 20px;
    }

    .grille-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Cacher les projets 4, 5 et 6 en mobile */
    .projet-card:nth-child(n+4) {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projet-titre {
        font-size: 1.15rem;
    }

    .projet-info {
        padding: 20px;
    }
    
    .projet-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .projet-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .projet-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .cta-container {
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    .section-grille-realisations {
        padding: 40px 15px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}
