/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
    padding: 16px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 72px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #475569;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #1a5276; }
.breadcrumb .current {
    color: #0f2b4a;
    font-weight: 600;
}
.breadcrumb .sep { color: #94a3b8; }

/* ========== SECTIONS LAYOUT ========== */
.section-light {
    padding: 60px 0;
    background: #ffffff !important;
    color: #1e293b;
}
.section-light h2 { color: #0f2b4a; }
.section-light p { color: #475569; }

.section-dark {
    padding: 60px 0;
    background: #0f2b4a !important;
    color: #e0e0e0;
}
.section-dark h2 { color: #ffffff !important; }
.section-dark p { color: #b0bec5; }

.section-primary {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a5276 0%, #0f2b4a 100%) !important;
    color: #e0e0e0;
}
.section-primary h2 { color: #ffffff !important; }
.section-primary p { color: #b0bec5; }

.section-alt {
    padding: 60px 0;
    background: #f0f4f8 !important;
    color: #1e293b;
}
.section-alt h2 { color: #0f2b4a; }
.section-alt p { color: #475569; }
.section-alt .region-group h3 { color: #1a5276; border-bottom-color: #d0d5dd; }
.section-alt .ville-card {
    background: #ffffff;
    color: #0f2b4a;
    border: 1px solid #d0d5dd;
}
.section-alt .ville-card:hover {
    background: #e8f4fd;
    border-color: #1a5276;
    transform: translateY(-1px);
}
.section-alt .ville-card .ville-name { color: #0f2b4a; font-weight: 600; }
.section-alt .ville-card .ville-cp { color: #64748b; }

.text-center { text-align: center; }

/* ========== HERO BUTTON ========== */
.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a5276 0%, #1abc9c 50%, #27ae60 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(26,188,156,0.3);
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,188,156,0.4);
    color: #fff !important;
}

/* ========== HERO STATS ========== */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}
.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.hero-stats .stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f2b4a;
}
.hero-stats .stat span {
    font-size: 0.82rem;
    color: #475569;
}

/* ========== TABLES (prix) ========== */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}
.table-prix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.table-prix thead {
    background: #0f2b4a;
    color: #fff;
}
.table-prix th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.table-prix td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}
.table-prix tbody tr:hover {
    background: var(--gray-50);
}
.table-prix tbody tr:last-child td {
    border-bottom: none;
}
.table-prix td strong {
    color: #27ae60;
    font-weight: 700;
}
.table-note {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ========== CTA SECTION (generated pages, without .cta-card wrapper) ========== */
.cta-section .container > h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f2b4a;
    text-align: center;
    margin-bottom: 0.75rem;
}
.cta-section .container > p {
    text-align: center;
    color: #475569;
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 1.5rem;
}
.cta-section .container > .btn-hero {
    display: block;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

/* ========== ENTREPRISES LIST ========== */
.entreprises-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ========== FICHE MAIN ========== */
.fiche-main {
    max-width: 800px;
}

/* ========== VILLE HERO FORM (unused placeholder) ========== */
.ville-hero-form {
    display: none;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-stats .stat strong { font-size: 1.2rem; }
    .section-light, .section-dark, .section-primary { padding: 40px 0; }
    .btn-hero { padding: 12px 24px; font-size: 0.95rem; }
}

/* ========== HERO VILLE ========== */
.ville-hero {
    padding: 48px 0 56px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
}
.ville-hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}
/* Single column hero (index pages, static pages) */
.ville-hero-content.hero-centered {
    grid-template-columns: 1fr;
    max-width: 800px;
    text-align: center;
}
.hero-centered .hero-stats {
    justify-content: center;
}
.hero-centered .ville-hero-sub {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.ville-hero-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    animation: heroSlideDown 0.6s ease both;
    animation-delay: 0.1s;
}
.ville-hero-text h1 .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ville-hero-sub {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
    animation: heroSlideDown 0.6s ease both;
    animation-delay: 0.25s;
}
.ville-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: heroSlideDown 0.6s ease both;
    animation-delay: 0.4s;
}
.ville-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--gray-200);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
}
.ville-stat-chip svg { color: var(--teal); }
.ville-stat-chip strong { color: var(--blue-dark); }

/* ========== MINI FORM CARD ========== */
.mini-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    animation: heroSlideUp 0.7s ease both;
    animation-delay: 0.3s;
}
.mini-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 4px;
}
.mini-form-sub {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}
.form-select,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-select:focus,
.form-input:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(93,173,226,0.12);
    background: white;
}
.form-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}
.form-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}
.mini-form-legal {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 12px;
}

/* ========== ENTREPRISES ========== */
.entreprises-section {
    padding: 56px 0;
    background: white;
}
.entreprises-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 24px;
}
.entreprise-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    transition: box-shadow 0.3s, border-color 0.3s;
    position: relative;
}
.entreprise-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-light);
}
.entreprise-card.featured {
    border: 2px solid var(--teal);
    background: linear-gradient(135deg, rgba(26,188,156,0.03) 0%, rgba(26,82,118,0.03) 100%);
}
.entreprise-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-verified {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.badge-recommended {
    background: linear-gradient(135deg, #1a5276, #1abc9c);
    color: white;
}
.entreprise-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.entreprise-info { flex: 1; min-width: 0; }
.entreprise-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 4px;
}
.entreprise-info h3 a { transition: color 0.2s; }
.entreprise-info h3 a:hover { color: var(--blue-primary); }
.entreprise-tagline {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}
.entreprise-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.stars { display: flex; gap: 2px; }
.rating-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}
.entreprise-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}
.entreprise-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-600);
}
.entreprise-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.entreprise-meta svg { color: var(--gray-400); }
.entreprise-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.btn-devis {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-main);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-devis:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,82,118,0.25);
}
.btn-fiche {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-fiche:hover {
    border-color: var(--blue-light);
    color: var(--blue-primary);
}

/* ========== CONTENU SEO ========== */
.seo-content {
    padding: 56px 0 80px;
    background: var(--gray-50);
}
.seo-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.seo-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 16px;
    margin-top: 40px;
}
.seo-text h2:first-child { margin-top: 0; }
.seo-text p {
    font-size: 0.97rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 16px;
}
.seo-text a {
    color: var(--blue-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--teal);
}

/* ========== PRIX TABLE ========== */
.prix-table {
    overflow-x: auto;
    margin: 16px 0;
}
.prix-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.prix-table th {
    background: var(--blue-dark);
    color: white;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.prix-table td {
    padding: 14px 20px;
    font-size: 0.93rem;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}
.prix-table tr:last-child td { border-bottom: none; }
.prix-table tr:hover td { background: var(--gray-50); }
.prix-note {
    font-size: 0.88rem;
    color: var(--gray-400);
    font-style: italic;
}

/* ========== SIDEBAR ========== */
.seo-sidebar {
    position: sticky;
    top: 96px;
}
.sidebar-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 14px;
}
.sidebar-links {
    list-style: none;
}
.sidebar-links li {
    margin-bottom: 10px;
}
.sidebar-links a {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, padding-left 0.2s;
}
.sidebar-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    flex-shrink: 0;
}
.sidebar-links a:hover {
    color: var(--blue-primary);
    padding-left: 4px;
}

/* ========== SIDEBAR CTA ========== */
.sidebar-cta {
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    color: white;
}
.sidebar-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.sidebar-cta p {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.8);
}
.sidebar-cta p strong { color: white; }
.sidebar-cta-tel {
    display: inline-block;
    margin-top: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
.sidebar-cta-tel:hover { opacity: 0.85; }

/* ========== MOBILE VILLE ========== */
@media (max-width: 1024px) {
    .ville-hero-content {
        grid-template-columns: 1fr;
    }
    .seo-grid {
        grid-template-columns: 1fr;
    }
    .seo-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .ville-hero-text h1 { font-size: 1.7rem; }
    .entreprise-content { flex-direction: column; }
    .entreprise-action {
        flex-direction: row;
        width: 100%;
    }
    .btn-devis, .btn-fiche { flex: 1; }
    .ville-stats-row { gap: 8px; }
    .ville-stat-chip { font-size: 0.8rem; padding: 4px 10px; }
}

/* ========================================
   SERVICE INDEX PAGE
   ======================================== */
.region-group { margin-bottom: 2rem; }
.region-group h3 {
    font-size: 1.15rem;
    color: #1abc9c;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.section-dark .region-group h3 { color: #1abc9c; border-bottom-color: rgba(255,255,255,0.15); }
.section-light .region-group h3 { color: #1a5276; border-bottom-color: #e0e0e0; }
.region-group h3 { color: #1a5276; }

.ville-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}
.ville-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.15s;
    font-size: 0.92rem;
}
.section-dark .ville-card { background: rgba(255,255,255,0.06); color: #e0e0e0; }
.section-dark .ville-card:hover { background: rgba(26,188,156,0.15); transform: translateY(-1px); }
.section-light .ville-card { background: #f5f7fa; color: #0f2b4a; border: 1px solid #e0e0e0; }
.section-light .ville-card:hover { background: #e8f4fd; border-color: #1a5276; }

.ville-name { font-weight: 500; }
.ville-cp { font-size: 0.8rem; opacity: 0.6; }

.avantages-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}
.avantages-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: #f0faf5;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f2b4a;
}
.avantages-list li svg { flex-shrink: 0; }

.sidebar-links {
    background: #f5f7fa;
    padding: 2rem 0;
}
.sidebar-links h3 {
    font-size: 1.1rem;
    color: #1a5276;
    margin-bottom: 1rem;
}
.sidebar-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sidebar-links li a {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #1a5276;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.sidebar-links li a:hover {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}

/* Service detail cards (tous-les-services page) */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.service-detail-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.service-detail-icon { font-size: 2rem; }
.service-detail-header h3 { margin: 0; font-size: 1.15rem; }
.service-detail-header h3 a { color: #1a5276; text-decoration: none; }
.service-detail-header h3 a:hover { color: #1abc9c; }
.service-detail-tarif { font-size: 0.85rem; color: #666; margin: 0.15rem 0 0; }

.avantages-list-compact {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}
.avantages-list-compact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #333;
    padding: 0.25rem 0;
}
.avantages-list-compact li svg { flex-shrink: 0; }

.service-detail-villes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
}
.service-detail-villes a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #f0f4f8;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #1a5276;
    text-decoration: none;
    transition: background 0.2s;
}
.service-detail-villes a:hover { background: #d5e8f5; }

.btn-service-detail {
    display: inline-block;
    margin-top: 0.5rem;
    color: #1a5276;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}
.btn-service-detail:hover { color: #1abc9c; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-weight: 600; font-size: 0.92rem; color: #0f2b4a; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}

@media (max-width: 768px) {
    .ville-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .avantages-list { grid-template-columns: 1fr; }
}
