:root {
    --navy: #1c3d5a;
    --navy-2: #58708c;
    --navy-3: #93a5b5;
    --ink: #2a2f36;
    --ink-2: #5c6570;
    --hairline: #dfe4ea;
    --bg: #f7f8fa;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.masthead {
    background: var(--navy);
    color: #fff;
    padding: 40px 0 32px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9db8cf;
    margin: 0 0 12px;
}

.masthead h1 {
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 12px;
}

.masthead .meta {
    font-size: 13px;
    color: #c3d4e3;
    margin: 0;
}

.intro {
    font-size: 17px;
    line-height: 1.6;
    margin: 28px 0 20px;
}

.hero {
    margin: 0 0 36px;
}

.hero img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.hero figcaption {
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 6px;
}

h2 {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 600;
    margin: 44px 0 12px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 8px;
}

.filter-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 6px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    appearance: none;
    border: 1px solid var(--hairline);
    background: #fff;
    color: var(--ink);
    border-radius: 3px;
    padding: 0 12px;
    min-height: 34px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.chip[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

.search input {
    width: 100%;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
}

.count {
    font-size: 12px;
    color: var(--ink-2);
    margin: 6px 0 12px;
}

.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.entry {
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--navy);
    border-radius: 3px;
    background: #fff;
}

.entry-cabinet { border-left-color: var(--navy-2); }
.entry-platform { border-left-color: var(--navy-3); }

.entry-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.entry-number {
    color: var(--ink-2);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.badge {
    font-size: 11px;
    line-height: 16px;
    padding: 1px 8px;
    border-radius: 2px;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
    white-space: nowrap;
}

.entry-base {
    font-size: 12px;
    color: var(--ink-2);
    margin: 2px 0 0;
}

.entry-detail {
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.entry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 6px 0 0;
    font-size: 14px;
}

.entry-links a { color: var(--navy); }

.empty {
    padding: 20px 0;
    color: var(--ink-2);
}

section p { margin: 10px 0; }

ol li, ul li { margin-bottom: 8px; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
    border: 1px solid var(--hairline);
}

caption {
    text-align: left;
    font-size: 12px;
    color: var(--ink-2);
    margin-bottom: 6px;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    font-size: 14px;
}

thead th {
    font-size: 13px;
    color: var(--ink);
}

tbody th[scope="row"] {
    color: var(--ink-2);
    font-weight: 400;
    white-space: nowrap;
}

.callout {
    background: #fdf6ec;
    border: 1px solid #ecd9b8;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 36px 0;
}

.callout h2 {
    font-family: var(--sans);
    font-size: 15px;
    margin: 0 0 8px;
}

.callout p { margin: 0; font-size: 14px; }

a { color: var(--navy); }

footer {
    margin-top: 48px;
    padding: 24px 0 40px;
    border-top: 1px solid var(--hairline);
    font-size: 12px;
    color: var(--ink-2);
}

@media (min-width: 768px) {
    .masthead h1 { font-size: 40px; }
    .list { grid-template-columns: 1fr 1fr; }
}

/* Annuaire : tableau triable + carte de France (v2, 22 nov 2026) */
.table-wrap {
    overflow-x: auto;
}

.ann-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ann-table th {
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7686;
    border-bottom: 2px solid #1c3d5a;
    padding: 6px 10px 6px 0;
}

.ann-table td {
    border-bottom: 1px solid #e3e7ec;
    padding: 10px 14px 10px 0;
    vertical-align: top;
}

.sort {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.sort:hover {
    color: #1c3d5a;
}

.cell-number {
    color: #6b7686;
    min-width: 34px;
}

.cell-name {
    font-weight: 700;
    color: #1c3d5a;
    min-width: 150px;
}

.cell-base {
    min-width: 160px;
}

.cell-detail {
    display: block;
}

.cell-links {
    display: block;
    margin-top: 6px;
}

.cell-links a {
    margin-right: 14px;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid #1c3d5a;
    color: #1c3d5a;
    border-radius: 999px;
    white-space: nowrap;
}

.map-wrap {
    margin-top: 8px;
}

.map {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    background: #f4f7fa;
    border: 1px solid #e3e7ec;
    border-radius: 4px;
}

.map-land {
    fill: #e8eef4;
    stroke: #b9c6d2;
    stroke-width: 1;
}

.map-dot circle {
    fill: #1c3d5a;
    fill-opacity: 0.85;
}

.map-dot text {
    font-size: 10px;
    fill: #33404f;
}

.map-list {
    margin-top: 14px;
}

.map-city {
    padding: 3px 0;
    font-size: 14px;
}

.map-city-name {
    font-weight: 700;
    color: #1c3d5a;
}

.map-city-entries {
    color: #55606e;
}

.map-note {
    font-size: 12px;
    color: #6b7686;
    margin-top: 10px;
    max-width: 640px;
}

@media (min-width: 900px) {
    .map-wrap {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 24px;
        align-items: start;
    }

    .map-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .ann-table, .ann-table tbody {
        display: block;
    }

    .ann-table thead {
        display: block;
        margin-bottom: 10px;
    }

    .ann-table thead tr {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    .ann-table thead th {
        display: block;
        border: none;
        padding: 2px 0;
    }

    .ann-table tbody tr {
        display: block;
        border: 1px solid #e3e7ec;
        border-left: 3px solid #1c3d5a;
        border-radius: 3px;
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .ann-table td {
        display: block;
        border: none;
        padding: 2px 0;
    }

    .ann-table td.cell-number,
    .ann-table td.cell-name,
    .ann-table td:nth-child(3) {
        display: inline-block;
        margin-right: 10px;
    }

    .cell-number {
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .cell-number::before {
        content: 'N° ';
    }

    .cell-base {
        color: #55606e;
        font-size: 12px;
        min-width: 0;
    }

    .cell-base::before {
        content: 'Basé à : ';
    }
}
