/* Flight Connections : pages de contenu (aéroports, liaisons, compagnies, pays). */
:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --text: #18202b;
    --muted: #5d6877;
    --border: #dfe3e9;
    --accent: #2f6fde;
    --accent-soft: rgba(47, 111, 222, 0.1);
    --origin: #d6336c;
    --seasonal: #b8680a;
    --seasonal-soft: rgba(232, 137, 12, 0.14);
    --old: #7d8797;
    --radius: 10px;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11151b;
        --surface: #181d25;
        --surface-2: #232a35;
        --text: #e7ebf0;
        --muted: #9aa5b4;
        --border: #2c3441;
        --accent: #6c9ff7;
        --accent-soft: rgba(91, 147, 245, 0.14);
        --origin: #f06595;
        --seasonal: #f5a524;
        --seasonal-soft: rgba(245, 165, 36, 0.16);
        --old: #8a94a4;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.site-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 20px; height: 20px; fill: var(--accent); }
.site-nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); text-decoration: none; }
.lang { font-family: var(--mono); font-size: 13px; border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
@media (max-width: 560px) { .site-nav .opt { display: none; } }

/* Corps */
main { padding: 28px 0 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .5; }
h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; font-weight: 700; }
h1 .code { font-family: var(--mono); font-size: .55em; vertical-align: middle; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; margin-left: 6px; letter-spacing: 0; }
h2 { font-size: 20px; margin: 40px 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 22px 0 8px; display: flex; gap: 8px; align-items: baseline; }
h3 small { color: var(--muted); font-weight: 400; }
.lede { font-size: 17px; max-width: 760px; margin: 0 0 20px; color: var(--text); }
.lede b { font-weight: 600; }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 760px; }

.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.cta:hover { text-decoration: none; filter: brightness(1.06); }
.cta svg { width: 16px; height: 16px; fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 8px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 22px 0 6px; }
.fact { background: var(--surface); padding: 14px 16px; }
.fact b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fact span { font-size: 13px; color: var(--muted); }

/* Listes de destinations / aéroports */
.cols { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 28px; }
.cols li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.cols .c { font-family: var(--mono); font-size: 13px; color: var(--muted); width: 2.6em; flex: none; }
.cols a { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cols a:hover { color: var(--accent); }
.cols .n { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--seasonal); flex: none; align-self: center; }
.dot.old { background: transparent; border: 1.5px solid var(--old); }

.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 5px; padding: 1px 7px; background: var(--accent-soft); color: var(--accent); }
.badge.seasonal { background: var(--seasonal-soft); color: var(--seasonal); }
.badge.old { background: var(--surface-2); color: var(--old); }
.legend { font-size: 13px; color: var(--muted); display: flex; gap: 16px; margin: 4px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Compagnies d'une liaison */
.carriers { display: grid; gap: 12px; }
.carrier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.carrier-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.carrier-head a, .carrier-head strong { font-weight: 600; font-size: 16px; }
.carrier-head .codes { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.carrier ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.carrier li { padding: 2px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips a { display: inline-flex; gap: 6px; align-items: baseline; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--text); }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
.chips .c { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.route-line { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.route-line i { flex: 1; max-width: 220px; height: 0; border-top: 2px dashed var(--border); position: relative; }
.route-line i::after { content: "✈"; font-style: normal; position: absolute; left: 50%; top: -12px; transform: translateX(-50%); color: var(--accent); font-family: system-ui; }

.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; font-family: var(--mono); font-size: 14px; }
.letters a { padding: 2px 7px; border-radius: 5px; }
.letters a:hover { background: var(--accent-soft); text-decoration: none; }

/* Pied */
.site-foot { border-top: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); }
.site-foot .wrap { padding-top: 18px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
