/* ==========================================================================
   VILLE.CSS - Styles spécifiques aux pages villes (couvreur-[ville].html)
   Site : couvreur-aube.com
   431 pages villes - Couvreur dans l'Aube (10)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (inherited from style.css, redeclared for standalone use)
   -------------------------------------------------------------------------- */
:root {
    --primary: #0056B3;
    --primary-dark: #003d80;
    --primary-light: #e8f0fe;
    --danger: #DC3545;
    --danger-dark: #a71d2a;
    --success: #28A745;
    --success-dark: #1e7e34;
    --warning: #FFC107;
    --warning-dark: #d39e00;
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --light: #f8f9fa;
    --light-secondary: #e9ecef;
    --white: #ffffff;
    --text: #333333;
    --text-light: #6c757d;
    --border: #dee2e6;
    --radius: 12px;
    --ville-radius-sm: 8px;
    --ville-radius-lg: 20px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --ville-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ville-transition-fast: all 0.2s ease;
}


/* ==========================================================================
   1. BREADCRUMB - Fil d'Ariane spécifique pages villes
   ========================================================================== */

.ville-breadcrumb {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 0.875rem;
}

.ville-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ville-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.ville-breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.ville-breadcrumb li + li::before {
    content: "\203A";
    margin: 0 10px;
    font-size: 1.1em;
    color: var(--text-light);
    font-weight: 300;
}

.ville-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--ville-transition-fast);
}

.ville-breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.ville-breadcrumb li:last-child {
    color: var(--text);
    font-weight: 600;
}


/* ==========================================================================
   2. VILLE HERO - Section principale avec gradient + glassmorphism
   ========================================================================== */

.ville-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 40%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0 70px;
    overflow: hidden;
    text-align: center;
}

/* Decorative circles */
.ville-hero::before,
.ville-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ville-hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: heroCirclePulse 8s ease-in-out infinite;
}

.ville-hero::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -80px;
    animation: heroCirclePulse 10s ease-in-out infinite reverse;
}

@keyframes heroCirclePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Additional decorative circle element (via extra span in HTML) */
.ville-hero .circle-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    pointer-events: none;
}

.ville-hero .circle-decoration::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ville-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ville-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ville-hero h1 span {
    color: var(--warning);
}

.ville-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    font-weight: 300;
}

/* Glassmorphism card inside hero */
.ville-hero .hero-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ville-radius-lg);
    padding: 30px 40px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Hero CTA buttons */
.ville-hero .hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ville-hero .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8b923, #d4a017);
    color: var(--dark);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(232, 185, 35, 0.4);
}

.ville-hero .btn-hero-primary:hover {
    background: linear-gradient(135deg, #f0c530, #e8b923);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 185, 35, 0.55);
}

.ville-hero .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid rgba(220, 53, 69, 0.6);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.ville-hero .btn-hero-secondary:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.5);
}


/* ==========================================================================
   3. VILLE INFOS - Stats/info badges under hero
   ========================================================================== */

.ville-infos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    padding: 30px 0;
    max-width: 900px;
    margin: 0 auto;
}

.ville-info {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: center;
    flex: 1;
    min-width: 160px;
    transition: var(--transition);
}

.ville-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.ville-info .info-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
}

.ville-info .info-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--warning);
    display: block;
    line-height: 1.2;
}

.ville-info .info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   4. CONTENT SECTIONS - General ville page sections
   ========================================================================== */

.ville-section {
    padding: 70px 0;
}

.ville-section:nth-child(even) {
    background: var(--light);
}

.ville-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ville-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.ville-section .section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 45px;
    line-height: 1.6;
}

/* Decorative underline for section titles */
.ville-section .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
    margin: 14px auto 0;
}


/* ==========================================================================
   5. CONTENT TEXT - Introduction / Description textuelle
   ========================================================================== */

.content-text {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.content-text p {
    margin-bottom: 18px;
}

.content-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 35px 0 15px;
}

.content-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 25px 0 12px;
}

.content-text strong {
    color: var(--dark);
}

.content-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-text ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.content-text ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--success), var(--primary));
    border-radius: 50%;
    line-height: 1;
}


/* ==========================================================================
   6. SERVICE CARDS - Grille de services avec prix
   ========================================================================== */

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

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ville-shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--ville-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Prix mis en valeur */
.service-card .price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 86, 179, 0.08));
    border: 1px solid rgba(0, 86, 179, 0.15);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.service-card .price .price-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-right: 4px;
}

.service-card .price .price-note {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.service-card:hover .price {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.service-card:hover .price .price-label,
.service-card:hover .price .price-note {
    color: rgba(255, 255, 255, 0.85);
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 14px;
    transition: var(--ville-transition-fast);
}

.service-card .card-link::after {
    content: "\2192";
    transition: var(--ville-transition-fast);
}

.service-card .card-link:hover {
    color: var(--primary-dark);
}

.service-card .card-link:hover::after {
    transform: translateX(4px);
}


/* ==========================================================================
   7. AVANTAGES - Section avantages numerotes
   ========================================================================== */

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

.avantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.avantage-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 86, 179, 0.2);
}

.avantage-item .avantage-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.avantage-item .avantage-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.avantage-item .avantage-content p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   8. FAQ - Accordion avec animation max-height
   ========================================================================== */

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 86, 179, 0.2);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    transition: var(--ville-transition-fast);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    margin-left: 16px;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-question .faq-icon::before {
    content: "+";
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-question .faq-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 28px 24px;
}

.faq-answer p {
    font-size: 0.97rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.faq-answer ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-answer ul li::before {
    content: "\2022";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}


/* ==========================================================================
   9. COMMUNES VOISINES - Liens vers autres villes du canton
   ========================================================================== */

.communes-section {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.communes-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.communes-section .section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.communes-section .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
    margin: 14px auto 0;
}

.communes-section .section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

.communes-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.communes-list a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.communes-list a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.communes-list a:active {
    transform: translateY(0);
}

/* Commune active / current pill */
.communes-list a.active,
.communes-list a[aria-current="page"] {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.2);
}

/* Canton link inside communes section */
.communes-canton-link {
    text-align: center;
    margin-top: 28px;
}

.communes-canton-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: var(--transition);
}

.communes-canton-link a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}


/* ==========================================================================
   10. SCHEMA.ORG - Visual elements for structured data
   ========================================================================== */

/* Rating stars display */
.schema-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
}

.schema-rating .stars {
    color: var(--warning);
    font-size: 1rem;
    letter-spacing: 1px;
}

.schema-rating .rating-value {
    font-weight: 700;
    color: var(--dark);
}

.schema-rating .rating-count {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Area served badge */
.schema-area {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.schema-area .area-icon {
    color: var(--danger);
}

/* Business hours inline */
.schema-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
}

.schema-hours .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Visually hidden but accessible for screen readers and bots */
.schema-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   11. VILLE FORM SECTION - Contact form specific to ville pages
   ========================================================================== */

.ville-form-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.ville-form-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.ville-form-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ville-form-section .section-title {
    color: var(--white);
}

.ville-form-section .section-title::after {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

.ville-form-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.ville-form-wrapper {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ville-radius-lg);
    padding: 40px;
}

/* --- Form submit button --- */
.ville-form-wrapper .btn-primary,
.ville-form-wrapper button[type="submit"] {
    display: block;
    width: 100%;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.35);
    margin-top: 8px;
}

.ville-form-wrapper .btn-primary:hover,
.ville-form-wrapper button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), #003d80);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 86, 179, 0.5);
}

.ville-form-wrapper .btn-primary:active,
.ville-form-wrapper button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(0, 86, 179, 0.3);
}


/* ==========================================================================
   12. URGENCE BANNER - Emergency CTA for ville pages
   ========================================================================== */

.ville-urgence {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    padding: 40px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.ville-urgence::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    pointer-events: none;
}

.ville-urgence .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ville-urgence h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.ville-urgence p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.ville-urgence .urgence-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--danger);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ville-urgence .urgence-phone:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   13. TRUST INDICATORS - Badges de confiance dans hero ou intro
   ========================================================================== */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.trust-badge .badge-icon {
    font-size: 1rem;
}

/* Light background variant */
.trust-badges--light .trust-badge {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: none;
}


/* ==========================================================================
   14. INTERVENTION MAP / ZONE INDICATOR
   ========================================================================== */

.zone-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(40, 167, 69, 0.06);
    border: 1px solid rgba(40, 167, 69, 0.15);
    border-radius: var(--radius);
    margin: 20px auto;
    max-width: 500px;
    font-size: 0.95rem;
}

.zone-indicator .zone-icon {
    font-size: 1.3rem;
}

.zone-indicator .zone-text {
    color: var(--text);
}

.zone-indicator .zone-text strong {
    color: var(--success);
}


/* ==========================================================================
   15. RESPONSIVE - Breakpoint 768px (Tablet / Mobile)
   ========================================================================== */

@media (max-width: 768px) {

    /* --- Breadcrumb --- */
    .ville-breadcrumb {
        padding: 10px 0;
        font-size: 0.8rem;
    }

    .ville-breadcrumb li + li::before {
        margin: 0 6px;
    }

    /* --- Hero --- */
    .ville-hero {
        padding: 50px 0 45px;
    }

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

    .ville-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .ville-hero .hero-glass {
        padding: 20px 24px;
        margin-bottom: 20px;
    }

    .ville-hero::before {
        width: 300px;
        height: 300px;
        top: -120px;
        right: -80px;
    }

    .ville-hero::after {
        width: 200px;
        height: 200px;
        bottom: -80px;
        left: -50px;
    }

    .ville-hero .circle-decoration {
        display: none;
    }

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

    .ville-hero .btn-hero-primary,
    .ville-hero .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 24px;
    }

    /* --- Stats / Info badges (column layout) --- */
    .ville-infos {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    .ville-info {
        min-width: auto;
        padding: 16px 20px;
        flex-direction: row;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .ville-info .info-icon {
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    .ville-info .info-value {
        font-size: 1.2rem;
    }

    .ville-info .info-label {
        font-size: 0.8rem;
    }

    /* --- Sections --- */
    .ville-section {
        padding: 45px 0;
    }

    .ville-section .section-title {
        font-size: 1.6rem;
    }

    .ville-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* --- Content text --- */
    .content-text {
        font-size: 0.97rem;
    }

    .content-text h2 {
        font-size: 1.35rem;
    }

    .content-text h3 {
        font-size: 1.15rem;
    }

    /* --- Service cards: single column --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px;
    }

    .service-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 14px;
    }

    .service-card .price {
        font-size: 1rem;
        padding: 7px 16px;
    }

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

    .avantage-item {
        padding: 22px;
        gap: 16px;
    }

    .avantage-item .avantage-number {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* --- FAQ: reduced padding --- */
    .faq-question {
        padding: 18px 20px;
        font-size: 0.97rem;
    }

    .faq-question .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        margin-left: 12px;
    }

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

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-answer p {
        font-size: 0.93rem;
    }

    /* --- Communes --- */
    .communes-section {
        padding: 45px 0;
    }

    .communes-section .section-title {
        font-size: 1.5rem;
    }

    .communes-list {
        gap: 8px;
    }

    .communes-list a {
        padding: 8px 16px;
        font-size: 0.83rem;
    }

    /* --- Form section --- */
    .ville-form-section {
        padding: 45px 0;
    }

    .ville-form-wrapper {
        padding: 24px 20px;
    }

    /* --- Urgence banner --- */
    .ville-urgence {
        padding: 30px 0;
    }

    .ville-urgence h2 {
        font-size: 1.4rem;
    }

    .ville-urgence p {
        font-size: 0.95rem;
    }

    .ville-urgence .urgence-phone {
        font-size: 1.1rem;
        padding: 14px 28px;
    }

    /* --- Trust badges --- */
    .trust-badges {
        gap: 10px;
    }

    .trust-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* --- Schema elements --- */
    .schema-rating {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .schema-hours {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* --- Zone indicator --- */
    .zone-indicator {
        padding: 12px 18px;
        font-size: 0.9rem;
        gap: 8px;
    }
}


/* ==========================================================================
   16. ANIMATIONS & UTILITIES
   ========================================================================== */

/* Fade in on scroll (to be triggered via JS IntersectionObserver) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 0.3s; }

/* Print styles */
@media print {
    .ville-hero {
        background: var(--light) !important;
        color: var(--dark) !important;
        padding: 20px 0;
    }

    .ville-hero::before,
    .ville-hero::after,
    .ville-hero .circle-decoration {
        display: none;
    }

    .ville-hero h1 {
        text-shadow: none;
        color: var(--dark);
    }

    .ville-hero h1 span {
        color: var(--primary);
    }

    .ville-info {
        backdrop-filter: none;
        background: var(--light);
        border-color: var(--border);
    }

    .ville-urgence {
        background: var(--light) !important;
        color: var(--dark) !important;
    }

    .communes-list a {
        border: 1px solid var(--text-light);
        color: var(--text);
    }

    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
