/* fps-paris.fr — feuille de style unique (aucune police externe, aucun framework)
   Palette : vert Wallace (mobilier parisien), zinc, papier d'horodateur, jaune signal. */

:root {
  --vert: #1d4a38;
  --vert-fonce: #143528;
  --vert-clair: #e2ece6;
  --zinc: #e8ebe8;
  --blanc: #ffffff;
  --papier: #fbfaf4;
  --encre: #18231d;
  --discret: #52625a;
  --trait: #cdd5d0;
  --signal: #f3c316;
  --signal-pale: #fff6d1;
  --alerte: #a8261c;
  --alerte-pale: #fdeceb;

  /* Titres : typographies de signalétique routière (DIN) selon la plateforme, sinon sans-serif étroit. */
  --f-titre: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Condensed", "Avenir Next Condensed",
             "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-ticket: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --page: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--zinc);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--f-texte);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--vert); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .notice :focus-visible { outline-color: var(--signal); }
[id] { scroll-margin-top: 1rem; }

.container { width: min(100% - 2rem, var(--page)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--signal); color: var(--encre); padding: .6rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { top: .5rem; }

/* ---------- Bandeau d'indépendance + en-tête ---------- */
.notice { background: var(--vert-fonce); color: #dfeae4; font-size: .85rem; line-height: 1.4; }
.notice .container { padding-block: .45rem; }
.notice a { color: #fff; }

.site-header { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--vert); text-decoration: none; }
.brand svg { width: 2.2rem; height: 2.2rem; flex: none; }
.brand__name { display: block; font: 700 1.6rem/1 var(--f-titre); letter-spacing: .01em; }
.brand__tag { display: block; font: 400 .78rem/1.2 var(--f-texte); color: var(--discret); letter-spacing: 0; margin-top: .2rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: .35rem 0; color: var(--encre); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--trait); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* ---------- Titres et texte ---------- */
h1, h2, h3 { font-family: var(--f-titre); color: var(--vert-fonce); font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1.04; letter-spacing: .005em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.05rem); line-height: 1.12; margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.3rem; line-height: 1.2; margin: 1.7rem 0 .4rem; }
p, ul, ol, dl, table, details, pre { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 700; }
.lead { font-size: 1.2rem; line-height: 1.55; color: #26362d; }
.meta { color: var(--discret); font-size: .9rem; margin: .8rem 0 1.4rem; }
small, .small { font-size: .875rem; color: var(--discret); }

/* ---------- Mise en page article + colonne latérale ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1.5rem 3rem; align-items: start; }
@media (min-width: 64rem) { .layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; padding-block: 2rem 4rem; } }
.article { background: var(--blanc); border: 1px solid var(--trait); padding: clamp(1.25rem, 4vw, 2.75rem); max-width: 100%; }
.article > :last-child { margin-bottom: 0; }
.prose { max-width: 42rem; }
.article--wide .prose { max-width: none; }

.crumbs { font-size: .85rem; color: var(--discret); margin-bottom: 1.2rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--trait); }
.crumbs a { color: var(--discret); }

/* ---------- Blocs éditoriaux ---------- */
.brief { background: var(--signal-pale); border-left: 6px solid var(--signal); padding: 1rem 1.25rem 1.1rem; margin: 1.5rem 0; max-width: 42rem; }
.brief__title { font: 700 1.25rem/1.2 var(--f-titre); color: var(--vert-fonce); margin: 0 0 .5rem; }
.brief ul { margin: 0; }
.brief li:last-child { margin-bottom: 0; }

.alert { background: var(--alerte-pale); border-left: 6px solid var(--alerte); padding: .9rem 1.25rem; margin: 1.5rem 0; max-width: 42rem; }
.alert p:last-child { margin-bottom: 0; }
.alert strong:first-child { color: var(--alerte); }

.note { border-left: 4px solid var(--trait); padding: .1rem 0 .1rem 1rem; color: #33443a; max-width: 42rem; }

.toc { border: 1px solid var(--trait); background: #f6f8f6; padding: .9rem 1.25rem; margin: 1.5rem 0; max-width: 42rem; }
.toc__title { font: 700 1.1rem/1.2 var(--f-titre); color: var(--vert-fonce); margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
.toc li { margin-bottom: .2rem; }
@media (min-width: 40rem) { .toc ol { columns: 2; column-gap: 2rem; } }

.steps { list-style: none; padding: 0; counter-reset: etape; max-width: 42rem; }
.steps > li { counter-increment: etape; position: relative; padding: 0 0 1rem 3.2rem; margin: 0; }
.steps > li::before { content: counter(etape); position: absolute; left: 0; top: .05rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--vert); color: #fff; font: 700 1.2rem/1 var(--f-titre); border-radius: 50%; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--trait); }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.5rem; -webkit-overflow-scrolling: touch;
  /* ombres latérales : signalent qu'un tableau déborde et peut défiler */
  background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) 100% 0,
              radial-gradient(farthest-side at 0 50%, rgba(24, 35, 29, .22), rgba(24, 35, 29, 0)), radial-gradient(farthest-side at 100% 50%, rgba(24, 35, 29, .22), rgba(24, 35, 29, 0)) 100% 0;
  background-repeat: no-repeat; background-color: #fff; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.table-wrap--scroll table { min-width: 34rem; }
@media (max-width: 39.99rem) { .hide-m { display: none; } .table-wrap:not(.table-wrap--scroll) th, .table-wrap:not(.table-wrap--scroll) td { padding: .55rem .4rem; } .table-wrap:not(.table-wrap--scroll) table { font-size: .9rem; } .table-wrap:not(.table-wrap--scroll) thead th { font-size: .95rem; } }
caption { text-align: left; font-weight: 700; padding-bottom: .5rem; color: var(--vert-fonce); }
th, td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
thead th { border-bottom: 2px solid var(--vert); font-family: var(--f-titre); font-size: 1.05rem; color: var(--vert-fonce); }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.is-key td, tr.is-key th { background: var(--signal-pale); }

/* Liste de liens (accueil) : lignes typographiques, pas de cartes */
.entries { list-style: none; padding: 0; margin: 1.2rem 0 2rem; border-top: 2px solid var(--vert); }
.entries li { margin: 0; border-bottom: 1px solid var(--trait); }
.entries a { display: grid; gap: .1rem; padding: 1rem .2rem; text-decoration: none; color: var(--encre); }
.entries a:hover { background: var(--vert-clair); }
.entries b { font: 700 1.55rem/1.15 var(--f-titre); color: var(--vert); }
.entries a:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.entries span { color: var(--discret); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--trait); margin: 0; padding: 0; max-width: 42rem; }
.faq details:first-of-type { border-top: 2px solid var(--vert); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; font: 700 1.25rem/1.25 var(--f-titre); color: var(--vert-fonce); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font: 400 1.7rem/1 var(--f-texte); color: var(--vert); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { margin-bottom: 1rem; }

/* Modèle de lettre */
.letter { background: var(--papier); border: 1px dashed #b4b09e; padding: 1.2rem 1.4rem; font: .95rem/1.55 var(--f-ticket); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 42rem; margin-bottom: .8rem; }
.letter mark { background: var(--signal-pale); padding: 0 .15em; }
.btn { display: inline-block; font: 700 1rem/1 var(--f-texte); padding: .85rem 1.2rem; background: var(--vert); color: #fff; border: 0; border-radius: 3px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--vert-fonce); }
.btn--clair { background: transparent; color: var(--vert); border: 2px solid var(--vert); padding: calc(.85rem - 2px) calc(1.2rem - 2px); }
.btn--clair:hover { background: var(--vert-clair); }
.todo { background: var(--signal); color: var(--encre); padding: 0 .25em; font-weight: 600; }

.sources { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 2px solid var(--vert); max-width: 42rem; }
.sources h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.sources ul { margin: 0; }

/* ---------- Colonne latérale ---------- */
.sidebar { display: none; }
@media (min-width: 64rem) { .sidebar { display: block; } }
.related { background: var(--blanc); border: 1px solid var(--trait); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.related__title { font: 700 1.2rem/1.2 var(--f-titre); color: var(--vert-fonce); margin: 0 0 .5rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; border-top: 1px solid var(--trait); }
.related a { display: block; padding: .6rem 0; font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---------- Emplacements publicitaires ---------- */
.ad { margin: 2rem auto; text-align: center; max-width: 100%; }
.ad__label { margin: 0 0 .3rem; font-size: .75rem; line-height: 1; color: var(--discret); }
.ad ins { display: block; min-height: 280px; text-decoration: none; }            /* place réservée : évite les sauts de mise en page */
.ad--fluid ins { min-height: 200px; }
.ad--end ins { min-height: 280px; }
.ad--side { margin: 0 0 1.5rem; }
.ad--side ins { min-height: 250px; }
.ad--tall ins { min-height: 600px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }  /* pas de cadre vide si aucune annonce */
.ad--preview ins { display: grid !important; place-items: center; border: 2px dashed var(--trait); color: var(--discret); font-size: .9rem; background: repeating-linear-gradient(135deg, #f4f6f4 0 12px, #eef1ee 12px 24px); }
.ad--preview ins::after { content: attr(data-preview); }

/* ---------- Accueil : héros + échéancier ---------- */
.hero { background: var(--vert); color: #fff; }
.hero .container { display: grid; gap: 2.2rem; padding-block: 2.2rem 3rem; }
@media (min-width: 60rem) { .hero .container { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; padding-block: 3.2rem 4rem; align-items: center; } }
.hero h1 { color: #fff; }
.hero .lead { color: #d9e8e0; margin: 1rem 0 1.6rem; max-width: 36rem; }
.hero form { display: grid; gap: 1rem; max-width: 30rem; }
.hero label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.hero input, .hero select { width: 100%; font: 400 1.05rem/1.3 var(--f-texte); padding: .75rem .8rem; border: 2px solid transparent; border-radius: 3px; background: #fff; color: var(--encre); }
.hero input:focus-visible, .hero select:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hero .hint { font-size: .85rem; color: #bcd3c8; margin: .3rem 0 0; }
.hero .hint a { color: #fff; }

.ticket { --pointe: 11px; position: relative; background: var(--papier); color: #1d1d19; font-family: var(--f-ticket); font-size: .92rem; line-height: 1.45;
  padding: 1.6rem 1.4rem 1.4rem; margin: var(--pointe) 0; max-width: 25rem; width: 100%; justify-self: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28)); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 0; right: 0; height: var(--pointe); background-size: calc(var(--pointe) * 2) 100%; background-position: center top; }
.ticket::before { top: calc(var(--pointe) * -1 + 1px); background-image: conic-gradient(from 135deg at top, var(--papier) 90deg, transparent 0); }
.ticket::after { bottom: calc(var(--pointe) * -1 + 1px); background-image: conic-gradient(from -45deg at bottom, var(--papier) 90deg, transparent 0); }
.ticket h2 { font: 700 1.05rem/1.2 var(--f-ticket); color: #1d1d19; text-align: center; letter-spacing: .04em; margin: 0 0 .2rem; text-transform: uppercase; }
.ticket__sub { text-align: center; font-size: .78rem; color: #6a6a5f; margin: 0 0 .9rem; padding-bottom: .8rem; border-bottom: 2px solid #1d1d19; }
.ticket dl { margin: 0; }
.ticket .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 .8rem; padding: .5rem 0; border-bottom: 1px dashed #b9b6a4; margin: 0; }
.ticket dt { color: #4a4a42; flex: 1 1 100%; }
.ticket dd { margin: 0; text-align: right; font-weight: 700; flex: 1 1 100%; }
.ticket dd small { display: block; font-weight: 400; color: #4a4a42; font-size: .85rem; }
.ticket .is-main dd { font-size: 1.02rem; }
.ticket__now { margin: 1rem 0 .6rem; padding: .7rem .8rem; background: var(--signal); color: #1d1d19; font-weight: 700; }
.ticket__now[data-etat="alerte"] { background: #f4c9c4; }
.ticket__foot { font-size: .75rem; color: #6a6a5f; margin: 0; }

.band { padding-block: 2.5rem; }
.band + .band { padding-top: 0; }
.panel { background: var(--blanc); border: 1px solid var(--trait); padding: clamp(1.25rem, 4vw, 2.5rem); }
.panel > h2:first-child { margin-top: 0; }
.cols { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--vert-fonce); color: #cfdfd6; font-size: .95rem; }
.site-footer .container { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 52rem) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font: 700 1.15rem/1.2 var(--f-titre); color: #fff; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #fff; }
.site-footer p { margin-bottom: .8rem; }
.site-footer button { font: inherit; color: #fff; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.2rem; font-size: .85rem; color: #a9c0b4; margin: 0; }

/* ---------- Page « Chiffres » : tuiles, graphiques SVG, infobulles ---------- */
.kpis { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; max-width: 42rem; }
@media (min-width: 40rem) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.kpi { margin: 0; border-top: 3px solid var(--vert); padding-top: .6rem; }
.kpi__label { margin: 0 0 .35rem; min-height: 2.5em; font-size: .85rem; line-height: 1.25; color: var(--discret); }
.kpi__value { margin: 0; font: 700 1.9rem/1 var(--f-titre); color: var(--vert-fonce); }
@media (min-width: 40rem) { .kpi__value { font-size: 1.65rem; } }
.kpi__delta { margin: .4rem 0 0; font-size: .82rem; line-height: 1.3; color: var(--discret); }

.chart { margin: 2rem 0; max-width: 42rem; }
.chart__title { font: 700 1.25rem/1.2 var(--f-titre); color: var(--vert-fonce); margin: 0; }
.chart__sub { margin: .15rem 0 .6rem; font-size: .875rem; line-height: 1.4; color: var(--discret); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; padding: 0; margin: 0 0 .5rem; font-size: .875rem; }
.legend li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.key { display: inline-block; flex: none; }
.key--line { position: relative; width: 18px; height: 2px; background: var(--k); }
.key--line::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2px #fff; }
.key--bar, .key--tint { width: 12px; height: 12px; background: var(--k); border-radius: 3px 3px 0 0; }
.key--tint { opacity: .45; }

.chart__plot { position: relative; }
.plot { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.plot:focus-visible { outline: 3px solid var(--vert); outline-offset: 4px; border-radius: 2px; }
.v-m { max-width: 30rem; }
.pv-d { display: none; }
@media (min-width: 40rem) { .pv-m:not(.pv-only) { display: none; } .pv-d { display: block; } }
.chart-pair { display: grid; gap: 2rem; margin: 2rem 0; max-width: 42rem; }
@media (min-width: 52rem) { .chart-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.chart-pair .chart { margin: 0; min-width: 0; }
.plot .ax { font-size: 11.5px; fill: var(--discret); font-family: var(--f-texte); }
.plot .val { font-size: 12px; font-weight: 700; fill: var(--encre); font-family: var(--f-texte); }
.plot .nm { font-size: 11.5px; fill: var(--discret); font-family: var(--f-texte); }
.v-d .ax, .v-d .nm { font-size: 12.5px; }
.v-d .val { font-size: 13px; }
.plot .grid { stroke: #e3e8e5; stroke-width: 1; }
.plot .base { stroke: #b9c3bd; stroke-width: 1; }
.plot .hit { fill: transparent; cursor: crosshair; }
.plot .xh { stroke: #b9c3bd; stroke-width: 1; visibility: hidden; pointer-events: none; }
.plot .xh.on { visibility: visible; }
.plot circle.mk.is-active { r: 6.5px; }
.plot path.mk.is-active { filter: brightness(1.15); }

.tip { position: absolute; z-index: 3; top: 0; pointer-events: none; background: #fff; border: 1px solid var(--trait); box-shadow: 0 4px 14px rgba(24, 35, 29, .16); padding: .5rem .7rem; font-size: .85rem; line-height: 1.3; min-width: 9rem; }
.tip[hidden] { display: none; }
.tip p { margin: 0; }
.tip__t { font-weight: 700; font-size: .8rem; color: var(--discret); margin-bottom: .25rem !important; }
.tip__r { display: flex; align-items: center; gap: .5rem; margin: .15rem 0 !important; }
.tip__k { width: 14px; height: 2px; flex: none; }
.tip__v { font-weight: 700; color: var(--encre); }
.tip__l { color: var(--discret); }
.tip__n { margin-top: .3rem !important; font-size: .78rem; color: var(--discret); }
@media print { .tip { display: none !important; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .notice, .site-header .nav, .sidebar, .ad, .site-footer, .btn, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article { border: 0; padding: 0; }
  a { color: inherit; }
}
