/* Business Map product layer: atlas, typography, identity and motion. */
:root {
    --canvas: #f5f4ef;
    --ink: #17212d;
    --muted: #53656d;
    --line: #d9dfdc;
    --soft: #e6efed;
    --teal: #086e80;
    --radius: 3px;
    --shadow: none;
    --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}
body {
    background: var(--canvas);
}
h1,
h2,
h3 {
    font-weight: 700;
}
button,
input,
select,
textarea {
    border-radius: 3px !important;
}
.button {
    border-radius: 3px;
    box-shadow: none;
    transition:
        background 180ms,
        border-color 180ms,
        transform 180ms,
        color 180ms;
}
.button:hover {
    transform: translateY(-1px);
    box-shadow: none;
}
.button:active {
    transform: translateY(1px);
}
.button.primary {
    background: var(--navy);
    border-color: var(--navy);
}
.button.primary:hover {
    background: #28434e;
    border-color: #28434e;
}
.button .icon {
    transition: transform 180ms;
}
.button:hover .icon:last-child {
    transform: translateX(2px);
}
.button[aria-busy="true"] {
    opacity: 0.7;
}
.product-brand {
    display: inline-flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.product-brand img {
    display: block;
    width: 212px;
    height: auto;
    max-height: none !important;
}
.product-endorsement {
    margin: -6px 0 0 59px;
    color: #5a6b72;
    font-size: 10px;
    letter-spacing: 0.25px;
    white-space: nowrap;
}
.product-endorsement strong {
    font-weight: 900;
    color: #314854;
}
.product-brand-inverse .product-endorsement {
    color: #a6bac2;
}
.product-brand-inverse .product-endorsement strong {
    color: #dce8e8;
}
.print-brand {
    display: none;
}
.app-header {
    height: 80px;
    padding: 0 30px;
    gap: 32px;
    background: #fff;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
}
.brand {
    min-width: 224px;
    display: flex;
    align-items: center;
}
.main-nav {
    order: 0;
    width: auto;
    height: 100%;
    margin-left: auto;
    gap: 28px;
}
.main-nav a {
    color: #50616a;
    font-size: 13px;
    position: relative;
    border: 0;
}
.main-nav a.active {
    color: var(--navy);
    border: 0;
}
.main-nav a:after {
    position: absolute;
    content: "";
    height: 3px;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease);
}
.main-nav a.active:after,
.main-nav a:hover:after {
    transform: scaleX(1);
}
.main-nav .icon {
    display: none;
}
.account-menu {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}
.account-menu .avatar {
    width: 31px;
    height: 31px;
    background: #e9efed;
    color: #244b57;
    font-size: 12px;
}
.account-name {
    font-size: 11px;
    color: var(--ink);
}
.account-name small,
.account-menu summary > .icon {
    color: var(--muted);
}
.account-dropdown {
    border-radius: 3px;
    box-shadow: 0 8px 24px #17212d12;
}
.eyebrow {
    letter-spacing: 1.5px;
    font-size: 9px;
    font-weight: 700;
}
.page-container {
    max-width: 1440px;
    padding: 30px 40px 65px;
}
.page-heading {
    padding-bottom: 28px;
}
.page-heading h1 {
    font-size: 34px;
    letter-spacing: -1.15px;
    margin-top: 10px;
}
.page-heading h1 span:not(.title-count) {
    color: var(--muted);
    font-weight: 400;
}
.page-heading p {
    font-size: 13px;
}
.title-count {
    background: transparent;
    border: 0;
    font-size: 20px;
    font-weight: 400;
    color: var(--muted);
    padding: 0;
    margin-left: 15px;
}
.panel {
    border-radius: 3px;
    border: 1px solid var(--line);
    box-shadow: none;
}
.panel-toolbar {
    background: transparent;
}
.pill {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 2px 0;
    color: var(--muted);
}
.dossier-tabs {
    gap: 26px;
}
.dossier-tabs a {
    padding-left: 0;
    padding-right: 0;
    font-size: 12px;
}
th {
    font-weight: 700;
    letter-spacing: 0.9px;
    color: var(--muted);
}
tbody tr {
    transition: background 160ms;
}
tbody tr:hover {
    background: #f4f7f3;
}
.record-card {
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0;
    margin: 0;
}
.record-card header h3 {
    font-size: 18px;
}
.record-values {
    background: transparent;
}
.user-entry {
    border-radius: 0;
    border-width: 0 0 1px;
}
.sector-tags .pill {
    padding: 5px 10px 5px 0;
}
.sector-tag {
    max-width: 100%;
}
.sector-tag > svg,
.sector-tag-actions {
    flex: none;
}
.sector-tag [data-sector-name] {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.sector-tag-actions {
    display: inline-flex;
    margin-block: -4px;
}
.sector-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    touch-action: manipulation;
    transition:
        color 150ms,
        background 150ms,
        transform 150ms;
}
.sector-action .icon {
    width: 13px;
    height: 13px;
}
.sector-action:hover,
.sector-action:focus-visible {
    color: var(--teal);
    background: #e8f1ef;
}
.sector-action[data-sector-delete]:hover,
.sector-action[data-sector-delete]:focus-visible {
    color: #aa3949;
    background: #f7e9eb;
}
.sector-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}
.sector-action:active {
    transform: scale(0.93);
}
.sector-dialog {
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overflow-wrap: anywhere;
}
.sector-dialog h2 {
    padding-right: 20px;
}
.sector-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
}
.sector-dialog .field + .field {
    margin-top: 18px;
}
.sector-dialog .confirm-actions {
    flex-wrap: wrap;
    gap: 8px;
}
.sector-dialog .notice {
    margin: 0 0 18px;
}
.sector-dialog[open]::backdrop {
    animation: sector-backdrop-in 180ms ease-out;
}
.sector-dialog.is-closing::backdrop {
    animation: sector-backdrop-out 160ms ease-in forwards;
}
@keyframes sector-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes sector-backdrop-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.notice {
    border-radius: 2px;
    border-width: 0 0 0 3px;
    animation: read-in 0.28s var(--ease);
}
.notice.success {
    background: #e8f1eb;
    border-left-color: #167568;
}
.notice.error {
    border-left-color: #aa3949;
}
.empty-state {
    padding: 36px 16px;
    text-align: left;
}
.empty-symbol {
    background: none;
    border: 0;
    justify-content: flex-start;
    color: var(--teal);
    height: 28px;
    width: auto;
    margin: 0 0 12px;
}
.empty-state h3 {
    font-size: 18px;
    line-height: 1.4;
}
.empty-state p {
    font-size: 12px;
}
.field label {
    font-size: 12px;
    font-weight: 700;
}
.field input,
.field select,
.field textarea {
    background: #fff;
    border-color: #cbd5d3;
    transition:
        border-color 180ms,
        box-shadow 180ms,
        background 180ms;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #88a2a6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #147487;
    box-shadow: 0 0 0 3px #34bed516;
}
.field [aria-invalid="true"] {
    border-color: var(--danger);
}
.form-panel {
    border: 0;
    background: transparent;
    padding: 18px 0 30px 28px;
    border-left: 1px solid var(--line);
    border-radius: 0;
}
.form-panel h2 {
    font-size: 26px;
}
.form-steps button {
    border-radius: 0;
    padding: 14px 10px;
    border-left: 2px solid transparent;
    background: transparent;
}
.form-steps button.active {
    background: transparent;
    color: var(--navy);
    border-left-color: var(--teal);
}
.form-steps button.active span {
    color: var(--teal);
}
.dossier-sidebar .panel {
    border: 0;
    background: transparent;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.dossier-sidebar .panel:first-child {
    border-top: 2px solid var(--navy);
}
.archive-block {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 20px 0;
}
.history-panel {
    margin-top: 34px !important;
    border: 0;
    border-top: 2px solid var(--navy);
    border-radius: 0;
    background: transparent;
    padding: 26px 0 !important;
}
.history-panel .chart-grid {
    gap: 28px 44px;
}
.prose {
    border: 0;
    max-width: 960px;
}
.section-title h2 {
    font-size: 25px;
}
.distribution-row {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.distribution-row svg {
    height: 3px;
}
/* Indicators form one strip, with numerals as the hierarchy. */
.summary-grid {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.summary-card {
    padding: 18px 26px 17px;
}
.summary-card:first-child {
    padding-left: 0;
}
.summary-card + .summary-card:before {
    top: 17px;
    bottom: 17px;
    background: var(--line);
}
.summary-card strong {
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1.35;
    white-space: nowrap;
}
.summary-card strong[data-count-display="Non renseigné"],
.summary-card strong[data-count-display="Non calculable"] {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.4px;
}
.summary-card .eyebrow {
    font-size: 10px;
    letter-spacing: 0.3px;
    text-transform: none;
}
.summary-card small {
    font-size: 10px;
}
.map-page .map-heading {
    padding: 21px 30px 17px;
    align-items: center;
}
.map-heading h1 {
    font-size: 27px !important;
    margin: 5px 0 0;
}
.map-page .summary-grid {
    margin: 0 30px;
}
.map-page .summary-card {
    padding: 12px 24px;
}
.map-page .summary-card:first-child {
    padding-left: 0;
}
.map-page .summary-card strong {
    font-size: 28px;
}
.map-page .summary-card strong[aria-label="Non renseigné"],
.map-page .summary-card strong[data-count-display="Non calculable"] {
    font-size: 20px;
}
.map-toolbar {
    padding: 12px 30px;
    min-height: 61px;
}
.metric-tabs {
    gap: 4px;
    scrollbar-width: thin;
}
.metric-tab {
    border: 0 !important;
    border-radius: 2px !important;
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
    position: relative;
    transition:
        background 0.2s,
        color 0.2s;
}
.metric-tab.active {
    background: var(--navy);
    color: #fff;
}
.metric-tab:not(.active):hover {
    background: #e5ebe6;
}
.metric-tab .icon {
    width: 14px;
}
.period-select {
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
    padding: 0 0 0 18px;
}
.period-select select {
    background: transparent;
}
/* Atlas and its dedicated reading column. */
.map-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
    height: calc(100dvh - 318px);
    min-height: 600px;
}
.explorer {
    border-right: 0;
    z-index: 3;
}
.explorer-top {
    padding: 24px 20px 14px;
}
.section-kicker {
    font-size: 9px;
    letter-spacing: 1px;
}
.section-kicker > span:last-child {
    border: 0;
    background: #edf1ee;
    border-radius: 2px;
    font-size: 11px;
}
.filter-grid {
    max-height: 255px;
}
.filter-grid select {
    font-size: 11px;
}
.search-field {
    background: #f6f7f3;
    border-radius: 2px;
}
.search-field input {
    font-size: 11px;
}
.company-results {
    min-height: 0;
}
.company-result {
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 10px;
    gap: 10px;
    transition: background 0.18s;
}
.company-result.selected {
    background: #edf3ef;
    border-left: 2px solid var(--teal);
    padding-left: 8px;
}
.company-result strong {
    font-size: 12px;
}
.result-metric {
    font-size: 11px;
    color: var(--teal);
    margin-top: 5px;
}
.company-initial,
.company-result:nth-child(n) .company-initial {
    width: 27px;
    height: 30px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    color: #416370;
    font-size: 13px;
    justify-content: flex-start;
}
.company-results .empty-state {
    padding: 25px 10px;
}
.company-results .empty-state h3 {
    font-size: 18px;
    font-weight: 400;
}
.map-stage {
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 248px;
    min-height: 0;
    isolation: isolate;
}
.map-stage:before {
    content: "";
    position: absolute;
    inset: 18px 267px 25px 18px;
    border: 1px solid #e7eeeb;
    pointer-events: none;
    z-index: 0;
}
#benin-map {
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
    animation: none;
}
.map-caption {
    left: 28px;
    top: 23px;
}
.map-caption .eyebrow {
    color: #526b75;
    font-size: 8px;
}
.map-caption strong {
    color: #17212d;
    font-size: 15px;
    font-weight: 400;
}
.map-caption > span:last-child {
    color: #526b75;
    font-size: 10px;
}
.department-shape {
    fill: #eef3f0;
    stroke: #738d94;
    stroke-width: 0.8;
    transition:
        fill 0.22s,
        stroke 0.22s;
}
.department-shape:nth-child(3n + 1) {
    fill: #eef3f0;
}
.department-shape:hover {
    fill: #e0eeeb;
    stroke: #437785;
}
.department-shape[aria-pressed="true"] {
    fill: #cce9e7;
    stroke: #086e80;
    stroke-width: 1.8;
}
.department-labels {
    fill: #405761;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 7.4px;
}
.geographic-context,
.geographic-context .ocean-label {
    fill: #526b75;
    font-size: 9px;
    letter-spacing: 2.8px;
}
.map-buttons {
    left: 28px;
    right: auto;
    top: auto;
    bottom: 40px;
    background: #fff;
    border-color: #b6c7c9;
    box-shadow: none;
    border-radius: 3px;
    padding: 3px;
}
.map-buttons button {
    color: #17212d;
    width: 32px;
    height: 32px;
}
.map-buttons button:hover {
    background: #eef4f1;
}
.map-buttons button[aria-pressed="true"] {
    background: #dcefee;
    color: #086e80;
}
.north-arrow {
    right: 274px;
    bottom: 50px;
    color: #526b75;
    font-weight: 400;
}
.north-arrow path:first-child {
    fill: #17212d;
}
.north-arrow svg {
    width: 15px;
    height: 29px;
}
.map-attribution {
    z-index: 2;
    left: 28px;
    right: 274px;
    bottom: 10px;
    background: none;
    color: #53656d;
    font-size: 8px;
    padding: 0;
}
.map-legend {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    inset: auto;
    width: auto !important;
    max-height: none !important;
    height: 100%;
    background: #fff;
    color: #17212d;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: auto;
}
.map-legend summary {
    padding: 26px 20px 18px;
    gap: 12px;
    font-size: 8px;
    line-height: 1.6;
    color: #53656d;
    letter-spacing: 1.2px;
}
.map-legend summary strong {
    font-size: 18px;
    color: #17212d;
    line-height: 1.25;
    margin-top: 4px;
    font-weight: 400;
}
.legend-index {
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -1px;
    color: #086e80;
    align-self: flex-start;
    margin-top: 5px;
}
.map-legend summary > .icon {
    margin-left: auto;
    width: 12px;
    color: #53656d;
}
.legend-content {
    padding: 0 20px 24px;
    border: 0;
    max-height: none;
    overflow: visible;
}
.legend-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #17212d;
    font-size: 11px;
    gap: 12px;
}
.legend-period > span:last-child {
    font-size: 9px;
    color: #53656d;
    text-align: right;
}
.legend-encodings {
    margin: 18px 0;
    display: grid;
    gap: 9px;
    font-size: 10px;
}
.legend-encodings > div {
    display: grid;
    grid-template-columns: 49px 1fr;
    gap: 5px;
}
.legend-encodings dt {
    color: #53656d;
}
.legend-encodings dd {
    margin: 0;
    color: #17212d;
}
.legend-item {
    font-size: 11px;
    line-height: 1.5;
    color: #17212d;
    padding: 3px 0;
    gap: 6px;
}
.legend-item svg {
    width: 25px;
    height: 29px;
}
.legend-item circle {
    stroke: #fff;
    stroke-width: 0.8;
}
.legend-content p {
    color: #53656d;
    font-size: 10px;
    line-height: 1.8;
    margin: 18px 0;
}
.legend-content #legend-empty {
    font-style: italic;
    color: #53656d;
}
.legend-footnote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 18px;
}
.legend-footnote p {
    margin: 0 !important;
    font-size: 9px !important;
}
.legend-cluster {
    border: 1px solid #8ba7b1;
    border-radius: 50%;
    font-size: 15px;
    min-width: 23px;
    height: 23px;
    display: grid;
    place-content: center;
    color: #086e80;
}
.legend-method {
    display: flex;
    justify-content: space-between;
    color: #086e80;
    font-size: 10px;
    margin-top: 20px;
}
.legend-method:hover {
    text-decoration: underline;
}
.map-loading {
    position: absolute;
    inset: 0 248px auto 0;
    height: 35px;
    background: none;
    display: block;
    text-align: right;
}
.map-loading > span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 0;
    background: #34bed5;
    transform-origin: left;
    animation: map-progress 1.2s ease-in-out infinite;
}
.map-loading small {
    display: inline-block;
    margin: 7px 12px;
    background: #fff;
    color: #086e80;
    padding: 2px 6px;
    font-size: 10px;
}
#map-markers {
    transition: opacity 0.22s;
}
.map-page [aria-busy="true"] #map-markers {
    opacity: 0.7;
}
.company-marker {
    transition: opacity 220ms;
    outline: none;
}
.marker-body {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 180ms var(--ease);
}
.company-marker:hover .marker-body,
.company-marker:focus-visible .marker-body {
    transform: scale(1.12);
}
.marker-body > circle {
    vector-effect: non-scaling-stroke;
    transition:
        r 400ms var(--ease),
        fill 360ms,
        stroke 180ms,
        opacity 220ms;
}
.marker-halo {
    opacity: 0.18;
}
.company-marker:hover .marker-halo,
.company-marker.selected .marker-halo {
    opacity: 0.34;
}
.company-marker.selected .marker-ring {
    opacity: 1;
}
.marker-ring {
    fill: none;
    stroke: #086e80;
    stroke-width: 1;
    opacity: 0;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
}
.company-marker:focus-visible .marker-ring {
    opacity: 1;
    stroke-width: 2;
}
.company-marker.is-secondary {
    opacity: 0.35;
}
.company-marker.is-secondary:hover,
.company-marker.is-secondary:focus-visible {
    opacity: 1;
}
.marker-core {
    stroke: #fff;
    stroke-width: 1.8;
}
.marker-dot {
    fill: #fff;
}
.marker-entrance {
    animation: none;
}
#map-tooltip {
    background: #f5f4ef;
    color: var(--navy);
    border: 0;
    border-left: 3px solid var(--teal);
    border-radius: 2px;
    box-shadow: 0 6px 18px #0002;
    padding: 12px 15px;
    font-size: 12px;
    animation: read-in 150ms var(--ease);
}
#map-tooltip small {
    color: #4f6772;
}
/* Nearby companies: a readable, non-modal lens over a dense geographic area. */
.map-proximity {
    position: fixed;
    z-index: 85;
    width: min(360px, calc(100vw - 24px));
    max-height: min(510px, calc(100dvh - 24px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #bacacb;
    border-top: 3px solid var(--teal);
    border-radius: 3px;
    box-shadow:
        0 12px 36px #17212d24,
        0 2px 5px #17212d0c;
    color: var(--navy);
    overflow: hidden;
}
.map-proximity[hidden] {
    display: none;
}
.proximity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 12px 8px 18px;
}
.proximity-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
}
.proximity-heading h2 {
    font-size: 17px;
    line-height: 1.3;
    margin: 5px 0 0;
    letter-spacing: -0.02em;
}
.proximity-close {
    flex: 0 0 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 2px;
    transition: background 160ms;
}
.proximity-close:hover {
    background: #edf3f2;
}
.proximity-close .icon {
    width: 18px;
    height: 18px;
}
.proximity-context {
    margin: 0;
    padding: 0 18px 13px;
    font-size: 11px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.proximity-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9db4b8 transparent;
    padding: 4px 8px;
}
.proximity-company {
    position: relative;
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 13px 14px 13px 18px;
    text-align: left;
    border-bottom: 1px solid #e6ebea;
    transition: background 160ms;
    overflow-wrap: anywhere;
}
.proximity-company:last-child {
    border-bottom: 0;
}
.proximity-company::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--marker-color);
}
.proximity-company.is-highlighted,
.proximity-company:hover,
.proximity-company:focus-visible {
    background: #edf5f4;
}
.proximity-company:focus-visible,
.proximity-close:focus-visible {
    outline-offset: -3px;
}
.proximity-name {
    font-size: 13px;
    line-height: 1.4;
}
.proximity-meta {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
}
.proximity-value {
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.proximity-hint {
    margin: 0;
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}
#map-markers.has-proximity-highlight .company-marker {
    opacity: 0.28;
}
#map-markers .company-marker.is-proximity-highlight {
    opacity: 1;
}
.is-proximity-highlight .marker-body {
    transform: scale(1.16);
}
.is-proximity-highlight .marker-halo {
    opacity: 0.4;
}
.is-proximity-highlight .marker-ring {
    opacity: 1;
    stroke-width: 2;
    stroke-dasharray: none;
}
@media (pointer: coarse), (max-width: 640px) {
    .proximity-company {
        min-height: 72px;
    }
    .proximity-close {
        flex-basis: 44px;
        height: 44px;
    }
    .proximity-hint {
        display: none;
    }
}
/* Dossier: essential data first, explanations and context after. */
.company-drawer {
    top: 80px;
    width: 460px;
    border-left: 1px solid #bdc8c7;
    box-shadow: -16px 0 44px #0b19251c;
    animation: none;
    background: #fdfdfa;
    z-index: 50;
}
.drawer-bar {
    background: #fdfdfa;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding: 15px 25px;
}
.drawer-bar button {
    color: var(--ink);
    transition:
        background 160ms,
        transform 160ms;
}
.drawer-bar button:hover {
    background: #edf1ec;
    transform: rotate(90deg);
}
.drawer-handle,
.drawer-backdrop {
    display: none;
}
.detail-identity {
    padding: 25px 28px 24px;
    background: transparent;
    border-bottom: 0;
}
.detail-identity h2 {
    font-size: 29px;
    letter-spacing: -0.8px;
    margin: 11px 0 8px;
}
.detail-identity p {
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
}
.detail-identity p > span {
    margin: 0 5px;
}
.inline-meta {
    margin-top: 12px;
    font-size: 10px;
}
.status-line {
    border-left: 2px solid var(--teal);
    padding-left: 8px;
}
.detail-body {
    padding: 0 28px 28px;
}
.detail-metrics {
    border-radius: 0;
    border: 0;
    border-top: 2px solid var(--navy);
    border-bottom: 1px solid var(--line);
    margin: 0 0 27px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.detail-metrics > div {
    border: 0;
    padding: 17px 12px 17px 0;
}
.detail-metrics > div:nth-child(even) {
    padding-left: 17px;
    border-left: 1px solid var(--line);
}
.detail-metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
}
.detail-metrics strong {
    font-size: 22px;
    letter-spacing: -0.6px;
    font-variant-numeric: tabular-nums;
}
.detail-metrics small {
    display: block;
    font-size: 10px;
    margin-top: 3px;
    color: var(--muted);
}
.trend-chart {
    margin: 24px 0;
}
.trend-chart h3 {
    font-size: 13px;
}
.trend-chart svg {
    overflow: visible;
}
.trend-chart text {
    font-size: 10px;
    fill: #53656d;
}
.chart-line {
    animation: none;
    stroke-dasharray: none;
}
.health-panel {
    border-radius: 2px;
    padding: 20px;
    background: var(--navy);
    margin-top: 24px;
}
.health-panel strong {
    color: #70d0df;
    font-weight: 400;
}
.health-panel h3 {
    font-size: 16px;
}
.score-explanation {
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
}
.score-explanation summary {
    font-size: 11px;
}
.risk-summary {
    border: 0;
    padding: 20px 0 0;
}
.risk-summary .icon {
    display: none;
}
.secondary-metrics {
    display: flex;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    gap: 35px;
    margin-top: 20px;
}
.secondary-metrics > span {
    font-size: 10px;
    color: var(--muted);
}
.secondary-metrics strong {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
}
.detail-description {
    font-size: 12px;
    margin: 22px 0;
}
.detail-footer {
    border: 0;
    font-size: 10px;
}
.detail-footer strong {
    font-size: 12px;
}
.drawer-skeleton {
    padding: 30px 28px;
}
.skeleton-line {
    background: #e8ede8;
    height: 11px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}
.skeleton-line:after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, #fff9, transparent);
    animation: skeleton-pass 1.2s ease infinite;
}
.skeleton-line:nth-child(1) {
    width: 40%;
    height: 8px;
}
.skeleton-line:nth-child(2) {
    width: 80%;
    height: 28px;
}
.skeleton-line:nth-child(3) {
    width: 62%;
}
.skeleton-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}
.skeleton-metrics .skeleton-line {
    height: 44px !important;
    width: 100% !important;
}
.skeleton-chart {
    height: 125px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
/* Login artwork depicts geography only: no fictitious locations or indicators. */
.login-shell {
    grid-template-columns: 54% 46%;
    min-height: 100dvh;
}
.login-story {
    padding: 38px 48px 29px;
    min-height: 100dvh;
    display: flex;
    position: relative;
    overflow: hidden;
    background: #17212d;
    color: #f5f4ef;
}
.login-story > .product-brand {
    z-index: 3;
    position: relative;
    align-self: flex-start;
}
.login-story > .product-brand img {
    width: 260px;
}
.login-story .product-endorsement {
    margin-left: 73px;
    font-size: 11px;
    margin-top: -7px;
}
.login-atlas {
    position: absolute;
    inset: 110px -55px 40px 25%;
    color: #668591;
    pointer-events: none;
}
.login-atlas svg {
    width: 100%;
    height: 100%;
}
.login-land path {
    fill: #223744;
    stroke: #7b9da6;
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
}
.login-land path:nth-child(3n) {
    fill: #294650;
}
.atlas-coordinate {
    position: absolute;
    font-size: 9px;
    letter-spacing: 2px;
    color: #adc3c9;
    right: 40px;
}
.coordinate-north {
    top: 10%;
}
.coordinate-south {
    bottom: 13%;
}
.atlas-territory {
    position: absolute;
    bottom: 9%;
    right: 25%;
    font-size: 11px;
    letter-spacing: 4px;
    color: #c8d9db;
}
.atlas-territory > span {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
    color: #9eb7bf;
}
.login-caption {
    margin: auto 0 110px;
    position: relative;
    z-index: 2;
    max-width: 400px;
    pointer-events: none;
}
.login-caption:before {
    content: "";
    position: absolute;
    inset: -30px -60px -20px -50px;
    background: linear-gradient(90deg, #17212d 5%, #17212ded 50%, #17212d00);
    z-index: -1;
}
.login-caption .eyebrow {
    color: #79cddb;
    font-size: 8px;
}
.login-caption h1 {
    font-size: clamp(40px, 4.4vw, 68px);
    line-height: 1.06;
    letter-spacing: -2px;
    margin: 20px 0 0;
    font-weight: 400;
}
.login-story .login-edition {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 26px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #56707b;
    padding-top: 14px;
    color: #adc1c8;
    font-size: 10px;
    letter-spacing: 0.3px;
}
.login-form {
    background: #f7f7f2;
    padding: 60px 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-form-inner {
    max-width: 355px;
    width: 100%;
}
.login-form h2 {
    font-size: 41px;
    letter-spacing: -1.4px;
    font-weight: 400;
    margin: 13px 0 10px;
}
.login-form form {
    margin-top: 40px;
}
.login-form input {
    background: transparent;
    min-height: 49px;
}
.login-form .button {
    min-height: 49px;
    margin-top: 16px;
}
.login-help {
    margin-top: 24px;
    text-align: left;
    font-size: 11px;
    max-width: 300px;
    line-height: 1.8;
    color: var(--muted);
}
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 9px;
    letter-spacing: 0.3px;
    position: absolute;
    bottom: 28px;
    left: 30px;
    right: 30px;
    color: var(--muted);
}
/* Motion enhances visible server output, never gates it. */
.product-ready .app-header {
    animation: read-in 360ms var(--ease) both;
}
.product-ready .map-heading {
    animation: read-in 400ms 50ms var(--ease) both;
}
.product-ready .map-stage #benin-map {
    animation: atlas-in 650ms 80ms var(--ease) both;
}
.product-ready .department-shapes {
    animation: read-in 600ms 200ms var(--ease) both;
}
.product-ready .department-labels {
    animation: read-in 500ms 300ms var(--ease) both;
}
.product-ready .map-legend {
    animation: read-in 400ms 220ms var(--ease) both;
}
.product-ready .summary-grid {
    animation: read-in 360ms 320ms var(--ease) both;
}
.product-ready .login-form-inner {
    animation: read-in 500ms 100ms var(--ease) both;
}
.product-ready .login-land {
    animation: atlas-in 850ms 80ms var(--ease) both;
}
.product-ready .login-caption {
    animation: read-in 550ms 220ms var(--ease) both;
}
.chart-reveal .chart-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: draw-chart 700ms var(--ease) both;
}
.reveal-on-scroll {
    animation: read-in 450ms var(--ease) both;
}
.confirm-dialog {
    max-width: 420px;
    width: calc(100% - 36px);
    border: 0;
    border-top: 4px solid var(--teal);
    border-radius: 3px;
    padding: 30px;
    background: #fcfcf8;
    color: var(--navy);
    box-shadow: 0 20px 80px #0a182d26;
}
.confirm-dialog::backdrop {
    background: #101e29a6;
}
.confirm-dialog h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 14px;
}
.confirm-dialog p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}
.confirm-dialog[open] {
    animation: read-in 220ms var(--ease);
}
@keyframes read-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes atlas-in {
    from {
        opacity: 0;
        transform: translateY(9px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes draw-chart {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes map-progress {
    0% {
        transform: scaleX(0.05);
        opacity: 0.5;
    }
    70% {
        transform: scaleX(0.95);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}
@keyframes skeleton-pass {
    to {
        transform: translateX(100%);
    }
}
@media (max-width: 1200px) {
    .app-header {
        gap: 20px;
        padding: 0 24px;
    }
    .main-nav {
        gap: 24px;
    }
    .account-name {
        display: none;
    }
    .account-menu {
        padding-left: 18px;
    }
    .metric-tab {
        padding: 9px 10px;
        font-size: 10px;
    }
    .map-workspace {
        grid-template-columns: 235px minmax(0, 1fr);
    }
    .map-stage {
        grid-template-columns: minmax(0, 1fr) 215px;
    }
    .map-stage:before {
        right: 231px;
    }
    .map-loading {
        right: 215px;
    }
    .map-attribution {
        right: 226px;
        left: 18px;
    }
    .north-arrow {
        right: 237px;
    }
    .map-caption {
        left: 20px;
    }
    .map-legend summary {
        padding: 25px 16px 18px;
        gap: 8px;
    }
    .map-legend summary strong {
        font-size: 16px;
    }
    .legend-index {
        font-size: 25px;
    }
    .legend-content {
        padding: 0 16px 20px;
    }
    .legend-item {
        font-size: 10px;
    }
    .legend-encodings {
        font-size: 9px;
    }
    .map-page .summary-card {
        padding: 12px 18px;
    }
    .login-story {
        padding-left: 32px;
    }
    .login-caption h1 {
        font-size: 49px;
    }
}
@media (max-width: 900px) {
    .app-header {
        padding: 0 20px;
        gap: 15px;
        flex-wrap: nowrap;
    }
    .brand {
        min-width: 205px;
    }
    .product-brand img {
        width: 195px;
    }
    .product-endorsement {
        font-size: 9px;
        margin-left: 54px;
    }
    .main-nav {
        gap: 18px;
    }
    .main-nav a {
        font-size: 12px;
    }
    .map-heading h1 {
        font-size: 24px !important;
    }
    .map-page .summary-card {
        padding: 12px;
    }
    .map-page .summary-card strong {
        font-size: 23px;
    }
    .metric-tabs {
        overflow-x: auto;
        flex: 1;
    }
    .map-workspace {
        grid-template-columns: 215px minmax(0, 1fr);
        height: auto;
        min-height: 620px;
    }
    .map-stage {
        grid-template-columns: 1fr;
        grid-template-rows: 540px auto;
    }
    .map-stage:before {
        right: 18px;
        bottom: 100px;
    }
    .map-legend {
        grid-column: 1;
        grid-row: 2;
        border-left: 0;
        border-top: 1px solid var(--line);
        height: auto;
        overflow: visible;
    }
    .map-legend summary {
        padding: 14px 20px;
        min-height: 71px;
    }
    .legend-content {
        max-height: 270px;
        overflow-y: auto;
        padding: 0 20px 20px;
    }
    .legend-item {
        font-size: 11px;
    }
    .legend-content p {
        font-size: 11px;
    }
    .map-buttons {
        left: auto;
        right: 18px;
        top: 20px;
        bottom: auto;
    }
    .north-arrow {
        right: 24px;
        top: 475px;
        bottom: auto;
    }
    .map-attribution {
        display: none;
    }
    .map-loading {
        right: 0;
    }
    .company-drawer {
        width: 440px;
    }
    .page-container {
        padding: 24px;
    }
    .form-panel {
        padding-left: 20px;
    }
    .login-shell {
        grid-template-columns: 48% 52%;
    }
    .login-story {
        padding: 30px 25px;
    }
    .login-story > .product-brand img {
        width: 220px;
    }
    .login-story .product-endorsement {
        margin-left: 62px;
        font-size: 10px;
    }
    .login-atlas {
        inset: 130px -60px 85px 5%;
    }
    .login-caption h1 {
        font-size: 40px;
    }
    .login-form {
        padding: 45px 30px;
    }
}
@media (max-width: 640px) {
    .app-header {
        height: 113px;
        display: flex;
        flex-wrap: wrap;
        padding: 12px 18px 0;
        gap: 0;
        align-items: flex-start;
        justify-content: space-between;
    }
    .brand {
        height: 50px;
        min-width: 190px;
        align-self: auto;
    }
    .product-brand img {
        width: 190px;
    }
    .product-endorsement {
        font-size: 9px;
        margin-top: -5px;
        margin-left: 53px;
    }
    .account-menu {
        margin: 4px 0 0;
        border: 0;
        padding: 0;
    }
    .main-nav {
        order: 3;
        width: 100%;
        height: 40px;
        justify-content: flex-start;
        gap: 30px;
        margin: 10px 0 0;
    }
    .main-nav a {
        font-size: 12px;
        height: 100%;
        padding: 0 0 12px;
    }
    .map-page .map-heading {
        padding: 20px 18px 17px;
        flex-direction: row;
        align-items: center;
    }
    .map-heading .eyebrow {
        font-size: 8px;
    }
    .map-heading h1 {
        font-size: 23px !important;
        line-height: 1.16;
    }
    .map-heading h1 span {
        display: block;
    }
    .map-heading .button {
        min-width: 39px;
        width: 39px;
        height: 39px;
        padding: 9px;
        font-size: 0;
    }
    .map-heading .heading-actions > .quiet {
        display: none;
    }
    .map-page .summary-grid {
        margin: 0 18px;
        grid-template-columns: 1fr 1fr;
    }
    .map-page .summary-card {
        padding: 12px 10px 11px 0;
        min-height: 76px;
    }
    .map-page .summary-card:nth-child(even) {
        padding-left: 16px;
    }
    .summary-card + .summary-card:before {
        display: none;
    }
    .summary-card:nth-child(even) {
        border-left: 1px solid var(--line);
    }
    .summary-card:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
    .map-page .summary-card strong {
        font-size: 23px;
    }
    .map-page .summary-card .eyebrow {
        font-size: 9px;
    }
    .map-page .summary-card small {
        font-size: 9px;
        line-height: 1.6;
    }
    .map-page .summary-card strong[data-count-display="Non renseigné"],
    .map-page .summary-card strong[data-count-display="Non calculable"] {
        font-size: 18px;
    }
    .map-toolbar {
        padding: 11px 18px;
        min-height: 59px;
        gap: 10px;
    }
    .metric-tab {
        padding: 9px;
        font-size: 10px;
    }
    .period-select {
        padding-left: 9px;
    }
    .period-select .icon {
        display: none;
    }
    .period-select select {
        width: 67px;
        font-size: 12px;
        padding: 4px;
    }
    .map-workspace {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }
    .map-stage {
        order: 0;
        grid-template-columns: 1fr;
        grid-template-rows: 555px auto;
        height: auto;
        min-height: 0;
    }
    .map-stage:before {
        inset: 15px 16px 100px;
    }
    .explorer {
        order: 1;
        min-height: 320px;
        border-top: 1px solid var(--line);
    }
    .company-results {
        min-height: 100px;
        max-height: 350px;
    }
    .map-caption strong {
        font-size: 14px;
    }
    .map-buttons {
        top: 18px;
        bottom: auto;
        right: 17px;
        left: auto;
    }
    .map-buttons button {
        width: 31px;
        height: 31px;
    }
    .north-arrow {
        bottom: auto;
        top: 486px;
        right: 27px;
    }
    .map-legend summary {
        padding: 16px 20px;
        min-height: 81px;
    }
    .map-legend summary strong {
        font-size: 18px;
    }
    .legend-content {
        max-height: 330px;
    }
    .legend-encodings {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .legend-encodings > div {
        display: block;
    }
    .legend-encodings dd {
        margin-top: 3px;
    }
    .company-drawer {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 88dvh;
        max-height: calc(100dvh - 35px);
        border: 0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -15px 60px #0003;
    }
    .drawer-handle {
        display: block;
        width: 32px;
        height: 3px;
        background: #a2b5b4;
        border-radius: 3px;
        margin: 10px auto 0;
    }
    .drawer-bar {
        padding: 9px 22px 11px;
    }
    .drawer-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        background: #0c1c29a6;
        border: 0;
        border-radius: 0 !important;
        z-index: 49;
    }
    .detail-identity {
        padding: 21px 23px;
    }
    .detail-body {
        padding: 0 23px 30px;
    }
    .page-container {
        padding: 24px 18px 48px;
    }
    .page-heading h1 {
        font-size: 29px;
    }
    .sectioned-form {
        display: block;
    }
    .form-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 24px 0 20px;
    }
    .form-steps {
        margin: 0 0 12px;
        gap: 10px;
    }
    .form-steps button {
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 10px 0;
        font-size: 10px;
    }
    .form-steps button.active {
        border-left: 0;
        border-bottom-color: var(--teal);
    }
    .form-panel h2 {
        font-size: 24px;
    }
    .panel.padded {
        padding: 22px 18px;
    }
    .dossier-overview > .panel {
        border: 0;
    }
    .dossier-tabs {
        gap: 21px;
    }
    .history-panel .chart-grid {
        gap: 8px;
    }
    .login-shell {
        display: block;
    }
    .login-story {
        min-height: 310px;
        height: 310px;
        padding: 23px 25px;
        display: block;
    }
    .login-story > .product-brand img {
        width: 218px;
    }
    .login-story .product-endorsement {
        margin-left: 61px;
        font-size: 10px;
    }
    .login-atlas {
        inset: 0 -10px -13px 37%;
        opacity: 0.8;
    }
    .atlas-coordinate,
    .atlas-territory {
        display: none;
    }
    .login-caption {
        position: absolute;
        bottom: 30px;
        left: 27px;
        margin: 0;
        max-width: 260px;
    }
    .login-caption h1 {
        font-size: 31px;
        letter-spacing: -0.7px;
        line-height: 1.13;
        margin: 11px 0 0;
    }
    .login-caption .eyebrow {
        font-size: 6px;
        letter-spacing: 1px;
    }
    .login-story .login-edition {
        display: none;
    }
    .login-form {
        padding: 37px 27px 90px;
        min-height: 530px;
        display: block;
    }
    .login-form-inner {
        margin: auto;
    }
    .login-form h2 {
        font-size: 32px;
    }
    .login-form form {
        margin-top: 26px;
    }
    .login-footer {
        bottom: 24px;
    }
    .product-ready .map-stage #benin-map,
    .product-ready .login-land {
        animation-duration: 450ms;
    }
}
/* Map-first workspace. Density is scoped to this screen; management stays unchanged. */
.map-page .app-header {
    height: 56px;
    min-height: 56px;
    flex-shrink: 0;
    padding: 0 22px;
    gap: 24px;
}
.map-page .brand {
    padding: 4px 0;
    min-width: 196px;
}
.map-page .brand .product-brand img {
    width: 184px;
}
.map-page .brand .product-endorsement {
    margin: -5px 0 0 51px;
    font-size: 8px;
}
.map-page .main-nav {
    gap: 24px;
}
.map-page .main-nav a {
    font-size: 12px;
}
.map-page .map-heading {
    padding: 5px 22px;
    min-height: 39px;
    gap: 16px;
    flex-shrink: 0;
}
.map-heading > div:first-child {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 12px;
}
.map-page .map-heading h1 {
    font-size: 19px !important;
    letter-spacing: -0.5px;
    margin: 0;
}
.map-heading .eyebrow {
    font-size: 8px;
}
.map-heading .button {
    padding: 5px 10px;
    min-height: 30px;
    font-size: 11px;
}
.map-heading .heading-actions {
    gap: 8px;
    flex-shrink: 0;
}
.map-page .summary-grid {
    flex-shrink: 0;
    margin: 0 22px;
}
.map-page .summary-card {
    padding: 5px 18px;
    min-height: 0;
}
.map-page .summary-card strong {
    font-size: 21px;
    line-height: 1.18;
    margin: 1px 0;
    letter-spacing: -0.5px;
}
.map-page .summary-card strong[data-count-display="Non renseigné"],
.map-page .summary-card strong[data-count-display="Non calculable"] {
    font-size: 18px;
    line-height: 1.37;
}
.map-page .summary-card .eyebrow,
.map-page .summary-card small {
    font-size: 9px;
    line-height: 1.4;
}
.map-page .summary-card + .summary-card:before {
    top: 7px;
    bottom: 7px;
}
.map-toolbar {
    padding: 5px 22px;
    min-height: 42px;
    flex-shrink: 0;
    gap: 10px;
}
.metric-tabs {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}
.metric-tab {
    padding: 6px 9px;
    min-height: 31px;
}
.period-select {
    flex-shrink: 0;
    padding-left: 12px;
}
.map-workspace {
    --explorer-width: 244px;
    --legend-width: 224px;
    grid-template-columns: var(--explorer-width) minmax(0, 1fr);
    transition: grid-template-columns 320ms var(--ease);
}
.map-workspace.explorer-collapsed {
    grid-template-columns: 48px minmax(0, 1fr);
}
.explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px minmax(0, 1fr);
    border-right: 1px solid var(--line);
    min-width: 0;
}
.explorer-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 0 46px 0 16px;
    border-bottom: 1px solid var(--line);
}
.explorer-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.explorer-toggle {
    position: absolute;
    right: 6px;
    top: 5px;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--teal);
    background: transparent;
    outline-offset: 1px;
    transition: background 160ms;
}
.explorer-toggle:hover,
.explorer-toggle:focus-visible {
    background: #e8f1ee;
}
.explorer-toggle svg {
    width: 20px;
    height: 20px;
}
.explorer-toggle-arrow {
    transform-origin: 14.5px 12px;
    transition: transform 240ms var(--ease);
}
.explorer-collapsed .explorer-toggle-arrow {
    transform: rotate(180deg);
}
.explorer-content {
    display: flex;
    flex-direction: column;
    width: calc(var(--explorer-width) - 1px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 180ms,
        visibility 0s;
}
.explorer-collapsed .explorer-content {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 180ms,
        visibility 0s 180ms;
}
.explorer-collapsed .explorer-title {
    display: none;
}
.explorer-collapsed .explorer-bar {
    padding: 0 6px;
    justify-content: center;
}
.explorer-top {
    padding: 14px 16px 12px;
    flex-shrink: 0;
}
.explorer .section-kicker {
    margin-bottom: 12px;
}
.map-stage {
    grid-template-columns: minmax(0, 1fr) var(--legend-width);
}
.map-stage:before {
    right: calc(var(--legend-width) + 16px);
    inset-block: 14px 24px;
    left: 16px;
}
.map-loading {
    right: var(--legend-width);
}
.map-caption {
    top: 18px;
    left: 24px;
}
.map-attribution {
    right: calc(var(--legend-width) + 18px);
    left: 24px;
}
.north-arrow {
    right: calc(var(--legend-width) + 24px);
}
.map-legend summary {
    padding: 18px 16px 14px;
}
.map-legend .legend-content {
    padding-inline: 16px;
}
.legend-index {
    font-size: 26px;
}
.legend-encodings {
    margin: 14px 0;
}
@media (min-width: 901px) {
    .map-page {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 580px;
    }
    .map-page #main,
    .map-page #map-filters {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .map-workspace {
        flex: 1;
        min-height: 0;
        height: auto;
        overflow: hidden;
    }
}
@media (min-width: 641px) {
    .explorer-content .company-results {
        min-height: 104px;
    }
    .map-page .company-drawer {
        top: 56px;
    }
}
@media (min-width: 641px) and (max-width: 1200px) {
    .map-workspace {
        --explorer-width: 220px;
        --legend-width: 208px;
    }
    .map-heading > div:first-child {
        gap: 1px 10px;
    }
    .map-heading .eyebrow {
        letter-spacing: 1px;
    }
}
@media (max-width: 900px) {
    .map-workspace {
        --explorer-width: 208px;
        min-height: 0;
    }
    .map-stage {
        --map-height: clamp(460px, calc(100svh - 240px), 760px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: var(--map-height) auto;
    }
    .map-stage:before {
        inset: 14px 16px auto;
        height: calc(var(--map-height) - 28px);
    }
    .map-loading {
        right: 0;
    }
    .north-arrow {
        top: calc(var(--map-height) - 63px);
        right: 24px;
    }
    .map-legend {
        min-height: 0;
    }
    .map-legend summary {
        min-height: 63px;
        padding-block: 10px;
    }
}
@media (max-width: 640px) {
    .map-page .app-header {
        height: 84px;
        min-height: 84px;
        padding: 4px 16px 0;
        gap: 0;
    }
    .map-page .brand {
        height: 47px;
        min-width: 184px;
        padding: 0;
    }
    .map-page .main-nav {
        margin: 2px 0 0;
        height: 30px;
        gap: 26px;
    }
    .map-page .main-nav a {
        padding-bottom: 7px;
        font-size: 11px;
    }
    .map-page .account-menu {
        margin-top: 5px;
    }
    .map-page .map-heading {
        padding: 7px 16px;
        gap: 9px;
    }
    .map-page .map-heading h1 {
        font-size: 17px !important;
        line-height: 1.15;
    }
    .map-heading h1 span {
        display: inline;
    }
    .map-page .map-heading .heading-actions > .quiet {
        display: flex;
    }
    .map-page .map-heading .button {
        width: 30px;
        min-width: 30px;
        height: 32px;
        padding: 6px;
        font-size: 0;
    }
    .map-heading .heading-actions {
        gap: 4px;
    }
    .map-page .summary-grid {
        margin: 0 16px;
    }
    .map-page .summary-card {
        padding: 4px 10px 4px 0;
    }
    .map-page .summary-card:nth-child(even) {
        padding-left: 12px;
    }
    .map-page .summary-card strong {
        font-size: 19px;
    }
    .map-page .summary-card strong[data-count-display="Non renseigné"],
    .map-page .summary-card strong[data-count-display="Non calculable"] {
        font-size: 16px;
    }
    .map-page .summary-card small {
        font-size: 8px;
        line-height: 1.3;
    }
    .map-toolbar {
        padding: 4px 16px;
    }
    .metric-tab {
        padding: 6px 8px;
        min-height: 32px;
    }
    .map-stage {
        --map-height: clamp(440px, calc(100svh - 290px), 620px);
    }
    .map-caption {
        left: 22px;
    }
    .explorer {
        min-height: 0;
        grid-template-rows: 44px 1fr;
        transition: grid-template-rows 320ms var(--ease);
    }
    .explorer-content {
        width: 100%;
    }
    .explorer-collapsed .explorer {
        grid-template-rows: 44px 0fr;
    }
    .explorer-collapsed .explorer-title {
        display: block;
    }
    .explorer-collapsed .explorer-bar {
        justify-content: space-between;
        padding: 0 6px 0 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sector-dialog::backdrop {
        animation: none !important;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .chart-reveal .chart-line {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    .skeleton-line:after {
        display: none;
    }
}
@media print {
    .print-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 0 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #17212d;
        color: #17212d;
        font-size: 10px;
    }
    .print-brand .product-brand img {
        width: 190px;
    }
    .print-brand .product-endorsement {
        font-size: 9px;
        margin-left: 53px;
    }
    body {
        background: #fff;
    }
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .summary-card strong {
        font-size: 20px;
    }
    .chart-line {
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
    }
    .drawer-backdrop,
    .map-proximity,
    .confirm-dialog,
    .period-form {
        display: none !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

#map-grid path {
    stroke-opacity: 0.35;
}
.department-shape:nth-child(3n + 1) {
    fill: #eef3f0;
}
.department-shape[aria-pressed="true"] {
    fill: #cce9e7;
}
.department-shape:hover {
    fill: #e0eeeb;
}

.product-ready .department-shape {
    animation: boundary-in 600ms var(--ease) backwards;
}
@keyframes boundary-in {
    from {
        stroke-opacity: 0;
    }
    to {
        stroke-opacity: 1;
    }
}
