/**
 * Styles frontend pour les réalisations
 */

/* Container principal */
.atse-realisations-container {
    width: 100%;
    margin: 0 auto;
    padding: 0px 0;
}

/* Grille des réalisations */
.atse-realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Carte de réalisation */
.atse-realisation-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.atse-realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Image de la carte */
.atse-card-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.atse-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder pour image manquante */
.atse-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

/* Contenu de la carte */
.atse-card-content {
    padding: 20px;
    flex-grow: 1;
    color: #303030;
}

.atse-card-ville {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #303030;
}

.atse-card-details {
    font-size: 1rem;
    line-height: 1.6;
}

.atse-card-details p {
    margin: 8px 0;
    color: #303030;
}

.atse-card-details span {
    color: #666;
}

.atse-card-details strong {
    font-weight: 600;
    color: #303030;
}

.atse-card-puissance {
    font-size: 1.1rem;
    margin-bottom: 10px !important;
}

.atse-card-installateur,
.atse-card-departement {
    font-size: 0.95rem;
    color: #666;
}

/* Filtres */
.atse-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.atse-filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 25px;
    color: #303030;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.atse-filter-btn:hover {
    background: #e0e0e0;
}

.atse-filter-btn.active {
    background: #303030;
    color: white;
    border-color: #303030;
}

/* Message aucune réalisation */
.atse-no-realisations {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .atse-realisations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .atse-realisations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .atse-card-image {
        height: 200px;
    }
    
    .atse-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .atse-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Animation pour le filtrage */
.atse-realisation-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}