/* =====================================================================================================
   Qualité des TAF — feuille de style commune.
   Jetons de couleur : palette de référence validée (séries 1-3, statuts, surfaces, bleu séquentiel).
   ===================================================================================================== */
:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb; --tint: #eef3fa;
  --ink: #0b0b0b; --ink2: #52514e; --muted: #898781;
  --grid: #e1e0d9; --axis: #c3c2b7; --line: rgba(11,11,11,.10); --line-strong: rgba(11,11,11,.22);
  --cl-few: #9cc9f0; --cl-sct: #2257b8; --cl-bkn: #ee7b74; --cl-ovc: #9b1b2b;   /* couverture nuageuse : bleu clair / bleu foncé / rouge clair / bordeaux */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;                      /* séries : bleu, orange, aqua */
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b; --neutral: #898781;
  --good-text: #006300;
  --seq-100: #cde2fb; --seq-250: #86b6ef; --seq-400: #3987e5; --seq-550: #1c5cab; --seq-700: #0d366b;
  --div-mid: #f0efec; --div-blue: #2a78d6; --div-red: #d03b3b;
  --vfr: #5cc27a; --mvfr: #2a64c9; --ifr: #a51f24; --lifr: #cf6ad9; --cavok: #12803c; --cavok-ink: #fff;   /* CAVOK : vert profond, bien distinct du VFR (vert clair) */
  --vfr-ink: #0b0b0b; --mvfr-ink: #fff; --ifr-ink: #fff; --lifr-ink: #0b0b0b;
  --persist: #9a9892; --shadow: 0 1px 2px rgba(11,11,11,.05), 0 6px 18px rgba(11,11,11,.05);
  /* alias des anciens noms (pages « statistiques ») */
  --bg: var(--page); --card: var(--surface); --accent: var(--s1); --accent-soft: var(--tint);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --tint: #16263a;
    --ink: #f0efec; --ink2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.24);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --good-text: #0ca30c;
    --div-mid: #383835; --div-blue: #3987e5; --div-red: #e66767; --persist: #6f6d68; --shadow: none;
    --cavok: #1a9e4f; --cavok-ink: #fff; --vfr: #73dc98; --mvfr: #3f7fe6; --ifr: #b8292e; --lifr: #e597ef; --vfr-ink: #0b0b0b; --mvfr-ink: #fff; --ifr-ink: #fff; --lifr-ink: #0b0b0b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --tint: #16263a; --ink: #f0efec; --ink2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.24);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --good-text: #0ca30c;
  --div-mid: #383835; --div-blue: #3987e5; --div-red: #e66767; --persist: #6f6d68; --shadow: none;
  --cavok: #1a9e4f; --cavok-ink: #fff; --vfr: #73dc98; --mvfr: #3f7fe6; --ifr: #b8292e; --lifr: #e597ef; --vfr-ink: #0b0b0b; --mvfr-ink: #fff; --ifr-ink: #fff; --lifr-ink: #0b0b0b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); overflow-x: hidden;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--s1); }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0 0 4px; } h3 { font-size: 1rem; margin: 16px 0 6px; }
p { margin: 0 0 8px; }
.container, .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink2); } .small { font-size: .85rem; } .center { text-align: center; }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; border-radius: 4px; }
code { background: var(--tint); padding: 1px 5px; border-radius: 5px; font-size: .85em; }

/* --------------------------------------------------------------------------------- en-tête commun */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 8px 16px; max-width: 1120px; margin: 0 auto; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--s1); color: #fff; font-size: 15px; }
.nav { display: flex; gap: 0; flex-wrap: wrap; }
.nav a { padding: 6px 8px; border-radius: 8px; color: var(--ink2); text-decoration: none; font-size: .92rem; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--ink); font-weight: 600; }
.search { position: relative; margin-left: auto; flex: 1 1 140px; max-width: 360px; min-width: 0; }
.search input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; font-size: .95rem; }
.results { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); max-height: 340px; overflow: auto; z-index: 40; }
.results li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.results li[aria-selected="true"], .results li:hover { background: var(--tint); }
.results small { color: var(--ink2); }

.site-footer { margin-top: 40px; padding: 20px 0 36px; border-top: 1px solid var(--line); color: var(--ink2); font-size: .82rem; }
.site-footer a { color: inherit; }

/* --------------------------------------------------------------------------------- blocs de base */
.page-head { padding: 22px 0 6px; }
.crumb { font-size: .85rem; color: var(--ink2); margin-bottom: 6px; } .crumb a { color: inherit; }
.lede { color: var(--ink2); font-size: 1.05rem; max-width: 62ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span2 { grid-column: span 2; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint { color: var(--ink2); font-size: .88rem; margin: 0 0 10px; }
.sec { margin: 30px 0 12px; scroll-margin-top: calc(var(--hdr, 99px) + 16px); }
.sec h2 { font-size: 1.3rem; } .sec .hint { margin: 2px 0 0; }
.banner { background: var(--tint); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: .92rem; }
.banner.warn { background: rgba(250,178,25,.14); border-color: var(--warn); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 12px; }
.tile, .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; box-shadow: var(--shadow); }
.tile .big, .kpi .v { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.tile .lab, .kpi .l { color: var(--ink2); font-size: .92rem; margin-top: 4px; } .kpi .s { color: var(--ink2); font-size: .8rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }

/* niveaux : couleur + icône + mot (jamais la couleur seule) */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 2px 10px 2px 6px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); white-space: nowrap; }
.badge .ic { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 11px; line-height: 1; color: #fff; background: var(--lvl, var(--neutral)); }
.lvl-fiable, .lvl-good { --lvl: var(--good); }
.lvl-surveiller, .lvl-warning { --lvl: var(--warn); } .lvl-surveiller .ic, .lvl-warning .ic { color: #0b0b0b; }
.lvl-peu_fiable, .lvl-critical { --lvl: var(--crit); }
.lvl-neutral { --lvl: var(--neutral); }
.pill { display: inline-block; }                       /* ancien nom : remplacé par .badge, gardé pour compatibilité */

/* chips, boutons, sélecteurs */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .88rem; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; text-decoration: none; display: inline-block; }
.chip:hover { border-color: var(--s1); } .chip.on { background: var(--s1); border-color: var(--s1); color: #fff; }
.btn { font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 7px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--s1); } .btn.primary { background: var(--s1); border-color: var(--s1); color: #fff; }
select { font: inherit; font-size: .92rem; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); max-width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; max-width: 100%; flex-wrap: wrap; }
.seg button { font: inherit; font-size: .88rem; border: 0; background: var(--surface); color: var(--ink); padding: 7px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); } .seg button.on { background: var(--s1); color: #fff; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--ink2); min-width: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
details.adv > summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
details.adv[open] > summary { margin-bottom: 10px; }
details.sec-fold > summary { font-size: 1rem; }
details.sec-fold .fold-t { font-size: 1.15rem; font-weight: 700; }

/* glossaire : terme cliquable avec définition */
.gl { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; border-bottom: 1px dotted var(--ink2); }
.pop { position: absolute; z-index: 60; max-width: min(300px, 90vw); background: var(--ink); color: var(--page); padding: 10px 12px; border-radius: 10px;
  font-size: .85rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.pop a { color: inherit; font-weight: 600; }

/* ------------------------------------------------------------------------------------ accueil */
.hero { padding: 34px 0 18px; }
.hero .search-big { position: relative; max-width: 560px; margin: 16px 0 12px; }
.hero .search-big input { width: 100%; padding: 14px 16px; font-size: 1.1rem; border: 2px solid var(--s1); border-radius: 14px; background: var(--surface); color: var(--ink); font-family: inherit; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; } .rank a { color: var(--ink); text-decoration: none; font-weight: 600; } .rank a:hover { text-decoration: underline; }
.rank .sc { font-variant-numeric: tabular-nums; font-weight: 700; margin-right: 8px; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.shortcut { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.shortcut:hover { border-color: var(--s1); } .shortcut b { display: block; margin-bottom: 2px; } .shortcut span { color: var(--ink2); font-size: .9rem; }

/* ----------------------------------------------------------------------------- fiche aérodrome */
.subnav { position: sticky; top: var(--hdr, 99px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; background: var(--page); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; } .subnav .chip { white-space: nowrap; }
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 16px; align-items: stretch; }
.verdict .score { font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.verdict .score small { font-size: 1.1rem; font-weight: 500; color: var(--ink2); letter-spacing: 0; }
.elements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.el { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--page); min-width: 0; }
.el b { display: block; font-size: 1rem; } .el .rl { margin: 4px 0; } .el p { color: var(--ink2); font-size: .88rem; margin: 0; }
.takeaways { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.takeaways li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.takeaways .ic { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; color: #fff; background: var(--lvl, var(--neutral)); margin-top: 1px; }
.takeaways .lvl-warning .ic { color: #0b0b0b; }
.takeaways li > div { min-width: 0; overflow-wrap: anywhere; }
.chart { position: relative; height: 280px; } .chart.short { height: 230px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }

/* tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: right; padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child, td.l, th.l { text-align: left; }
th { font-weight: 600; color: var(--ink2); font-size: .8rem; background: var(--surface); white-space: normal; vertical-align: bottom; line-height: 1.25; }
td.num { font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: var(--tint); } tr.small td { opacity: .55; }
td.raw { white-space: normal; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--ink2); min-width: 260px; text-align: left; overflow-wrap: anywhere; }
td.cell { text-align: center; font-variant-numeric: tabular-nums; }
table.matrix th, table.matrix td { text-align: center; } table.matrix th.rowh { text-align: right; color: var(--ink); }
table.matrix td.diag { font-weight: 700; outline: 2px solid var(--ink); outline-offset: -2px; }
.delta { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rawtaf { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
.ok { color: var(--good-text); font-weight: 700; } .ko { color: var(--crit); font-weight: 700; } .na { color: var(--ink2); } .ep-part { color: var(--ink); font-weight: 600; }
button.linkbtn { border: 0; background: none; color: var(--s1); cursor: pointer; padding: 0; text-decoration: underline; font-size: .85rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { font-size: .8rem; color: var(--ink2); }

/* carte */
.map { height: min(72vh, 620px); border-radius: 12px; border: 1px solid var(--line); background: var(--page); }
.leaflet-container { font: inherit; }
.map-legend { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: .8rem; line-height: 1.7; box-shadow: var(--shadow); }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--ink2); }
.map-legend i.small { background: var(--persist); opacity: .45; border-style: dashed; }
.leaflet-tooltip { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.leaflet-tooltip-top:before { border-top-color: var(--line-strong); }

/* listes denses, barre d'outils, sélecteurs */
.toolbar { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.toolbar input[type=search], .picker input { flex: 1 1 220px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; font-size: .92rem; }
.picker { position: relative; flex: 1 1 240px; min-width: 0; max-width: 360px; } .picker input { width: 100%; }
.picker .results li { font-size: .9rem; }
.frow { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 5px 0; }
.frow + .frow { border-top: 1px solid var(--line); }
.flab { flex: 0 0 8.2rem; font-size: .82rem; color: var(--ink2); font-weight: 600; }
.chip.ent { display: inline-flex; align-items: center; gap: 8px; border-left: 7px solid var(--c, var(--s1)); padding-right: 6px; }
.chip.ent button { border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: .9rem; padding: 0 4px; line-height: 1; }
.chip.ent button:hover { color: var(--crit); }
.dense { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); column-gap: 22px; }
.dense li { border-bottom: 1px solid var(--line); }
.dense a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 40px 2.8rem 18px; align-items: center; gap: 8px; padding: 4px 4px; color: var(--ink); text-decoration: none; font-size: .86rem; border-radius: 6px; }
.dense a:hover { background: var(--tint); }
.dense .ic { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: .82rem; }
.dense .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dense .nm small { color: var(--ink2); }
.dense .sc { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.dense li.faint a { opacity: .5; }
.mini { height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; } .mini i { display: block; height: 100%; background: var(--s1); }
.dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; line-height: 1; color: #fff; background: var(--lvl, var(--neutral)); }
.dot.lvl-surveiller { color: #0b0b0b; } .dot.none { background: none; border: 1px dashed var(--line-strong); }
.scroll-y { max-height: 68vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table.tight { font-size: .8rem; } table.tight th, table.tight td { padding: 3px 7px; }
table.tight thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: 0 1px 0 var(--line-strong); }
table.tight th[data-k] { cursor: pointer; user-select: none; } table.tight th[data-k]:hover { color: var(--ink); }
table.tight th.sorted { color: var(--ink); }
table.tight td.hm { text-align: center; font-variant-numeric: tabular-nums; }
table.tight tr.faint td { opacity: .5; }
table.tight td.l .nm { display: inline-block; max-width: 17ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.legendline { font-size: .8rem; color: var(--ink2); margin: 8px 0 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------------- vue pilote : couleurs */
/* catégories de vol : pastille pleine avec le nom (jamais la couleur seule) */
.cat { display: inline-block; min-width: 3.4em; text-align: center; font-weight: 700; font-size: .78rem; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 6px; background: var(--c); color: var(--ci); }
.cat-CAVOK { --c: var(--cavok); --ci: var(--cavok-ink); } .cat-VFR { --c: var(--vfr); --ci: var(--vfr-ink); } .cat-MVFR { --c: var(--mvfr); --ci: var(--mvfr-ink); }
.cat-IFR { --c: var(--ifr); --ci: var(--ifr-ink); } .cat-LIFR { --c: var(--lifr); --ci: var(--lifr-ink); }
/* TAF colorisé */
.taf { font-family: ui-monospace, Menlo, monospace; line-height: 1.75; }
.taf .tk-head { color: var(--ink2); }
.taf .tk-grp { font-weight: 700; color: var(--ink); background: var(--tint); border-radius: 4px; padding: 0 4px; }
.taf .tk-time { color: var(--ink2); text-decoration: underline dotted; text-underline-offset: 3px; }
.taf .tk-c { border-radius: 4px; padding: 0 3px; background: color-mix(in srgb, var(--c) 26%, transparent); box-shadow: inset 0 -2px 0 var(--c); color: var(--ink); }
.taf .tk-wx { font-weight: 700; }
.taf .tk-hot { font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--crit) 22%, transparent); border-radius: 4px; padding: 0 3px; }
.taf .tk-wind-strong { font-weight: 700; text-decoration: underline wavy color-mix(in srgb, var(--s2) 80%, transparent); text-underline-offset: 3px; }
td.raw.taf { color: var(--ink); }
/* barres empilées (catégories, annonces) en HTML */
.stack { display: flex; height: 26px; border-radius: 7px; overflow: hidden; background: var(--grid); gap: 2px; }
.stack > span { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: .75rem; font-weight: 700; white-space: nowrap; overflow: hidden;
  background: var(--c); color: var(--ci, var(--ink)); }
.stack-row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) 4.2rem; gap: 10px; align-items: center; margin: 8px 0; font-size: .88rem; }
.stack-row .n { color: var(--ink2); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink2); margin-top: 6px; align-items: center; }
.legend-inline i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: -1px; }
/* tuiles « mauvaises surprises » */
.surprises { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.surprise { border: 1px solid var(--line); border-left: 6px solid var(--lvl, var(--neutral)); border-radius: 12px; padding: 12px 14px; background: var(--page); min-width: 0; }
.surprise .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.surprise .q { font-size: .88rem; color: var(--ink2); margin: 0 0 4px; } .surprise .a { font-size: .85rem; margin: 6px 0 0; }
/* jauges « optimiste / prudent » */
.gauge { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 15rem); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.gauge:last-child { border-bottom: 0; }
.gauge .track { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--div-blue) 18%, var(--surface)), var(--surface) 50%, color-mix(in srgb, var(--div-red) 18%, var(--surface))); border: 1px solid var(--line); }
.gauge .track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--ink2); }
.gauge .bar { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: var(--c); }
.gauge .txt { font-size: .84rem; } .gauge-ends { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 15rem); gap: 12px; font-size: .75rem; color: var(--ink2); }
.gauge-ends span:nth-child(2) { display: flex; justify-content: space-between; }
/* carte de méfiance (heatmap) */
table.heat { border-collapse: separate; border-spacing: 3px; font-size: .84rem; }
table.heat th, table.heat td { border: 0; padding: 6px 8px; }
table.heat td.hc { text-align: center; border-radius: 6px; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3.6rem; }
table.heat td.hc.thin { background: repeating-linear-gradient(135deg, var(--page) 0 5px, var(--grid) 5px 7px) !important; color: var(--ink2) !important; font-weight: 400; }
table.heat tr.grp th { text-align: left; padding-top: 14px; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.heat td.lab { text-align: left; white-space: nowrap; } table.heat td.lab small { color: var(--ink2); }
.ramp { display: inline-block; width: 160px; height: 10px; border-radius: 5px; vertical-align: middle; margin: 0 6px;
  background: linear-gradient(90deg, var(--div-red), var(--div-mid), var(--div-blue)); }
/* frise de classement */
.strip { margin-top: 14px; } .strip svg { width: 100%; height: 64px; display: block; overflow: visible; }
.strip .lbl { font-size: .82rem; color: var(--ink2); margin-bottom: 4px; }
/* verdict : liseré couleur du niveau */
.verdict-main { border-left: 6px solid var(--lvl, var(--neutral)); padding-left: 14px; }
@media (max-width: 600px) { table.heat td.lab { white-space: normal; min-width: 7rem; } table.heat td.hc { min-width: 2.6rem; padding: 6px 4px; } }
@media (min-width: 821px) and (max-width: 1100px) { .surprises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .surprises { grid-template-columns: minmax(0, 1fr); } .gauge, .gauge-ends { grid-template-columns: 6.5rem minmax(0, 1fr); } .gauge .txt { grid-column: 1 / -1; } .gauge-ends span:nth-child(3) { display: none; } .stack-row { grid-template-columns: 7rem minmax(0, 1fr) 3.4rem; } }

/* fiabilité des conditions de vol : 3 indicateurs */
.trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.trio-t { border: 1px solid var(--line); border-left: 7px solid var(--edge, var(--neutral)); border-radius: 12px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.trio-t.rel { --edge: var(--lvl, var(--neutral)); } .trio-t.opt { --edge: var(--div-red); } .trio-t.pess { --edge: var(--div-blue); }
.trio-t .k { font-size: .9rem; font-weight: 600; } .trio-t .v { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 4px 0; }
.trio-t .c { font-size: .8rem; color: var(--ink2); margin-top: 6px; } .trio-t .w { font-size: .82rem; margin-top: 4px; }
.trio-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-top: 12px; background: var(--grid); }
.trio-bar span { background: var(--c); }
.hard { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: .9rem; }
.trio-sec + .trio-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.trio-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; font-size: .95rem; }
.trio-t.plain { --edge: var(--good); }
@media (max-width: 820px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* méthode / glossaire */
.prose { max-width: 70ch; } .prose h2 { margin-top: 28px; } .prose li { margin-bottom: 4px; }
dl.glossary dt { font-weight: 700; margin-top: 14px; } dl.glossary dd { margin: 2px 0 0; color: var(--ink2); max-width: 70ch; }

/* anciens éléments de la page « statistiques » */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; } .filters label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--ink2); flex: 1 1 190px; min-width: 0; }
.filters select { width: 100%; }
.bands { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .band { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.method { margin-top: 14px; font-size: .9rem; }
.foot { color: var(--ink2); font-size: .82rem; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; }

@media (max-width: 820px) {
  .verdict, .lists, .two, .grid { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; }
}
@media (max-width: 600px) {
  .flab { flex-basis: 100%; }
  .frow > .seg, .toolbar > .seg { flex: 1 1 100%; } .seg button { flex: 1 1 auto; }
  .picker { max-width: none; flex-basis: 100%; }
  .container, .wrap { padding: 0 12px; } .bar { padding: 8px 12px; }
  .search { flex-basis: 100%; max-width: none; order: 3; margin-left: 0; }
  .elements { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; } .tile .big { font-size: 1.7rem; } .verdict .score { font-size: 2.8rem; }
  th, td { padding: 7px 6px; }
}

/* --------------------------------------------------------------------------------- impression */
@media print {
  @page { size: A4; margin: 12mm; }
  :root { --page: #fff; --surface: #fff; --ink: #111; --ink2: #444; --line: #ccc; --line-strong: #bbb; --tint: #f3f3f3; }
  body { background: #fff; color: #111; font-size: 10pt; }
  .site-header, .subnav, .actions, .search, .nav, .banner, button.linkbtn, .seg, .no-print, .site-footer .hide-print { display: none !important; }
  .container, .wrap { max-width: none; padding: 0; } .grid, .two, .verdict { display: block; }
  .card { break-inside: auto; box-shadow: none; border: 1px solid #ccc; margin: 0 0 6mm; padding: 4mm; }
  .tiles, .chart, .el, .takeaways li, tr, .rawtaf { break-inside: avoid; } h2, h3 { break-after: avoid; }
  .chart { height: 210px; } .chart.short { height: 190px; } table { font-size: 8.5pt; } th, td { padding: 3px 6px; }
  .sec { margin: 8mm 0 3mm; } a { color: inherit; text-decoration: none; } .elements { grid-template-columns: repeat(2, 1fr); }
}

/* « Quand se méfier » : liste courte des situations à risque */
.risk { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px 16px; align-items: center; padding: 10px 0; }
.risk + .risk { border-top: 1px solid var(--line); }
.risk-l { display: flex; gap: 10px; align-items: flex-start; }
.risk-ic { color: var(--div-red); font-size: 1.1rem; line-height: 1.3; }
.risk-bar { position: relative; height: 12px; background: var(--grid); border-radius: 6px; }
.risk-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--div-red); border-radius: 6px; }
.risk-usual { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.risk-t { font-variant-numeric: tabular-nums; }
.legend-inline i.tick { width: 2px; height: 14px; border-radius: 1px; }
.ok-line { margin: 4px 0; color: var(--good-text); font-weight: 600; }
details.card > summary { cursor: pointer; font-weight: 600; }
@media (max-width: 820px) { .risk { grid-template-columns: minmax(0, 1fr); } }

/* TAF et METAR en perspective */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-card { border: 1px solid var(--line); border-top: 6px solid var(--edge, var(--s1)); border-radius: 12px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.vs-card.TAF { --edge: var(--s1); } .vs-card.TREND { --edge: var(--s2); }
.vs-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; font-size: 1rem; }
.vs-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.vs-main .v { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vs-main .k { font-size: .9rem; font-weight: 600; }
.vs-card .trio-bar { margin-top: 10px; }
.vs-two { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: .9rem; }
.vs-sec { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.vs-st { font-size: .9rem; font-weight: 600; margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.vs-main.sm .v { font-size: 1.9rem; }
.takeaway { margin: 10px 0 14px; border-left: 4px solid var(--s1); }
.takeaway-list { margin: 6px 0 0; padding-left: 1.2em; line-height: 1.5; }
.takeaway-list li { margin: 4px 0; }
.vs-ref { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .9rem; }
.vs-read { margin: 12px 0 0; padding: 10px 12px; background: var(--page); border-radius: 10px; font-size: .92rem; }
h2.sub { font-size: 1.15rem; margin: 22px 0 6px; }
.share { display: inline-block; vertical-align: middle; width: 64px; height: 8px; background: var(--grid); border-radius: 4px; margin-right: 8px; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--s1); }
@media (max-width: 820px) { .vs { grid-template-columns: minmax(0, 1fr); } }

/* Légende des couleurs d'un TAF colorisé : une ligne, détails repliés */
.tafleg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; margin: 2px 0 12px; padding: 8px 12px; background: var(--page); border-radius: 10px; }
.tafleg .tl-lab { font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.tafleg .tl-i { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink2); }
.tafleg .tl-sep { width: 1px; height: 14px; background: var(--line-strong); }
.tafleg .tl-more { margin-left: auto; }
.tafleg .tl-more summary { cursor: pointer; color: var(--ink2); text-decoration: underline dotted; text-underline-offset: 3px; }
.tafleg .tl-more ul { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; text-align: left; }
.tafleg .tl-more { flex: 1 1 auto; text-align: right; }
.tafleg .tl-more[open] { flex-basis: 100%; text-align: left; margin-left: 0; }

/* Derniers TAF : lignes dépliables */
table.tafs td.chev, table.tafs th.chev { width: 1.8rem; padding-right: 0; color: var(--s1); font-size: 1.15rem; line-height: 1; text-align: center; }
table.tafs tr.taf-row { cursor: pointer; }
table.tafs tr.taf-row:hover { background: var(--tint); }
table.tafs tr.taf-row:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
table.tafs tr.taf-row.open { background: var(--tint); box-shadow: inset 4px 0 0 var(--s1); }
table.tafs tr.taf-row.open td.chev { color: var(--s1); }
table.tafs tr.taf-open > td { padding: 0; background: var(--page); }
table.tafs .tafd { padding: 12px 14px 14px; border-bottom: 2px solid var(--s1); }
.tafd-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
table.tafs .tafd .table-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
table.tafs .tafd .table-wrap thead th { position: sticky; top: 0; background: var(--page); z-index: 1; }

/* Comparaison TAF / METAR : écarts en couleur */
tr.pr-opt > td { background: color-mix(in srgb, var(--div-red) 9%, transparent); }
tr.pr-pess > td { background: color-mix(in srgb, var(--div-blue) 9%, transparent); }
td.d-opt { background: color-mix(in srgb, var(--div-red) 26%, transparent) !important; font-weight: 700; }
td.d-pess { background: color-mix(in srgb, var(--div-blue) 26%, transparent) !important; font-weight: 700; }
td.d-x { background: color-mix(in srgb, var(--warn) 34%, transparent) !important; font-weight: 700; }
.cmp-w { font-size: .72rem; font-weight: 700; margin-top: 2px; }
.cmp-w.opt { color: var(--div-red); } .cmp-w.pess { color: var(--div-blue); }
.cmp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 2px; }
.cmp-chip { border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 700; border: 1px solid var(--line-strong); background: var(--surface); }
.cmp-chip.ok { border-color: var(--good); } .cmp-chip.opt { border-color: var(--div-red); color: var(--div-red); } .cmp-chip.pess { border-color: var(--div-blue); color: var(--div-blue); }
.cmp-w.cov { color: color-mix(in srgb, var(--warn) 55%, var(--ink)); }
.cmp-chip.cov { border-color: var(--warn); }
.cmp-w { max-width: 9rem; white-space: normal; line-height: 1.2; }
table.tafs .tafd .table-wrap { max-height: 460px; }

/* Graphiques selon l'échéance */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.lead-t { margin-bottom: 4px; font-size: .95rem; }
.lead-grid .chart.sm { height: 250px; }
@media (max-width: 820px) { .lead-grid { grid-template-columns: minmax(0, 1fr); } }

/* Gravité des erreurs : juste / écart / faux */
.tier-h { margin: 18px 0 4px; font-size: 1.05rem; }
.tier-two { gap: 4px 16px; }
.tier-bar { height: 12px; }

/* Derniers TAF sur téléphone : une carte par TAF (date, indice, texte en pleine largeur) ; le détail ne dépasse jamais l'écran */
@media (max-width: 700px) {
  table.tafs, table.tafs tbody { display: block; width: 100%; }
  table.tafs thead { display: none; }
  table.tafs tr.taf-row { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; align-items: center; gap: 4px 6px; padding: 10px 4px 10px 0; border-bottom: 1px solid var(--line); }
  table.tafs tr.taf-row > td { display: block; border: 0; padding: 0; min-width: 0; }
  table.tafs tr.taf-row > td.chev { grid-column: 1; }
  table.tafs tr.taf-row > td.when { grid-column: 2; }
  table.tafs tr.taf-row > td.sc { grid-column: 3; text-align: right; }
  table.tafs tr.taf-row > td.raw { grid-column: 1 / -1; padding-left: 1.8rem; font-size: .8rem; overflow-wrap: anywhere; }
  table.tafs tr.taf-open { display: block; }
  table.tafs tr.taf-open > td { display: block; padding: 0; }
  table.tafs .tafd { padding: 10px 8px 12px; }
  table.tafs .tafd .table-wrap { max-height: 420px; }
  .tafd-h h3 { font-size: 1rem; }
}
.tier-h ~ .vs { margin-bottom: 18px; }
table.tafs tr.taf-open > td { white-space: normal; }
table.tafs tr.taf-open .tafd table td, table.tafs tr.taf-open .tafd table th { white-space: normal; }
table.tafs tr.taf-open .tafd table td.d-opt, table.tafs tr.taf-open .tafd table td.d-pess { white-space: normal; }

/* Détails repliés dans une carte (verdict) : discrets, sans cadre propre */
details.more { margin-top: 10px; border: 0; padding: 0; background: none; }
details.more > summary { font-size: .88rem; color: var(--s1); cursor: pointer; padding: 4px 0; }

/* ---- écran Live ---- */
.lv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; align-items: start; grid-auto-flow: dense; }
.lv-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.lv-tile h3, .lv-h3 { margin: 0 0 8px; font-size: .95rem; color: var(--ink2); font-weight: 600; }
.lv-wide { grid-column: span 2; }
@media (max-width: 560px) { .lv-wide { grid-column: auto; } }
/* grand écran : le graphique des nuages, haut, occupe deux rangées ; « Air et pression » et le temps présent se placent dessous les deux premières cartes (sinon il reste un grand vide) */
@media (min-width: 561px) { .lv-wide .lv-pairs { grid-template-columns: repeat(4, 1fr); } }      /* carte large : les quatre valeurs sur une ligne */
@media (min-width: 900px) { .lv-tall { grid-row: span 2; } }
.lv-big { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; } .lv-big small { font-size: 1rem; font-weight: 500; color: var(--ink2); }
.lv-sub { font-size: .9rem; margin-top: 4px; } .lv-note { margin-top: 8px; font-size: .88rem; color: var(--ink); background: var(--tint); border-radius: 8px; padding: 6px 10px; }
.lv-wind { display: flex; align-items: center; gap: 12px; } .lv-arrow { width: 72px; height: 72px; flex: none; }
.lv-speed { font-size: 1.9rem; font-weight: 700; line-height: 1.15; } .lv-speed small { font-size: 1rem; font-weight: 500; color: var(--ink2); white-space: nowrap; } .lv-sky { width: 100%; max-width: 330px; display: block; margin-top: 8px; }
.lv-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; } .lv-pairs span { display: block; font-size: .8rem; color: var(--ink2); } .lv-pairs b { font-size: 1.25rem; }
.lv-scale { position: relative; margin: 14px 0 22px; } .lv-bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; position: relative; }
.lv-bar > span { border-radius: 3px; opacity: .9; } .lv-mark { position: absolute; top: -5px; width: 4px; height: 24px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--surface); }
.lv-ticks { position: relative; height: 14px; margin-top: 8px; font-size: .72rem; color: var(--ink2); } .lv-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lv-summary { display: flex; gap: 16px; align-items: flex-start; border-left: 6px solid var(--lvl, var(--neutral)); }
.lv-cat { position: relative; background: var(--c); color: var(--ci); font-weight: 800; font-size: 1.6rem; padding: 10px 16px; border-radius: 12px; min-width: 5.2rem; text-align: center; letter-spacing: .02em; white-space: nowrap; flex: none; }
.lv-now { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; } .lv-line { margin: 4px 0; color: var(--ink2); }
.lv-strip { display: flex; gap: 1px; height: 28px; border-radius: 6px; overflow: hidden; } .lv-strip span { flex: 1 1 0; background: var(--c); }
.lv-strip-l { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink2); margin-top: 4px; }
.lv-tl { min-width: calc(100px + var(--n) * 20px); } .lv-row { display: grid; grid-template-columns: 100px repeat(var(--n), minmax(18px, 1fr)); gap: 2px; align-items: center; margin-bottom: 3px; }
.lv-row > b { font-size: .8rem; color: var(--ink2); font-weight: 600; } .lv-ax { font-size: .7rem; color: var(--ink2); text-align: center; white-space: nowrap; overflow: visible; }
.lv-c { height: 26px; border-radius: 4px; background: var(--c); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--ci, var(--ink)); }
.lv-hatch { background: var(--c); }      /* TEMPO / PROB : couleur pleine (plus de hachures, demande du 2026-11-24) */
.lv-empty { background: transparent; } .lv-c.now, .lv-ax.now { box-shadow: -2px 0 0 var(--ink); }
@media (max-width: 560px) { .lv-summary { flex-direction: column; } }
.lv-cloudgram { width: 100%; height: auto; display: block; }
.lv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: .82rem; color: var(--ink2); } .lv-sw { display: inline-flex; align-items: center; gap: 6px; }
.lv-sw i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.lv-sg { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.lv-sg > b { font-size: .82rem; color: var(--ink); font-weight: 700; line-height: 1.2; } .lv-sg > b.lv-sub-l { color: var(--ink2); font-weight: 500; padding-left: 8px; }
.lv-strip.sm { height: 14px; border-radius: 4px; } .lv-sg .lv-strip-l { margin-top: 0; }
.lv-cats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .84rem; } .lv-lg { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
@media (max-width: 560px) { .lv-sg { grid-template-columns: 5.2rem minmax(0, 1fr); } }
.lv-vfr { font-size: .88rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; } .lv-rules { margin: 0; padding-left: 1.2rem; } .lv-rules li { margin: 6px 0; }
.lv-disc { margin: 4px 0 10px; font-size: .85rem; }

.site-header .bar { min-height: 60px; }
@media (min-width: 601px) {      /* nom, recherche et thème sur la 1re rangée ; le menu complet (neuf entrées) sur la 2e, quelle que soit la largeur */
  .site-header .brand { order: 0; } .site-header .search { order: 1; margin-left: auto; flex: 0 1 340px; } .site-header #theme-btn { order: 2; }
  .site-header .bar { row-gap: 2px; }
  .site-header .bar::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .site-header .nav { order: 4; flex: 1 1 100%; margin-left: -8px; }
}
@media (max-width: 600px) {      /* téléphone : le bouton de thème rejoint le nom du site, puis le menu et la recherche en pleine largeur */
  .site-header .bar { min-height: 0; gap: 4px 10px; } .site-header .nav a { padding: 6px 10px; }
  .site-header .brand { order: 0; } .site-header #theme-btn { order: 1; margin-left: auto; } .site-header .nav { order: 2; flex: 1 1 100%; } .site-header .search { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
}      /* même hauteur d'en-tête avec ou sans recherche : rien ne saute d'un écran à l'autre */
.nav .lock { display: inline-block; margin-left: 5px; vertical-align: -3px; color: var(--ink); } .nav .lock svg { display: block; width: 16px; height: 16px; }
#aerodromes { scroll-margin-top: calc(var(--hdr, 99px) + 16px); }      /* l'en-tête est collant : le titre ne passe pas dessous quand on arrive par le menu */

/* ------------------------------------------------------------------------------------ accueil : en-tête illustré et cartes des options */
.hero-fancy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; padding: 30px 0 14px; }
.hero-fancy h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.eyebrow { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s1); }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.hero-art .sky-a { stop-color: var(--tint); } .hero-art .sky-b { stop-color: var(--surface); }
.hero-art .sun { fill: var(--warn); } .hero-art .cloud ellipse { fill: var(--surface); stroke: var(--line); }
.hero-art .chip-bg { fill: var(--surface); stroke: var(--line-strong); } .hero-art .chip-tx { fill: var(--ink); }
@media (max-width: 860px) { .hero-fancy { grid-template-columns: 1fr; } .hero-art { display: none; } }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }      /* 6 cartes = 3 colonnes × 2 lignes ; les pages réservées reprennent la même grille */
@media (max-width: 899px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; text-decoration: none; color: var(--ink); min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.feat:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 10px 26px rgba(11,11,11,.12); }
.feat:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.feat b { font-size: 1.1rem; letter-spacing: -.01em; }
.feat-d { color: var(--ink2); font-size: .92rem; line-height: 1.45; flex: 1; }
.feat-go { margin-top: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }      /* texte en couleur d'encre (contraste), flèche dans la couleur de la carte */
.feat-go i { font-style: normal; color: var(--c); font-weight: 700; display: inline-block; transition: transform .15s ease; } .feat:hover .feat-go i { transform: translateX(3px); }
.feat-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; margin-bottom: 4px; color: var(--c); background: var(--tint); }
@supports (background: color-mix(in srgb, red 10%, white)) { .feat-ic { background: color-mix(in srgb, var(--c) 15%, var(--surface)); } }
.feat-ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-ic svg .fill { fill: currentColor; }
.feat-lock::after { content: "Réservé"; position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px;
  color: var(--ink); background: var(--tint); border: 1px solid var(--line-strong); }
.feat-sub { margin: 26px 0 0; font-size: 1rem; }
.feat-sub svg { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; }
@media (max-width: 600px) {      /* téléphone : cartes compactes, icône à gauche, texte à droite, sans le lien (toute la carte est cliquable) */
  .feat-grid { grid-template-columns: 1fr; gap: 10px; }
  .feat { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; padding: 12px 12px 12px 12px; }
  .feat-ic { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; } .feat-ic svg { width: 30px; height: 30px; }
  .feat b { grid-column: 2; font-size: 1.05rem; } .feat-d { grid-column: 2; font-size: .88rem; } .feat-go { display: none; }
  .feat-lock::after { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .feat { transition: none; } .feat:hover { transform: none; } }

/* Accueil compact (2026-11-26) : bandeau compact, pays couverts, chiffres clés, rubriques sur deux rangées */
.hero-compact { padding: 14px 0 8px; gap: 24px; }
.hero-compact h1 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin-bottom: 6px; }
.hero-compact .lede { margin: 0; font-size: 1rem; }
.hero-compact .search-big { margin: 12px 0 8px; }
.hero-compact .hero-art { max-width: 340px; justify-self: end; width: 100%; }
.coverage-strip { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .92rem; }
.coverage-strip li span { color: var(--ink2); font-size: .82rem; } .coverage-strip li span:empty { display: none; }
.flag { display: inline-block; width: 28px; height: 20px; border-radius: 4px; border: 1px solid var(--line-strong); flex: none; }
.flag.fr { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.flag.be { background: linear-gradient(90deg, #111 33.3%, #fae042 33.3% 66.6%, #ed2939 66.6%); }
.flag.lu { background: linear-gradient(#ed2939 33.3%, #fff 33.3% 66.6%, #00a1de 66.6%); }
.flag.ch { background: linear-gradient(#fff, #fff) center / 60% 18% no-repeat, linear-gradient(#fff, #fff) center / 18% 60% no-repeat, #d52b1e; }
.home-sec { margin: 18px 0 8px; }
.home-sec .feat-grid { margin-top: 0; }
.home-sec .feat { padding: 14px 16px 12px; } .home-sec .feat-ic { width: 46px; height: 46px; } .home-sec .feat-ic svg { width: 28px; height: 28px; }
.home-sec .feat-d { font-size: .9rem; }
.home-sec .feat:not(.feat-mini) { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }      /* icône à gauche : cartes moins hautes */
.home-sec .feat:not(.feat-mini) .feat-ic { grid-row: 1 / 3; margin: 0; } .home-sec .feat:not(.feat-mini) b, .home-sec .feat:not(.feat-mini) .feat-d { grid-column: 2; }
.feat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; gap: 10px; }
.feat.feat-mini { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 8px 12px; border-top-width: 1px; border-left: 4px solid var(--c); }
.feat.feat-mini .feat-ic { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; } .feat.feat-mini .feat-ic svg { width: 24px; height: 24px; }
.feat.feat-mini b { grid-column: 2; font-size: .98rem; } .feat.feat-mini .feat-d { grid-column: 2; font-size: .82rem; flex: none; }
.home-kpis { margin: 10px 0; } .home-kpis .kpi { padding: 12px 14px; } .home-kpis .kpi .v { font-size: 1.7rem; }
@media (max-width: 899px) { .feat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat-grid.four { grid-template-columns: 1fr 1fr; } .feat.feat-mini .feat-d { display: none; } .home-kpis { grid-template-columns: 1fr 1fr; } }

/* couleurs des rubriques (aussi utilisées par les cartes de l'accueil et les boutons de la page d'un aérodrome) */
:root { --metar: #a23fb0; --ochre: #b97f00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --metar: #b655c6; --ochre: #d49a1a; } }
:root[data-theme="dark"] { --metar: #b655c6; --ochre: #d49a1a; }

/* page d'un aérodrome : « En direct » et « Climatologie et relevés METAR » en couleur et bien visibles ; export et impression teintés mais discrets */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn.cta, .btn.soft { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.btn.cta { padding: 9px 16px; font-weight: 600; background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 2px 6px rgba(11,11,11,.18); }
.btn.cta:hover { border-color: var(--c); filter: brightness(1.1); transform: translateY(-1px); }
.btn.soft { background: var(--tint); border-color: var(--line-strong); color: var(--ink); }
.btn.soft svg { color: var(--c); } .btn.soft:hover { border-color: var(--c); }
@supports (background: color-mix(in srgb, red 10%, white)) { .btn.soft { background: color-mix(in srgb, var(--c) 9%, var(--surface)); border-color: color-mix(in srgb, var(--c) 28%, transparent); } }

/* tablette et téléphone : deux touches rapprochées sur des boutons voisins (les pastilles de choix) ne sont plus prises pour un double-toucher de zoom, qui avalait la 2e touche */
button, a, select, summary, .chip, .btn, input, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(42, 120, 214, .18); }

/* ------------------------------------------------------------------------------------ petits écrans, tablettes : en-tête, saisie, cibles tactiles */
.site-header { transition: transform .22s ease; }
#search-toggle { display: none; align-items: center; justify-content: center; width: 40px; padding: 0; } #search-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1023px) {
  .site-header.hide { transform: translateY(-100%); }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(16px, 1rem); }      /* moins de 16 px : Safari zoome sur la page au toucher d'un champ */
  .hero .search-big input { font-size: 1.1rem; }
}
@media (max-width: 600px) {      /* téléphone : en-tête de deux rangées seulement (nom + loupe + thème, puis menu sur une ligne qui défile) au lieu de cinq */
  .site-header .bar { gap: 0 8px; padding: 6px 12px 0; min-height: 0; row-gap: 0; }
  .site-header .brand { order: 0; flex: 1 1 auto; min-width: 0; font-size: 1rem; }
  .site-header #search-toggle { order: 1; display: inline-flex; } .site-header #theme-btn { order: 2; margin-left: 0; }
  .site-header .nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 2px -12px 0; padding: 0 28px 4px 12px; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { flex: none; white-space: nowrap; padding: 0 12px; display: inline-flex; align-items: center; min-height: 44px; }
  .site-header .search { order: 4; flex: 1 1 100%; max-width: none; margin: 0 0 8px; display: none; }
  .site-header.search-open .search { display: block; }
  .dense small, small { font-size: .8rem; }
  .actions .btn.cta { flex: 1 1 100%; justify-content: center; } .actions .btn.soft { flex: 1 1 calc(50% - 4px); justify-content: center; padding-left: 8px; padding-right: 8px; }
}
@media (pointer: coarse) {      /* doigt : cibles d'au moins 44 px (recommandation d'Apple) */
  .chip, .btn, .seg button, select, .toolbar input[type=search], .picker input, .search input { min-height: 44px; }
  .chip, .seg button { display: inline-flex; align-items: center; justify-content: center; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) {
  button.gl { position: relative; } button.gl::after { content: ""; position: absolute; inset: -11px -5px; }      /* termes du glossaire dans le texte : zone de toucher agrandie, sans bouger le texte */
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  summary { padding-top: 10px; padding-bottom: 10px; }
}
@media (pointer: coarse) and (min-width: 601px) { .nav a { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

@media (min-width: 1500px) { .container, .wrap, .bar { max-width: 1320px; } }      /* grands écrans : tableaux et cartes plus larges, marges moins vides */

/* ------------------------------------------------------------------------------------ onglets et barre « aérodrome » (Maintenant · Climatologie · Fiabilité du TAF ; Cartes ; Statistiques ; Statut) */
.tabs { position: sticky; top: var(--hdr, 99px); z-index: 19; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--page); border-bottom: 1px solid var(--line-strong); margin: 4px 0 16px; padding: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: 0 0 auto; font: inherit; font-weight: 600; font-size: .97rem; color: var(--ink2); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 13px 18px; text-decoration: none; white-space: nowrap; cursor: pointer; border-radius: 12px 12px 0 0; }
.tabs a:hover, .tabs button:hover { color: var(--ink); background: var(--tint); }
.tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--s1); }
.tabs a:focus-visible, .tabs button:focus-visible { outline: 3px solid var(--s1); outline-offset: -3px; }
.aero-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 2px; }
.aero-bar .aero-pick { flex: 1 1 300px; max-width: 480px; margin: 0; }
.aero-bar .search input { padding: 11px 14px; border-radius: 12px; }
.aero-recent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; }
@media (max-width: 600px) {
  .tabs { margin-left: -12px; margin-right: -12px; padding: 0 6px; }
  .tabs a, .tabs button { flex: 1 1 0; text-align: center; padding: 13px 6px; font-size: .92rem; white-space: normal; line-height: 1.15; }
  .aero-bar .aero-pick { flex-basis: 100%; max-width: none; }
  .aero-recent { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; } .aero-recent::-webkit-scrollbar { display: none; } .aero-recent .chip { flex: none; }
}

/* accueil : groupes de cartes (un aérodrome / cartes / comprendre / page réservée) */
.feat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 790px; }
.feat-sub { margin-top: 30px; font-size: 1.02rem; }
.feat-sub .muted { font-weight: 400; font-size: .9rem; }
#recents { margin-top: 2px; }
@media (max-width: 600px) { .feat-grid.two { grid-template-columns: 1fr; max-width: none; } .feat-sub { margin-top: 22px; } }

/* échantillon limité ou insuffisant (seuils : voir common.js) */
.vs-main.weak .v { color: var(--ink2); } .vs-main.weak { border-left-color: var(--line-strong); }
.vs-card.thin { opacity: .85; } .vs-card.thin p { max-width: 46ch; }
td.na[colspan] { text-align: center; font-style: italic; color: var(--ink2); }

/* en-tête d'un écran d'aérodrome : titre (et action) sur une ligne, informations en texte discret sous les onglets */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title-row h1 { margin: 0; } .title-row .actions { display: flex; gap: 8px; }
.meta-line { margin: -6px 0 12px; }
@media (max-width: 600px) { .title-row { flex-wrap: nowrap; } .title-row h1 { font-size: 1.5rem; min-width: 0; } .btn.soft { padding-left: 10px; padding-right: 10px; } }

/* accueil : « Cartes » et « Comprendre » côte à côte sur grand écran */
.feat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.feat-duo .feat-grid.two { max-width: none; } .feat-duo .feat { padding: 16px 16px 12px; }
@media (max-width: 1099px) { .feat-duo { grid-template-columns: 1fr; } .feat-duo .feat-grid.two { max-width: 790px; } }

/* téléphone : les chiffres clés se rangent sur deux colonnes (au lieu d'une carte par ligne) */
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile { padding: 12px; } .tile .big { font-size: 1.55rem; } .tile .lab { font-size: .85rem; } }

/* sélecteur coloré entre les écrans d'un aérodrome (Maintenant · Climatologie · Fiabilité du TAF) et des cartes : un bouton par écran, plein quand il est actif */
:root { --tab-live: #2a78d6; --tab-clim: #a23fb0; --tab-taf: #0f8a61; --tab-cond: #12803c; --tab-fiab: #d4531f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tab-live: #3987e5; --tab-clim: #b655c6; --tab-taf: #199e70; --tab-cond: #1a9e4f; --tab-fiab: #d95926; } }
:root[data-theme="dark"] { --tab-live: #3987e5; --tab-clim: #b655c6; --tab-taf: #199e70; --tab-cond: #1a9e4f; --tab-fiab: #d95926; }
.tabs.seg-color { gap: 10px; border-bottom: 0; padding: 8px 0 10px; margin: 6px 0 14px; overflow: visible; }
.tabs.seg-color a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 1rem; font-weight: 700; letter-spacing: -.005em;
  color: var(--ink); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 11%, var(--surface)); box-shadow: none; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.tabs.seg-color a svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs.seg-color a:hover { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
.tabs.seg-color a[aria-current="page"] { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 38%, transparent); }
.tabs.seg-color a[aria-current="page"] svg { stroke: #fff; }
.tabs.seg-color a:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
@media (max-width: 600px) {
  .tabs.seg-color { gap: 6px; margin-left: -12px; margin-right: -12px; padding: 8px 12px 10px; }
  .tabs.seg-color a { flex-direction: column; gap: 3px; padding: 9px 4px 8px; border-radius: 12px; font-size: .8rem; line-height: 1.15; text-align: center; white-space: normal; }
  .tabs.seg-color a svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .tabs.seg-color a { transition: none; } }

/* triangle d'avertissement : un TEMPO / PROB prévoit des conditions moins bonnes que le relevé */
.lv-warn { position: absolute; top: -12px; right: -12px; display: inline-flex; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); cursor: help; }
.lv-alert { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; }
.lv-alert svg { flex: none; margin-top: 2px; }
.lm-warn { background: none; border: 0; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.4)); }
.lm-alert { font-weight: 600; }

/* sélecteurs de la rose des vents : deux listes déroulantes sur une ligne (au lieu de 22 pastilles) */
.wind-sel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; padding: 10px 14px; }
.wind-sel label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 600; color: var(--ink2); flex: 0 1 15rem; min-width: 0; }
.wind-sel select { width: 100%; font-weight: 400; padding: 6px 8px; font-size: .9rem; color: var(--ink); }
.wind-sel .hint { flex: 1 1 100%; }
@media (max-width: 600px) { .wind-sel label { flex: 1 1 calc(50% - 7px); } .wind-sel select { font-size: 16px; } }     /* 16 px : iOS ne zoome pas à la sélection */

/* mention discrète de la hauteur CAVOK d'un aérodrome qui n'a pas la hauteur standard (Live, tuile « Plafond et nuages ») */
.lv-cvk { margin: 6px 0 0; font-size: .78rem; line-height: 1.3; color: var(--ink2); cursor: help; }

/* =============================================================== améliorations d'ergonomie (2026-11-25) */
/* écrans d'attente */
.sk-wrap { display: grid; gap: 12px; margin-top: 14px; }
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--grid) 25%, color-mix(in srgb, var(--grid) 50%, var(--surface)) 40%, var(--grid) 65%); background-size: 300% 100%; animation: sk-shimmer 1.6s ease-in-out infinite; }
.sk-card { height: 120px; } .sk-card.tall { height: 260px; } .sk-line { height: 14px; width: 70%; } .sk-line.short { width: 45%; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .sk-tile { height: 150px; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
/* réglages d'affichage (engrenage de l'en-tête) */
.site-header .bar { position: relative; }
.prefs-pop { position: absolute; right: 12px; top: calc(100% + 6px); z-index: 60; width: min(330px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .2); padding: 12px 14px; display: grid; gap: 14px; }
.prefs-pop[hidden] { display: none; }
.pp-row { display: grid; gap: 6px; } .pp-row .seg { width: 100%; } .pp-row .seg button { flex: 1 1 auto; } .pp-row small { line-height: 1.3; }
.tz-seg button { padding: 4px 10px; font-size: .82rem; }
/* couleurs adaptées au daltonisme (palette d'Okabe et Ito : bleu, jaune, orange, mauve, distinctes sans rouge ni vert) */
:root[data-cb="1"] { --cavok: #0072b2; --cavok-ink: #fff; --vfr: #56b4e9; --vfr-ink: #0b0b0b; --mvfr: #f0e442; --mvfr-ink: #0b0b0b; --ifr: #d55e00; --ifr-ink: #fff; --lifr: #cc79a7; --lifr-ink: #0b0b0b; }
:root[data-cb="1"] .lv-c[data-l]::after, :root[data-cb="1"] .lv-strip:not(.sm) span[data-l]::after { content: attr(data-l); font-size: .66rem; font-weight: 800; color: var(--ci, var(--ink)); display: flex; align-items: center; justify-content: center; height: 100%; }
/* légende des catégories : pastilles complètes, détail replié */
.lv-lg .cat { flex: none; white-space: nowrap; }
.lv-fold { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.lv-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; font-size: .86rem; color: var(--ink2); }
.lv-fold > summary::-webkit-details-marker { display: none; }
.lv-fold > summary .cat { flex: none; min-width: 0; padding-left: 8px; padding-right: 8px; }
.lv-fold > summary .more { margin-left: auto; color: var(--s1); font-weight: 600; }
.lv-fold[open] > summary .more::before { content: "Masquer "; } .lv-fold:not([open]) > summary .more::before { content: "Afficher "; }
.lv-fold > .lv-fold-body { padding: 0 12px 10px; }
.lv-fold .lv-cats { margin-top: 4px; flex-direction: column; gap: 8px; }
/* mini-barre : l'essentiel reste visible quand on descend dans Live */
.lv-mini { display: none; position: sticky; top: calc(var(--hdr, 0px) + var(--tabs-h, 64px)); z-index: 18; align-items: center; gap: 10px; padding: 6px 12px; margin: 0 -12px; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); font-size: .9rem; }
.lv-mini.show { display: flex; } .lv-mini b { font-size: 1rem; } .lv-mini .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* actualisation et partage (Live) */
.lv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; }
.lv-top .spacer { flex: 1; } .lv-top .chip { font-size: .84rem; padding: 4px 12px; }
.lv-top .fresh { font-size: .8rem; color: var(--ink2); }
.lv-top .dotfresh { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good-text, #1a7a3c); margin-right: 5px; vertical-align: 1px; } .lv-top .dotfresh.old { background: var(--crit); }
/* repère partagé entre les graphiques de Live */
.lv-sync { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--ink2); opacity: .7; pointer-events: none; display: none; }
.lv-cloudwrap { position: relative; }
/* rang d'un aérodrome parmi tous les autres (fiche de fiabilité) */
.vs-rank { margin: 10px 0 0; font-size: .86rem; }
.vs-rank .rk-bar { position: relative; height: 10px; border-radius: 6px; margin: 6px 0 2px; background: linear-gradient(90deg, var(--crit), #e0a030 50%, var(--good-text, #1a7a3c)); opacity: .85; }
.vs-rank .rk-pin { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); box-shadow: 0 0 0 2px var(--surface); }
.vs-rank .rk-ends { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink2); }

@media (max-width: 560px) { .lv-top .chip .lbl { display: none; } .lv-top .chip { min-width: 44px; } }

/* pastilles d'aérodromes (accueil) : plus petites, avec la couleur de la catégorie de vol actuelle */
.ap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: .76rem; line-height: 1.25; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--c, var(--grid)) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, var(--line-strong)) 50%, transparent); white-space: nowrap; transition: background .15s ease, box-shadow .15s ease; }
.ap-chip b { font-weight: 800; letter-spacing: .03em; color: color-mix(in srgb, var(--c, var(--ink2)) 62%, var(--ink)); }
.ap-chip span { color: var(--ink2); }
.ap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--axis)); flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, var(--axis)) 25%, transparent); }
.ap-chip:hover { background: color-mix(in srgb, var(--c, var(--grid)) 24%, var(--surface)); }
.ap-chip:focus-visible { outline: 2px solid var(--c, var(--s1)); outline-offset: 2px; }
.hero .chips { gap: 6px 8px; }
@media (pointer: coarse) { .ap-chip { min-height: 30px; padding: 3px 11px 3px 9px; font-size: .78rem; } }
/* en-tête : le bouton des réglages suit le même ordre que le bouton de thème (sinon il se place juste après le nom du site) */
@media (min-width: 601px) { .site-header #prefs-btn, .site-header #contact-btn { order: 2; } }
@media (max-width: 600px) { .site-header #prefs-btn { order: 1; margin-left: auto; } .site-header #contact-btn { order: 1; margin-left: 0; } .site-header #theme-btn { margin-left: 0; } }
@media (max-width: 560px) { .site-header #prefs-btn, .site-header #contact-btn { order: 2; margin-left: 0; } }

/* =============================================================== revue d'ergonomie n° 2 (2026-11-25) */
/* icônes : trait régulier, couleur du texte */
svg.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }
#prefs-btn, #theme-btn, #search-toggle, #contact-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; } #contact-btn { text-decoration: none; color: var(--ink); }
#contact-btn[aria-current=page] { border-color: var(--s1); color: var(--s1); }
@media (pointer: coarse) { #prefs-btn, #theme-btn, #search-toggle, #contact-btn { width: 44px; height: 44px; } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--s1); color: var(--s1); }
@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } }
/* bulles d'aide « i » */
details.tip { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
details.tip > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink2); }
details.tip > summary::-webkit-details-marker { display: none; }
details.tip > summary:hover, details.tip[open] > summary { color: var(--s1); background: var(--tint); }
details.tip .tip-body { position: absolute; z-index: 25; top: calc(100% + 6px); left: -8px; width: min(340px, calc(100vw - 40px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 10px 12px; font-size: .86rem; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; white-space: normal; }
details.tip .tip-body p { margin: 0 0 6px; } details.tip .tip-body p:last-child { margin: 0; }
.tip-right details.tip .tip-body, details.tip.right .tip-body { left: auto; right: -8px; }
.hrow { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.hrow > h2, .hrow > h3 { margin-right: 2px; }
/* Live : synthèse = catégorie + chiffres clés */
.lv-summary { display: block; }
.lv-hero { display: flex; gap: 14px; align-items: stretch; margin-bottom: 12px; }
.lv-hero .lv-cat { display: grid; place-items: center; font-size: 1.9rem; padding: 12px 18px; min-width: 6.4rem; }
.lv-kpis { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--tint); border-radius: 10px; padding: 8px 10px 7px; position: relative; overflow: hidden; min-width: 0; }
.kpi[style*="--k"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.kpi span { display: block; font-size: .74rem; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: 1.12rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.kpi b small { font-size: .78rem; font-weight: 600; color: var(--ink2); }
.lv-text .lv-now details.tip { margin-left: 2px; }
@media (max-width: 720px) { .lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .lv-hero { flex-direction: column; } .lv-hero .lv-cat { padding: 8px 14px; } }
/* Live : en-tête */
.lv-top .fresh { font-size: .86rem; cursor: default; }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.icon-btn.err { border-color: var(--crit); color: var(--crit); }
@media (prefers-reduced-motion: reduce) { .icon-btn.spin svg { animation: none; } }
/* Live : tuiles de même hauteur, rose des vents */
.lv-grid { align-items: stretch; }
.lv-tile > .hrow { margin-bottom: 8px; } .lv-tile > .hrow > h3 { margin: 0; }
.hrow > .lv-h3 { margin-bottom: 0; } .sec > .hrow > h2 { margin: 0; }
.lv-arrow { width: 104px; height: 104px; }
.lv-gust { display: inline-block; margin-top: 4px; font-size: .84rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.lv-gust.hot { background: color-mix(in srgb, var(--crit) 14%, transparent); color: var(--crit); }
.lv-note svg.ico { vertical-align: -3px; margin-right: 2px; } .lv-cvk svg.ico { vertical-align: -2px; }
.lv-legend details.tip { margin-left: 0; }
/* Carte : carrée sur téléphone (la France et la Suisse le sont à peu près), outils et compteurs */
@media (max-width: 600px) { .map { height: auto; aspect-ratio: 1 / 1.04; max-height: 72vh; } .lm-card { padding: 8px; } }
.lm-tools { display: flex; justify-content: flex-end; margin-top: 8px; } .lm-tools .chip { font-size: .82rem; }
.lm-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 4px; } .lm-counts > span { display: inline-flex; align-items: center; gap: 5px; }
#lm-sum { display: flex; flex-direction: column; gap: 2px; }
#lm-legend .lv-fold { margin-top: 8px; }
/* Fiche : choix TAF / tendance, sous les cartes du verdict */
.kind-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: .9rem; color: var(--ink2); }
/* Accueil : bandeau de couverture replié */
details.cov > summary { cursor: pointer; list-style: none; } details.cov > summary::-webkit-details-marker { display: none; }
details.cov > summary::after { content: " · détail"; color: var(--s1); font-weight: 600; } details.cov[open] > summary::after { content: ""; }
details.cov[open] > summary { margin-bottom: 6px; }
#coverage { padding: 8px 14px; }
/* Statut › Connexions : mes adresses */
code.mine-ip { color: var(--good-text); font-weight: 700; background: color-mix(in srgb, var(--good-text) 14%, var(--surface)); cursor: help; }
tr.mine > td { background: color-mix(in srgb, var(--good-text, #1a7a3c) 9%, transparent); }
tr.mine > td:first-child { box-shadow: inset 4px 0 0 var(--good-text, #1a7a3c); }
/* Contact (public) et Statut › Messages */
.ct-cats { border: 0; padding: 0; margin: 0; } .ct-cats legend { font-size: .82rem; color: var(--ink2); padding: 0; margin-bottom: 6px; }
.ct-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#ct-form textarea, #ct-form input[type=text] { font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--page); color: var(--ink); width: 100%; box-sizing: border-box; }
#ct-form textarea { resize: vertical; min-height: 9rem; }
#ct-form .chip.on { background: var(--s1); border-color: var(--s1); color: #fff; }
.ct-err { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--crit) 12%, var(--surface)); color: var(--crit); font-weight: 600; font-size: .9rem; }
.ct-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; } .ct-actions .btn:disabled { opacity: .55; cursor: not-allowed; }
.msg.unread { border-left: 5px solid var(--s1); } .msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; } .msg-actions { display: flex; gap: 8px; margin-top: 10px; }
/* Statut : cinq onglets, trop larges pour tenir côte à côte sur téléphone : ils défilent */
@media (max-width: 600px) { #st-tabs button { flex: 0 0 auto; white-space: nowrap; padding: 13px 12px; } }
/* En-tête sur petit téléphone : quatre boutons (recherche, réglages, contact, thème) tiennent sur la ligne du titre */
@media (max-width: 480px) {
  .site-header #prefs-btn, .site-header #theme-btn, .site-header #search-toggle, .site-header #contact-btn { width: 40px; height: 40px; }
  .site-header .bar { gap: 6px; }
  .site-header .brand { min-width: 0; flex: 1 1 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .94rem; }
}
/* Live : pistes et vent traversier (dans la tuile Vent) */
.rw-box { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.rw-box > .hrow { margin-bottom: 2px; } .rw-box h4 { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink2); }
.rw-head, .rw-list li { display: grid; grid-template-columns: minmax(0, 1fr) 4.2em 4.8em; column-gap: 6px; align-items: center; }
.rw-head { white-space: nowrap; font-size: .68rem; color: var(--muted); text-align: right; margin-bottom: 2px; }
.rw-list { list-style: none; margin: 0; padding: 0; }
.rw-list li { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink2); }
.rw-list li:first-child { border-top: 0; }
.rw-rwy { white-space: nowrap; } .rw-rwy b { color: var(--ink); font-size: 1.1rem; letter-spacing: .01em; } .rw-rwy i { font-style: normal; font-size: .8rem; color: var(--muted); margin-left: 1px; }
.rw-list li:not(.best) .rw-rwy b { font-size: .98rem; color: var(--ink2); }
.rw-len { display: block; font-size: .68rem; color: var(--muted); line-height: 1.3; }
.rw-n { text-align: right; font-size: .8rem; white-space: nowrap; } .rw-list li.best .rw-n { color: var(--ink); }
.rw-x { text-align: right; font-weight: 700; font-size: 1rem; white-space: nowrap; } .rw-x small { font-weight: 500; font-size: .72rem; }
.rw-x.ok { color: var(--ink); } .rw-x.warn { color: #b26a00; } .rw-x.bad { color: var(--crit); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rw-x.warn { color: #f0a63a; } }
:root[data-theme="dark"] .rw-x.warn { color: #f0a63a; }
.rw-tail { color: var(--crit); font-weight: 600; }
.lv-day { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .84rem; }
.lv-day-h { font-size: .85rem; font-weight: 600; color: var(--ink2); margin-bottom: 2px; }
.lv-day-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink2); } .lv-day-r b { color: var(--ink); }
.lv-sky { max-width: 560px; margin-left: auto; margin-right: auto; }
.rw-len { white-space: nowrap; }
.rw-calm { margin: 2px 0 6px; font-size: .8rem; color: var(--ink2); } .rw-plain li { display: block; }
/* petits écrans : les onglets Maintenant / Climatologie / Fiabilité défilent avec la page (ils prenaient près de la moitié de l'écran avec l'en-tête) ;
   seule la mini-barre (aérodrome, catégorie, vent) reste collée sous l'en-tête */
@media (max-width: 900px) { #aero-tabs { position: static; } .lv-mini { top: var(--hdr, 0px); } }
