:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #132238;
    --muted: #66758a;
    --line: #e1e7ef;
    --accent: #ef3d42;
    --accent-dark: #c9272c;
    --accent-soft: #fff0f1;
    --blue: #2389e8;
    --dark: #0c1728;
    --gold: #f4a000;
}

* { box-sizing: border-box; }

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

body { margin: 0; min-height: 100vh; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    background: rgba(255,255,255,.97);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}
.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo img { width: min(330px, 58vw); height: 56px; object-fit: contain; object-position: left center; }
.preprod {
    font-size: 11px;
    padding: 7px 10px;
    border: 1px solid #d6dde7;
    border-radius: 999px;
    color: var(--muted);
    background: #f7f9fb;
    font-weight: 700;
}

.hero {
    padding: 76px 0 42px;
    background:
        radial-gradient(circle at 80% 20%, rgba(239,61,66,.10), transparent 28%),
        linear-gradient(180deg, #fff, var(--bg));
}
.home-hero { padding-bottom: 62px; }

.eyebrow, .overline {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.eyebrow a { text-decoration: none; }

h1 {
    max-width: 940px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.045em;
}
.lead {
    max-width: 780px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2.3vw, 22px);
    line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: #fff; border: 1px solid var(--line); }

.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 8px 0 26px;
}
.home-kpis { margin-top: -22px; position: relative; }
.kpi {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(27,42,66,.05);
}
.kpi span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.kpi strong {
    display: block;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -.04em;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr);
    gap: 18px;
    align-items: start;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
}
.panel-wide { grid-row: span 2; }
.panel h2, .notice h2, .sources h2, .section-title h2 {
    margin: 0 0 20px;
    font-size: 23px;
    letter-spacing: -.025em;
}
.panel-copy { color: var(--muted); line-height: 1.6; margin: 4px 0 0; }
.panel-head.split {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.map-panel { margin-bottom: 18px; padding-bottom: 18px; }
.accident-map {
    width: 100%;
    min-height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #e9edf2;
    z-index: 1;
}
.map-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.map-filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.map-filter.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot-normal { background: var(--accent); }
.dot-fatal { background: var(--dark); }
.ac-marker-wrap { background: transparent; border: 0; }
.ac-marker {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.35);
}
.ac-marker.normal { background: var(--accent); }
.ac-marker.fatal { background: var(--dark); width: 16px; height: 16px; }

.bars { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 38px; gap: 12px; align-items: center; font-size: 13px; }
.month { color: var(--muted); }
.bar-track { height: 12px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; min-width: 2px; background: var(--accent); border-radius: inherit; }

.metric-list { margin: 0; }
.metric-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.metric-list > div:last-child { border-bottom: 0; }
.metric-list dt { color: var(--muted); }
.metric-list dd { margin: 0; font-weight: 800; }
.metric-list small { color: var(--muted); font-weight: 600; }

.compare-section, .nearby-section, .ranking-section { margin-top: 28px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.compare-card { padding: 18px; background: var(--bg); border-radius: 15px; }
.compare-card span, .compare-card small { display: block; color: var(--muted); }
.compare-card strong { display: block; margin: 8px 0 4px; font-size: 30px; letter-spacing: -.035em; }
.compare-link { margin: 20px 0 0; font-weight: 750; }
.compare-link a { color: var(--accent-dark); }

.section-title { margin-bottom: 16px; }
.city-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.city-link, .department-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.city-link:hover, .department-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20,35,58,.08);
}
.city-link span, .department-card span { font-weight: 800; }
.city-link strong, .department-card small { color: var(--muted); font-size: 13px; }
.department-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.department-card strong { font-size: 28px; letter-spacing: -.03em; }

/* V0.5 : classement entièrement redesigné */
.ranking-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(25, 41, 65, .05);
}
.ranking-header {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(90px, .45fr));
    gap: 12px;
    align-items: center;
    padding: 13px 20px;
    background: #f3f6fa;
    color: #738096;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.ranking-header span:not(:first-child) { text-align: center; }

.ranking-list { display: grid; }
.rank-item {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(90px, .45fr));
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 10px 20px;
    text-decoration: none;
    border-top: 1px solid #edf1f5;
    transition: background .15s ease, transform .15s ease;
}
.rank-item:first-child { border-top: 0; }
.rank-item:hover { background: #f9fbfd; }
.rank-city { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rank-city > div { min-width: 0; }
.rank-city strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.rank-city small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.rank-badge {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef3f8;
    color: #52708f;
    font-weight: 900;
    font-size: 13px;
}
.rank-badge.rank-1 { background: #ffe8e9; color: #d9282e; }
.rank-badge.rank-2 { background: #fff2d5; color: #c77a00; }
.rank-badge.rank-3 { background: #fff6e5; color: #d48a00; }

.rank-stat {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #edf1f5;
}
.rank-stat strong { font-size: 18px; letter-spacing: -.02em; }
.rank-label { display: none; color: var(--muted); font-size: 10px; font-weight: 700; }
.rank-deaths strong { color: var(--accent-dark); }

.big-number {
    margin: 8px 0;
    font-size: 54px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.05em;
}

.notice {
    margin: 28px 0;
    padding: 26px;
    background: var(--accent-soft);
    border: 1px solid #f3c7c9;
    border-radius: 20px;
}
.notice p { max-width: 900px; color: #5f4b4b; line-height: 1.7; }

.footer {
    margin-top: 50px;
    padding: 24px 0;
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-size: 13px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 245px; max-width: 55vw; height: 48px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .92; }

@media (max-width: 900px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: 1fr; }
    .panel-wide { grid-row: auto; }
    .city-links, .department-grid { grid-template-columns: repeat(2, 1fr); }
    .panel-head.split { flex-direction: column; }
    .map-filters { justify-content: flex-start; }

    .ranking-header { display: none; }
    .rank-item {
        grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(70px, .32fr));
        padding: 12px 14px;
    }
    .rank-label { display: block; }
}

@media (max-width: 620px) {
    .nav { min-height: 70px; }
    .brand-logo img { width: 245px; height: 48px; }
    .hero { padding-top: 52px; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi { padding: 17px; }
    .accident-map { min-height: 390px; }
    .compare-grid { grid-template-columns: 1fr; }
    .city-links, .department-grid { grid-template-columns: 1fr; }

    .rank-item {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        padding: 15px;
    }
    .rank-city {
        grid-column: 1 / -1;
        padding-bottom: 10px;
        border-bottom: 1px solid #edf1f5;
    }
    .rank-stat {
        border-left: 0;
        min-height: 52px;
        padding-top: 7px;
    }
    .rank-stat + .rank-stat { border-left: 1px solid #edf1f5; }
    .rank-city strong { white-space: normal; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* === V0.6 === */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nav {
    gap: 18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.main-nav a:hover,
.main-nav a.active {
    background: #f1f4f8;
    color: var(--text);
}

.header-search {
    width: min(290px, 28vw);
}

.search-box {
    position: relative;
}

.header-search form {
    display: block;
}

.header-search input,
.hero-search input,
.big-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #f7f9fb;
    color: var(--text);
    font: inherit;
    outline: none;
}

.header-search input {
    padding: 0 14px;
    font-size: 13px;
}

.header-search input:focus,
.hero-search input:focus,
.big-search input:focus {
    border-color: #99bce2;
    box-shadow: 0 0 0 3px rgba(35,137,232,.09);
    background: #fff;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(14,30,50,.16);
}

.suggestion-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f6;
    text-decoration: none;
}

.suggestion-item:last-child {
    border-bottom: 0;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-type,
.result-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 7px;
    border-radius: 7px;
    background: #edf4fb;
    color: #246cae;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.suggestion-text {
    min-width: 0;
}

.suggestion-text strong,
.suggestion-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-text strong {
    font-size: 13px;
}

.suggestion-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.hero-search {
    width: min(720px, 100%);
    margin-top: 30px;
}

.hero-search form,
.big-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(22,40,65,.08);
}

.hero-search input,
.big-search input {
    border: 0;
    min-height: 50px;
    padding: 0 15px;
    background: transparent;
    font-size: 16px;
}

.hero-search input:focus,
.big-search input:focus {
    box-shadow: none;
}

.hero-search button,
.big-search button {
    min-height: 50px;
    padding: 0 21px;
    border: 0;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.hero-search button:hover,
.big-search button:hover {
    background: var(--accent-dark);
}

.hero-suggestions {
    top: calc(100% + 10px);
}

.compact-hero {
    padding-top: 58px;
    padding-bottom: 38px;
}

.compact-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
}

.region-home-section,
.region-grid-section {
    margin-top: 42px;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.region-mini-grid,
.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.region-mini-card,
.region-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.region-mini-card:hover,
.region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22,38,62,.08);
}

.region-mini-card > strong,
.region-card-head strong {
    font-size: 15px;
}

.region-mini-card > span {
    margin-top: 7px;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.region-mini-card small,
.region-card small {
    color: var(--muted);
    line-height: 1.45;
}

.region-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.region-card-head > span {
    color: var(--accent);
    font-size: 20px;
}

.region-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0 7px;
}

.region-numbers > div {
    padding: 10px 7px;
    border-radius: 11px;
    background: #f6f8fb;
}

.region-numbers strong,
.region-numbers span {
    display: block;
}

.region-numbers strong {
    font-size: 17px;
}

.region-numbers span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.search-page-results {
    padding-top: 26px;
    padding-bottom: 70px;
}

.search-result-list {
    display: grid;
    gap: 9px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    text-decoration: none;
}

.search-result-card:hover {
    border-color: #cbd6e2;
    box-shadow: 0 7px 22px rgba(20,36,60,.05);
}

.search-result-card strong,
.search-result-card small {
    display: block;
}

.search-result-card strong {
    font-size: 16px;
}

.search-result-card small {
    margin-top: 4px;
    color: var(--muted);
}

.result-arrow {
    color: var(--accent);
    font-size: 23px;
}

.empty-state {
    padding: 34px;
    border: 1px dashed #cad4df;
    border-radius: 17px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-copy strong {
    color: #fff;
}

@media (max-width: 1040px) {
    .header-search {
        display: none;
    }

    .main-nav {
        margin-left: auto;
    }

    .region-mini-grid,
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .main-nav {
        display: none;
    }

    .preprod {
        margin-left: auto;
    }

    .hero-search form,
    .big-search {
        grid-template-columns: 1fr;
    }

    .hero-search button,
    .big-search button {
        min-height: 46px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .region-mini-grid,
    .region-grid {
        grid-template-columns: 1fr;
    }

    .search-result-card {
        grid-template-columns: 1fr auto;
    }

    .search-result-card .result-type {
        grid-column: 1 / -1;
    }
}

/* === V0.7 : historique 2019-2024 === */
.history-section {
    margin-top: 28px;
    margin-bottom: 18px;
}

.history-panel {
    overflow: hidden;
}

.history-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 28px;
}

.history-heading h2 {
    margin-bottom: 8px;
}

.history-change {
    flex: 0 0 auto;
    min-width: 145px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    text-align: right;
}

.history-change span,
.history-change strong {
    display: block;
}

.history-change span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.history-change strong {
    margin-top: 6px;
    font-size: 24px;
    letter-spacing: -.035em;
}

.trend-up {
    color: #c9363c;
}

.trend-down {
    color: #15825f;
}

.history-bars {
    height: 250px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(10px, 2vw, 24px);
    align-items: end;
    padding: 10px 8px 0;
    border-bottom: 1px solid var(--line);
}

.history-column {
    height: 100%;
    display: grid;
    grid-template-rows: 26px 1fr 32px;
    gap: 5px;
    align-items: end;
    text-align: center;
}

.history-value {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.history-track {
    position: relative;
    width: min(46px, 70%);
    height: 100%;
    margin: 0 auto;
    border-radius: 9px 9px 0 0;
    background:
        linear-gradient(to top, rgba(220,227,236,.55), rgba(241,244,248,.35));
    overflow: hidden;
}

.history-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #ef5a5f, var(--accent));
}

.history-column strong {
    align-self: center;
    font-size: 12px;
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.history-summary-grid > div {
    padding: 15px;
    border-radius: 13px;
    background: #f6f8fb;
}

.history-summary-grid span,
.history-summary-grid strong,
.history-summary-grid small {
    display: block;
}

.history-summary-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.history-summary-grid strong {
    margin: 6px 0 3px;
    font-size: 24px;
    letter-spacing: -.035em;
}

.history-summary-grid small {
    color: var(--muted);
    font-size: 10px;
}

.history-details {
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.history-details summary {
    padding: 16px 0 0;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.history-table {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.history-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #eef2f6;
    font-size: 12px;
}

.history-row:first-child {
    border-top: 0;
}

.history-row span:not(:first-child),
.history-row strong:not(:first-child) {
    text-align: right;
}

.history-row-head {
    background: #f4f7fa;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 760px) {
    .history-heading {
        flex-direction: column;
        gap: 14px;
    }

    .history-change {
        width: 100%;
        text-align: left;
    }

    .history-bars {
        height: 220px;
        gap: 6px;
        padding-left: 0;
        padding-right: 0;
    }

    .history-track {
        width: min(34px, 72%);
    }

    .history-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 430px) {
    .history-bars {
        height: 190px;
    }

    .history-value {
        font-size: 9px;
    }

    .history-column strong {
        font-size: 10px;
    }
}

/* === V0.8 : profils véhicules et usagers === */
.profile-section {
    margin-top: 34px;
    margin-bottom: 28px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-card {
    min-width: 0;
}

.profile-card-wide {
    grid-column: 1 / -1;
}

.profile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.profile-card h3 {
    margin: 5px 0 0;
    font-size: 20px;
    letter-spacing: -.025em;
}

.profile-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-total {
    flex: 0 0 auto;
    font-size: 29px;
    letter-spacing: -.04em;
}

.profile-bars {
    display: grid;
    gap: 12px;
}

.profile-bar-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 2fr) 62px;
    gap: 12px;
    align-items: center;
}

.profile-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.profile-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}

.profile-bar-label strong {
    font-size: 12px;
}

.profile-bar-track,
.age-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.profile-bar-fill,
.age-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #f26a6e);
}

.profile-bar-row > small {
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.profile-role-grid,
.profile-sex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.profile-sex {
    grid-template-columns: repeat(2, 1fr);
}

.profile-role-grid > div,
.profile-sex > div {
    padding: 17px;
    border-radius: 14px;
    background: #f6f8fb;
}

.profile-role-grid span,
.profile-role-grid strong,
.profile-role-grid small,
.profile-sex span,
.profile-sex strong,
.profile-sex small {
    display: block;
}

.profile-role-grid span,
.profile-sex span {
    color: var(--muted);
    font-size: 11px;
}

.profile-role-grid strong,
.profile-sex strong {
    margin: 6px 0 2px;
    font-size: 27px;
    letter-spacing: -.04em;
}

.profile-role-grid small,
.profile-sex small {
    color: var(--muted);
    font-size: 10px;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.age-item {
    padding: 14px;
    border: 1px solid #e7ebf0;
    border-radius: 13px;
}

.age-item span,
.age-item strong {
    display: block;
}

.age-item span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.age-item strong {
    margin: 6px 0 10px;
    font-size: 23px;
    letter-spacing: -.035em;
}

.age-track {
    height: 7px;
}

.profile-note,
.profile-method {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.profile-note {
    margin: 14px 0 0;
}

.profile-method {
    margin: 12px 2px 0;
}

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

    .profile-card-wide {
        grid-column: auto;
    }

    .profile-bar-row {
        grid-template-columns: 1fr 1.2fr 54px;
    }

    .age-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .profile-bar-row {
        grid-template-columns: 1fr 52px;
        gap: 6px 10px;
    }

    .profile-bar-label {
        grid-column: 1 / -1;
    }

    .profile-bar-track {
        grid-column: 1;
    }

    .profile-role-grid {
        grid-template-columns: 1fr;
    }

    .profile-sex {
        grid-template-columns: 1fr 1fr;
    }
}

/* === V0.9 : contexte des accidents === */
.context-section {
    margin-top: 36px;
    margin-bottom: 30px;
}

.context-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.context-kpis > div {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.context-kpis span,
.context-kpis strong,
.context-kpis small {
    display: block;
}

.context-kpis span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.context-kpis strong {
    margin: 6px 0 2px;
    font-size: 28px;
    letter-spacing: -.04em;
}

.context-kpis small {
    color: var(--muted);
    font-size: 10px;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.context-card h3,
.context-surface-panel h3 {
    margin: 5px 0 0;
    font-size: 20px;
    letter-spacing: -.025em;
}

.context-card-head {
    margin-bottom: 18px;
}

.context-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.context-bars {
    display: grid;
    gap: 12px;
}

.context-bar-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 1.25fr) 58px;
    gap: 10px;
    align-items: center;
}

.context-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.context-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 11px;
}

.context-bar-label strong {
    font-size: 11px;
}

.context-bar-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.context-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2389e8, #61aef2);
}

.context-bar-row > small {
    color: var(--muted);
    font-size: 9px;
    text-align: right;
}

.context-surface-panel {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr);
    gap: 24px;
    align-items: center;
}

.surface-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.surface-grid > div {
    padding: 13px;
    border-radius: 12px;
    background: #f6f8fb;
}

.surface-grid span,
.surface-grid strong,
.surface-grid small {
    display: block;
}

.surface-grid span {
    min-height: 28px;
    color: var(--muted);
    font-size: 10px;
}

.surface-grid strong {
    margin: 5px 0 2px;
    font-size: 23px;
    letter-spacing: -.035em;
}

.surface-grid small {
    color: var(--muted);
    font-size: 9px;
}

.context-method {
    margin: 12px 2px 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .context-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .context-grid {
        grid-template-columns: 1fr;
    }

    .context-surface-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .context-bar-row {
        grid-template-columns: 1fr 52px;
        gap: 6px 10px;
    }

    .context-bar-label {
        grid-column: 1 / -1;
    }

    .context-bar-track {
        grid-column: 1;
    }

    .surface-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === V1.0 : footer SEO + pages éditoriales === */
.footer-v10 {
    margin-top: 72px;
    padding: 0;
    background: #0c1728;
    color: #c8d1dc;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, .8fr));
    gap: 38px;
    padding-top: 48px;
    padding-bottom: 42px;
}

.footer-logo-link {
    display: inline-block;
}

.footer-brand-block img {
    width: min(220px, 100%);
    filter: brightness(0) invert(1);
}

.footer-brand-block p {
    max-width: 390px;
    margin: 18px 0 16px;
    color: #aeb9c6;
    font-size: 13px;
    line-height: 1.7;
}

.footer-search-link {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.footer-column h2 {
    margin: 2px 0 15px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li + li {
    margin-top: 10px;
}

.footer-column a {
    color: #aeb9c6;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.footer-column a:hover,
.footer-search-link:hover {
    color: #fff;
}

.footer-data-note {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.footer-data-note strong {
    color: #fff;
    font-size: 11px;
}

.footer-data-note span {
    color: #8e9ba9;
    font-size: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 18px;
    color: #7f8c9b;
    font-size: 10px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    color: var(--muted);
    font-size: 10px;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.static-main {
    min-height: 55vh;
}

.static-hero {
    padding: 54px 0 22px;
}

.static-wrap {
    max-width: 900px;
}

.static-hero h1 {
    max-width: 780px;
    margin: 6px 0 15px;
    font-size: clamp(38px, 6vw, 60px);
    letter-spacing: -.045em;
    line-height: 1.02;
}

.static-content {
    padding-top: 20px;
    padding-bottom: 16px;
}

.static-content h2,
.glossary-list h2 {
    margin: 36px 0 10px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.static-content p,
.glossary-list p,
.static-list {
    color: #526071;
    font-size: 14px;
    line-height: 1.78;
}

.static-content a {
    color: var(--accent-dark);
    font-weight: 700;
}

.static-callout,
.legal-warning,
.contact-placeholder {
    margin: 28px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f7f9fb;
}

.static-callout strong,
.legal-warning strong,
.contact-placeholder strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
}

.static-callout p,
.legal-warning p,
.contact-placeholder p {
    margin: 0;
}

.static-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.static-link-grid a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    text-decoration: none;
}

.static-link-grid strong {
    color: var(--text);
}

.static-link-grid span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.static-list {
    padding-left: 20px;
}

.static-list li + li {
    margin-top: 8px;
}

.glossary-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 26px;
}

.glossary-index a {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.glossary-index a:hover {
    border-color: #b8c6d6;
}

.glossary-list {
    display: grid;
    gap: 0;
    padding-bottom: 28px;
}

.glossary-list article {
    scroll-margin-top: 100px;
    padding: 4px 0 24px;
    border-bottom: 1px solid var(--line);
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-placeholder {
    margin: 0;
}

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand-block {
        grid-column: auto;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 5px;
    }

    .static-link-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }
}

/* === V1.1 : blog, footer corrigé, contact === */
.footer-v11 {
    margin-top: 72px;
    padding: 0;
    background: #0c1728;
    color: #c8d1dc;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.footer-brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
    border-radius: 12px;
    background: #1c2b40;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.footer-brand-mark::before,
.footer-brand-mark::after {
    content: "";
    position: absolute;
    bottom: -3px;
    width: 10px;
    height: 40px;
    border-radius: 10px 10px 0 0;
    background: #f8fbff;
    transform-origin: bottom;
}

.footer-brand-mark::before {
    left: 9px;
    transform: rotate(18deg);
}

.footer-brand-mark::after {
    right: 9px;
    transform: rotate(-18deg);
}

.brand-pin {
    position: absolute;
    z-index: 4;
    top: 7px;
    left: 17px;
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    background: #ef5058;
    transform: rotate(-45deg);
}

.brand-pin::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-text strong {
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.footer-brand-text small {
    color: #95a4b4;
    font-size: 8px;
    line-height: 1.2;
}

.latest-articles-section {
    margin-top: 60px;
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: #f5f7fa;
}

.latest-articles-home {
    margin-top: 48px;
}

.latest-articles-grid,
.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.latest-article-card,
.blog-index-card {
    min-width: 0;
}

.latest-article-card > a,
.blog-index-card > a {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.latest-article-card > a:hover,
.blog-index-card > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22,38,62,.08);
}

.latest-article-card time,
.blog-index-card time {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.latest-article-card h3,
.blog-index-card h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.latest-article-card p,
.blog-index-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.latest-article-card span,
.blog-index-card span {
    margin-top: auto;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
}

.blog-index-section {
    padding-top: 32px;
    padding-bottom: 56px;
}

.article-header {
    max-width: 900px;
    padding-top: 58px;
}

.article-header h1 {
    max-width: 850px;
    margin: 7px 0 15px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.article-excerpt {
    max-width: 760px;
    color: #526071;
    font-size: 17px;
    line-height: 1.6;
}

.article-header time {
    display: block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
}

.article-content {
    max-width: 820px;
    padding-top: 32px;
    padding-bottom: 24px;
    color: #344356;
    font-size: 15px;
    line-height: 1.8;
}

.article-content h2 {
    margin: 38px 0 12px;
    color: var(--text);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.article-content h3 {
    margin: 28px 0 10px;
    color: var(--text);
    font-size: 21px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin: 0 0 19px;
}

.article-content a {
    color: var(--accent-dark);
    font-weight: 700;
}

.article-content blockquote {
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    background: #f6f8fb;
}

.contact-panel-v11 {
    grid-template-columns: .8fr 1.2fr;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    padding: 11px 12px;
    background: #f8fafc;
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #97bde2;
    box-shadow: 0 0 0 3px rgba(35,137,232,.08);
    background: #fff;
}

.contact-form button {
    width: fit-content;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.form-success,
.form-errors {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 13px;
}

.form-success {
    border: 1px solid #b8ded1;
    background: #eff9f5;
}

.form-errors {
    border: 1px solid #efc2c5;
    background: #fff3f4;
}

.form-success p,
.form-errors ul {
    margin-bottom: 0;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 800px) {
    .latest-articles-grid,
    .blog-index-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel-v11 {
        grid-template-columns: 1fr;
    }
}

/* === V1.3 : historique long + contenu éditorial === */
.history-bars.history-long {
    grid-template-columns: repeat(var(--history-count), minmax(30px, 1fr));
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.history-bars.history-long .history-column {
    min-width: 30px;
}

.history-bars.history-long .history-track {
    width: 24px;
}

.history-bars.history-long .history-value {
    font-size: 8px;
}

.history-bars.history-long .history-column strong {
    font-size: 9px;
}

.editorial-section {
    margin-top: 40px;
    margin-bottom: 24px;
}

.editorial-content {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.editorial-content h2 {
    max-width: 850px;
    margin: 6px 0 18px;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -.035em;
    line-height: 1.12;
}

.editorial-content > p {
    max-width: 900px;
    color: #526071;
    font-size: 14px;
    line-height: 1.78;
}

.editorial-content > p strong {
    color: var(--text);
}

.editorial-guide-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-top: 24px;
}

.editorial-guide-links a {
    display: flex;
    min-height: 105px;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f9fb;
    text-decoration: none;
}

.editorial-guide-links strong {
    color: var(--accent);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.editorial-guide-links span {
    margin-top: 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.editorial-note {
    margin-top: 20px !important;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    font-size: 11px !important;
}

.editorial-note a {
    color: var(--accent-dark);
    font-weight: 750;
}

@media (max-width: 700px) {
    .editorial-guide-links {
        grid-template-columns: 1fr;
    }

    .history-bars.history-long {
        grid-template-columns: repeat(var(--history-count), 34px);
    }
}

/* === V1.4 : communes sans accident 2024 === */
.zero-data-section {
    margin-top: 34px;
    margin-bottom: 28px;
}

.zero-data-panel h2 {
    margin: 6px 0 14px;
    font-size: clamp(24px, 3vw, 33px);
    letter-spacing: -.035em;
    line-height: 1.15;
}

.zero-data-panel > p {
    max-width: 900px;
    color: #526071;
    font-size: 13px;
    line-height: 1.75;
}

.zero-nearby {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.zero-nearby > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
}

.zero-nearby > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zero-nearby a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: #f8fafc;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.zero-nearby a span {
    color: var(--muted);
    font-weight: 600;
}

.zero-note {
    margin-top: 18px !important;
    font-size: 10px !important;
}

.zero-note a {
    color: var(--accent-dark);
    font-weight: 750;
}

/* === V1.5 : Accident Explorer === */
.population-section,
.historical-map-section,
.extended-profile-section,
.accident-list-preview-section {
    margin-top: 38px;
    margin-bottom: 30px;
}
.population-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}
.population-head h2 {
    max-width: 760px;
    margin: 6px 0 0;
    font-size: clamp(25px,3vw,34px);
    letter-spacing: -.035em;
}
.population-main { min-width: 170px; text-align: right; }
.population-main strong,
.population-main span,
.population-main small { display: block; }
.population-main strong { font-size: 34px; letter-spacing: -.05em; }
.population-main span { color: var(--text); font-size: 11px; font-weight: 800; }
.population-main small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.population-kpis {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 23px;
}
.population-kpis > div {
    padding: 16px;
    border-radius: 13px;
    background: #f6f8fb;
}
.population-kpis span,
.population-kpis strong { display: block; }
.population-kpis span {
    min-height: 27px;
    color: var(--muted);
    font-size: 10px;
}
.population-kpis strong {
    margin-top: 7px;
    font-size: 25px;
    letter-spacing: -.04em;
}
.population-note,
.extended-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}
.historical-map-panel { padding: 16px; }
.historical-map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: end;
    margin-bottom: 13px;
}
.historical-map-controls label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.historical-map-controls select {
    min-width: 175px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    text-transform: none;
    letter-spacing: 0;
}
.historical-map-severity { display: flex; gap: 5px; }
.historical-map-severity button {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 11px;
    background: #fff;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.historical-map-severity button.active {
    border-color: #bad7f2;
    background: #eaf4fd;
    color: #176cb6;
}
.historical-map-count {
    margin-left: auto;
    padding-bottom: 9px;
    color: var(--muted);
    font-size: 10px;
}
.historical-map-canvas {
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    border-radius: 13px;
    background: #e8edf2;
}
.extended-profile-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
}
.extended-profile-grid h3 {
    margin: 0 0 18px;
    font-size: 19px;
}
.extended-bars { display: grid; gap: 11px; }
.extended-bar-row {
    display: grid;
    grid-template-columns: minmax(150px,1fr) minmax(100px,1.25fr) 57px;
    align-items: center;
    gap: 10px;
}
.extended-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.extended-bar-label span { color: var(--muted); font-size: 10px; }
.extended-bar-label strong { font-size: 10px; }
.extended-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}
.extended-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#2389e8,#68b7f3);
}
.extended-bar-row small {
    color: var(--muted);
    font-size: 9px;
    text-align: right;
}
.accident-preview-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.accident-preview-row {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr) 180px 85px;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-top: 1px solid #edf0f3;
    color: var(--text);
    text-decoration: none;
}
.accident-preview-row:first-child { border-top: 0; }
.accident-preview-row:hover { background: #f8fafc; }
.accident-preview-row strong { font-size: 11px; }
.accident-preview-row > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.accident-preview-row small {
    color: var(--muted);
    font-size: 9px;
    text-align: right;
}
.severity {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
}
.severity-3 { color: #a62d36; background: #fff0f1; }
.severity-2 { color: #8a5a0c; background: #fff5dc; }
.severity-1 { color: #237155; background: #edf8f4; }
.severity-0 { color: #516071; background: #eef2f5; }
.accidents-list-main { min-height: 60vh; }
.accidents-table-section { padding-top: 28px; padding-bottom: 44px; }
.accidents-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.accidents-table-head,
.accidents-table-row {
    display: grid;
    grid-template-columns: 145px minmax(0,1fr) 190px 75px 24px;
    align-items: center;
    gap: 15px;
}
.accidents-table-head {
    padding: 11px 16px;
    background: #f3f6f9;
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.accidents-table-row {
    padding: 14px 16px;
    border-top: 1px solid #edf0f3;
    color: var(--text);
    text-decoration: none;
}
.accidents-table-row:hover { background: #f9fbfd; }
.accidents-table-row strong {
    display: grid;
    gap: 2px;
    font-size: 11px;
}
.accidents-table-row strong small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
}
.accidents-table-row > span { color: var(--muted); font-size: 11px; }
.accidents-table-row b { color: var(--accent); }
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
}
.pagination a,
.pagination span {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 10px;
}
.pagination a {
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}
.pagination span { color: var(--muted); }
.accidents-method-note {
    max-width: 800px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}
.accident-detail-hero { padding: 48px 0 24px; }
.accident-detail-hero h1 {
    max-width: 960px;
    margin: 7px 0 13px;
    font-size: clamp(36px,5.5vw,58px);
    line-height: 1.04;
    letter-spacing: -.045em;
}
.accident-detail-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.accident-detail-kpis > div {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.accident-detail-kpis span,
.accident-detail-kpis strong { display: block; }
.accident-detail-kpis span { color: var(--muted); font-size: 9px; }
.accident-detail-kpis strong {
    margin-top: 6px;
    font-size: 27px;
    letter-spacing: -.04em;
}
.accident-detail-grid,
.accident-detail-tables {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
    margin-bottom: 16px;
}
.accident-detail-grid h2,
.accident-detail-tables h2 {
    margin: 5px 0 17px;
    font-size: 21px;
}
.metric-list {
    display: grid;
    gap: 8px;
    margin: 0;
}
.metric-list > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #edf0f3;
}
.metric-list > div:first-child { border-top: 0; }
.metric-list dt { color: var(--muted); font-size: 10px; }
.metric-list dd { margin: 0; font-size: 11px; font-weight: 750; }
.accident-detail-map-section { margin: 30px auto; }
.accident-detail-map {
    min-height: 410px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #e9edf2;
}
.detail-list,
.detail-users { display: grid; gap: 8px; }
.detail-list > div,
.detail-users > div {
    padding: 12px;
    border-radius: 11px;
    background: #f6f8fb;
}
.detail-list strong,
.detail-list span,
.detail-users strong,
.detail-users span,
.detail-users small { display: block; }
.detail-list strong,
.detail-users strong { font-size: 11px; }
.detail-list span,
.detail-users span,
.detail-users small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}
.detail-users > div > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.related-accidents-section { margin-top: 30px; margin-bottom: 28px; }
.related-accidents-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}
.related-accidents-grid a {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    text-decoration: none;
}
.related-accidents-grid strong { font-size: 11px; }
.related-accidents-grid span {
    margin: 7px 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}
.related-accidents-grid small {
    margin-top: auto;
    color: var(--accent-dark);
    font-weight: 750;
}
.accident-method-box {
    margin: 25px 0;
    padding: 20px;
    border-radius: 14px;
    background: #f6f8fb;
}
.accident-method-box strong { display: block; margin-bottom: 7px; }
.accident-method-box p {
    max-width: 900px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}
.accident-method-box a {
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 800;
}
.methodology-v15 { margin-top: 32px; }

@media (max-width: 850px) {
    .population-head { flex-direction: column; }
    .population-main { text-align: left; }
    .population-kpis,
    .extended-profile-grid,
    .accident-detail-grid,
    .accident-detail-tables { grid-template-columns: 1fr; }
    .historical-map-count { width: 100%; margin-left: 0; }
    .accident-preview-row { grid-template-columns: 95px minmax(0,1fr); }
    .accidents-table-head { display: none; }
    .accidents-table-row { grid-template-columns: 105px minmax(0,1fr); }
    .accident-detail-kpis { grid-template-columns: repeat(2,1fr); }
    .related-accidents-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .population-kpis,
    .accident-detail-kpis { grid-template-columns: 1fr; }
    .historical-map-canvas { min-height: 390px; }
    .historical-map-severity { width: 100%; flex-wrap: wrap; }
    .extended-bar-row { grid-template-columns: 1fr 50px; }
    .extended-bar-label { grid-column: 1 / -1; }
    .metric-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* === V1.6 : finition, comparaison, maillage, qualité === */
.v16-comparison-section,
.v16-quality-section,
.v16-links-section,
.v16-national-section,
.v16-narrative-section {
    margin-top: 40px;
    margin-bottom: 32px;
}

.v16-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.v16-comparison-card {
    padding: 20px;
}

.v16-comparison-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.v16-comparison-card-head strong {
    max-width: 75%;
    font-size: 18px;
    line-height: 1.2;
}

.v16-comparison-card-head span {
    padding: 5px 7px;
    border-radius: 999px;
    background: #eef4f8;
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.v16-comparison-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.v16-comparison-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-top: 1px solid #edf0f3;
}

.v16-comparison-card dt {
    color: var(--muted);
    font-size: 10px;
}

.v16-comparison-card dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}

.v16-method-note {
    max-width: 900px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.v16-quality-box {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(220px,.7fr);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.v16-quality-box h2 {
    margin: 5px 0 0;
    font-size: clamp(22px,2.8vw,31px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.v16-quality-box > p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #edf0f3;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.v16-quality-meter strong,
.v16-quality-meter span {
    display: block;
    text-align: right;
}

.v16-quality-meter strong {
    font-size: 36px;
    letter-spacing: -.05em;
}

.v16-quality-meter span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.v16-quality-track {
    height: 9px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f5;
}

.v16-quality-track > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#2588e7,#6fc0f5);
}

.v16-parent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.v16-parent-links a {
    display: flex;
    min-width: 180px;
    flex-direction: column;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.v16-parent-links small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.v16-parent-links strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 12px;
}

.v16-link-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 9px;
}

.v16-link-grid a {
    min-height: 82px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.v16-link-grid strong,
.v16-link-grid span {
    display: block;
}

.v16-link-grid strong {
    color: var(--text);
    font-size: 11px;
}

.v16-link-grid span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.v16-secondary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.v16-secondary-links a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--text);
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
}

.v16-secondary-links small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
}

.v16-narrative {
    padding: clamp(24px,4vw,40px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.v16-narrative h2 {
    max-width: 850px;
    margin: 6px 0 18px;
    font-size: clamp(26px,3vw,36px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.v16-narrative > p {
    max-width: 900px;
    color: #526071;
    font-size: 13px;
    line-height: 1.78;
}

.v16-narrative > p strong {
    color: var(--text);
}

.v16-narrative-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.v16-narrative-links a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f9fb;
    color: var(--text);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.v16-national-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.v16-national-kpis > div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.v16-national-kpis span,
.v16-national-kpis strong {
    display: block;
}

.v16-national-kpis span {
    min-height: 27px;
    color: var(--muted);
    font-size: 9px;
}

.v16-national-kpis strong {
    margin-top: 7px;
    font-size: 27px;
    letter-spacing: -.045em;
}

.v16-national-columns {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
}

.v16-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.v16-panel-head h3 {
    margin: 4px 0 0;
    font-size: 19px;
}

.v16-panel-head > a {
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.v16-ranking-list {
    display: grid;
}

.v16-ranking-list a {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid #edf0f3;
    text-decoration: none;
}

.v16-ranking-list a:first-child {
    border-top: 0;
}

.v16-ranking-list a > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: #eef4f8;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
}

.v16-ranking-list strong {
    color: var(--text);
    font-size: 10px;
}

.v16-ranking-list strong small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
}

.v16-ranking-list em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.v16-national-quality {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
    padding: 15px 17px;
    border-radius: 13px;
    background: #f5f8fb;
}

.v16-national-quality strong {
    font-size: 20px;
    letter-spacing: -.04em;
}

.v16-national-quality span {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.v16-national-quality a {
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .v16-comparison-grid,
    .v16-link-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .v16-national-kpis {
        grid-template-columns: repeat(2,1fr);
    }

    .v16-national-columns {
        grid-template-columns: 1fr;
    }

    .v16-quality-box {
        grid-template-columns: 1fr;
    }

    .v16-quality-meter strong,
    .v16-quality-meter span {
        text-align: left;
    }

    .v16-quality-box > p {
        grid-column: auto;
    }

    .v16-national-quality {
        grid-template-columns: auto 1fr;
    }

    .v16-national-quality a {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .v16-comparison-grid,
    .v16-link-grid,
    .v16-national-kpis {
        grid-template-columns: 1fr;
    }

    .v16-comparison-card dl > div {
        align-items: flex-start;
    }

    .v16-parent-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .v16-parent-links a {
        min-width: 0;
    }

    .v16-panel-head {
        flex-direction: column;
    }
}


/* === V1.8.1 : lisibilité des micro-textes === */
.v16-comparison-card-head span { font-size: 10px; }
.v16-comparison-card dt { font-size: 12px; }
.v16-method-note { font-size: 12px; }
.v16-quality-box > p { font-size: 12px; }
.v16-quality-meter span { font-size: 11px; }
.v16-parent-links small { font-size: 10px; }
.v16-parent-links strong { font-size: 13px; }
.v16-link-grid strong { font-size: 12px; }
.v16-link-grid span { font-size: 11px; }
.v16-secondary-links a { font-size: 11px; }
.v16-secondary-links small { font-size: 10px; }
.v16-national-kpis span { font-size: 11px; }
.v16-panel-head > a { font-size: 11px; }
.v16-ranking-list a > span { font-size: 10px; }
.v16-ranking-list strong { font-size: 12px; }
.v16-ranking-list strong small { font-size: 10px; }
.v16-ranking-list em { font-size: 11px; }
.v16-national-quality span,
.v16-national-quality a { font-size: 11px; }
.v16-narrative-links a { font-size: 11px; }
.v16-ranking-list a { min-height: 38px; }


/* === V1.9 : images du blog === */
.article-featured {
    margin-top: 22px;
    margin-bottom: 34px;
}

.article-featured img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    border-radius: 18px;
    background: #eef2f5;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.article-content figure.article-media,
.article-content figure {
    margin: 34px 0;
}

.article-content figure img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px;
}

.article-content figcaption {
    max-width: 760px;
    margin: 9px auto 0;
    color: #748093;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.blog-card-image,
.latest-article-image {
    overflow: hidden;
    margin: 0 0 13px;
    border-radius: 10px;
    background: #edf1f5;
}

.blog-card-image img,
.latest-article-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .25s ease;
}

.blog-index-card a:hover .blog-card-image img,
.latest-article-card a:hover .latest-article-image img {
    transform: scale(1.025);
}

.latest-articles-grid:has(.latest-article-image) {
    align-items: stretch;
}

.latest-article-card a {
    height: 100%;
}

@media (max-width: 680px) {
    .article-featured {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .article-featured img {
        border-radius: 12px;
    }
}


/* === V2.2 : page Partenaires === */
.partners-public-content {
    padding-top: 34px;
    padding-bottom: 72px;
}

.partners-empty-public {
    padding: 34px 36px;
    border: 1px dashed #d8e0e8;
    border-radius: 18px;
    background: #fff;
}

.partners-empty-public h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.035em;
}

.partners-empty-public p {
    max-width: 820px;
    margin: 0;
    color: #53657b;
    font-size: 16px;
    line-height: 1.65;
}

.partners-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.partner-public-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid #dde5ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(20, 37, 60, .035);
}

.partner-public-label {
    margin: 0 0 10px !important;
    color: #ef3535 !important;
    font-size: 11px !important;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.partner-public-card h2 {
    margin: 0 0 13px;
    color: #142238;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.partner-public-card p {
    margin: 0;
    color: #53657b;
    font-size: 15px;
    line-height: 1.65;
}

.partner-public-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    color: #e3262e;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.partner-public-link:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .partners-public-grid {
        grid-template-columns: 1fr;
    }

    .partner-public-card {
        min-height: 0;
        padding: 22px;
    }

    .partners-empty-public {
        padding: 24px;
    }
}
