/* ==========================================================================
   COUVREUR MEUSE - Ville Pages Stylesheet
   Site: couvreur-meuse.com
   Description: Styles specifiques aux pages couvreur-*.html (pages de villes)
   Depends on: style.css (must be loaded first)
   ========================================================================== */


/* ==========================================================================
   1. VILLE HERO
   ========================================================================== */

.ville-hero {
    background: linear-gradient(135deg, #2C3E50 0%, #1a252f 50%, #152238 100%);
    padding: 100px 0 60px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Decorative circles */
.ville-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: rgba(196, 90, 45, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.ville-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: rgba(196, 90, 45, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

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

.ville-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.ville-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}


/* ==========================================================================
   2. VILLE INFO BADGES
   ========================================================================== */

.ville-infos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.ville-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.ville-info:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.ville-info .info-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    color: #FFFFFF;
    line-height: 1.2;
}

.ville-info .info-label {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   3. VILLE BUTTONS
   ========================================================================== */

.ville-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ville-buttons .btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.ville-buttons .btn-outline:hover {
    background: #FFFFFF;
    color: #C45A2D;
    border-color: #FFFFFF;
}


/* ==========================================================================
   4. CONTENT TEXT
   ========================================================================== */

.content-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-text h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.content-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #2C3E50;
}

.content-text p {
    margin-bottom: 1.2rem;
    color: #6B7B8D;
    font-size: 1rem;
}

.content-text ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.content-text ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: #6B7B8D;
}

.content-text ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #C45A2D, #A04425);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.content-text strong {
    color: #2C3E50;
    font-weight: 600;
}


/* ==========================================================================
   5. SERVICE CARDS (ville page variant)
   ========================================================================== */

.ville-services .services-grid {
    gap: 25px;
}

.ville-services .service-card .price {
    color: #C45A2D;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0;
    display: block;
}

.ville-services .service-card .price small {
    font-size: 0.75em;
    font-weight: 400;
    color: #6B7B8D;
}


/* ==========================================================================
   6. AVANTAGES SECTION
   ========================================================================== */

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.avantage-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E8E4DF;
    transition: all 0.3s ease;
}

.avantage-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: transparent;
    transform: translateY(-2px);
}

.avantage-number {
    font-size: 2rem;
    font-weight: 800;
    color: #C45A2D;
    opacity: 0.3;
    min-width: 60px;
    line-height: 1;
    flex-shrink: 0;
    text-align: center;
}

.avantage-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 6px;
}

.avantage-content p {
    font-size: 0.95rem;
    color: #6B7B8D;
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   7. COMMUNES LIST
   ========================================================================== */

.communes-section {
    background: #F8F6F3;
}

.communes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

.communes-list a {
    display: inline-block;
    padding: 8px 16px;
    background: #F8F6F3;
    border: 1px solid #E8E4DF;
    border-radius: 25px;
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.communes-list a:hover {
    background: #C45A2D;
    color: #FFFFFF;
    border-color: #C45A2D;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(196, 90, 45, 0.25);
}

.communes-list a.current-ville {
    background: #2C3E50;
    color: #FFFFFF;
    border-color: #2C3E50;
    cursor: default;
    pointer-events: none;
}


/* ==========================================================================
   8. FAQ (ville page specific overrides)
   ========================================================================== */

.ville-faq .faq-list {
    max-width: 100%;
}

.ville-faq .faq-item {
    background: #FFFFFF;
    border: 1px solid #E8E4DF;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    border-bottom: 1px solid #E8E4DF;
}

.ville-faq .faq-item:first-child {
    border-top: 1px solid #E8E4DF;
}

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

.ville-faq .faq-answer-inner {
    padding: 0 25px 20px;
}


/* ==========================================================================
   9. VILLE CTA BANNER
   ========================================================================== */

.ville-cta {
    background: linear-gradient(135deg, #C45A2D 0%, #A04425 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.ville-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.ville-cta h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.ville-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.ville-cta .btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.ville-cta .btn-outline:hover {
    background: #FFFFFF;
    color: #C45A2D;
}


/* ==========================================================================
   10. VILLE BREADCRUMB ADJUSTMENT
   ========================================================================== */

.ville-breadcrumb {
    background: #FFFFFF;
    border-bottom: 1px solid #E8E4DF;
}

.ville-breadcrumb .breadcrumb {
    padding: 12px 0;
}


/* ==========================================================================
   11. VILLE FORM SECTION
   ========================================================================== */

.ville-form-section {
    background: #F8F6F3;
}

.ville-form-section .form-container {
    border: 1px solid #E8E4DF;
}

.ville-form-section .section-header {
    margin-bottom: 30px;
}


/* ==========================================================================
   12. VILLE SERVICES INTRO
   ========================================================================== */

.ville-services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.ville-services-intro p {
    color: #6B7B8D;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ==========================================================================
   ALIASES - Bridge between HTML class variants and CSS definitions
   ============================================================ */

/* Ville subtitle - alias for .subtitle */
.ville-hero .ville-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Ville stats - alias for .ville-infos */
.ville-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.ville-stats .stat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.ville-stats .stat:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.ville-stats .stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    color: #FFFFFF;
    line-height: 1.2;
}

.ville-stats .stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.8);
}

/* Ville CTA in hero context - prevent collision with section-level .ville-cta */
.ville-hero .ville-cta {
    background: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: static;
    overflow: visible;
}

.ville-hero .ville-cta::before {
    display: none;
}

.ville-hero .ville-cta .btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.ville-hero .ville-cta .btn-outline:hover {
    background: #FFFFFF;
    color: #C45A2D;
    border-color: #FFFFFF;
}

/* Avantage items without wrapper - direct styling */
.avantage-item h3 {
    font-size: 1.1rem;
    color: var(--secondary, #2C3E50);
    margin-bottom: 8px;
}

.avantage-item p {
    color: var(--light-text, #6B7B8D);
    line-height: 1.6;
    font-size: 0.95rem;
}


/* ==========================================================================
   13. RESPONSIVE - TABLET (max-width: 992px)
   ========================================================================== */

@media (max-width: 992px) {
    .ville-hero h1 {
        font-size: 2.2rem;
    }

    .avantages-grid {
        gap: 20px;
    }

    .avantage-item {
        padding: 20px;
    }
}


/* ==========================================================================
   14. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Hero */
    .ville-hero {
        padding: 80px 0 40px;
    }

    .ville-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .ville-hero .subtitle {
        font-size: 1rem;
    }

    /* Info badges */
    .ville-infos,
    .ville-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .ville-info,
    .ville-stats .stat {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }

    .ville-info .info-value,
    .ville-stats .stat .stat-value {
        font-size: 1.3rem;
    }

    /* Buttons */
    .ville-buttons,
    .ville-hero .ville-cta {
        flex-direction: column;
        align-items: center;
    }

    .ville-buttons .btn,
    .ville-hero .ville-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Avantages */
    .avantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .avantage-item {
        padding: 18px;
        gap: 15px;
    }

    .avantage-number {
        font-size: 1.6rem;
        min-width: 45px;
    }

    /* Content text */
    .content-text {
        line-height: 1.7;
    }

    /* Communes */
    .communes-list {
        justify-content: center;
        gap: 8px;
    }

    .communes-list a {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    /* FAQ */
    .ville-faq .faq-question {
        padding: 16px 18px;
    }

    .ville-faq .faq-answer-inner {
        padding: 0 18px 16px;
    }

    /* CTA */
    .ville-cta {
        padding: 40px 0;
    }

    .ville-cta h2 {
        font-size: 1.5rem;
    }

    .ville-cta p {
        font-size: 1rem;
    }

    /* Services */
    .ville-services .service-card .price {
        font-size: 1.15rem;
    }
}


/* ==========================================================================
   15. RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .ville-hero {
        padding: 65px 0 35px;
    }

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

    .ville-hero .subtitle {
        font-size: 0.9rem;
    }

    .ville-info,
    .ville-stats .stat {
        max-width: 100%;
    }

    .avantage-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .avantage-number {
        min-width: auto;
    }

    .communes-list a {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}
