/* ==================== PAGE HEADER AGENCES ==================== */
.page-header-agences {
    background: linear-gradient(135deg, #2B5A9E 0%, #1E4278 100%);
    color: #FFFFFF;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-agences::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-agences h1 {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header-agences > .container > p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.header-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(139, 195, 74, 0.3);
    transform: translateY(-5px);
}

.stat-badge i {
    font-size: 2rem;
    color: #8BC34A;
}

.stat-badge span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== FILTRES PAR DÉPARTEMENT ==================== */
.departement-filters {
    background: #F5F7FA;
    padding: 40px 0;
    border-bottom: 3px solid #E0E0E0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.departement-filters h3 {
    color: #2B5A9E;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    color: #2B5A9E;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #2B5A9E;
    color: #FFFFFF;
    border-color: #2B5A9E;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2B5A9E 0%, #4A8FD9 100%);
    color: #FFFFFF;
    border-color: #2B5A9E;
}

.filter-btn .badge {
    background: #8BC34A;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-btn.active .badge {
    background: #FFFFFF;
    color: #2B5A9E;
}

/* ==================== SECTION AGENCES ==================== */
.agences-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.departement-group {
    margin-bottom: 60px;
}

.departement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #2B5A9E 0%, #8BC34A 100%);
    border-image-slice: 1;
}

.departement-header h2 {
    color: #2B5A9E;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.departement-header i {
    color: #8BC34A;
}

.agence-count {
    background: #8BC34A;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* ==================== GRILLE AGENCES ==================== */
.agences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.agence-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(43, 90, 158, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.agence-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(43, 90, 158, 0.2);
}

/* Image de l'agence */
.agence-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.agence-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.agence-card:hover .agence-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2B5A9E 0%, #4A8FD9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.agence-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contenu de l'agence */
.agence-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agence-content h3 {
    color: #2B5A9E;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.agence-description {
    color: #5A5A5A;
    line-height: 1.6;
    margin: 0;
}

/* Détails de l'agence */
.agence-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #5A5A5A;
    font-size: 0.95rem;
}

.detail-item i {
    color: #2B5A9E;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.detail-item a {
    color: #2B5A9E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: #8BC34A;
}

/* Horaires */
.agence-horaires {
    background: #F5F7FA;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.agence-horaires strong {
    color: #2B5A9E;
    display: block;
    margin-bottom: 8px;
}

.agence-horaires div {
    color: #5A5A5A;
    padding: 3px 0;
}

/* Services */
.agence-services {
    margin-top: 10px;
}

.agence-services strong {
    color: #2B5A9E;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: #E6F2FF;
    color: #2B5A9E;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-tag i {
    color: #8BC34A;
    font-size: 0.75rem;
}

/* Équipements */
.agence-equipements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
}

.equipement-badge {
    background: #FFF;
    border: 2px solid #8BC34A;
    color: #689F38;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.equipement-badge i {
    color: #8BC34A;
}

/* Footer de l'agence */
.agence-footer {
    padding: 20px 25px;
    background: #F5F7FA;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-contact,
.btn-map {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact {
    background: linear-gradient(135deg, #2B5A9E 0%, #4A8FD9 100%);
    color: #FFFFFF;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 90, 158, 0.3);
}

.btn-map {
    background: #FFFFFF;
    color: #2B5A9E;
    border: 2px solid #2B5A9E;
}

.btn-map:hover {
    background: #2B5A9E;
    color: #FFFFFF;
}

/* ==================== SERVICES AGENCES ==================== */
.services-agences {
    background: #F5F7FA;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: #FFFFFF;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(43, 90, 158, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(43, 90, 158, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2B5A9E 0%, #4A8FD9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    transform: rotateY(360deg);
}

.service-item h4 {
    color: #2B5A9E;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-item p {
    color: #5A5A5A;
    line-height: 1.6;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #F5F7FA;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #8BC34A;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(43, 90, 158, 0.1);
    border-left-color: #2B5A9E;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.faq-question i {
    color: #2B5A9E;
    font-size: 1.5rem;
    margin-top: 5px;
}

.faq-question h4 {
    color: #2B5A9E;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-item p {
    color: #5A5A5A;
    line-height: 1.7;
    margin: 0;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #2B5A9E;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8BC34A 0%, #E91E63 50%, #FFC107 100%);
    border-radius: 2px;
}

.section-header p {
    color: #5A5A5A;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .agences-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header-agences h1 {
        font-size: 2.2rem;
    }
    
    .page-header-agences > .container > p {
        font-size: 1.1rem;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .departement-filters {
        position: static;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .departement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .agences-grid {
        grid-template-columns: 1fr;
    }
    
    .agence-footer {
        flex-direction: column;
    }
    
    .btn-contact,
    .btn-map {
        width: 100%;
    }
    
    .services-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .page-header-agences {
        padding: 50px 0 40px;
    }
    
    .page-header-agences h1 {
        font-size: 1.8rem;
    }
    
    .departement-header h2 {
        font-size: 1.5rem;
    }
    
    .agence-content {
        padding: 20px;
    }
}
