/* voiture-radar.fr — piste C « Atlas » */
/* Polices hébergées sur le site (SIL Open Font License, voir fonts/LISEZMOI.txt) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/spline-sans-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/spline-sans-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --fond: #F5F7F4;
  --carte: #FFFFFF;
  --encre: #1B1F24;
  --texte2: #3A423D;
  --gris: #5B6460;
  --trait: #D5DAD3;
  --trait2: #ECEFEA;
  --brique: #8E2A17;
  --brique-fonce: #5E1A0D;
  --c0: #E4E7E1;
  --c1: #F2B33D;
  --c2: #D9622B;
  --c3: #8E2A17;
  --v1: #A7BED6;
  --v2: #D9622B;
  --v3: #8E2A17;
  --g: #C9CFC6;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.55 var(--sans); }
a { color: var(--brique); text-underline-offset: 2px; }
a:hover { color: var(--brique-fonce); }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- en-tête ---- */
.site-head { background: var(--carte); border-bottom: 1px solid var(--trait); padding: 10px 0 12px; position: relative; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { color: var(--brique); }
.logo:hover { color: var(--encre); }
.nav-desk { display: none; gap: 22px; }
.nav-desk a, .nav-mob nav a { color: var(--encre); text-decoration: none; font-weight: 600; }
.nav-desk a:hover { color: var(--brique); }
.nav-mob { position: relative; }
.nav-mob summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--trait); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nav-mob summary::-webkit-details-marker { display: none; }
.nav-mob nav { position: absolute; right: 0; top: 52px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 6px; min-width: 240px; box-shadow: 0 10px 30px rgba(27, 31, 36, 0.12); display: flex; flex-direction: column; }
.nav-mob nav a { padding: 12px; border-radius: 8px; }
.nav-mob nav a:hover { background: var(--fond); }
.search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 12px; min-height: 46px; border: 1px solid #C4CBC2; border-radius: 10px; background: var(--fond); color: var(--gris); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--sans); color: var(--encre); min-height: 44px; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--encre); }
.search-list { position: absolute; left: -1px; right: -1px; top: 50px; margin: 0; padding: 6px; list-style: none; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 10px 30px rgba(27, 31, 36, 0.12); }
.search-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 10px; border-radius: 8px; color: var(--encre); text-decoration: none; }
.search-list a:hover, .search-list a.on { background: var(--fond); }
.search-list .val { font: 13px var(--mono); color: var(--gris); }

.crumbs { font: 12px/1.4 var(--mono); color: var(--gris); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.crumbs a { color: var(--brique); text-decoration: none; }

/* ---- page ---- */
.page { padding-top: 14px; padding-bottom: 40px; }
.hero { margin-bottom: 18px; max-width: 820px; }
.hero h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.surtitre { font: 12px var(--mono); color: var(--gris); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--texte2); margin-top: 12px; }
.note { font-size: 13px; color: var(--gris); }
.cols { display: grid; gap: 8px; }
.col-main, .col-side { min-width: 0; }
.bloc { margin-top: 30px; }
.bloc h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.card { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; }

/* ---- cartes ---- */
.atlas { margin: 0; overflow: hidden; }
.atlas figcaption { border-top: 1px solid var(--trait); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
svg.carte { display: block; width: 100%; height: auto; background: #FAFBF9; }
svg.carte .fond { fill: #EEF1EC; }
svg.carte .terre { fill: #FFFFFF; }
svg.carte .bord { fill: none; stroke: #7C877C; stroke-width: 1.2; stroke-linejoin: round; }
svg.carte .bord-commune { stroke: var(--encre); stroke-width: 2.4; }
svg.carte .c1 { fill: var(--c1); }
svg.carte .c2 { fill: var(--c2); }
svg.carte .c3 { fill: var(--c3); }
svg.carte .v1 { fill: var(--v1); }
svg.carte .v2 { fill: var(--v2); }
svg.carte .v3 { fill: var(--v3); }
svg.carte .g { fill: var(--g); }
svg.carte .voisins { opacity: 0.32; }
svg.carte path.cl { fill: none; }
svg.carte path.cl.c1 { stroke: var(--c1); }
svg.carte path.cl.c2 { stroke: var(--c2); }
svg.carte path.cl.c3 { stroke: var(--c3); }
svg.carte path.cl.v1 { stroke: var(--v1); }
svg.carte path.cl.v2 { stroke: var(--v2); }
svg.carte path.cl.v3 { stroke: var(--v3); }
.atlas[data-layer="radars"] .lyr-jours { display: inline; opacity: 0.35; filter: grayscale(1); }
svg.carte .lyr { display: none; }
.atlas[data-layer="jours"] .lyr-jours, .atlas[data-layer="vitesse"] .lyr-vitesse, .atlas[data-layer="radars"] .lyr-radars { display: inline; }
svg.carte .radar-pt circle { fill: var(--encre); stroke: #FFFFFF; stroke-width: 1.6; }
svg.carte .ville { font-family: var(--sans); font-weight: 600; fill: var(--encre); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3.5px; stroke-linejoin: round; }
svg.carte .ville-pt { fill: var(--encre); stroke: #FFFFFF; stroke-width: 1.5; }
svg.carte .echelle path { fill: none; stroke: var(--encre); stroke-width: 1.5; }
svg.carte .echelle text { font-family: var(--mono); fill: var(--encre); }
.carte-fr path { stroke: #FFFFFF; stroke-width: 0.8; stroke-linejoin: round; }
.carte-fr .c0 { fill: var(--c0); }
.carte-fr a:hover path, .carte-fr a:focus path { stroke: var(--encre); stroke-width: 1.6; }
.carte-fr .actif { fill: none; stroke: var(--encre); stroke-width: 2; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legend-titre { font-weight: 600; font-size: 14px; }
.sw { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--c0); }
.sw.c0 { box-shadow: inset 0 0 0 1px #C4CBC2; }
.sw.c1 { background: var(--c1); } .sw.c2 { background: var(--c2); } .sw.c3 { background: var(--c3); }
.sw.v1 { background: var(--v1); } .sw.v2 { background: var(--v2); } .sw.v3 { background: var(--v3); }
.sw.g { background: var(--g); }
.sw-radar { width: 12px; height: 12px; border-radius: 50%; background: var(--encre); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--trait); }
.atlas .for-jours, .atlas .for-vitesse, .atlas .for-radars { display: none; }
.atlas[data-layer="jours"] .for-jours, .atlas[data-layer="vitesse"] .for-vitesse, .atlas[data-layer="radars"] .for-radars { display: flex; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #C4CBC2; background: var(--carte); color: var(--encre); font: 600 14px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--brique); background: var(--brique); color: #FFFFFF; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brique-fonce); color: #FFFFFF; }
.btn-ghost { background: var(--carte); color: var(--brique); border-color: #C4CBC2; }
.btn-ghost:hover { background: var(--fond); color: var(--brique-fonce); }
.col-main > .btn { margin-top: 10px; }

/* ---- chiffres ---- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.tile { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font: 600 24px/1.1 var(--mono); color: var(--brique); }
.tile span { font-size: 13px; color: var(--texte2); line-height: 1.35; }
.jauge { height: 8px; border-radius: 4px; background: var(--trait2); margin-top: 14px; overflow: hidden; }
.jauge span { display: block; height: 8px; background: var(--c2); }
.jauge + .note { margin-top: 6px; }

/* ---- listes ---- */
.index { list-style: none; margin: 0; padding: 0; font: 14px var(--mono); }
.index a, .index .a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--encre); text-decoration: none; border-bottom: 1px dotted #A9B1A7; }
.index .nom { font: 600 16px var(--sans); }
.index a:hover .nom { color: var(--brique); }
.index .dep { color: var(--gris); }
.index .fil { flex: 1; }
.voisins { list-style: none; margin: 0; padding: 0; }
.voisins a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: var(--encre); text-decoration: none; border-bottom: 1px dotted #A9B1A7; font-weight: 600; }
.voisins a:hover { color: var(--brique); }
.val { font: 400 14px var(--mono); color: var(--texte2); white-space: nowrap; }
.carte-lien { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; text-decoration: none; color: var(--encre); font-weight: 600; }
.carte-lien:hover { border-color: var(--brique); }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 28px; margin-top: 12px; }
.region h3 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); padding-bottom: 6px; border-bottom: 1px solid var(--trait); }
.region ul { list-style: none; margin: 0; padding: 0; }
.region a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 40px; color: var(--encre); text-decoration: none; border-bottom: 1px dotted #C4CBC2; }
.region a:hover { color: var(--brique); }
.region .dep { color: var(--gris); font: 12px var(--mono); }
.types { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.types li { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.types b { font: 600 18px var(--mono); margin-right: 4px; }
details.liste { margin-top: 10px; }
details.liste > summary { cursor: pointer; font-weight: 600; color: var(--brique); min-height: 44px; display: flex; align-items: center; }
.az { list-style: none; margin: 6px 0 0; padding: 0; columns: 2; column-gap: 20px; font-size: 14px; }
.az li { break-inside: avoid; padding: 3px 0; }
.az .val { font-size: 12px; color: var(--gris); }

/* ---- tableaux ---- */
.table-box { overflow-x: auto; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; margin: 10px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--trait2); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); border-bottom: 1px solid var(--trait); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data td { font-family: var(--mono); }
table.data .fort { color: var(--brique); font-weight: 600; }

/* ---- mois ---- */
.mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 12px 0 6px; }
.m { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-val { font: 11px var(--mono); color: var(--texte2); min-height: 15px; }
.m-bar { position: relative; width: 100%; height: 90px; background: var(--trait2); border-radius: 4px; overflow: hidden; }
.m-bar span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c2); }
.m-lab { font: 10px var(--mono); color: var(--gris); }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.faq details p { color: var(--texte2); margin: 0 0 14px; }

/* ---- textes ---- */
.texte { max-width: 780px; }
.texte h2 { font-size: 22px; margin: 28px 0 8px; }
.texte ul { padding-left: 20px; }
.texte li { margin-bottom: 6px; }
.texte dt { font-weight: 700; margin-top: 12px; }
.texte dd { margin: 2px 0 0; color: var(--texte2); }

/* ---- carte interactive ---- */
.carte-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.carte-outils select { min-height: 46px; border-radius: 10px; border: 1px solid #C4CBC2; background: var(--carte); color: var(--encre); font: 16px var(--sans); padding: 0 10px; max-width: 100%; }
.carte-outils .chips { margin: 0; }
.map-box { height: 68vh; min-height: 420px; overflow: hidden; }
.legend-carte { margin-top: 10px; }
.leaflet-container { font-family: var(--sans); background: #EEF1EC; }
.p-carte .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(0.88); }
.popup b { font-family: var(--mono); }

/* ---- pied ---- */
.site-foot { background: var(--carte); border-top: 1px solid var(--trait); margin-top: 40px; padding: 26px 0 30px; font-size: 14px; color: var(--texte2); }
.foot-grid { display: grid; gap: 18px; }
.foot-logo { font-weight: 700; color: var(--encre); font-size: 16px; margin-bottom: 6px; }
.site-foot nav { display: flex; flex-direction: column; gap: 4px; }
.site-foot nav a { color: var(--encre); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-foot nav a:hover { color: var(--brique); }
.foot-src { font: 11px/1.5 var(--mono); color: var(--gris); margin-top: 18px; }

@media (min-width: 860px) {
  .nav-desk { display: flex; }
  .nav-mob { display: none; }
  .site-head .wrap:last-child { max-width: 1120px; }
  .search { margin-top: 10px; }
  .hero h1 { font-size: 42px; }
  .foot-grid { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 980px) {
  .cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .col-side .bloc:first-child { margin-top: 0; }
  .col-side .tiles { margin-top: 0; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 27px; }
  .az { columns: 1; }
}
@media (max-width: 480px) {
  table.data th, table.data td { padding: 9px 7px; font-size: 13px; }
  table.data thead th { font-size: 10px; }
}

/* ---- guides ---- */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.guide-carte { display: flex; flex-direction: column; gap: 10px; min-height: 112px; padding: 14px; border-radius: 12px; background: var(--carte); border: 1px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; }
.guide-carte svg { color: var(--brique); }
.guide-carte:hover { border-color: var(--brique); color: var(--encre); }
.guide h1 { font-size: 30px; }
.guide h2 { font-size: 23px; margin: 30px 0 10px; }
.guide h3 { font-size: 18px; margin: 20px 0 6px; }
.guide p, .guide li { font-size: 17px; line-height: 1.6; }
.guide .note, .guide .table-box td, .guide .table-box th { font-size: 14px; }
.guide .encadre { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.guide .encadre p:last-child { margin-bottom: 0; }
.guide .encadre-fort { border: 2px solid var(--encre); }
.sources { margin-top: 36px; padding-top: 6px; border-top: 1px solid var(--trait); }
.sources h2 { font-size: 16px !important; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); }
.sources li { font-size: 14px !important; }
.encart { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 16px; }
.encart h2 { font-size: 19px; }
.encart p { font-size: 15px; color: var(--texte2); }

/* ---- calculateur ---- */
.calc { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 16px; margin: 18px 0 8px; }
.calc fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.calc legend, .calc .calc-lab { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); margin-bottom: 8px; padding: 0; display: block; }
.limites { display: flex; flex-wrap: wrap; gap: 6px; }
.limite { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #FFFFFF; box-shadow: inset 0 0 0 6px #C8102E; font: 700 18px var(--sans); color: var(--encre); cursor: pointer; }
.limite[aria-pressed="true"] { box-shadow: inset 0 0 0 6px #C8102E, 0 0 0 3px #FFFFFF, 0 0 0 6px var(--encre); }
.stepper { display: flex; align-items: center; gap: 6px; border: 2px solid var(--encre); border-radius: 12px; padding: 6px; }
.stepper button { width: 48px; height: 48px; flex: none; border: 0; border-radius: 9px; background: var(--fond); font: 600 16px var(--mono); color: var(--encre); cursor: pointer; }
.stepper input { flex: 1; min-width: 0; width: 100%; border: 0; text-align: center; font: 600 30px var(--mono); color: var(--encre); background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-res { margin-top: 14px; border-radius: 12px; padding: 16px; background: var(--fond); }
.calc-res.exces { background: #FBEDE6; }
.calc-res .k { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); }
.calc-res .v { font: 600 44px/1.05 var(--mono); color: var(--encre); margin: 4px 0 6px; }
.calc-res.exces .v, .calc-res.exces .verdict { color: var(--brique); }
.calc-res .formule { font-size: 15px; color: var(--texte2); margin: 0 0 4px; }
.calc-res .verdict { font-weight: 700; font-size: 17px; margin: 0; }
@media (min-width: 640px) { .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
table.data.texte-table th, table.data.texte-table td { white-space: normal; text-align: left; font-family: var(--sans); vertical-align: top; min-width: 120px; }
table.data.bareme tbody th { white-space: normal; min-width: 150px; font-weight: 600; }
.guide .surtitre { font-size: 12px; line-height: 1.4; }
.chips-annees { margin-top: -4px; }
.chip-annee { font-family: var(--mono); font-weight: 500; }

/* ---- formulaire ---- */
.formulaire { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 600; }
.champ input, .champ select, .champ textarea { font: 16px var(--sans); color: var(--encre); background: var(--carte); border: 1px solid #C4CBC2; border-radius: 10px; padding: 12px; min-height: 48px; width: 100%; }
.champ textarea { resize: vertical; }
.champ [aria-invalid="true"] { border-color: var(--brique); border-width: 2px; }
.champ-erreur { color: var(--brique); font-weight: 600; font-size: 14px; margin: 0; }
.facultatif { font-weight: 400; color: var(--gris); }
.alerte { background: #FBEDE6; border: 1px solid var(--brique); border-radius: 10px; padding: 12px 14px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn { align-self: flex-start; }

/* ---- accueil ---- */
.a-hero { background-color: var(--carte); border-bottom: 1px solid var(--trait); padding: 26px 0 28px;
  background-image: linear-gradient(var(--trait2) 1px, transparent 1px), linear-gradient(90deg, var(--trait2) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top; }
.a-hero-grille { display: grid; gap: 22px; }
.a-hero-texte { min-width: 0; }
.a-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.a-hero .lead { font-size: 18px; max-width: 34em; }
.a-recherche { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.a-recherche .search { flex: 1 1 260px; margin-top: 0; min-height: 56px; background: var(--carte); border: 2px solid var(--encre); border-radius: 12px; }
.a-recherche .search input { font-size: 17px; }
.a-recherche .search-list { top: 60px; }
.a-recherche .btn { min-height: 56px; border-radius: 12px; }
.a-plus { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; color: var(--gris); }
.a-plus a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--fond); border: 1px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 600; }
.a-plus a:hover { border-color: var(--brique); color: var(--brique); }
.a-plus .a-tous { background: transparent; border-color: transparent; color: var(--brique); padding: 0 4px; }
.a-carte { box-shadow: 0 14px 40px rgba(27, 31, 36, 0.08); }
.a-carte svg.carte { background: var(--carte); }
.a-carte .legend .val { margin-left: auto; font-size: 12px; color: var(--gris); }
.a-carte .legend li { width: 100%; }

.a-chiffres { background: var(--encre); color: #FFFFFF; }
.a-chiffres-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-chiffres-grille > div { padding: 18px 14px 18px 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid #333A42; }
.a-chiffres-grille > div:nth-child(even) { padding-left: 14px; border-left: 1px solid #333A42; }
.a-chiffres-grille > div:nth-last-child(-n+2) { border-bottom: 0; }
.a-chiffres b { font: 600 28px/1.05 var(--mono); color: var(--c1); }
.a-chiffres span { font-size: 13px; line-height: 1.35; color: #D5DAD3; }

.a-kicker { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brique); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.a-kicker::after { content: ''; flex: 1; height: 1px; background: var(--trait); }
.accueil .bloc { margin-top: 38px; }
.accueil .bloc h2 { font-size: 25px; letter-spacing: -0.025em; }
.a-duo { display: grid; gap: 0; }

.a-rangs { list-style: none; margin: 12px 0 0; padding: 0; }
.a-rangs a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 0; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--trait2); }
.a-rang { flex: none; width: 30px; font: 600 15px var(--mono); color: var(--gris); text-align: right; }
.a-rangs li:nth-child(-n+3) .a-rang { color: var(--brique); }
.a-rang-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.a-rang-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.a-rang-ligne .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-rang-ligne .dep { font: 12px var(--mono); color: var(--gris); }
.a-rangs a:hover .nom { color: var(--brique); }
.a-barre { height: 6px; border-radius: 3px; background: var(--trait2); overflow: hidden; }
.a-barre span { display: block; height: 6px; border-radius: 3px; background: var(--c3); }

.a-annees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin: 16px 0 14px; padding: 16px 16px 12px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; }
.a-annee { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.a-annee-n { font: 600 16px var(--mono); }
.a-annee-barre { width: 100%; max-width: 86px; height: 120px; display: flex; align-items: flex-end; }
.a-annee-barre span { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--c2); }
.a-annee:last-child .a-annee-barre span { background: var(--c3); }
.a-annee-an { font: 500 13px var(--mono); color: var(--gris); }

.regions { gap: 14px; }
.region { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 14px 14px 6px; }
.region a { justify-content: flex-start; }
.region .nom { flex: 1; min-width: 0; }
.region li:last-child a { border-bottom: 0; }
.a-faq { max-width: 820px; }

@media (min-width: 720px) {
  .a-chiffres-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .a-chiffres-grille > div { border-bottom: 0; padding: 22px 18px; border-left: 1px solid #333A42; }
  .a-chiffres-grille > div:first-child { border-left: 0; padding-left: 0; }
  .a-chiffres b { font-size: 32px; }
}
@media (min-width: 980px) {
  .a-hero { padding: 44px 0 46px; }
  .a-hero-grille { grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; align-items: center; }
  .a-hero h1 { font-size: 54px; }
  .a-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 600px) { .a-hero .lead { font-size: 16px; } .a-recherche .btn { flex: 1 1 100%; } }

/* ---- page département (reprend le bandeau, les chiffres et les classements de l'accueil) ---- */
.d-hero { padding: 16px 0 26px; }
.d-hero .crumbs { padding-top: 0; margin-bottom: 18px; }
.d-hero h1 { font-size: 31px; max-width: 20em; }
.d-hero .lead { max-width: 44em; }
.a-chiffres b small { font: 500 15px var(--mono); color: #9AA39A; }
.dept .cols .bloc { margin-top: 30px; }
.d-outils { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 12px 0 10px; }
.d-outils .chips { margin: 0; }
.d-carte { box-shadow: 0 14px 40px rgba(27, 31, 36, 0.06); }
.a-rangs .a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 0; border-bottom: 1px solid var(--trait2); }
.d-annees, .d-vma { list-style: none; margin: 14px 0 10px; padding: 6px 16px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; }
.d-annees li, .d-vma li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--trait2); }
.d-annees li:last-child, .d-vma li:last-child { border-bottom: 0; }
.d-an { flex: none; width: 52px; font: 600 15px var(--mono); }
.d-limite { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 15px var(--sans); background: #FFFFFF; box-shadow: inset 0 0 0 5px #C8102E; }
.d-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.d-corps .a-barre { height: 10px; border-radius: 5px; }
.d-corps .a-barre span { height: 10px; border-radius: 5px; }
.d-annees .a-barre span { background: var(--c2); }
.d-annees li:last-child .a-barre span { background: var(--c3); }
.d-barre { position: relative; overflow: visible; }
.d-barre i { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--encre); }
.d-detail { font-size: 13px; color: var(--gris); line-height: 1.35; }
.d-annees .val, .d-vma .val { font-size: 15px; font-weight: 600; min-width: 58px; text-align: right; }
.d-vma .val.fort { color: var(--brique); }
.mois.card { padding: 14px 12px 10px; }
.d-voisins a { gap: 8px; min-height: 40px; }
.d-voisins .val { font-size: 12px; color: var(--gris); }
@media (min-width: 980px) {
  .d-hero { padding: 22px 0 36px; }
  .d-hero h1 { font-size: 46px; }
  .dept .cols { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ---- guides (cartes, bandeau, sommaire, corps) ---- */
.g-icone { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #F6E9E4; color: var(--brique); }
.guide-carte { gap: 6px; min-height: 0; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.guide-carte:hover { box-shadow: 0 10px 28px rgba(27, 31, 36, 0.08); }
.guide-carte .g-icone { margin-bottom: 6px; }
.g-court { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--brique); }
.g-titre { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.g-desc { font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--texte2); margin-top: 2px; }
.g-lire { font-size: 14px; font-weight: 600; color: var(--brique); margin-top: auto; padding-top: 8px; }
.guides-detail { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.guides-detail .guide-carte { padding: 20px; }
.guides-detail .g-titre { font-size: 20px; }
.g-encart-large { margin-top: 28px; }

.g-hero h1 { max-width: 17em; }
.g-tete { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.g-tete .surtitre { margin: 0; }
.g-cols .col-main { max-width: 760px; }
.g-sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: som; }
.g-sommaire li { counter-increment: som; }
.g-sommaire a { display: flex; gap: 10px; padding: 8px 0; color: var(--encre); text-decoration: none; font-size: 15px; line-height: 1.35; border-bottom: 1px dotted #C4CBC2; }
.g-sommaire li:last-child a { border-bottom: 0; }
.g-sommaire a::before { content: counter(som, decimal-leading-zero); font: 600 12px var(--mono); color: var(--brique); padding-top: 3px; }
.g-sommaire a:hover { color: var(--brique); }
.g-sommaire-haut { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 4px 16px; margin: 6px 0 4px; }
.g-sommaire-haut summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.g-sommaire-cote { display: none; }
.g-cote .encart { margin-top: 30px; }

.g-corps { counter-reset: sec; }
.g-corps h2 { counter-increment: sec; margin: 38px 0 12px; padding-top: 18px; border-top: 1px solid var(--trait); font-size: 25px; letter-spacing: -0.025em; scroll-margin-top: 16px; }
.g-corps h2::before { content: counter(sec, decimal-leading-zero); display: block; font: 600 12px var(--mono); letter-spacing: 0.08em; color: var(--brique); margin-bottom: 6px; }
.g-corps > h2:first-child { margin-top: 8px; border-top: 0; padding-top: 0; }
.g-corps ul { padding-left: 0; list-style: none; }
.g-corps ul > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.g-corps ul > li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--c2); }
.g-corps .limites, .g-corps .limites * { padding-left: 0; }
.guide .encadre { border-radius: 12px; padding: 16px 18px; }
.guide .encadre-fort { background: var(--carte); border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--trait); }
.guide .sources { margin-top: 44px; padding: 16px 18px 8px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; }
.guide .sources h2 { margin: 0 0 8px; }
.guide .sources ul { padding-left: 18px; margin: 0 0 8px; }

@media (min-width: 640px) { .guides-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .guides-detail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .g-cote { position: sticky; top: 18px; align-self: start; padding-top: 30px; }
  .g-sommaire-haut { display: none; }
  .g-sommaire-cote { display: block; }
}

/* ---- carte interactive, pages de texte, contact (même bandeau que le reste) ---- */
.carte-outils.card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 14px 16px; margin: 6px 0 14px; }
.carte-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.carte-champ:first-child { flex: 1 1 240px; }
.carte-champ label, .carte-lab { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--gris); }
.carte-champ select { width: 100%; }
.carte-champ-an select { min-width: 96px; font-family: var(--mono); }
.carte-outils .js-proche { margin-left: auto; }
.carte-cadre .map-box { height: 66vh; min-height: 420px; border-radius: 0; }
.carte-cadre figcaption { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.legend-carte { margin: 0; }
.carte-rappel { margin-top: 12px; max-width: 60em; }
.leaflet-container a { color: var(--brique); }
.contact-cols .formulaire.card { margin-top: 30px; padding: 20px; }
.contact-envoye { margin-top: 30px; }
.contact-cols .encart p { font-size: 15px; }
.contact-cols .encart .a-kicker { font-size: 12px; color: var(--brique); }
@media (max-width: 979px) {
  .contact-cols .col-side { order: -1; margin-top: 22px; }
  .contact-cols .formulaire.card { margin-top: 16px; }
  .carte-outils .js-proche { margin-left: 0; flex: 1 1 100%; }
}
@media (max-width: 979px) { .contact-cols .col-side { margin-top: 0; } .contact-cols .g-cote .encart { margin-top: 6px; } }

/* Accueil : le bandeau occupe tout l'écran sous l'en-tête (en-tête 69 px + bandeau = 100vh) */
.a-hero-plein { display: flex; align-items: center; min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); }
.a-hero-plein > .wrap { width: 100%; }
@media (min-width: 1100px) { .a-hero-plein .a-hero-grille { grid-template-columns: minmax(0, 1fr) 520px; } }

/* ---- menu « Cartes » (sous-menu sur ordinateur) ---- */
.nav-desk { align-items: center; }
.nav-cartes { position: relative; }
.nav-cartes summary { list-style: none; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.nav-cartes summary::-webkit-details-marker { display: none; }
.nav-cartes summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-cartes[open] summary, .nav-cartes summary:hover { color: var(--brique); }
.nav-sous { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 260px; display: flex; flex-direction: column; padding: 6px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 10px 30px rgba(27, 31, 36, 0.12); }
.nav-sous a { padding: 11px 12px; border-radius: 8px; white-space: nowrap; }
.nav-sous a:hover { background: var(--fond); }

/* ---- carte des radars fixes ---- */
svg.carte-radars { height: 100%; width: 100%; background: #FAFBF9; }
svg.carte-radars .terre-fr { fill: #FFFFFF; stroke: #B9C1B7; stroke-width: 0.8; stroke-linejoin: round; }
svg.carte-radars .pt { fill: none; stroke-width: 5; stroke-linecap: round; opacity: 0.9; }
.pastille { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 1.5px #FFFFFF; }
.pastille-g { width: 16px; height: 16px; margin: 0; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--trait); }
.chip-type { display: inline-flex; align-items: center; }
.chip-type .val { margin-left: 6px; font-size: 12px; color: inherit; opacity: 0.75; }
.chip-type[aria-pressed="false"] { opacity: 0.55; }
.chip-type[aria-pressed="false"] .pastille { background: #C4CBC2 !important; }
.r-types li { align-items: flex-start; }
.r-types .pastille-g { margin-top: 4px; }
.r-types strong { font-weight: 600; }
.a-cartes-grille { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .a-cartes-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a-cartes-grille .g-titre { font-size: 20px; }

/* ---- pages par type de radar ---- */
.types-grille .g-court { display: inline-flex; align-items: center; }
.t-annees .m-bar { height: 110px; }
.t-annees .m-lab { font-size: 10px; }
table.t-liste td { font-family: var(--sans); font-size: 14px; }
table.t-liste td:nth-child(4), table.t-liste td:nth-child(5) { font-family: var(--mono); white-space: nowrap; }
.r-types strong a { color: var(--encre); }
.r-types strong a:hover { color: var(--brique); }
.types a { color: var(--encre); }

/* Image d'illustration des pages par type (bandeau) */
.t-hero { display: grid; gap: 18px; }
.t-image { margin: 0; }
.t-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--trait); background: var(--trait2); }
.t-image figcaption { font-size: 12px; color: var(--gris); margin-top: 6px; }
@media (min-width: 860px) {
  .t-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; }
  .t-image img { aspect-ratio: 1 / 1; }
}
.t-avert { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #FBEDE6; border: 1px solid #E7B9A6; font-size: 14px; color: var(--texte2); max-width: 44em; }
