/* ============================================
   SECTION STRUCTURES - PALETTE CRÈME
   ============================================ */

.structures-section {
    /* padding: 4rem 0; */
}

/* En-tête de section */
.section-header-structures {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(10, 119, 52, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-green-light);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1a2c3e;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-green-light), var(--color-gold-medium), var(--color-red-medium));
    border-radius: 3px;
    margin: 0 auto;
}

/* Filtres */
.filters-container {
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(10, 119, 52, 0.1);
    box-shadow: var(--shadow-sm);
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-green-medium);
    margin-bottom: 0.4rem;
}

.filter-select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #1a2c3e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-green-light);
    box-shadow: 0 0 0 3px rgba(10, 119, 52, 0.1);
}

.filter-search {
    display: flex;
    flex: 1.5;
    min-width: 220px;
}

.search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-green-light);
}

.search-btn {
    padding: 0.7rem 1.2rem;
    background: var(--color-green-light);
    border: none;
    border-radius: 0 12px 12px 0;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--color-green-dark);
}

.reset-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: var(--color-red-medium);
    color: var(--color-red-medium);
}

/* Résultats info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 0.85rem;
    color: #4a5568;
}

.results-view {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--color-green-light);
    border-color: var(--color-green-light);
    color: white;
}

.view-btn:hover:not(.active) {
    background: rgba(10, 119, 52, 0.1);
    border-color: var(--color-green-light);
    color: var(--color-green-light);
}

/* Grille des structures */
.structures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Version liste */
.structures-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.structures-grid.list-view .structure-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.structures-grid.list-view .structure-card .card-logo {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.structures-grid.list-view .structure-card .card-content {
    flex: 1;
}

/* Carte structure */
.structure-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 119, 52, 0.1);
    box-shadow: var(--shadow-sm);
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 119, 52, 0.2);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-green-light), var(--color-green-dark));
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-logo {
    width: 130px;
    height: 130px;
    background: var(--color-cream-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

.default-structure-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc, #e8f5ee);
    color: var(--color-green-dark);
}

.default-structure-icon i {
    font-size: 3.25rem;
    opacity: 0.9;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2c3e;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.card-location i {
    color: var(--color-red-medium);
    width: 16px;
}

.card-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-green-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--color-gold-medium);
}

.card-stats {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #64748b;
}

.stat i {
    color: var(--color-gold-medium);
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--color-green-light);
    border-radius: 12px;
    color: var(--color-green-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background: var(--color-green-light);
    color: white;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--color-green-light);
    border-color: var(--color-green-light);
    color: white;
}

.page-item.active .page-link {
    background: var(--color-green-light);
    border-color: var(--color-green-light);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--color-green-light), var(--color-green-dark));
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    color: white;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: white;
    border-radius: 50px;
    color: var(--color-green-light);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--color-green-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .structures-section {
        /* padding: 2rem 0; */
    }
    
    .filters-wrapper {
        flex-direction: column;
    }
    
    .filter-group, .filter-search {
        width: 100%;
    }
    
    .structures-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .structure-card {
        padding: 1.2rem;
    }
    
    .card-logo {
        width: 60px;
        height: 60px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
