@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0077B6;
    --primary-dark: #023E8A;
    --secondary: #90E0EF;
    --accent: #FFD700;
    --text-main: #1D3557;
    --text-muted: #457B9D;
    --bg-light: #F8FBFF;
    --bg-white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    background: var(--bg-light);
    overflow-x: hidden;
    font-size: 16px;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}
p { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* =====================
   CONTAINER
   ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}
@media (max-width: 768px) { .container { padding: 0 1.2rem; } }
@media (max-width: 480px) { .container { padding: 0 1rem; } }

/* =====================
   HEADER & NAV
   ===================== */
header {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo svg { width: 24px; height: 24px; }

/* =====================
   SEARCH WRAPPER + AUTOCOMPLETE
   ===================== */
.search-wrapper {
    flex: 1;
    max-width: 400px;
    position: relative;
    min-width: 0;
    z-index: 500;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}
.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    pointer-events: none;
    flex-shrink: 0;
    z-index: 1;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 0.5rem 0.75rem 2.8rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-main);
    min-width: 0;
    width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }

.search-submit {
    background: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    border-radius: 50px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.search-submit:hover { background: var(--primary-dark); }
.search-submit svg { width: 16px; height: 16px; color: #fff; }

/* Dropdown autocomplete */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,119,182,0.12);
    list-style: none;
    overflow: hidden;
    z-index: 9999;
    max-height: 360px;
    overflow-y: auto;
}
.autocomplete-dropdown li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
    color: var(--text-main);
}
.autocomplete-dropdown li:last-child { border-bottom: none; }
.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.active {
    background: rgba(0,119,182,0.07);
}
.autocomplete-dropdown li strong { color: var(--primary); }

.ac-icon { font-size: 0.9rem; flex-shrink: 0; }
.ac-name { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-cp {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0,119,182,0.06);
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.ac-dept {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-shrink: 0;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--accent) !important;
    color: var(--text-main) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(255,215,0,0.3);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 0.85rem !important;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 6px 15px rgba(255,215,0,0.4); }

/* Burger */
.burger-btn { display: none; background: none; border: none; cursor: pointer; color: var(--primary); padding: 0.3rem; }
.burger-btn svg { width: 28px; height: 28px; }

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .burger-btn { display: block; }
}
@media (max-width: 768px) {
    .header-flex { flex-wrap: wrap; gap: 0.75rem; }
    .logo { font-size: 1.1rem; }
    .search-wrapper { order: 3; max-width: 100%; width: 100%; }
}
@media (max-width: 480px) {
    .logo span { display: none; }
    .search-bar input { font-size: 0.85rem; }
}

/* =====================
   DRAWER MOBILE
   ===================== */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.drawer.active { right: 0; }
.drawer-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 4rem;
}
.drawer-links a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: block;
}
.drawer-links a.nav-cta { border-bottom: none; margin-top: 1rem; }

/* =====================
   ÉTOILES
   ===================== */
.stars { color: var(--accent) !important; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.stars svg, .lucide-star, svg[data-lucide="star"] {
    fill: var(--accent) !important;
    stroke: var(--accent) !important;
    width: 18px;
    height: 18px;
    color: var(--accent) !important;
    flex-shrink: 0;
}

/* =====================
   HERO GLOBAL
   ===================== */
.hero { padding: 8rem 0; color: #fff; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 70vh; }
.hero-home { }
.hero-page { background: var(--primary); padding: 5rem 0; min-height: auto; }
.hero-content { max-width: 800px; position: relative; z-index: 2; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -1px; color: #fff; }
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 2.5rem; opacity: 0.95; max-width: 600px; color: #fff; }

/* =====================
   HERO VILLE — FULL MOBILE FIX
   ===================== */
.hero-ville {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0,119,182,0.08);
    padding: 3rem 0 2.5rem;
}
.hero-ville-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .hero-ville-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.ville-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,119,182,0.08);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}
.ville-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* H1 VILLE — clé du fix débordement */
.hero-ville-content h1 {
    font-size: clamp(1.4rem, 4vw, 3rem);
    color: var(--text-main);
    margin-bottom: 1.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    max-width: 100%;
}
.hero-ville-content h1 .highlight { color: var(--primary); }

.hero-desc {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* CTA groupe — boutons toujours visibles */
.hero-cta-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    align-items: flex-start;
}

@media (max-width: 600px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        padding: 0.9rem 1rem;
    }
}

/* Bouton outline */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Badge risque mousse */
.risk-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}
.risk-badge svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.15rem; }
.risk-badge div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.risk-badge strong { display: block; font-weight: 800; font-size: 0.9rem; }
.risk-badge span { opacity: 0.85; line-height: 1.5; font-size: 0.85rem; }

.risk-badge--risk-high { background: rgba(230,57,70,0.08); border: 1px solid rgba(230,57,70,0.2); color: #E63946; }
.risk-badge--risk-modere { background: rgba(244,162,97,0.08); border: 1px solid rgba(244,162,97,0.2); color: #c17831; }
.risk-badge--risk-low { background: rgba(42,157,143,0.08); border: 1px solid rgba(42,157,143,0.2); color: #2A9D8F; }

/* =====================
   CARTE INFOS VILLE — FIX BLANC SUR BLANC
   ===================== */
.ville-info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,119,182,0.1);
    overflow: hidden;
    position: sticky;
    top: 90px;
    width: 100%;
}
@media (max-width: 1024px) {
    .ville-info-card { position: static; }
}
.ville-info-header {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ville-info-header svg { width: 22px; height: 22px; flex-shrink: 0; color: #fff; }
.ville-info-header h3 { margin: 0; color: #fff; font-size: 1.1rem; word-break: break-word; }

.ville-info-list {
    list-style: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fff;
}
.ville-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
    min-width: 0;
}
.ville-info-list li strong {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.ville-info-list li span {
    color: var(--text-main);
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}
.ville-info-list svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* =====================
   STATS BAR VILLE
   ===================== */
.ville-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(0,119,182,0.08);
}
@media (max-width: 900px) { .ville-stats-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ville-stats-bar { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; } }

.ville-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    min-width: 0;
}
.ville-stat svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.ville-stat div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ville-stat strong { font-weight: 800; font-size: 0.9rem; color: var(--text-main); word-break: break-word; }
.ville-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* =====================
   STATS BAR HOMEPAGE
   ===================== */
.stats-bar {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -6rem;
    position: relative;
    z-index: 5;
}
@media (max-width: 768px) { .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; padding: 2rem; } }
@media (max-width: 480px) { .stats-bar { grid-template-columns: 1fr; padding: 1.5rem; } }

.stat-item { text-align: center; }
.stat-item h4 { font-size: 2.5rem; color: var(--primary); font-weight: 900; }
.stat-item p { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 700; margin-top: 0.5rem; }

/* =====================
   SECTIONS GLOBALES
   ===================== */
section { padding: 6rem 0; }
@media (max-width: 768px) { section { padding: 4rem 0; } }
@media (max-width: 480px) { section { padding: 3rem 0; } }

.section-header { text-align: center; max-width: 850px; margin: 0 auto 4rem; padding: 0 1rem; }
.section-header h2 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); color: var(--text-main); margin-bottom: 1rem; word-break: break-word; }
.section-header p { font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--text-muted); line-height: 1.7; }

/* Section tag badge */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,119,182,0.08);
    color: var(--primary);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.section-tag svg { width: 14px; height: 14px; flex-shrink: 0; }

/* =====================
   GRILLES
   ===================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* =====================
   CARDS GLOBALES
   ===================== */
.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--primary); }
.card-icon { width: 56px; height: 56px; color: var(--primary); }
.card-icon svg { width: 48px; height: 48px; }

/* =====================
   SIRENE — SECTION & COMPOSANTS ENRICHIS
   ===================== */
.sirene-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

/* Compteur artisans */
.sirene-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,119,182,0.06);
    border: 1px solid rgba(0,119,182,0.15);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 600;
    flex-wrap: wrap;
}
.sirene-counter svg { width: 18px; height: 18px; flex-shrink: 0; }
.sirene-counter strong { font-weight: 900; }
.sirene-counter span { color: var(--text-muted); }

/* Grille cartes artisans */
.sirene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) { .sirene-grid { grid-template-columns: 1fr; } }

/* Carte artisan */
.sirene-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: 0.3s;
    overflow: hidden;
    min-width: 0;
}
.sirene-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    border-top-color: var(--accent);
}

/* En-tête carte */
.sirene-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.2rem;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-wrap: wrap;
    min-width: 0;
}
.sirene-rank {
    background: var(--primary);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.sirene-name-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sirene-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* Badge spécialité */
.sirene-specialite-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,119,182,0.1);
    color: var(--primary);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    width: fit-content;
    max-width: 100%;
}
.sirene-specialite-badge svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Badge nature juridique */
.sirene-nature {
    background: rgba(69,123,157,0.1);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 0.2rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Corps carte */
.sirene-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    padding: 1rem 1.2rem;
    min-width: 0;
}
.sirene-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}
.sirene-info-row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--primary);
}
/* Ligne mise en avant (ancienneté) */
.sirene-info--highlight {
    color: var(--text-main) !important;
    font-weight: 700;
    background: rgba(255,215,0,0.1);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    margin: 0 -0.6rem;
}
.sirene-info--highlight svg { color: #B8860B !important; }
.sirene-siren {
    opacity: 0.55;
    font-size: 0.76rem !important;
    font-family: monospace;
    word-break: break-all;
}

/* =====================
   ACTIONS CARTE ARTISAN — FIX BOUTON COUPÉ
   ===================== */
.sirene-card-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem 1.2rem;
    flex-wrap: wrap;
    align-items: stretch;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.sirene-cta {
    flex: 1 1 auto;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal !important;
    text-align: center;
    overflow: visible !important;
    font-size: 0.82rem !important;
    padding: 0.75rem 0.8rem !important;
    line-height: 1.3;
    word-break: keep-all;
}

/* Lien Pappers */
.btn-sirene-pappers {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: 0.25s;
    white-space: nowrap;
    background: #fff;
    flex-shrink: 0;
    align-self: center;
}
.btn-sirene-pappers:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0,119,182,0.05);
}
.btn-sirene-pappers svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (max-width: 480px) {
    .sirene-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .sirene-cta {
        width: 100%;
        min-width: 0;
    }
    .btn-sirene-pappers {
        width: 100%;
        justify-content: center;
    }
}

/* Source SIRENE */
.sirene-source {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0,119,182,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(0,119,182,0.08);
}
.sirene-source svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); }
.sirene-source a { color: var(--primary); text-decoration: none; font-weight: 600; }
.sirene-source a:hover { text-decoration: underline; }

/* État vide */
.sirene-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 2px dashed rgba(0,119,182,0.2);
}
.sirene-empty-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,119,182,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.sirene-empty-icon svg { width: 28px; height: 28px; color: var(--primary); }
.sirene-empty h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--text-main); word-break: break-word; }
.sirene-empty p { color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* =====================
   SERVICES GRID
   ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 0.95rem; color: var(--text-main); margin: 0; word-break: break-word; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.service-tarif {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,119,182,0.06);
    color: var(--primary);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    width: fit-content;
}
.service-tarif svg { width: 13px; height: 13px; }

/* =====================
   CALCULATEUR — FULL MOBILE FIX
   ===================== */
.calculator-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}
@media (max-width: 768px) {
    .calculator-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}
@media (max-width: 480px) {
    .calculator-card {
        padding: 1.2rem;
        gap: 1.2rem;
    }
}

.calc-inputs { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.calc-field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.calc-field label { color: rgba(255,255,255,0.85); font-weight: 700; font-size: 0.88rem; }
.calc-field input[type="number"],
.calc-field select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}
.calc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}
.calc-field select option { background: var(--primary-dark); color: #fff; }
.calc-field input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    height: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.calc-result {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 0;
    overflow: hidden;
}
.calc-result-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
}
.calc-result-amount {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 0.75rem;
    word-break: break-word;
}
.calc-result-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    word-break: break-word;
}
.calc-result .btn {
    display: flex;
    margin-top: 1.2rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 0.85rem 1.2rem !important;
    font-size: 0.78rem !important;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}

/* =====================
   VILLES VOISINES
   ===================== */
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 1024px) { .nearby-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .nearby-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .nearby-grid { grid-template-columns: 1fr; } }

.nearby-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--text-main);
    transition: 0.25s;
    min-width: 0;
    overflow: hidden;
}
.nearby-card:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.nearby-card > svg:first-child { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.nearby-info { flex: 1; min-width: 0; overflow: hidden; }
.nearby-info strong { display: block; font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.nearby-info span { font-size: 0.78rem; color: var(--text-muted); display: block; }
.nearby-arrow { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }

/* =====================
   CTA FINAL
   ===================== */
.cta-final {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}
.cta-reassurance {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.cta-reassurance span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}
.cta-reassurance svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* =====================
   FAQ ACCORDION
   ===================== */
.faq-grid { max-width: 900px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.faq-item summary {
    padding: 1.2rem 1.5rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-main);
    gap: 0.75rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); font-weight: 400; flex-shrink: 0; margin-top: -0.1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.2rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; word-break: break-word; }

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    border: 1px solid rgba(0,119,182,0.1);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    row-gap: 0.3rem;
    overflow: hidden;
    max-width: 100%;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
@media (max-width: 480px) {
    .breadcrumb a { max-width: 80px; font-size: 0.75rem; }
    .breadcrumb { font-size: 0.75rem; padding: 0.4rem 0.8rem; gap: 0.3rem; }
    .breadcrumb span { max-width: 90px; font-size: 0.75rem; }
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-muted); flex-shrink: 0; }
.breadcrumb span { color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* =====================
   ENTERPRISE CARD (listing)
   ===================== */
.enterprise-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary);
    transition: 0.3s;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-right: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    min-width: 0;
}
.enterprise-card:hover { transform: scale(1.01); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
@media (max-width: 768px) { .enterprise-card { flex-direction: column; text-align: center; align-items: center; } }

/* =====================
   WEATHER / RISK WIDGETS
   ===================== */
.weather-widget {
    background: var(--bg-white) !important;
    border: 1px solid rgba(0,119,182,0.1) !important;
    padding: 1.5rem 2rem !important;
    border-radius: var(--radius) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: fit-content !important;
    box-shadow: var(--shadow) !important;
    color: var(--text-main) !important;
    flex-wrap: wrap;
    max-width: 100%;
}
@media (max-width: 600px) { .weather-widget { flex-direction: column !important; width: 100% !important; text-align: center !important; } }
.weather-icon svg { width: 32px; height: 32px; color: var(--primary) !important; }
.weather-info { display: flex; flex-direction: column; gap: 0.25rem; }
.weather-status { font-weight: 800 !important; font-size: 1.1rem !important; color: var(--text-main) !important; }
.weather-temp { font-size: 0.95rem !important; color: var(--text-muted) !important; font-weight: 500 !important; }
.weather-risk { margin-left: auto; padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 900; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.risk-high { background: #E63946 !important; color: #fff !important; }
.risk-low { background: #2A9D8F !important; color: #fff !important; }
.risk-modere { background: #F4A261 !important; color: #fff !important; }

/* =====================
   BOUTONS GLOBAUX — FIX OVERFLOW MOBILE
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    font-size: 0.85rem;
    gap: 0.6rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center;
    line-height: 1.3;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,119,182,0.25); }
.btn-accent { background: var(--accent); color: var(--text-main); border-color: var(--accent); }
.btn-accent:hover { background: #f0c500; border-color: #f0c500; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255,215,0,0.3); }

@media (max-width: 480px) {
    .btn { padding: 0.85rem 1.2rem; font-size: 0.78rem; letter-spacing: 0.6px; }
}

/* =====================
   FOOTER
   ===================== */
footer { background: #001D3D; color: #fff; padding: 6rem 0 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; } }

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 900;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.9rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.25s;
    font-size: 0.95rem;
    display: inline-block;
}
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2.5rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* =====================
   NOTIFICATION BAR
   ===================== */
.notif-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateX(-150%);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 340px;
}
.notif-bar.active { transform: translateX(0); }
.notif-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); margin-left: 5px; line-height: 1; }
@media (max-width: 600px) { .notif-bar { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; font-size: 0.88rem; } }

/* =====================
   REVEAL SCROLL
   ===================== */
.reveal { opacity: 0; transform: translateY(25px); transition: 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }