/* CSS DÉDIÉ AUX PAGES DE VILLE */
/* Spécificité renforcée pour surcharger Astra */

/* STRUCTURE GÉNÉRALE */


body.single-ville .ville-page {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* BREADCRUMB */
body.single-ville .ville-breadcrumb {
    background: #F9F3EB !important;
    padding: 15px 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    font-size: 0.9rem !important;
}

body.single-ville .ville-breadcrumb a {
    color: #FD5A2B !important;
    text-decoration: none !important;
}

body.single-ville .ville-breadcrumb a:hover {
    color: #e54923 !important;
    text-decoration: underline !important;
}

/* HEADER VILLE */
body.single-ville .ville-header {
    background: linear-gradient(135deg, #FD5A2B 0%, #ff7a50 100%) !important;
    color: white !important;
    padding: 60px 20px !important;
    margin: 0 0 40px 0 !important;
    box-shadow: 0 4px 15px rgba(253, 90, 43, 0.2) !important;
}

body.single-ville .ville-header h1 {
    font-size: 2.8rem !important;
    margin: 0 0 30px 0 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    color: white !important;
    line-height: 1.3 !important;
}

body.single-ville .ville-meta-info {
    display: flex !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
}

body.single-ville .ville-meta-info .meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255,255,255,0.2) !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    color: white !important;
}

/* CTA PRINCIPAL */
body.single-ville .ville-cta-primary {
    max-width: 1200px !important;
    margin: -60px auto 60px auto !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 10 !important;
}

body.single-ville .cta-content {
    background: white !important;
    padding: 40px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    border: 3px solid #FD5A2B !important;
}

body.single-ville .cta-content h2 {
    color: #2c3e50 !important;
    font-size: 2rem !important;
    margin: 0 0 15px 0 !important;
}

body.single-ville .btn-cta {
    display: inline-block !important;
    background: #FD5A2B !important;
    color: white !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 20px rgba(253, 90, 43, 0.3) !important;
}

body.single-ville .btn-cta:hover {
    background: #e54923 !important;
    transform: translateY(-3px) !important;
}

/* CONTENU */
body.single-ville .ville-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px 60px 20px !important;
}

body.single-ville .content-grid {
    display: grid !important;
    grid-template-columns: 1fr 350px !important;
    gap: 40px !important;
}

/* SECTIONS DE CONTENU */
body.single-ville .ville-intro {
    background: #F9F3EB !important;
    padding: 25px !important;
    border-radius: 10px !important;
    border-left: 4px solid #FD5A2B !important;
    margin-bottom: 40px !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

body.single-ville .content-section h2 {
    color: #2c3e50 !important;
    font-size: 1.8rem !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #FD5A2B !important;
}

body.single-ville .problem-list {
    list-style: none !important;
    padding: 0 !important;
}

body.single-ville .problem-list li {
    padding: 15px !important;
    margin: 10px 0 !important;
    background: #F9F3EB !important;
    border-left: 4px solid #FD5A2B !important;
    border-radius: 5px !important;
}

/* SERVICES GRID */
body.single-ville .services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

body.single-ville .service-card {
    background: white !important;
    padding: 30px !important;
    border-radius: 10px !important;
    text-align: center !important;
    border: 2px solid #F9F3EB !important;
    transition: all 0.3s ease !important;
}

body.single-ville .service-card:hover {
    border-color: #FD5A2B !important;
    box-shadow: 0 8px 25px rgba(253, 90, 43, 0.15) !important;
    transform: translateY(-5px) !important;
}

body.single-ville .service-icon {
    font-size: 3rem !important;
    margin-bottom: 15px !important;
}

/* PROCESSUS TIMELINE */
body.single-ville .process-step {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    position: relative !important;
}

body.single-ville .step-number {
    flex-shrink: 0 !important;
    width: 50px !important;
    height: 50px !important;
    background: #FD5A2B !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(253, 90, 43, 0.3) !important;
}

/* SIDEBAR */
body.single-ville .ville-sidebar {
    position: sticky !important;
    top: 20px !important;
}

body.single-ville .sidebar-box {
    background: white !important;
    padding: 25px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    border: 2px solid #F9F3EB !important;
}

body.single-ville .cta-box {
    background: linear-gradient(135deg, #FD5A2B 0%, #ff7a50 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(253, 90, 43, 0.3) !important;
}

body.single-ville .cta-box h3 {
    color: white !important;
    border-bottom-color: rgba(255,255,255,0.3) !important;
}

body.single-ville .btn-call {
    display: block !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    background: white !important;
    color: #FD5A2B !important;
    font-size: 1.3rem !important;
}

body.single-ville .btn-form {
    display: block !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border: 2px solid white !important;
}

/* VILLES VOISINES */
body.single-ville .villes-voisines-section {
    background: #F9F3EB !important;
    padding: 60px 20px !important;
    margin-top: 60px !important;
}

body.single-ville .villes-voisines-section h2 {
    color: #2c3e50 !important;
    font-size: 2rem !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

body.single-ville .villes-voisines-grid {
    max-width: 1200px !important;
    margin: 0 auto 30px auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
}

body.single-ville .ville-voisine-card {
    background: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

body.single-ville .ville-voisine-card:hover {
    border-color: #FD5A2B !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(253, 90, 43, 0.2) !important;
}

body.single-ville .btn-voir-toutes {
    display: inline-block !important;
    background: #FD5A2B !important;
    color: white !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    body.single-ville .content-grid {
        grid-template-columns: 1fr !important;
    }
    
    body.single-ville .ville-header h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    body.single-ville .ville-header {
        padding: 40px 20px !important;
    }
    
    body.single-ville .ville-header h1 {
        font-size: 1.8rem !important;
    }
    
    body.single-ville .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    body.single-ville .villes-voisines-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    body.single-ville .ville-header h1 {
        font-size: 1.5rem !important;
    }
    
    body.single-ville .ville-meta-info {
        flex-direction: column !important;
    }
    
    body.single-ville .villes-voisines-grid {
        grid-template-columns: 1fr !important;
    }
}


/* FAQ SECTION */
body.single-ville .faq-section {
    background: #F9F3EB !important;
    padding: 40px !important;
    border-radius: 15px !important;
    margin-top: 50px !important;
}

body.single-ville .faq-container {
    margin-top: 30px !important;
}

body.single-ville .faq-item {
    background: white !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    border: 2px solid #F9F3EB !important;
    transition: all 0.3s ease !important;
}

body.single-ville .faq-item:hover {
    border-color: #FD5A2B !important;
}

body.single-ville .faq-item.active {
    border-color: #FD5A2B !important;
    box-shadow: 0 5px 20px rgba(253, 90, 43, 0.15) !important;
}

body.single-ville .faq-question {
    padding: 25px 60px 25px 25px !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
    color: #2c3e50 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    border-bottom: none !important;
}

body.single-ville .faq-item.active .faq-question {
    color: #FD5A2B !important;
}

body.single-ville .faq-question:hover {
    color: #FD5A2B !important;
}

body.single-ville .faq-toggle {
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 35px !important;
    height: 35px !important;
    background: #FD5A2B !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    transition: all 0.3s ease !important;
}

body.single-ville .faq-item.active .faq-toggle {
    transform: translateY(-50%) rotate(180deg) !important;
}

body.single-ville .faq-answer {
    display: none !important;
    padding: 0 25px 25px 25px !important;
}

body.single-ville .faq-item.active .faq-answer {
    display: block !important;
}

body.single-ville .faq-answer p {
    color: #555 !important;
    line-height: 1.8 !important;
    margin: 0 0 15px 0 !important;
}

body.single-ville .faq-answer p:last-child {
    margin-bottom: 0 !important;
}

body.single-ville .faq-answer ul {
    list-style: none !important;
    padding: 0 0 0 20px !important;
    margin: 15px 0 !important;
}

body.single-ville .faq-answer li {
    padding: 8px 0 !important;
    color: #555 !important;
    line-height: 1.6 !important;
    position: relative !important;
    padding-left: 25px !important;
}

body.single-ville .faq-answer li::before {
    content: "→" !important;
    color: #FD5A2B !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

body.single-ville .faq-answer li strong {
    color: #2c3e50 !important;
}


/* ============================================
   NOUVELLES SECTIONS VILLE
   ============================================ */

/* Section Processus - Fond beige */
.processus-section {
    background: #F9F3EB;
}

/* Section Prolifération */
.proliferation-section {
    background: white;
}

.facteurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.facteur-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #F9F3EB;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.facteur-card:hover {
    border-color: #FD5A2B;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(253, 90, 43, 0.2);
}

.facteur-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.facteur-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 0;
}

.facteur-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.note-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #FD5A2B;
    margin-top: 25px;
    font-size: 1.05rem;
}


/* Section Tarifs Ville */
.tarifs-ville-section {
    background: white;
}

.tarifs-ville-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tarif-ville-card {
    background: white;
    border: 2px solid #F9F3EB;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.tarif-ville-card:hover {
    border-color: #FD5A2B;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(253, 90, 43, 0.15);
}

.tarif-ville-card.featured-ville {
    background: linear-gradient(135deg, #FD5A2B 0%, #ff7a50 100%);
    border-color: #FD5A2B;
}

.tarif-ville-card.featured-ville .tarif-ville-icon,
.tarif-ville-card.featured-ville h4,
.tarif-ville-card.featured-ville .tarif-ville-surface,
.tarif-ville-card.featured-ville .tarif-ville-prix {
    color: white;
}

.tarif-ville-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.tarif-ville-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 10px 0 15px 0;
}

.tarif-ville-surface {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tarif-ville-card.featured-ville .tarif-ville-surface {
    border-bottom-color: rgba(255,255,255,0.3);
}

.tarif-ville-prix {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FD5A2B;
}

.tarif-ville-note {
    background: #F9F3EB;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #FD5A2B;
    margin-top: 30px;
}

.tarif-ville-note p {
    margin: 10px 0;
    line-height: 1.7;
}

.tarif-ville-note p:first-child {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Fix FAQ - S'assurer que les réponses sont cachées par défaut */
.faq-answer {
    display: none;
    padding: 20px;
    background: #F9F3EB;
    border-radius: 0 0 10px 10px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

/* Responsive nouvelles sections */
@media (max-width: 768px) {
    .facteurs-grid,
    .tarifs-ville-grid {
        grid-template-columns: 1fr;
    }
    
    .facteur-card,
    .tarif-ville-card {
        padding: 20px;
    }
    
    .tarif-ville-note {
        padding: 20px;
    }
}
