/* ==========================================================================
   VILLE.CSS — Styles complets des pages villes (v2 refonte)
   Charte : clair, sobre, mobile-first, Core Web Vitals friendly
   ========================================================================== */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #dbeafe;
    --accent: #f59e0b;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --success: #16a34a;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 4px 16px rgba(15,23,42,.08);
    --shadow-lg: 0 10px 40px rgba(15,23,42,.12);
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* -------- Header / Nav -------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
}
.site-header .brand {
    font-weight: 800; font-size: 1.15rem; color: var(--ink);
}
.site-header .brand .logo { margin-right: 6px; }
.site-header nav a {
    color: var(--ink-soft); margin-left: 18px; font-size: .95rem; font-weight: 500;
}
.site-header .cta-phone {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--success); color: #fff; padding: 8px 14px; border-radius: 999px;
    font-weight: 700; font-size: .95rem;
}
.site-header .cta-phone:hover { text-decoration: none; background: #15803d; }

/* -------- Breadcrumbs -------- */
.breadcrumbs {
    font-size: .88rem; color: var(--muted); padding: 14px 0 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; }

/* -------- Hero -------- */
.hero {
    padding: 36px 0 48px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.hero h1 {
    font-size: clamp(1.7rem, 1rem + 2.5vw, 2.6rem);
    line-height: 1.15;
    margin: 8px 0 14px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.02em;
}
.hero p.lead {
    font-size: 1.1rem; color: var(--ink-soft);
    max-width: 720px; margin-bottom: 22px;
}
.hero .cta-row {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
}
.hero .badge-rating {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fef3c7; color: #92400e; padding: 6px 12px; border-radius: 999px;
    font-size: .88rem; font-weight: 600;
}
.hero .meta-local {
    display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted);
    font-size: .92rem; margin-top: 12px;
}

/* -------- Boutons -------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: var(--radius);
    font-weight: 700; font-size: 1rem;
    border: 0; cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #d97706; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); padding: 11px 20px; }
.btn-outline:hover { background: var(--brand-soft); text-decoration: none; }
.btn-block { width: 100%; }

/* -------- Sections -------- */
section { padding: 44px 0; }
section h2 {
    font-size: clamp(1.4rem, .9rem + 1.5vw, 1.9rem);
    margin: 0 0 10px; letter-spacing: -.01em;
    font-weight: 800; color: var(--ink);
}
section .lead { color: var(--ink-soft); max-width: 780px; margin-bottom: 24px; }

/* -------- Grid cartes génériques -------- */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--ink); }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* Services liste à puces visuelles */
.service-list {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0; list-style: none;
}
.service-list li {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--bg-soft); padding: 14px 16px; border-radius: 8px;
    border-left: 3px solid var(--brand);
}
.service-list li::before { content: "✓"; color: var(--brand); font-weight: 800; }

/* Quartiers badges */
.quartiers-list {
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.quartiers-list li {
    background: var(--brand-soft); color: var(--brand-dark);
    padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}

/* Tarifs */
.tarifs-table {
    width: 100%; border-collapse: collapse; background: var(--bg);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.tarifs-table th, .tarifs-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.tarifs-table th { background: var(--bg-soft); font-weight: 700; font-size: .95rem; color: var(--ink); }
.tarifs-table td.prix { font-weight: 700; color: var(--brand); white-space: nowrap; }
.tarifs-note { color: var(--muted); font-size: .88rem; margin-top: 10px; }

/* FAQ accordion */
.faq-item {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
    padding: 16px 18px; cursor: pointer; font-weight: 700; color: var(--ink);
    list-style: none; position: relative; padding-right: 42px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--brand); transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 18px 16px; color: var(--ink-soft); margin: 0; }

/* Témoignages */
.testimonials { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--accent); font-size: .95rem; margin-bottom: 8px; letter-spacing: 1px; }
.testimonial .comment { color: var(--ink); font-style: italic; margin-bottom: 12px; }
.testimonial .author { font-weight: 700; color: var(--ink); font-size: .95rem; }
.testimonial .meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* Entreprises locales — version enrichie */
.businesses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.business {
    display: flex; gap: 14px; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.business:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.business .info { flex: 1; min-width: 0; }
.business .business-head {
    display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px;
}
.business .rank {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
    background: var(--brand-soft); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .88rem;
}
.business .name { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.business .type-badge {
    display: inline-block; margin-top: 4px;
    background: #f1f5f9; color: var(--ink-soft);
    padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
}
.business .rating {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 10px; font-size: .95rem;
}
.business .rating .stars { color: var(--accent); letter-spacing: 1px; }
.business .rating strong { color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.business .rating .muted { color: var(--muted); font-size: .85rem; }
.business .row {
    display: flex; gap: 6px; align-items: flex-start;
    font-size: .9rem; color: var(--ink-soft);
    margin-top: 6px; line-height: 1.35;
}
.business .row .icon { flex-shrink: 0; color: var(--muted); }
.business .row a { color: var(--brand); }
.business .row.links {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
    padding-top: 10px; border-top: 1px dashed var(--line);
}
.business .row.links a {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--bg-soft); padding: 5px 10px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; text-decoration: none;
}
.business .row.links a:hover { background: var(--brand-soft); }
.business .badge-ok {
    display: inline-flex; align-items: center; gap: 4px;
    background: #dcfce7; color: #166534;
    padding: 5px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 700;
}

/* Maillage interne */
.maillage { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.maillage h3 { margin-top: 0; }
.maillage .villes-proches-list {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none;
}
.maillage .villes-proches-list li a {
    background: var(--bg); border: 1px solid var(--line); padding: 8px 14px;
    border-radius: 999px; display: inline-block; font-size: .92rem; font-weight: 600;
}
.maillage .villes-proches-list li a:hover {
    background: var(--brand); color: #fff; text-decoration: none; border-color: var(--brand);
}

/* Guide de choix */
.guide-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.guide-col h3 { margin-top: 0; color: var(--ink); }
.guide-col ul { list-style: none; padding: 0; margin: 0; }
.guide-col li { padding: 10px 0; border-top: 1px solid var(--line); }
.guide-col li:first-child { border-top: 0; }
.guide-col li strong { display: block; color: var(--ink); margin-bottom: 4px; }
.guide-col li span { color: var(--ink-soft); font-size: .92rem; }

/* Missions longue traîne */
.missions-list {
    display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 0; margin: 0; list-style: none;
}
.missions-list li {
    padding: 10px 14px; background: var(--bg-soft); border-radius: 6px;
    font-size: .92rem; color: var(--ink-soft);
}

/* Formulaire lead (inline) */
.lead-form-wrap {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: var(--radius); padding: 32px; color: #fff;
}
.lead-form-wrap h2 { color: #fff; margin-top: 0; }
.lead-form-wrap .lead { color: #dbeafe; }
.lead-form {
    display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 20px;
}
.lead-form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .lead-form { grid-template-columns: 1fr; } }
.lead-form label { display: block; font-size: .88rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%; padding: 11px 13px; border: 0; border-radius: 8px; font-size: 1rem;
    background: #fff; color: var(--ink);
}
.lead-form textarea { min-height: 90px; resize: vertical; }
.lead-form .honeypot { position: absolute; left: -9999px; }
.lead-form button[type="submit"] {
    background: var(--accent); color: #000; font-weight: 800;
    padding: 14px 22px; border-radius: 8px; border: 0; cursor: pointer;
    font-size: 1.05rem;
}
.lead-form button[type="submit"]:hover { background: #d97706; }
.lead-form .form-consent { color: #bfdbfe; font-size: .82rem; }
.lead-form .form-msg { font-weight: 600; }
.lead-form .form-msg.error { color: #fecaca; }
.lead-form .form-msg.success { color: #bbf7d0; }

/* Sticky mobile phone CTA */
.sticky-phone {
    position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 40;
    display: none;
    background: var(--success); color: #fff; padding: 14px; border-radius: 999px;
    font-weight: 800; text-align: center; box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) { .sticky-phone { display: block; } }
.sticky-phone:hover { color: #fff; text-decoration: none; background: #15803d; }

/* Infos locales */
.infos-locales {
    background: #fffbeb; border-left: 4px solid var(--accent);
    padding: 20px; border-radius: var(--radius);
}
.infos-locales h3 { margin-top: 0; color: var(--ink); }
.infos-locales p { color: var(--ink-soft); margin: 0; }

/* Footer */
.site-footer {
    margin-top: 48px; background: var(--ink); color: #cbd5e1;
    padding: 36px 0 20px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer .bottom {
    margin-top: 30px; padding-top: 20px; border-top: 1px solid #334155;
    text-align: center; color: #94a3b8; font-size: .88rem;
}

/* Galerie d'images SEO */
.gallery-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 20px 0;
}
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-image {
    border-radius: var(--radius); overflow: hidden;
    margin-top: 18px; max-width: 540px;
    box-shadow: var(--shadow);
}
.hero-image img { width: 100%; height: auto; display: block; }
.bottom-banner {
    margin: 28px 0 0; border-radius: var(--radius); overflow: hidden;
    max-height: 280px; box-shadow: var(--shadow);
}
.bottom-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Utilitaires */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--muted); }

@media (max-width: 600px) {
    .site-header nav a:not(.cta-phone) { display: none; }
    .site-header .brand { font-size: 1rem; }
    section { padding: 32px 0; }
}
