/*
  zones.css - Styles des pages zones géographiques
  Conciergerie Nantaise — palette verte (#016a53) identique à la page zones principale
  Version: 2.0
*/

/* ===================================
   VARIABLES LOCALES VERTES
   =================================== */
.zone-page {
    --z-green:        #016a53;
    --z-green-dark:   #014d3c;
    --z-green-light:  #01856a;
    --z-green-bg:     #e8f5f0;
    --z-green-border: #e0f2ec;
    --z-green-faint:  #f0f7f5;
    --z-shadow:       rgba(1, 106, 83, 0.08);
    --z-shadow-hover: rgba(1, 106, 83, 0.18);
    --z-text:         #1a1a2e;
    --z-text-light:   #555;
    --z-text-muted:   #999;
}

/* ===================================
   GRID UTILITAIRE (remplacement Bootstrap)
   =================================== */
.zone-page .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.zone-page .col-md-3 { flex: 1 1 calc(25% - 1.5rem); min-width: 180px; }
.zone-page .col-md-4 { flex: 1 1 calc(33.333% - 1.5rem); min-width: 220px; }
.zone-page .col-md-6 { flex: 1 1 calc(50% - 1.5rem); min-width: 260px; }

/* ===================================
   BOUTONS MANQUANTS
   =================================== */
.zone-page .btn-outline-primary {
    background: transparent;
    color: var(--z-green);
    border: 2px solid var(--z-green);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, color 0.2s;
}
.zone-page .btn-outline-primary:hover {
    background: var(--z-green);
    color: #fff;
}

.zone-page .btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, color 0.2s;
}
.zone-page .btn-outline-light:hover {
    background: #fff;
    color: var(--z-green);
}

.zone-page .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   ZONE PAGE - STRUCTURE
   =================================== */
.zone-page section {
    padding: 4rem 0;
}

.zone-page h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--z-text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.zone-page h2 i {
    color: var(--z-green);
    font-size: 1.6rem;
}

/* ===================================
   HERO ZONE
   =================================== */
.zone-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #014d3c 0%, #016a53 50%, #01856a 100%);
    padding: 5rem 0 4rem;
}

.zone-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.zone-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1,77,60,0.80) 0%, rgba(1,106,83,0.65) 100%);
    z-index: 1;
}

.zone-hero .container {
    position: relative;
    z-index: 2;
}

.zone-hero-content {
    max-width: 700px;
    color: #fff;
}

.zone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.zone-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.zone-hero-content h1 .zone-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: #a8f0d8;
    display: block;
    margin-top: 0.4rem;
}

.zone-hero-description {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 580px;
}

.zone-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   STATS ZONE
   =================================== */
.zone-stats {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--z-green-border);
    box-shadow: 0 2px 12px var(--z-shadow);
}

.zone-stats .row {
    justify-content: center;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--z-green-border);
    background: var(--z-green-faint);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--z-shadow-hover);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--z-green);
    font-family: var(--font-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--z-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ===================================
   QUARTIERS COUVERTS
   =================================== */
.zone-quartiers {
    background: var(--z-green-bg);
}

.quartiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.quartier-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--z-green-border);
    font-size: 0.95rem;
    color: var(--z-text);
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quartier-item:hover {
    border-color: var(--z-green);
    box-shadow: 0 2px 8px var(--z-shadow);
}

.quartier-item i {
    color: var(--z-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===================================
   AVANTAGES ZONE
   =================================== */
.zone-avantages {
    background: #fff;
}

.avantage-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--z-green-faint);
    border-left: 3px solid var(--z-green);
    margin-bottom: 0.25rem;
}

.avantage-item i {
    color: var(--z-green);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.avantage-item span {
    font-size: 0.95rem;
    color: var(--z-text);
    line-height: 1.5;
}

/* ===================================
   SERVICES ZONE
   =================================== */
.zone-services {
    background: var(--z-green-bg);
}

.zone-services .service-card-price {
    font-size: 0.9rem;
    color: var(--z-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.zone-services .btn-outline-primary {
    color: var(--z-green);
    border-color: var(--z-green);
}
.zone-services .btn-outline-primary:hover {
    background: var(--z-green);
    color: #fff;
}

/* ===================================
   TÉMOIGNAGES ZONE
   =================================== */
.zone-testimonials {
    background: #fff;
}

.testimonial-card {
    background: var(--z-green-faint);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--z-green-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px var(--z-shadow-hover);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.97rem;
    color: var(--z-text);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    font-size: 0.875rem;
    color: var(--z-text-muted);
    border-top: 1px solid var(--z-green-faint);
    padding-top: 0.75rem;
}

.testimonial-author strong {
    color: var(--z-text);
}

/* ===================================
   FAQ ZONE
   =================================== */
.zone-faq {
    background: var(--z-green-bg);
}

.faq-zone {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--z-green-border);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--z-shadow);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--z-text);
    padding: 1.25rem 1.5rem;
    margin: 0;
    cursor: default;
    border-left: 4px solid var(--z-green);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--z-green-border);
}

.faq-answer p {
    color: var(--z-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    padding-left: 1.25rem;
    color: var(--z-text);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===================================
   CTA FINAL ZONE
   =================================== */
.zone-cta-final {
    background: linear-gradient(135deg, #014d3c 0%, #016a53 100%);
    color: #fff;
    text-align: center;
}

.zone-cta-final h2 {
    color: #fff;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.zone-cta-final h2 i {
    color: #a8f0d8;
}

.zone-cta-final .lead {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.zone-cta-final .btn-light {
    background: #fff;
    color: var(--z-green);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.zone-cta-final .btn-light:hover {
    background: #e8f5f0;
    color: var(--z-green);
    transform: translateY(-2px);
}

.zone-cta-final .btn-outline-light {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* ===================================
   AUTRES ZONES (SEO internal linking)
   =================================== */
.zone-autres {
    background: #fff;
}

.autres-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.autre-zone-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--z-green-faint);
    border: 1px solid var(--z-green-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--z-text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.autre-zone-card:hover {
    border-color: var(--z-green);
    box-shadow: 0 4px 16px var(--z-shadow-hover);
    transform: translateY(-2px);
    color: var(--z-text);
}

.autre-zone-card > i:first-child {
    color: var(--z-green);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.autre-zone-card div {
    flex: 1;
    min-width: 0;
}

.autre-zone-card div strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--z-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autre-zone-card div span {
    display: block;
    font-size: 0.8rem;
    color: var(--z-text-muted);
    margin-top: 0.1rem;
}

.autre-zone-card > i:last-child {
    color: var(--z-green);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.autre-zone-card:hover > i:last-child {
    transform: translateX(3px);
}

/* ===================================
   RESPONSIVE (zone detail pages)
   =================================== */
@media (max-width: 768px) {
    .zone-page .col-md-3,
    .zone-page .col-md-4,
    .zone-page .col-md-6 {
        flex: 1 1 100%;
    }

    .zone-hero {
        min-height: 380px;
        padding: 4rem 0 3rem;
    }

    .zone-hero-cta {
        flex-direction: column;
    }

    .zone-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn,
    .cta-buttons .btn-light {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .quartiers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .zone-page section {
        padding: 2.5rem 0;
    }

    .autres-zones-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ZONES INDEX PAGE (hub /zones/)
   =================================== */
.zones-hero {
    background: linear-gradient(135deg, #014d3c 0%, #016a53 50%, #01856a 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zones-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="35" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>') repeat;
    background-size: 80px 80px;
}

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

.zones-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.zones-hero h1 span { color: #a8f0d8; }

.zones-hero p {
    font-size: 1.1rem;
    opacity: .9;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.zones-hero-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: .85rem;
    opacity: .75;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zones-hero-breadcrumb a { color: white; text-decoration: none; }
.zones-hero-breadcrumb a:hover { text-decoration: underline; }

.zones-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Zones index - Intro */
.zones-intro {
    padding: 60px 0 20px;
    text-align: center;
}

.zones-intro h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #1a1a2e;
    margin-bottom: 14px;
    font-weight: 700;
}

.zones-intro p {
    font-size: 1rem;
    color: #555;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Zones index - Grid */
.zones-section {
    padding: 40px 0 70px;
}

.zones-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #016a53;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zones-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0f2ec;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.zone-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(1,106,83,.08);
    border: 1px solid #e8f5f0;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(1,106,83,.15);
    color: inherit;
}

.zone-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #014d3c, #01856a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.zone-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zone-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zone-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.zone-card-desc {
    font-size: .88rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zone-card-stats {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f7f5;
}

.zone-stat {
    text-align: center;
    flex: 1;
}

.zone-stat-val {
    font-size: .95rem;
    font-weight: 800;
    color: #016a53;
    display: block;
}

.zone-stat-lbl {
    font-size: .7rem;
    color: #999;
    display: block;
    line-height: 1.3;
}

.zone-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f7f5;
    font-size: .85rem;
    font-weight: 600;
    color: #016a53;
}

.zone-card-cta i { transition: transform .2s; }
.zone-card:hover .zone-card-cta i { transform: translateX(4px); }

/* Zones index - CTA bas */
.zones-cta {
    background: linear-gradient(135deg, #014d3c 0%, #016a53 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.zones-cta h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.zones-cta p {
    opacity: .9;
    margin-bottom: 30px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.zones-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: #016a53;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
}

.btn-white:hover { background: #e8f5f0; color: #016a53; transform: translateY(-2px); }

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,.6);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
}

.btn-outline-white:hover { background: rgba(255,255,255,.15); color: white; border-color: white; }

/* Zones index - Responsive */
@media (max-width: 768px) {
    .zones-hero { padding: 60px 0 45px; }
    .zones-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .zone-card-img { height: 130px; }
}

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