:root {
  --navy: #0b1f3a;
  --navy2: #14315c;
  --blue: #1d6fd6;
  --blue-soft: #e8f1fd;
  --accent: #ff8a3d;
  --green: #18b277;
  --ink: #1a2233;
  --muted: #5a6677;
  --line: #e2e7f0;
  --bg: #eef2f8;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ---------- header ---------- */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 16px;
  background: linear-gradient(105deg, var(--navy), var(--navy2));
  color: #fff;
  box-shadow: 0 2px 14px rgba(11, 31, 58, .35);
  z-index: 500;
}
.brand { display: flex; align-items: center; gap: 10px; z-index: 2; margin-right: auto; }
.brand-icon {
  color: var(--accent);
  filter: drop-shadow(0 2px 5px rgba(255,138,61,.45));
}
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.brand-accent { color: var(--accent); }

.utc-clock {
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  color: #cfe0ff;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.hbtn {
  z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 800; color: #fff;
  padding: 7px 11px; border-radius: 9px;
  background: rgba(255,255,255,.14);
  white-space: nowrap;
  transition: .15s;
}
.hbtn:hover { background: var(--accent); }
#account-btn { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
/* menu hamburger (mobile) */
.burger { display: none; font-size: 18px; line-height: 1; padding: 6px 11px; }
.burger-menu { display: none; position: absolute; top: calc(100% + 4px); right: 12px; z-index: 1500;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 44px rgba(11,31,58,.32); padding: 8px; min-width: 210px; }
.burger-menu.open { display: flex; flex-direction: column; gap: 3px; }
.bm-item { text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.bm-item:hover { background: var(--blue-soft); }
.bm-acct { color: var(--navy); }
.bm-sep { height: 1px; background: var(--line); margin: 4px 8px; }
/* badge quota / premium dans le header */
.qbadge { z-index: 2; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 20px; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; white-space: nowrap; }
.qbadge:empty { display: none; }
.qbadge.empty { background: rgba(232,17,45,.85); }
.qbadge.prem { background: linear-gradient(120deg, #ffd24d, #e0a200); color: #4a3400; font-size: 13px; letter-spacing: .5px; box-shadow: 0 2px 8px rgba(224,162,0,.45); cursor: pointer; }
/* items historique de recherche */
.hist-item { display: block; width: 100%; text-align: left; padding: 11px 13px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: .12s; }
.hist-item:hover { border-color: var(--blue); background: var(--blue-soft); }
#hist-clear { margin-top: 6px; }
.badge {
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.16);
}
.badge:empty { display: none; }

/* ---------- layout ---------- */
.layout { display: flex; height: calc(100vh - 58px); }
.panel {
  width: 360px;
  flex-shrink: 0;
  padding: 16px;
  overflow-y: auto;
  background: var(--card);
  border-right: 1px solid var(--line);
}
#map { flex: 1; }

/* ---------- 2e colonne : résultats ---------- */
.results-panel {
  width: 400px; flex-shrink: 0; display: none;
  background: var(--bg); border-right: 1px solid var(--line);
  overflow-y: auto; padding: 0 14px 16px;
}
.results-panel.open { display: block; }
.rp-head {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 0 9px; margin-bottom: 4px; border-bottom: 2px solid var(--line);
}
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rp-mode { font-size: 14px; font-weight: 800; padding: 4px 11px; border-radius: 20px; color: #fff; background: var(--blue); }
.deepen-btn { border: 0; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 20px; cursor: pointer; white-space: nowrap; }
.deepen-btn:hover { background: var(--blue); color: #fff; }
.deepen-btn[hidden] { display: none; }
.rp-head .status { margin: 0; }
.rp-sort { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.rp-sort select { width: auto; flex: 1; padding: 6px 8px; font-size: 13px; }
.rp-close { border: 0; background: #e6ebf5; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; color: var(--muted); flex-shrink: 0; }
.rp-close:hover { background: #dbe2f0; }
select:disabled { opacity: .55; cursor: not-allowed; background: #f1f4fa; }

/* ---------- séparation visuelle des deux modes ---------- */
/* "Vols à venir" = bleu (défaut) · "Vols historiques" = ambre/sépia */
body[data-mode="history"] .tab.active { background: #7a5230; box-shadow: 0 3px 10px rgba(122,82,48,.3); }
body[data-mode="history"] .mode-hint { background: #f7eede; border-left-color: #b9803c; color: #6b4e2a; }
body[data-mode="history"] button.primary { background: linear-gradient(120deg, #b9803c, #97631f); box-shadow: 0 4px 12px rgba(151,99,31,.3); }
body[data-mode="history"] .rp-mode { background: #97631f; }
body[data-mode="history"] .rp-head { border-bottom-color: #d9b483; }
body[data-mode="history"] .results-panel { border-left: 4px solid #b9803c; background: #faf6ee; }
body[data-mode="routes"] .results-panel { border-left: 4px solid var(--blue); }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 6px;
  background: #f1f4fa;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: .15s;
}
.tab span { font-size: 13px; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--navy); color: #fff; box-shadow: 0 3px 10px rgba(11,31,58,.25); }

.mode-hint {
  font-size: 12px;
  color: var(--muted);
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
}

/* ---------- fields ---------- */
.fld { display: block; font-size: 12.5px; font-weight: 700; color: #34404f; margin: 11px 0 4px; }
select, input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cdd6e4;
  border-radius: 9px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,214,.15); }
.row { display: flex; gap: 8px; }
.row .fld { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: #34404f; }
.check input { width: auto; }
/* un champ avec l'attribut hidden doit rester caché malgré .fld{display:block} */
[hidden] { display: none !important; }

/* ---------- sélecteur d'avion multiple ---------- */
.ac-multi { border: 1px solid #cdd6e4; border-radius: 9px; background: #fff; margin-bottom: 2px; }
.ac-multi summary {
  list-style: none; cursor: pointer; padding: 9px 10px; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ac-multi summary::-webkit-details-marker { display: none; }
.ac-multi summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.ac-multi[open] summary::after { content: "▴"; }
.ac-multi[open] summary { border-bottom: 1px solid var(--line); }
.ac-list { max-height: 240px; overflow-y: auto; padding: 6px; }
.ac-grp { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 800; padding: 8px 6px 3px; }
.ac-opt { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.ac-opt:hover { background: var(--blue-soft); }
.ac-opt input { width: auto; margin: 0; }

button.primary {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--blue), #155fbd);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29,111,214,.3);
  transition: .15s;
}
button.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
button.primary:disabled { opacity: .6; cursor: wait; transform: none; }

.note {
  background: #fff4d6; border: 1px solid #ffd166; color: #7a5b00;
  font-size: 12px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px;
}
.status { font-size: 13px; color: var(--ink); font-weight: 700; margin: 16px 0 2px; }
.status.error { color: #c0392b; }
.meta-line { font-size: 11px; color: #8a93a3; margin: 0 0 10px; }
.meta-line .warn { color: #c0392b; font-weight: 600; }

/* ---------- result cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  margin-bottom: 11px;
  background: var(--card);
  cursor: pointer;
  transition: .15s;
  box-shadow: 0 1px 2px rgba(16,30,54,.04);
}
.card:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(29,111,214,.12); transform: translateY(-1px); }
.card .route { font-weight: 500; font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-bottom: 9px; }
.route .rcity { font-weight: 400; font-size: 12.5px; color: var(--muted); }
#modal-body h2 .rcity { font-weight: 400; font-size: 15px; color: var(--muted); }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.6; font-weight: 400; }
.card .sub.times { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink); }
.card .sub.dim { opacity: .7; }
.dep-line { font-size: 13px; font-weight: 800; margin: 2px 0 6px; display: inline-block; padding: 2px 10px; border-radius: 7px; }
.dep-line.dep-soon { color: #b3261e; background: #fdeceb; }
.dep-line.dep-mid  { color: #9a5b00; background: #fff4e0; }
.dep-line.dep-far  { color: #137a4d; background: #eafaf2; }
.card.past { opacity: .55; }
.card.past:hover { opacity: .85; }
.chip { font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 20px; letter-spacing: .2px; }
.chip-roll { background: #e8f1fd; color: #155fbd; }
.chip-reg { background: #eafaf2; color: #137a4d; }
.chip-past { background: #f1f4fa; color: #8a93a3; }
.chip-atc { background: #eafaf2; color: #137a4d; }
/* contrôle météo carte (RainViewer) */
.wx-ctrl { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 10px; box-shadow: 0 2px 10px rgba(11,31,58,.25); }
.wx-btn { border: 0; background: #f1f4fa; width: 34px; height: 34px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.wx-btn.on { background: var(--blue); }
.wind-arrow { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; line-height: 1; text-shadow: 0 0 2px rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.35); }
.atc-mk { font-size: 13px; line-height: 16px; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); cursor: pointer; }
/* sélecteur de fond de carte (Leaflet layers) — corrige les radios pleine largeur */
.leaflet-control-layers { border-radius: 10px; box-shadow: 0 2px 10px rgba(11,31,58,.25); }
.leaflet-control-layers-list { padding: 2px; }
.leaflet-control-layers-base label { display: flex; align-items: center; gap: 7px; margin: 0; padding: 4px 6px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 6px; }
.leaflet-control-layers-base label:hover { background: var(--blue-soft); }
.leaflet-control-layers input[type="radio"], .leaflet-control-layers input[type="checkbox"] { width: auto !important; margin: 0; flex: none; }
.leaflet-control-layers-base label > span { display: flex; }
/* météo METAR dans la fiche */
.m-wx { margin-bottom: 14px; }
.m-wx h3 { margin: 0 0 8px; font-size: 14px; }
.wx-load { font-size: 13px; color: var(--muted); }
.wx-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-bottom: 6px; }
.wx-row code { display: block; flex-basis: 100%; background: #0b1f3a; color: #c9e0ff; padding: 6px 9px; border-radius: 7px; font-size: 11.5px; word-break: break-word; }
.wx-cat { font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 20px; color: #fff; }
.wx-cat.VFR { background: #18b277; } .wx-cat.MVFR { background: #1d6fd6; }
.wx-cat.IFR { background: #e8442e; } .wx-cat.LIFR { background: #b3261e; }
.wx-locked { border: 0; background: #f6f8fc; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; width: 100%; text-align: left; }
.card .logo { height: 18px; width: auto; vertical-align: middle; border-radius: 3px; }
.card .hint { margin-top: 9px; font-size: 12px; color: #9aa3b2; font-weight: 400; }
.card .links { margin-top: 10px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card .links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.card .links a:hover { text-decoration: underline; }
.card .links a.sb {
  background: var(--green); color: #fff; padding: 3px 10px; border-radius: 7px;
  font-weight: 800; box-shadow: 0 2px 6px rgba(24,178,119,.35);
}
.card .links a.sb:hover { filter: brightness(1.06); text-decoration: none; }
.sb-logo { height: 14px; width: 14px; vertical-align: middle; border-radius: 3px; margin-right: 1px; }
/* bouton "Suivi live" facon Twitch : pastille rouge animee + halo qui pulse */
a.stbtn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8112d; color: #fff !important; padding: 3px 11px; border-radius: 7px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .4px; font-size: 11.5px;
  text-decoration: none; animation: liveglow 2s ease-in-out infinite;
}
.m-actions a.stbtn { padding: 8px 14px; border-radius: 9px; font-size: 12.5px; }
a.stbtn:hover { filter: brightness(1.08); text-decoration: none; }
a.stbtn .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.9); animation: livedot 1.3s ease-out infinite;
}
@keyframes livedot {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.85); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); opacity: .85; }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); opacity: 1; }
}
@keyframes liveglow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,17,45,.0); }
  50%      { box-shadow: 0 0 12px 1px rgba(232,17,45,.55); }
}

.more-btn {
  width: 100%; margin-top: 8px; padding: 9px; border-radius: 9px;
  border: 1px solid #cdd6e4; background: #f3f6fb; font-size: 12px; font-weight: 700; cursor: pointer;
}
.more-btn.free { color: #1d7a44; border-color: #b6dcc0; background: #f0faf2; }
.more-btn.cost { color: #8a5b00; border-color: #ffd166; background: #fff7e0; }
.more-btn:hover { filter: brightness(.98); }

.myac { margin-top: 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.myac summary { cursor: pointer; font-weight: 700; color: #34404f; }
.myac textarea { width: 100%; padding: 8px; border: 1px solid #cdd6e4; border-radius: 8px; font-family: monospace; font-size: 12px; resize: vertical; }
.myac code { background: #eef2f8; padding: 0 3px; border-radius: 3px; }
.card .star { float: right; cursor: pointer; font-size: 16px; margin-left: 6px; opacity: .4; filter: grayscale(1); transition: .15s; }
.card .star.on { opacity: 1; filter: none; }
.card .star:hover { opacity: .8; }

/* ---------- map markers ---------- */
.plane-marker { position: relative; width: 40px; height: 40px; }
.plane-rot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.plane-svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.plane-svg path { fill: var(--navy); stroke: #fff; stroke-width: 1; }
.plane-logo {
  position: absolute; top: -5px; right: -5px; height: 18px; width: 18px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 1px; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.airport-dot { background: #fff; border: 2px solid var(--navy); border-radius: 50%; width: 10px; height: 10px; }
.route-badge {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 9px; font-size: 11px; font-weight: 700; color: var(--navy);
  white-space: nowrap; box-shadow: 0 2px 6px rgba(11,31,58,.3); cursor: pointer;
}
.route-badge:hover { border-color: var(--blue); box-shadow: 0 3px 10px rgba(29,111,214,.4); }
/* label aéroport en bout de ligne de résultat (code ICAO/IATA) */
.ap-end { position: absolute; transform: translate(-50%, -50%); background: #fff; border: 1.5px solid var(--blue); color: var(--navy); font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 9px; box-shadow: 0 1px 4px rgba(11,31,58,.3); white-space: nowrap; }
body[data-mode="history"] .ap-end { border-color: #97631f; }
.route-badge .rb-logo { height: 14px; width: auto; border-radius: 2px; }
.route-badge .rb-type { background: var(--navy); color: #fff; font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 5px; letter-spacing: .3px; }
/* icône avion selon type (façon FR24) + badge dessous */
.route-mark { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; }
.rm-plane { width: 30px; height: 30px; line-height: 0; }
.ac-ico { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ac-ico .ac-body { stroke: #fff; stroke-width: .8; }
.ac-ico .ac-eng circle { fill: #fff; }
.ac-ico .ac-prop line { stroke: #fff; stroke-width: 1; stroke-linecap: round; }
.ac-narrow .ac-body { fill: #1d6fd6; }
.ac-wide   .ac-body { fill: #0b1f3a; }
.ac-quad   .ac-body { fill: #c0392b; }
.ac-regional .ac-body { fill: #18b277; }
.ac-prop   .ac-body { fill: #8a5b00; }
.mk-hi .route-badge { border-color: #ff8a3d; box-shadow: 0 0 0 2px #ff8a3d, 0 3px 12px rgba(255,138,61,.5); z-index: 1000; }
/* badges VATSIM (façon VATSIM Radar) : ICAO + lettres de position */
.atc-box { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: stretch; background: #fff; border: 1px solid #b9c2d4; border-radius: 6px; box-shadow: 0 2px 6px rgba(11,31,58,.35); font-size: 11px; font-weight: 800; overflow: hidden; white-space: nowrap; cursor: pointer; }
.atc-code { padding: 2px 6px; color: var(--navy); align-self: center; }
.atc-l { display: inline-flex; align-items: center; justify-content: center; min-width: 15px; padding: 1px 3px; color: #fff; font-size: 10px; font-weight: 800; border-radius: 3px; }
.atc-box .atc-l { border-radius: 0; width: 15px; padding: 2px 0; }
.ctr-label { position: absolute; transform: translate(-50%, -50%); background: rgba(91,110,225,.92); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
/* popups VATSIM */
.pop-h { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.pop-pos { font-size: 13px; line-height: 1.6; display: flex; align-items: center; gap: 6px; }
.pop-atis { margin-top: 6px; font-size: 12.5px; }
.pop-atistxt { font-size: 11px; color: var(--muted); margin-top: 2px; max-width: 250px; white-space: normal; line-height: 1.4; }
/* logo VATSIM partout */
.vatsim-ico { height: 14px; width: 14px; vertical-align: middle; border-radius: 50%; }
.wx-btn { display: flex; align-items: center; justify-content: center; }
.wx-vatsim .vatsim-ico { height: 20px; width: 20px; }
.atc-leg-h { display: inline-flex; align-items: center; gap: 5px; }
/* ligne ATC dans les cartes (label puis positions à la ligne) */
.atc-line { color: #137a4d; font-weight: 600; }
.atc-line-h { display: flex; align-items: center; gap: 5px; }
.atc-line-p { margin-top: 2px; }
.atc-line b { color: var(--ink); }
/* section VATSIM dans la modale */
.m-atc { margin-bottom: 14px; }
.m-atc h3 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.atc-blks { display: flex; flex-direction: column; gap: 10px; }
.atc-blk { background: #f6f8fc; border-radius: 10px; padding: 10px 12px; }
.atc-blk-h { font-weight: 800; font-size: 13px; margin-bottom: 5px; }
.atc-pos { font-size: 13px; display: flex; align-items: center; gap: 6px; line-height: 1.8; }
.atc-atis { margin-top: 7px; font-size: 12.5px; }
.atis-txt { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
/* légende VATSIM */
.atc-legend { background: #fff; padding: 8px 11px; border-radius: 10px; box-shadow: 0 2px 10px rgba(11,31,58,.25); font-size: 12px; line-height: 1.7; }
.atc-legend b { font-size: 11px; }
.atc-legend div { display: flex; align-items: center; gap: 6px; }
.atc-legend span { width: 12px; height: 12px; border-radius: 50%; opacity: .8; display: inline-block; }
/* zone région/pays surlignée sur la carte */
.zone-rect { animation: zonepulse 1.7s ease-in-out infinite; }
@keyframes zonepulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .3; } }
.fr24-popup { font: 13px/1.45 system-ui, sans-serif; }
.fr24-popup b { font-size: 14px; }
.fr24-popup .pp-logo { height: 16px; vertical-align: middle; margin-right: 5px; }
.fr24-popup a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ---------- modale détail (type Notion) ---------- */
.modal { position: fixed; inset: 0; background: rgba(11,31,58,.5); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal.open { display: flex; }
.modal-card { position: relative; width: min(640px, 94vw); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 18px 60px rgba(11,31,58,.4); }
.modal-x { position: absolute; top: 14px; right: 16px; border: 0; background: #f1f4fa; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--muted); }
.modal-x:hover { background: #e6ebf5; }
#modal-body h2 { margin: 0 8px 2px 0; font-size: 26px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
#modal-body .m-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.m-grid > div { background: #f6f8fc; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.m-grid b { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 800; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.m-actions a, .m-actions button { font-size: 13px; }
.m-actions a.sb { background: var(--green); color: #fff; padding: 8px 14px; border-radius: 9px; font-weight: 800; text-decoration: none; box-shadow: 0 3px 9px rgba(24,178,119,.35); }
.m-actions a .sb-logo { height: 16px; width: 16px; }
/* boutons modale alignés et de même taille */
.m-actions .m-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 9px; font-weight: 800; font-size: 13px; border: 0; cursor: pointer; text-decoration: none; }
.m-btn.fav { background: #eef2f8; color: var(--navy); }
.m-btn.fav.on { background: #fff4d6; color: #8a5b00; }
.m-btn.plan { background: var(--navy); color: #fff; }
#m-plan-box { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
#m-plan-box code { display: block; background: #0b1f3a; color: #c9e0ff; padding: 10px 12px; border-radius: 8px; font-size: 12px; word-break: break-word; margin-top: 4px; }
.m-addons { border-top: 1px solid var(--line); padding-top: 14px; }
.m-addons h3 { margin: 0 0 8px; font-size: 14px; }
.m-addons > div { font-size: 13px; margin-bottom: 6px; line-height: 1.7; }
.m-addons a { color: var(--blue); font-weight: 600; text-decoration: none; }
.m-addons a:hover { text-decoration: underline; }

/* ---------- popup "Mes vols à faire" ---------- */
.saved-title { margin: 0 0 6px; font-size: 22px; }
.saved-sub { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.saved-empty { color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; padding: 20px 0; }
.saved-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.saved-item:last-child { border-bottom: 0; }
.si-main { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.si-main:hover { color: var(--blue); }
.si-main .logo { height: 18px; border-radius: 3px; }
.si-meta { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.si-act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.si-act a.sb { background: var(--green); color: #fff; padding: 6px 11px; border-radius: 8px; font-weight: 800; text-decoration: none; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.si-del { border: 0; background: #f1f4fa; width: 32px; height: 32px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.si-del:hover { background: #fde2e0; }

/* ---------- comptes : header + onglet verrouillé ---------- */
.hbtn.prem { background: linear-gradient(120deg, var(--accent), #e0701f); }
.tab.locked::after { content: "🔒"; font-size: 11px; margin-left: 3px; opacity: .8; }
/* filtres réservés premium : badge doré + grisé */
.pf-tag { display: none; font-size: 10px; font-weight: 800; color: #7a5c00; background: linear-gradient(120deg, #ffe49a, #f0c14b); padding: 1px 7px; border-radius: 20px; margin-left: 4px; vertical-align: middle; box-shadow: 0 1px 3px rgba(176,134,11,.3); }
.pf.locked .pf-tag { display: inline-block; }
.pf.locked { cursor: pointer; }
.pf.locked select, .pf.locked input { pointer-events: none; }
input:disabled { opacity: .55; cursor: not-allowed; background: #f1f4fa; }

/* ---------- gate : popup de connexion AU-DESSUS du site (visible/flouté) ---------- */
.gate { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(11,31,58,.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.gate.on { display: flex; }
.gate-card { width: min(400px, 94vw); background: #fff; border-radius: 18px; padding: 30px 28px; box-shadow: 0 24px 80px rgba(0,0,0,.5); animation: cfpop .2s ease-out; }
.gate-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.gate-brand .brand-icon { color: var(--accent); }
.gate-brand .brand-name { font-size: 24px; font-weight: 800; color: var(--navy); }
.gate-brand .brand-accent { color: var(--accent); }
.gate-tag { text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }
.gate-note { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.gate-card input { margin-bottom: 10px; }
.gate-card .primary { margin-top: 4px; }
.gate-link { display: block; width: 100%; margin-top: 12px; padding: 4px; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.gate-link:hover { text-decoration: underline; }
.g-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.g-or::before, .g-or::after { content: ""; flex: 1; height: 1px; background: #e2e6ec; }
.g-btn { display: flex; justify-content: center; min-height: 4px; }
.gate-legal { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: none; }
.gate-legal:hover { text-decoration: underline; }
.auth-tabs { display: flex; gap: 6px; background: #f1f4fa; padding: 5px; border-radius: 12px; margin: 6px 0 16px; }
.auth-tab { flex: 1; padding: 9px; border: 0; background: transparent; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-tab.active { background: var(--navy); color: #fff; }
.auth-err { color: #c0392b; font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.auth-err.ok { color: #137a4d; }
.auth-err:empty { display: none; }
#upsell { z-index: 3500; }  /* au-dessus du gate (3000) pour voir les tarifs avant connexion */

/* ---------- modale compte ---------- */
.acc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.acc-row b { color: var(--muted); font-weight: 700; }
.acc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.acc-actions .primary { margin-top: 0; }

/* ---------- modale upsell premium ---------- */
.upsell-card { width: min(520px, 94vw); padding: 30px 30px 26px; }
.up-title { margin: 0 0 18px; font-size: 25px; text-align: center; letter-spacing: -.3px; }
.upsell-card .primary { margin-top: 10px; }
.up-lead { color: #b3261e; font-weight: 700; font-size: 14px; margin: 0 0 16px; text-align: center; }
.up-pitch { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
/* carousel des avantages — aéré */
.up-carousel { position: relative; margin: 6px 0 22px; overflow: hidden; }
.up-track { display: flex; transition: transform .35s ease; }
.up-slide { min-width: 100%; padding: 0 10px; box-sizing: border-box; }
.up-visual { height: 122px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 52px; color: #fff; margin-bottom: 20px; box-shadow: 0 8px 22px rgba(11,31,58,.22); }
.up-visual img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; }
.up-stitle { font-size: 19px; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 8px; line-height: 1.25; }
.up-ssub { font-size: 13.5px; color: var(--muted); line-height: 1.5; text-align: center; margin-bottom: 16px; padding: 0 6px; }
.up-feats { list-style: none; margin: 0 auto; padding: 0; max-width: 390px; display: flex; flex-direction: column; gap: 10px; min-height: 138px; }
.up-feats li { font-size: 13.5px; line-height: 1.45; color: var(--ink); background: #f5f8fc; border: 1px solid #eaf0f8; border-radius: 11px; padding: 11px 14px; text-align: left; }
.up-nav { position: absolute; top: 61px; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.28); font-size: 19px; font-weight: 800; cursor: pointer; color: var(--navy); z-index: 2; }
.up-prev { left: 4px; }
.up-next { right: 4px; }
.up-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.up-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; transition: .15s; }
.up-dot.on { background: var(--blue); width: 20px; border-radius: 4px; }
.up-feat { font-size: 13.5px; line-height: 1.5; background: #f6f8fc; border-radius: 10px; padding: 10px 12px; }
.up-feat b { color: var(--ink); }
.up-price { font-size: 30px; font-weight: 900; color: #b8860b; text-align: center; margin: 4px 0 14px; }
.up-price span { font-size: 15px; font-weight: 700; color: var(--muted); }
/* bouton Premium toujours en gold (l'ID prime sur le theme par mode) */
#up-go {
  background: linear-gradient(120deg, #ffd24d, #e0a200);
  color: #4a3400;
  box-shadow: 0 4px 14px rgba(224,162,0,.4);
}
#up-go:hover { filter: brightness(1.05); }
.up-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- modale de confirmation (SimBrief enrichi) ---------- */
.confirm-card {
  width: min(420px, 92vw); background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 18px 60px rgba(11,31,58,.45); animation: cfpop .18s ease-out;
}
@keyframes cfpop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-msg { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin-bottom: 18px; }
.confirm-msg .cf-warn { color: #c0392b; font-weight: 700; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cf-btn { padding: 9px 16px; border: 0; border-radius: 9px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.cf-no { background: #eef2f8; color: var(--muted); }
.cf-no:hover { background: #e2e8f2; }
.cf-yes { background: var(--accent); color: #fff; box-shadow: 0 3px 9px rgba(255,138,61,.4); }
.cf-yes:hover { filter: brightness(1.05); }

/* ====================================================================== */
/* ===================== RESPONSIVE (ordi / tablette / mobile) ========== */
/* ====================================================================== */

/* Header : boutons en icônes seules quand la place manque */
@media (max-width: 960px) {
  .hlbl { display: none; }
  #account-btn { max-width: 120px; }
}
@media (max-width: 680px) {
  .utc-clock { display: none; }
  .qbadge { font-size: 11px; padding: 4px 8px; }
}

/* Tablette : colonnes plus étroites */
@media (max-width: 1024px) {
  .panel { width: 300px; }
  .results-panel { width: 330px; }
}

/* Mobile / petit écran : tout en colonne, scroll de page */
@media (max-width: 760px) {
  html, body { height: auto; }
  body { overflow-y: auto; }

  .topbar { min-height: 52px; padding: 0 12px; gap: 7px; }
  .brand-name { font-size: 19px; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .hbtn { font-size: 12px; padding: 6px 9px; }
  /* cluster -> hamburger (le badge quota/premium reste visible) */
  #lang-btn, #history-btn, #saved-btn, #account-btn { display: none; }
  .burger { display: inline-flex; font-size: 20px; }

  .layout { flex-direction: column; height: auto; }

  .panel {
    width: 100%; flex-shrink: 1; order: 1;
    border-right: 0; border-bottom: 1px solid var(--line);
    overflow: visible; max-height: none;
  }
  #map { width: 100%; height: 52vh; min-height: 300px; order: 2; }
  .results-panel {
    width: 100%; order: 3; overflow: visible; max-height: none;
    border-right: 0; border-left: 0;
  }
  .results-panel.open { display: block; }
  body[data-mode="routes"] .results-panel { border-left: 0; border-top: 4px solid var(--blue); }
  body[data-mode="history"] .results-panel { border-left: 0; border-top: 4px solid #b9803c; }
  .rp-head { position: static; }

  .modal-card { padding: 20px 18px; border-radius: 14px; }
  #modal-body h2 { font-size: 21px; }
}

/* Très petit (iPhone SE etc.) */
@media (max-width: 380px) {
  .tab { font-size: 12px; padding: 8px 2px; }
  .brand-name { font-size: 17px; }
  .utc-clock { font-size: 11px; }
}

/* ---------- sliders (durée / départ-dans / années) ---------- */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; padding: 0; border: 0; border-radius: 6px; background: #d9e2f0; cursor: pointer; }
input[type=range]:focus { box-shadow: none; outline: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer; }
body[data-mode="history"] input[type=range]::-webkit-slider-thumb { background: #97631f; }
body[data-mode="history"] input[type=range]::-moz-range-thumb { background: #97631f; }
.slider { padding: 4px 2px 2px; }
.sl-val { font-size: 12.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; display: block; }
.slider-dual { padding: 4px 2px 2px; }
.sl-tracks { position: relative; height: 20px; }
.sl-tracks::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 6px; border-radius: 6px; background: #d9e2f0; }
.sl-tracks input[type=range] { position: absolute; top: 7px; left: 0; background: none; pointer-events: none; }
.sl-tracks input[type=range]::-webkit-slider-thumb { pointer-events: auto; }
.sl-tracks input[type=range]::-moz-range-thumb { pointer-events: auto; }

/* ---------- autocomplete aéroport / compagnie ---------- */
.ac-wrap { position: relative; margin-bottom: 2px; }
.ac-input { margin-bottom: 0; }
.ac-drop { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; margin-top: 3px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(11,31,58,.18); max-height: 250px; overflow-y: auto; display: none; }
.ac-drop.on { display: block; }
.ac-item { display: flex; align-items: center; gap: 8px; padding: 7px 11px; cursor: pointer; border-bottom: 1px solid #f0f3f9; }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.hi { background: var(--blue-soft); }
.ac-item img { height: 15px; width: auto; flex-shrink: 0; }
.ac-txt { display: flex; flex-direction: column; min-width: 0; }
.ac-n { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-c { font-size: 11px; color: var(--muted); font-weight: 600; }
.ac-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ac-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #18794e; background: #e7f6ee; border: 1px solid #b7e3c9; padding: 3px 6px 3px 9px; border-radius: 16px; max-width: 100%; }
.ac-chip b { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ac-code-sm { font-size: 10px; font-weight: 800; color: #18794e; background: #cdeed9; padding: 1px 5px; border-radius: 8px; }
.ac-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 1px; width: auto; line-height: 1; }
.ac-x:hover { color: #b3261e; }

/* ---------- segment départ / arrivée / les deux ---------- */
.seg { display: flex; margin-top: 8px; border: 1px solid #cdd6e4; border-radius: 9px; overflow: hidden; }
.seg-b { flex: 1; border: 0; background: #fff; padding: 7px 4px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; border-right: 1px solid #cdd6e4; width: auto; }
.seg-b:last-child { border-right: 0; }
.seg-b.on { background: var(--blue); color: #fff; }

/* ---------- lien feedback dans le panneau + modale ---------- */
.panel-link { display: block; width: 100%; margin-top: 12px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; padding: 6px; }
.panel-link:hover { color: var(--blue); text-decoration: underline; }
.panel-legal { margin-top: 2px; font-size: 11.5px; text-decoration: none; }
.shown-note { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 12px 0 4px; }

/* slogan (but du site) */
.panel-slogan { font-size: 13px; line-height: 1.45; color: var(--navy); background: var(--blue-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-weight: 600; }
/* ligne surprise + reset */
.btn-row { display: flex; gap: 8px; }
.btn-row .more-btn { flex: 1; }
/* bouton "plus de résultats" */
.more-results { display: block; width: 100%; margin: 12px 0 4px; border: 1px dashed var(--blue); background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 800; padding: 10px; border-radius: 10px; cursor: pointer; }
.more-results:hover { background: var(--blue); color: #fff; }

/* ---------- onboarding (guide spotlight) ---------- */
.onb { position: fixed; inset: 0; z-index: 6000; display: none; }
.onb.on { display: block; }
.onb-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8,18,35,.72); transition: all .3s ease; pointer-events: none; opacity: 0; }
.onb-tip { position: fixed; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 14px 44px rgba(0,0,0,.45); max-width: 92vw; }
.onb-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.onb-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.onb-nav { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.onb-count { font-size: 12px; color: var(--muted); font-weight: 700; }
.onb-skip { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.onb-prev { border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.onb-next { border: 0; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 800; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.onb-next:hover { filter: brightness(1.07); }
.fb-tabs { display: flex; gap: 8px; margin: 6px 0 12px; }
.fb-tab { flex: 1; border: 1px solid var(--line); background: #fff; padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.fb-tab.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.fb-msg { width: 100%; resize: vertical; padding: 10px; border: 1px solid #cdd6e4; border-radius: 9px; font-size: 14px; font-family: inherit; margin-bottom: 8px; }
.fb-status { min-height: 18px; font-size: 13px; font-weight: 700; margin: 6px 0; }
.fb-status.ok { color: #18794e; }
.fb-status.err { color: #b3261e; }

/* sous-libellé des filtres From/To */
.ac-sub { font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 8px 0 3px; }

/* ---------- badges ATC dans les résultats : en ligne (live) + réservé (booked), même format ---------- */
.atc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.atc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid; white-space: nowrap; }
.atc-tag b { font-weight: 800; }
.atc-tag.live { color: #0f7a4d; background: #e6f7ee; border-color: #9bdcbb; }          /* EN LIGNE : vert doux */
.atc-tag.booked { color: #6a3df0; background: #efeaff; border-color: #d2c4ff; }         /* RÉSERVÉ : violet */
.atc-tag.booked.cover { color: #fff; background: #7e57c2; border-color: #7e57c2; }       /* réservé qui couvre ton vol : violet plein */
.atc-tag.enroute { color: #1457a8; background: #e7f0fc; border-color: #b6d3f3; }         /* centre (CTR) en route : bleu */
.atc-tag.fullatc { color: #4a3400; background: linear-gradient(120deg,#ffd24d,#e0a200); border-color: #e0a200; font-weight: 800; }  /* FULL ATC : or */
.vatsim-sub { margin-left: 22px; margin-top: 2px; font-size: 12px; }
.vatsim-sub input:disabled + span { opacity: .45; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: #18b277; box-shadow: 0 0 0 0 rgba(24,178,119,.6); animation: livePulse 1.6s infinite; flex-shrink: 0; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(24,178,119,.55); } 70% { box-shadow: 0 0 0 6px rgba(24,178,119,0); } 100% { box-shadow: 0 0 0 0 rgba(24,178,119,0); } }

/* ---------- créneaux ATC réservés (VATSIM "booked") ---------- */
.atc-booked { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.bk-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #6a3df0; background: #efeaff; border: 1px solid #d2c4ff; padding: 2px 8px; border-radius: 20px; }
.bk-badge.on { color: #fff; background: #7e57c2; border-color: #7e57c2; }
/* le créneau couvre l'heure de TON vol -> tu seras réellement contrôlé (vert, bien voyant) */
.bk-badge.cover { color: #fff; background: #18794e; border-color: #18794e; box-shadow: 0 1px 5px rgba(24,121,78,.4); }
.bk-badge b { color: inherit; }
.pop-bk-row.cover { font-weight: 800; color: #18794e; }
.bk-now.cover { background: #18794e; }

/* ---------- Mes avions (flotte) ---------- */
.fleet-row { display: flex; gap: 8px; margin: 6px 0 2px; }
.fleet-btn { flex: 1; border: 0; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 800; padding: 8px; border-radius: 9px; cursor: pointer; }
.fleet-btn:hover { background: var(--blue); color: #fff; }
.fleet-edit { border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.fleet-edit:hover { border-color: var(--blue); color: var(--blue); }
.fleet-opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 7px; cursor: pointer; }
.fleet-opt:hover { border-color: var(--blue); background: var(--blue-soft); }
.fleet-opt input { width: auto; }
.fleet-opt span { display: flex; flex-direction: column; }
.fleet-opt b { font-size: 13.5px; color: var(--ink); }
.fleet-opt small { font-size: 11px; color: var(--muted); }
#fleet-save { margin-top: 10px; }

/* ---------- boutons découverte (événements / mythiques) ---------- */
.discover-row { display: flex; gap: 8px; margin-top: 8px; }
.disc-btn { flex: 1; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 9px 6px; border-radius: 9px; cursor: pointer; }
.disc-btn:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }

/* ---------- événements VATSIM ---------- */
.ev-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.ev-banner { display: block; width: 100%; max-height: 150px; object-fit: cover; background: #dbe4f0; }
.ev-pad { padding: 12px 14px; }
.ev-h b { font-size: 14.5px; color: var(--navy); }
.ev-meta { font-size: 12px; color: var(--muted); font-weight: 600; margin: 4px 0; }
.ev-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; margin: 2px 6px 4px 0; }
.ev-badge.slot { color: #7a3e00; background: #ffe7c2; border: 1px solid #f0c486; }
.ev-badge.far { color: #5a6677; background: #eef2f8; border: 1px solid #dde4ee; }
.ev-desc { font-size: 12.5px; color: var(--ink); line-height: 1.45; margin-bottom: 8px; }
.ev-act { display: flex; gap: 10px; align-items: center; }
.ev-go { border: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: 12.5px; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.ev-go:hover { filter: brightness(1.07); }
.ev-link { font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; }
.ev-link:hover { text-decoration: underline; }

/* ---------- aéroports mythiques ---------- */
#iconic-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ic-card { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: #fff; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; }
.ic-card:hover { border-color: var(--blue); box-shadow: 0 5px 16px rgba(29,111,214,.2); }
.ic-photo { height: 98px; background-size: cover; background-position: center; background-color: #dbe4f0; }
.ic-info { padding: 9px 12px 11px; display: flex; flex-direction: column; gap: 3px; }
.ic-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ic-top b { font-size: 14px; color: var(--navy); }
.ic-code { font-size: 11px; font-weight: 800; color: var(--blue); background: var(--blue-soft); padding: 1px 6px; border-radius: 7px; }
.ic-card small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) { #iconic-body { grid-template-columns: 1fr; } }

/* ---------- météo enrichie (METAR/TAF + piste) ---------- */
.wx-row-h { display: flex; align-items: center; gap: 8px; }
.wx-dec { font-size: 12px; color: var(--ink); font-weight: 600; margin: 5px 0 3px; }
.wx-rwy { color: #0f7a4d; }
.wx-taf { margin-top: 5px; font-size: 11px; color: var(--muted); }
.wx-taf code { font-size: 11px; }
.atc-bk { margin-left: 3px; font-size: 10px; opacity: .6; }
.atc-bk.on { opacity: 1; }
.atc-box.booked-only .atc-code { background: #7e57c2; color: #fff; }
.bk-pill { font-size: 9px; font-weight: 800; color: #fff; background: #7e57c2; padding: 1px 6px; border-radius: 10px; margin-left: 3px; }
.pop-bk { margin-top: 6px; border-top: 1px solid #eee; padding-top: 5px; }
.pop-bk-h { font-size: 11px; font-weight: 800; color: #6a3df0; margin-bottom: 3px; }
.pop-bk-row { font-size: 11px; color: var(--ink); }
.bk-now { color: #fff; background: #7e57c2; padding: 0 5px; border-radius: 8px; font-size: 9px; font-weight: 800; }
