/* =============================================
   POMPE A CHALEUR MARNE - STYLES PAGES VILLES
   ============================================= */

/* =============================================
   HERO VILLE
   ============================================= */

.ville-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1e3a8a 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs */
.ville-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ville-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ville-hero h1 {
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.ville-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Infos ville avec glassmorphism */
.ville-infos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.ville-info {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 150px;
}

.ville-info .label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.ville-info .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.ville-hero .cta-buttons {
    position: relative;
    z-index: 1;
}

/* =============================================
   INTRODUCTION VILLE
   ============================================= */

.ville-intro {
    padding: 60px 20px;
}

.ville-intro h2 {
    text-align: center;
    margin-bottom: 30px;
}

.ville-intro p {
    text-align: center;
    margin-bottom: 20px;
}

/* =============================================
   SERVICES VILLE
   ============================================= */

.ville-services {
    background: var(--light);
    padding: 60px 20px;
}

.ville-services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.ville-services .services-grid {
    max-width: 1000px;
}

.ville-services .service-card .price {
    display: block;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    margin: 15px 0;
    text-align: center;
}

/* =============================================
   AVANTAGES VILLE
   ============================================= */

.ville-avantages {
    padding: 60px 20px;
}

.ville-avantages h2 {
    text-align: center;
    margin-bottom: 40px;
}

.ville-avantages .avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.avantage-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.avantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.avantage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 15px;
}

.avantage-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.avantage-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* =============================================
   FAQ VILLE
   ============================================= */

.ville-faq {
    background: var(--light);
    padding: 60px 20px;
}

.ville-faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.ville-faq .faq-item {
    border: 1px solid var(--gray-lighter);
}

.ville-faq .faq-question {
    padding: 18px 20px;
}

@media (max-width: 768px) {
    .ville-faq .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .ville-faq .faq-answer p {
        padding: 0 15px 15px;
    }
}

/* =============================================
   COMMUNES VOISINES
   ============================================= */

.communes-voisines {
    padding: 60px 20px;
}

.communes-voisines h2 {
    text-align: center;
    margin-bottom: 30px;
}

.communes-voisines .communes-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.communes-voisines .communes-list a {
    background: var(--light);
    color: var(--dark);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--gray-lighter);
}

.communes-voisines .communes-list a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =============================================
   FORMULAIRE VILLE
   ============================================= */

.ville-contact {
    background: var(--light);
    padding: 60px 20px;
}

.ville-contact h2 {
    text-align: center;
    margin-bottom: 30px;
}

.ville-contact .form-container {
    max-width: 600px;
}

/* =============================================
   BANDEAU URGENCE VILLE
   ============================================= */

.ville-urgence {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.ville-urgence h2 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.ville-urgence p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* =============================================
   CANTON SECTION (PAGES CANTON)
   ============================================= */

.canton-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.canton-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.canton-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.canton-presentation {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.canton-presentation h2 {
    text-align: center;
    margin-bottom: 25px;
}

.canton-presentation p {
    color: var(--gray);
    text-align: center;
    line-height: 1.8;
}

/* Grille des communes du canton */
.communes-section {
    background: var(--light);
    padding: 60px 20px;
}

.communes-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.communes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.commune-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--gray-lighter);
}

.commune-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.commune-nom {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.commune-pop {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Contact canton */
.contact-canton {
    padding: 60px 20px;
}

.contact-canton h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* =============================================
   ZONES INTERVENTION PAGE
   ============================================= */

.zones-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.zones-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.zones-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.canton-section {
    padding: 40px 20px;
    border-bottom: 1px solid var(--gray-lighter);
}

.canton-section:last-of-type {
    border-bottom: none;
}

.canton-section h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.canton-section .zone-count {
    color: var(--gray);
    margin-bottom: 20px;
}

.canton-section .btn {
    margin-top: 20px;
}

/* =============================================
   RESPONSIVE PAGES VILLES
   ============================================= */

@media (max-width: 768px) {
    .ville-hero {
        padding: 40px 15px;
    }

    .ville-hero h1 {
        font-size: 1.75rem;
    }

    .ville-infos {
        flex-direction: column;
        align-items: center;
    }

    .ville-info {
        width: 100%;
        max-width: 250px;
    }

    .ville-services,
    .ville-avantages,
    .ville-faq,
    .communes-voisines,
    .ville-contact {
        padding: 40px 15px;
    }

    .ville-avantages .avantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .communes-grid {
        grid-template-columns: 1fr;
    }

    .canton-hero,
    .zones-hero {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .ville-avantages .avantages-grid {
        grid-template-columns: 1fr;
    }
}
