/* =====================================================================
 * BDW EFB — coquille iPadOS 26 « Liquid Glass »
 * Les apps utilisent les composants iOS 26 de Framework7 (vendor/framework7, MIT) ;
 * ce fichier dessine la coquille (accueil, Dock, verrouillage, fenêtres, Centre de contrôle)
 * et ajuste Framework7 (barres latérales flottantes, titres, couleurs).
 * ===================================================================== */

:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
    --font-round: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", system-ui, sans-serif;
    --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
    --red: #FF3B30; --orange: #FF9500; --yellow: #FFCC00; --green: #34C759; --mint: #00C7BE;
    --teal: #30B0C7; --cyan: #32ADE6; --blue: #007AFF; --indigo: #5856D6; --purple: #AF52DE; --pink: #FF2D55;
    --brown: #A2845E; --gray: #8E8E93;
    --label: #000; --label2: rgba(60, 60, 67, .6); --label3: rgba(60, 60, 67, .3);
    --sep: rgba(60, 60, 67, .2); --fill: rgba(120, 120, 128, .12); --fill2: rgba(120, 120, 128, .2);
    --bg: #F2F2F7; --bg2: #FFFFFF;
    /* Verre clair posé sur un fond d'écran */
    --glass-tint: rgba(255, 255, 255, .16);
    --glass-rim: inset 1px 1px 0 -0.5px rgba(255,255,255,.85), inset -1px -1px 0 -0.5px rgba(255,255,255,.55),
                 inset 0 0 0 .5px rgba(255,255,255,.35), inset 2px 2px 8px -4px rgba(255,255,255,.7),
                 inset -2px -2px 10px -4px rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.18);
    color-scheme: light;
}
html.dark {
    --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A; --green: #30D158; --blue: #0A84FF; --indigo: #5E5CE6; --purple: #BF5AF2;
    --label: #fff; --label2: rgba(235, 235, 245, .6); --label3: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .55); --fill: rgba(118, 118, 128, .24); --fill2: rgba(118, 118, 128, .36);
    --bg: #000; --bg2: #1C1C1E;
    --glass-tint: rgba(30, 30, 34, .28);
    --glass-rim: inset 1px 1px 0 -0.5px rgba(255,255,255,.45), inset -1px -1px 0 -0.5px rgba(255,255,255,.25),
                 inset 0 0 0 .5px rgba(255,255,255,.16), inset 2px 2px 8px -4px rgba(255,255,255,.3),
                 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
}

/* Framework7 : thème iOS 26 avec nos réglages */
.ios {
    --f7-font-family: var(--font);
    --f7-theme-color: #007AFF;
    --f7-theme-color-rgb: 0, 122, 255;
    --f7-navbar-large-title-font-weight: 700;
    --f7-navbar-large-title-letter-spacing: -0.02em;
    --f7-navbar-title-font-weight: 600;
    --f7-list-inset-border-radius: 26px;
    --f7-card-border-radius: 26px;
    --f7-block-title-font-weight: 600;
}
.ios.dark { --f7-theme-color: #0A84FF; --f7-theme-color-rgb: 10, 132, 255; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: #000; font-family: var(--font); color: var(--label); overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
.selectable, pre, textarea, input { user-select: text; -webkit-user-select: text; }

/* ---------------------------------------------------------------- appareil */
.device { position: fixed; inset: 0; display: grid; place-items: center; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; filter: brightness(var(--brightness, 1)); }
html.framed body { background: radial-gradient(ellipse at center, #2b2d33, #0c0d10 70%); }
html.framed .device { padding: 28px; }
html.framed .screen {
    width: min(100%, calc((100vh - 56px - 44px) * 1.4388) + 44px); height: auto; aspect-ratio: 1.4388; max-height: calc(100vh - 56px);
    border: 22px solid #0b0b0c; border-radius: 58px;
    box-shadow: 0 0 0 2px #3a3b3f, 0 0 0 3px #1a1a1c, 0 40px 120px rgba(0,0,0,.6);
}
html.framed .screen > .wallpaper, html.framed .screen > .windows, html.framed .screen > .lock { border-radius: 36px; overflow: hidden; }

/* ---------------------------------------------------------------- fonds d'écran (générés, style iPadOS 26) */
.wallpaper { position: absolute; inset: 0; z-index: 0; overflow: hidden; transition: filter .45s, transform .45s; }
.wallpaper::before, .wallpaper::after { content: ""; position: absolute; inset: -12%; }
.wp-ipblue { background: #1b2f6e url(/img/wallpapers/ipados-blue.jpg) center / cover no-repeat; }
.wp-ipblue::before, .wp-ipblue::after { display: none; }
.wp-bdw0 { background: #34477a url(/img/wallpapers/bdw-0.jpg) center / cover no-repeat; }
.wp-bdw0::before, .wp-bdw0::after { display: none; }
.wp-aurora { background: #0b1e5b; }
.wp-aurora::before {
    background:
        conic-gradient(from 210deg at 30% 65%, #ff8a5c, #ff4fa3 18%, #7a5cff 36%, #2c7bff 55%, #00d4ff 70%, #ffc06b 88%, #ff8a5c),
        #0b1e5b;
    filter: blur(70px) saturate(1.25);
    transform: scale(1.1);
}
.wp-aurora::after {
    background:
        radial-gradient(38% 30% at 72% 30%, rgba(255,255,255,.45), transparent 70%),
        radial-gradient(45% 35% at 25% 80%, rgba(10,20,70,.55), transparent 70%);
    mix-blend-mode: overlay;
}
.wp-bordeaux { background: #3a0717; }
.wp-bordeaux::before {
    background: conic-gradient(from 160deg at 60% 40%, #d3988a, #8b1e3f 22%, #4a0b1e 45%, #c25b6e 66%, #f1c3b5 82%, #d3988a);
    filter: blur(70px) saturate(1.1);
}
.wp-bordeaux::after { background: radial-gradient(50% 40% at 30% 25%, rgba(255,235,225,.35), transparent 70%); mix-blend-mode: soft-light; }
.wp-dusk { background: #1a1033; }
.wp-dusk::before {
    background:
        radial-gradient(60% 50% at 50% 110%, #ffb15c 0%, transparent 70%),
        radial-gradient(70% 55% at 50% 80%, #ff5577 0%, transparent 70%),
        linear-gradient(180deg, #0f0c29, #302b63 55%, #7a3f72);
    filter: blur(30px);
}
.wp-night { background: #02040c; }
.wp-night::before {
    background:
        radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent), radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent),
        radial-gradient(1px 1px at 60% 30%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff 50%, transparent),
        radial-gradient(1px 1px at 45% 45%, #cfe 50%, transparent), radial-gradient(1px 1px at 90% 15%, #fff 50%, transparent),
        radial-gradient(1px 1px at 20% 90%, #fff 50%, transparent), radial-gradient(1px 1px at 70% 85%, #fff 50%, transparent),
        radial-gradient(1px 1px at 35% 12%, #fff 50%, transparent), radial-gradient(1px 1px at 52% 64%, #fff 50%, transparent),
        radial-gradient(60% 40% at 70% 110%, rgba(40,110,255,.6), transparent 70%),
        linear-gradient(180deg, #02040c, #08142e 70%, #0f2a5a);
}
.wp-sky { background: #3d8bd9; }
.wp-sky::before {
    background:
        radial-gradient(32% 16% at 22% 72%, rgba(255,255,255,.95), transparent 70%),
        radial-gradient(36% 14% at 70% 80%, rgba(255,255,255,.85), transparent 70%),
        radial-gradient(26% 11% at 52% 62%, rgba(255,255,255,.7), transparent 70%),
        radial-gradient(30% 12% at 85% 55%, rgba(255,255,255,.6), transparent 70%),
        linear-gradient(180deg, #1c5fbf, #4f9be8 55%, #b5dbf7);
    filter: blur(8px);
}
.screen.in-app > .wallpaper { filter: brightness(.75) blur(10px); transform: scale(1.05); }
.screen.windowed.in-app > .wallpaper { filter: none; transform: none; }

/* ---------------------------------------------------------------- verre (Liquid Glass) */
.lg {
    position: relative;
    background: var(--glass-tint);
    -webkit-backdrop-filter: blur(14px) saturate(1.9) brightness(1.08);
    backdrop-filter: blur(14px) saturate(1.9) brightness(1.08);
    box-shadow: var(--glass-rim);
}
/* Réfraction des bords (Chromium : backdrop-filter avec filtre SVG) */
@supports (backdrop-filter: url(#lg-refract)) {
    html.refract .lg.lg-refract { backdrop-filter: url(#lg-refract) blur(10px) saturate(1.9) brightness(1.08); }
}

/* ---------------------------------------------------------------- barre d'état */
.statusbar {
    position: absolute; z-index: 90; top: 0; left: 0; right: 0; height: 28px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
    font-size: 14px; font-weight: 600; color: #fff; pointer-events: none; transition: color .3s;
    font-variant-numeric: tabular-nums;
}
.statusbar > div { display: flex; align-items: center; gap: 7px; }
.statusbar .sb-date { font-weight: 500; }
.statusbar .sb-utc { font-family: var(--mono); font-size: 12.5px; opacity: .9; }
.statusbar svg { height: 12px; fill: currentColor; }
.statusbar .battery { display: inline-flex; align-items: center; gap: 1px; }
.statusbar .battery i { display: block; width: 25px; height: 12px; border: 1px solid currentColor; border-radius: 4px; padding: 1.5px; opacity: .9; }
.statusbar .battery i::before { content: ""; display: block; height: 100%; width: var(--lvl, 100%); background: currentColor; border-radius: 2px; }
.statusbar .battery b { width: 1.5px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; opacity: .5; }
.statusbar .cc-hit { pointer-events: auto; cursor: pointer; padding: 6px 0 6px 10px; display: flex; gap: 7px; align-items: center; }
.screen.in-app:not(.windowed) .statusbar { color: var(--label); }
.screen.in-app.dark-bar:not(.windowed) .statusbar { color: #fff; }

/* ---------------------------------------------------------------- accueil */
.home {
    position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
    padding: 48px clamp(28px, 4.5vw, 72px) 0;
    transition: transform .5s cubic-bezier(.2,.9,.25,1), opacity .35s, filter .35s;
}
.screen.in-app:not(.windowed) .home { transform: scale(.9); opacity: 0; filter: blur(8px); pointer-events: none; }
.screen.locked .home { transform: scale(1.1); opacity: 0; pointer-events: none; }
/* Pages de l'accueil : défilement horizontal aimanté */
.pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(28px, 4.5vw, 72px)); overscroll-behavior-x: contain; }
.pages::-webkit-scrollbar { display: none; }
.hpage { flex: 0 0 100%; scroll-snap-align: start; display: flex; padding: 0 clamp(28px, 4.5vw, 72px); }
.hpage > .home-grid { flex: 1; }
.page-dots i { cursor: pointer; }
.home-grid {
    flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2.4vh, 28px) clamp(16px, 2.6vw, 44px); align-items: start; justify-items: center; padding-bottom: 12px;
}

/* Icônes */
.app-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; width: 100%; font: inherit; color: inherit; }
.app-icon .tile {
    --size: clamp(60px, 7.6vh, 84px);
    width: var(--size); height: var(--size); border-radius: calc(var(--size) * .2237);
    display: grid; place-items: center; position: relative; overflow: hidden; color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.18), inset 0 0 0 .5px rgba(255,255,255,.18);
    transition: transform .2s cubic-bezier(.3,.7,.4,1.5), filter .2s;
}
.app-icon .tile::after { /* reflet spéculaire iOS 26 : liseré clair en haut à gauche */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 1.5px 1.5px 0 -0.5px rgba(255,255,255,.55), inset -1px -1px 0 -0.5px rgba(255,255,255,.25);
    background: linear-gradient(165deg, rgba(255,255,255,.22), rgba(255,255,255,0) 42%);
}
.app-icon .tile .f7-icons { font-size: calc(var(--size) * .52); position: relative; z-index: 1; }
.app-icon:active .tile { transform: scale(.88); filter: brightness(.85); }
.app-icon .label { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.35); white-space: nowrap; letter-spacing: -.01em; }
.app-icon .icon-wrap { position: relative; }
.app-icon .badge {
    position: absolute; top: -7px; right: -7px; z-index: 2; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
    background: #FF3B30; color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.app-icon .running { position: absolute; bottom: -9px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255,255,255,.85); }

/* Icônes dessinées (dans l'esprit des apps Apple) */
.ic-messages { background: linear-gradient(180deg, #67f27b, #0bbd2c); }
.ic-weather { background: linear-gradient(180deg, #3e9bff, #7fc5ff); }
.ic-settings { background: linear-gradient(180deg, #d5d7dc, #8f949c); }
.ic-settings .f7-icons { color: #3d4047; }
.ic-clock { background: #000; }
.ic-notes { background: linear-gradient(180deg, #fff 0, #fff 100%); }
.ic-notes::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24%; background: linear-gradient(180deg, #ffd84a, #f8c400); }
.ic-notes .lines { position: absolute; inset: 34% 14% 12%; background: repeating-linear-gradient(180deg, transparent 0 calc(18% - 1px), #d6d6d6 calc(18% - 1px) 18%); }
.ic-checklists { background: #fff; }
.ic-checklists .rows { position: absolute; inset: 20% 16%; display: flex; flex-direction: column; justify-content: space-between; }
.ic-checklists .rows i { display: flex; align-items: center; gap: 12%; height: 18%; }
.ic-checklists .rows i::before { content: ""; height: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.ic-checklists .rows i::after { content: ""; flex: 1; height: 16%; background: #d4d4d8; border-radius: 2px; }
.ic-calc { background: #1c1c1e; }
.ic-calc .keys { position: absolute; inset: 16%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9%; }
.ic-calc .keys i { border-radius: 50%; background: #5d5d62; }
.ic-calc .keys i:nth-child(3n) { background: #ff9f0a; }
.ic-calc .keys i:nth-child(-n+3) { background: #a5a5aa; }
.ic-calc .keys i:nth-child(3) { background: #ff9f0a; }

/* Widgets */
.widget {
    width: 100%; height: 100%; border-radius: 30px; padding: 16px 18px; overflow: hidden; position: relative; cursor: pointer;
    display: flex; flex-direction: column; color: #fff; transition: transform .2s;
}
.widget:active { transform: scale(.97); }
.widget.w-2x2 { grid-column: span 2; grid-row: span 2; }
.widget.w-4x2 { grid-column: span 4; grid-row: span 2; }
.widget.lg { --glass-tint: rgba(255,255,255,.14); }
html.dark .widget.lg { --glass-tint: rgba(20,20,24,.32); }
.widget .w-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.widget .w-head .f7-icons { font-size: 15px; }
.widget .w-sub { font-size: 14px; opacity: .85; }
.widget .route { display: flex; align-items: center; gap: 16px; margin: 10px 0 4px; }
.widget .route b { font-size: 42px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.widget .route .line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 6px, transparent 6px 11px); position: relative; }
.widget .route .line .f7-icons { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 24px; }
.widget .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.widget .chip-g { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.widget .facts { display: flex; gap: 26px; margin-top: auto; }
.widget .facts div { display: flex; flex-direction: column; gap: 2px; }
.widget .facts span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; opacity: .7; letter-spacing: .03em; }
.widget .facts strong { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.widget.weather { background: linear-gradient(180deg, #2a78d6, #63aef0); }
.widget.weather.cat-IFR, .widget.weather.cat-LIFR { background: linear-gradient(180deg, #46505d, #74828f); }
.widget.weather.cat-MVFR { background: linear-gradient(180deg, #355780, #7299c4); }
.widget.weather .temp { font-size: 52px; font-weight: 300; line-height: 1; margin-top: 6px; }
.widget.weather dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.widget.weather dt { opacity: .75; }
.widget.weather dd { margin: 0; font-weight: 600; }
.widget.clocks { justify-content: space-evenly; gap: 6px; }
.widget.clocks .c-row { display: flex; align-items: center; gap: 14px; }
.widget.clocks .c-row svg { width: 58px; height: 58px; flex: none; }
.widget.clocks .c-row span { font-size: 13px; font-weight: 600; opacity: .8; display: block; }
.widget.clocks .c-row strong { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Points de page + Dock */
.page-dots { display: flex; justify-content: center; margin-bottom: 12px; }
.page-dots span { display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; }
.page-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.page-dots i.on { background: #fff; }
/* Le Dock est sur son propre calque : au-dessus des fenêtres en mode fenêtres, masqué dans une app plein écran */
.dock-space { height: clamp(96px, 11vh, 112px); flex: none; }
.dock-layer { position: absolute; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding-bottom: 16px; pointer-events: none;
    transition: transform .45s cubic-bezier(.2,.9,.25,1), opacity .3s; }
.dock-layer .dock { pointer-events: auto; }
.screen.in-app:not(.windowed) .dock-layer, .screen.locked .dock-layer { transform: translateY(150%); opacity: 0; }
.dock { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); padding: 14px 18px; border-radius: 36px; --glass-tint: rgba(255,255,255,.12); }
html.dark .dock { --glass-tint: rgba(40,40,46,.28); }
.dock .app-icon { width: auto; }
.dock .app-icon .tile { --size: clamp(58px, 7vh, 76px); }
.dock .app-icon .label { display: none; }
.dock .sep { width: 1px; align-self: stretch; margin: 8px 2px; background: rgba(255,255,255,.35); }

/* ---------------------------------------------------------------- écran verrouillé (iOS 26) */
.lock {
    position: absolute; inset: 0; z-index: 85; display: flex; flex-direction: column; align-items: center;
    padding-top: 7vh; color: #fff; cursor: grab; touch-action: none;
    transition: transform .55s cubic-bezier(.2,.9,.25,1), opacity .5s;
}
.screen:not(.locked) .lock { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.lock .l-date { font-size: clamp(19px, 2.6vh, 26px); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.15); }
.lock .l-time {
    font-family: var(--font-round); font-size: clamp(120px, 22vh, 230px); font-weight: 700; letter-spacing: -.03em; line-height: .95;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.78);
    text-shadow: 0 2px 0 rgba(255,255,255,.18), 0 8px 40px rgba(0,0,0,.16);
}
.lock .l-widgets { display: flex; gap: 12px; margin-top: 10px; }
.lock .l-widget { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 18px; font-size: 15px; font-weight: 600; }
.lock .l-widget .f7-icons { font-size: 18px; }
.lock .l-notifs { margin-top: auto; width: min(560px, 90%); display: flex; flex-direction: column; gap: 9px; margin-bottom: 3vh; }
.lock .l-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 9vw 22px; }
.lock .l-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lock .l-btn .f7-icons { font-size: 22px; }
.lock .l-hint { font-size: 15px; opacity: .85; text-align: center; }
.lock .l-bar { width: 150px; height: 5px; border-radius: 3px; background: #fff; margin: 10px auto 0; }

.notif { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 26px; color: #000; text-align: left; --glass-tint: rgba(255,255,255,.55); }
html.dark .notif { color: #fff; --glass-tint: rgba(40,40,44,.55); }
.notif .n-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; overflow: hidden; position: relative; }
.notif .n-icon .f7-icons { font-size: 21px; }
.notif .n-body { flex: 1; min-width: 0; }
.notif .n-top { display: flex; justify-content: space-between; font-size: 13px; opacity: .6; font-weight: 500; }
.notif .n-title { font-weight: 600; font-size: 15px; }
.notif .n-text { font-size: 15px; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.banners { position: absolute; z-index: 95; top: 10px; left: 50%; transform: translateX(-50%); width: min(480px, 92%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.banners .notif { pointer-events: auto; cursor: pointer; animation: banner-in .5s cubic-bezier(.2,.9,.25,1.15); }
.banners .notif.out { animation: banner-out .35s forwards; }
@keyframes banner-in { from { transform: translateY(-130%) scale(.9); opacity: 0; } }
@keyframes banner-out { to { transform: translateY(-130%) scale(.9); opacity: 0; } }

/* ---------------------------------------------------------------- fenêtres */
.windows { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.win {
    position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; overflow: hidden;
    background: var(--f7-page-bg-color, var(--bg));
    transform-origin: var(--ox, 50%) var(--oy, 50%);
    animation: win-open .45s cubic-bezier(.2,.9,.25,1);
}
.win.hidden { display: none; }
/* Plein écran : la géométrie mémorisée des fenêtres est ignorée */
.screen:not(.windowed) .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win.closing { animation: win-close .32s cubic-bezier(.4,0,.6,1) forwards; pointer-events: none; }
@keyframes win-open { from { transform: scale(.14); border-radius: 44px; opacity: .3; } }
@keyframes win-close { to { transform: scale(.14); border-radius: 44px; opacity: 0; } }
.win-body { flex: 1; min-height: 0; position: relative; z-index: 0; isolation: isolate; }
.win-body > .app-root { position: absolute; inset: 0; container-type: inline-size; }
.win.dark-chrome { background: #111; }

/* Feux de fenêtre (iPadOS 26) */
.traffic { position: absolute; z-index: 1000; top: 9px; left: 14px; display: flex; gap: 8px; padding: 6px 8px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.traffic button { width: 13px; height: 13px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; }
.traffic .t-close { background: #ff5f57; }
.traffic .t-min { background: #febc2e; }
.traffic .t-max { background: #28c840; }
.traffic:hover button::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: rgba(0,0,0,.55); line-height: 13px; }
.traffic:hover .t-close::after { content: "×"; }
.traffic:hover .t-min::after { content: "–"; }
.traffic:hover .t-max::after { content: "+"; }
.win:hover .traffic, .screen.windowed .traffic { opacity: 1; }
.screen:not(.windowed) .win .traffic { top: 30px; }

/* Barre d'accueil (plein écran) */
.home-indicator { position: absolute; z-index: 1000; bottom: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 24px; display: grid; place-items: center; cursor: pointer; border: 0; background: none; }
.home-indicator::before { content: ""; width: 150px; height: 5px; border-radius: 3px; background: var(--label); opacity: .8; }
.win.dark-chrome .home-indicator::before { background: #fff; }
.screen.windowed .home-indicator { display: none; }

/* Mode fenêtres */
.screen.windowed .win {
    inset: auto; border-radius: 26px;
    box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 30px 80px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.2);
}
.screen.windowed .win.maximized { inset: 28px 0 0 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
.screen.windowed .win:not(.focused) { filter: saturate(.92); }
.screen.windowed .win:not(.focused)::after { content: ""; position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.02); }
.win .grab { position: absolute; z-index: 1000; top: 0; left: 120px; right: 120px; height: 18px; cursor: grab; }
.screen:not(.windowed) .win .grab, .screen:not(.windowed) .win .resize { display: none; }
.win .resize { position: absolute; z-index: 1000; right: 0; bottom: 0; width: 26px; height: 26px; cursor: nwse-resize; }
.win .resize::before { content: ""; position: absolute; right: 7px; bottom: 7px; width: 12px; height: 12px; border-right: 3px solid var(--label3); border-bottom: 3px solid var(--label3); border-bottom-right-radius: 12px; }

/* ---------------------------------------------------------------- Centre de contrôle */
.cc { position: absolute; inset: 0; z-index: 92; display: none; justify-content: flex-end; align-items: flex-start; padding: 40px 24px; background: rgba(0,0,0,.18); }
.cc.open { display: flex; animation: cc-in .3s ease-out; }
@keyframes cc-in { from { opacity: 0; } }
.cc-grid { display: grid; grid-template-columns: repeat(4, 76px); grid-auto-rows: 76px; gap: 14px; animation: cc-drop .35s cubic-bezier(.2,.9,.25,1.1); }
@keyframes cc-drop { from { transform: translateY(-20px) scale(.96); opacity: 0; } }
.cc-tile { border-radius: 26px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; --glass-tint: rgba(40,40,46,.35); }
.cc-tile .f7-icons { font-size: 26px; }
.cc-tile.on { --glass-tint: rgba(255,255,255,.9); color: #007aff; }
.cc-tile.w2 { grid-column: span 2; }
.cc-tile.h2 { grid-row: span 2; }
.cc-slider { position: relative; overflow: hidden; justify-content: flex-end; padding-bottom: 14px; }
.cc-slider .fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); }
.cc-slider .f7-icons { position: relative; z-index: 1; color: #8e8e93; }
.cc-slider input { position: absolute; inset: 0; opacity: 0; cursor: ns-resize; writing-mode: vertical-lr; direction: rtl; }
.cc-info { grid-column: span 2; grid-row: span 2; align-items: flex-start; justify-content: flex-start; padding: 16px; text-align: left; font-size: 13px; }
.cc-info strong { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- apps (Framework7) */
/* Framework7 habille toujours .left / .right en pastille de verre : rien quand elles sont vides */
.ios .navbar .left:empty, .ios .navbar .right:empty { display: none; }
.app-root .view { position: relative; height: 100%; }
.app-root .page { --f7-safe-area-top: 22px; }
.screen.windowed .app-root .page { --f7-safe-area-top: 14px; }
/* Vue partagée : barre latérale flottante en verre, comme Réglages / Mail sur iPadOS 26 */
.split { position: absolute; inset: 0; display: flex; }
.split > .view-side { width: clamp(290px, 27vw, 370px); flex: none; background: transparent; }
.split > .view-side > .page {
    top: 10px; left: 10px; bottom: 10px; right: 0; width: auto; height: auto;
    border-radius: 30px; overflow: hidden;
    --f7-page-bg-color: rgba(255,255,255,.62);
    background: var(--f7-page-bg-color);
    -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
    box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.08);
}
.dark .split > .view-side > .page { --f7-page-bg-color: rgba(28,28,30,.72); box-shadow: 0 0 0 .5px rgba(255,255,255,.08), 0 8px 30px rgba(0,0,0,.4); }
.split > .view-side .navbar { --f7-navbar-bg-color: transparent; }
.split > .view-side .page { --f7-safe-area-top: 12px; }
.split > .view-main { flex: 1; min-width: 0; }
.split .view-side .list { --f7-list-inset-side-margin: 10px; }
.split .view-side .list ul { background: transparent; }
.split .view-side .list .item-content, .split .view-side .list .item-link { border-radius: 14px; }
.split .view-side .list .item-inner::after { display: none !important; }
.split .view-side .list li.sel > .item-link,
.split .view-side .list li.sel > .item-content { background: color-mix(in srgb, var(--f7-theme-color) 16%, transparent); }
.split .view-side .list li.sel .item-title { color: var(--f7-theme-color); font-weight: 600; }
.split .view-side .list li.sel .item-link .item-inner::before { color: var(--f7-theme-color); }

.tile-s { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 18px !important; }
.tile-s.round { border-radius: 50%; }
.page-content .block.wide { margin: 0 0 18px; padding: 0 calc(var(--f7-list-inset-side-margin, 16px) + 0px); }
.muted { color: var(--label2); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.big-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--label2); white-space: nowrap; }
.pill.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.pill.red { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.pill.orange { background: color-mix(in srgb, var(--orange) 20%, transparent); color: var(--orange); }
.pill.blue { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.pill.purple { background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 0 var(--f7-list-inset-side-margin, 16px) 18px; }
.cards .card { margin: 0; }
.card .card-header { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--label2); min-height: 0; padding-top: 16px; padding-bottom: 6px; gap: 6px; justify-content: flex-start; }
.card .card-header .f7-icons { font-size: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--label2); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { display: grid; place-items: center; text-align: center; gap: 10px; color: var(--label2); padding: 60px 30px; }
.empty .f7-icons { font-size: 60px; color: var(--label3); }
.empty h2 { margin: 0; font-size: 22px; color: var(--label); }
.spin-wrap { display: grid; place-items: center; padding: 60px; }

/* Vol */
.hero { margin: 0 var(--f7-list-inset-side-margin, 16px) 16px; padding: 22px 26px; border-radius: 30px; background: var(--f7-list-strong-bg-color, var(--bg2)); }
.hero .h-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--label2); font-weight: 600; }
.hero .h-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 14px 0 6px; }
.hero .h-ap b { display: block; font-size: 52px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero .h-ap span { font-size: 14px; color: var(--label2); }
.hero .h-ap.r { text-align: right; }
.hero .h-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--label2); font-size: 14px; min-width: 140px; }
.hero .h-mid .f7-icons { font-size: 30px; color: var(--f7-theme-color); }
.hero .h-mid .h-line { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--label3) 0 6px, transparent 6px 10px); }
.progressbar { margin-top: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 var(--f7-list-inset-side-margin, 16px) 18px; }
.btn-row .button { width: auto; padding: 0 18px; }
.btn-row .button .f7-icons { font-size: 18px; margin-right: 6px; }

/* Messages */
.chat { display: flex; flex-direction: column; gap: 4px; padding: 0 20px 30px; }
.chat .c-day { text-align: center; font-size: 12px; color: var(--label2); margin: 18px 0 6px; font-weight: 600; }
.chat .c-meta { font-size: 11px; color: var(--label2); margin: 6px 0 2px 14px; }
.bubble { align-self: flex-start; max-width: min(70%, 440px); padding: 10px 15px; border-radius: 22px; background: #E9E9EB; color: #000; font-family: var(--mono); font-size: 14px; line-height: 1.35; white-space: pre-wrap; position: relative; }
.dark .bubble { background: #26252a; color: #fff; }
.bubble.tail { border-bottom-left-radius: 6px; }

/* Check-lists */
.check-title { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.check { display: flex; align-items: flex-start; gap: 14px; padding: 13px 18px; cursor: pointer; position: relative; border: 0; background: none; width: 100%; text-align: left; font: inherit; font-size: 17px; color: inherit; }
.check + .check::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--sep); }
.check .ring { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--label3); flex: none; display: grid; place-items: center; transition: all .15s; margin-top: 1px; }
.check.done .ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.check .c-text { flex: 1; display: flex; justify-content: space-between; gap: 12px; }
.check .c-text em { font-style: normal; color: var(--label2); font-weight: 500; text-align: right; }
.check.done .c-text { color: var(--label2); }
.check-list { margin: 0 var(--f7-list-inset-side-margin, 16px); background: var(--f7-list-strong-bg-color, var(--bg2)); border-radius: 26px; overflow: hidden; }

/* Horloge */
.clock-face { width: min(270px, 38vh); aspect-ratio: 1; }
.digits { font-size: 84px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-align: center; }
.round-btn { width: 86px; height: 86px; border-radius: 50%; border: 0; font: inherit; font-size: 17px; cursor: pointer; position: relative; }
.round-btn::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid var(--f7-page-bg-color, var(--bg)); }
.round-btn.start { background: color-mix(in srgb, var(--green) 25%, transparent); color: var(--green); }
.round-btn.stop { background: color-mix(in srgb, var(--red) 25%, transparent); color: var(--red); }
.round-btn.neutral { background: var(--fill2); color: var(--label); }

/* Notes */
.note-title { font-size: 30px; font-weight: 700; border: 0; outline: none; background: transparent; color: var(--label); width: 100%; padding: 0; margin: 4px 0 10px; font-family: var(--font); }
.note-editor { width: 100%; min-height: 62vh; border: 0; outline: none; background: transparent; color: var(--label); font-size: 17px; line-height: 1.55; resize: none; padding: 0; font-family: var(--font); }

/* OFP */
.ofp-text { font-family: var(--mono); font-size: 12.5px; line-height: 1.35; background: var(--f7-list-strong-bg-color, var(--bg2)); border-radius: 22px; padding: 18px; overflow: auto; white-space: pre; margin: 0 var(--f7-list-inset-side-margin, 16px) 18px; }
.ofp-text pre { margin: 0; font: inherit; }
.ofp-img { width: 100%; border-radius: 14px; background: #fff; display: block; }

/* VDGS (matrice LED) */
.vdgs-led { background: #050505; border-radius: 26px; padding: 24px 28px; color: #ffb000; font-family: var(--mono); font-weight: 700; text-shadow: 0 0 6px rgba(255,176,0,.55); position: relative; overflow: hidden; border: 9px solid #23262b; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.vdgs-led::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 55%, rgba(0,0,0,.55) 56%) 0 0 / 4px 4px; opacity: .5; }
.vdgs-led .v-row { display: flex; justify-content: space-between; align-items: baseline; }
.vdgs-led .v-xl { font-size: clamp(24px, 3.4cqw, 46px); letter-spacing: .04em; }
.vdgs-led .v-l { font-size: clamp(20px, 2.6cqw, 34px); letter-spacing: .04em; }
.vdgs-led .v-m { font-size: clamp(13px, 1.6cqw, 20px); letter-spacing: .06em; }
.vdgs-led .v-row { gap: 12px; flex-wrap: wrap; }
.vdgs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; margin: 0 16px 10px; }
.vdgs-led .v-dim { color: #8c6000; text-shadow: none; }
.vdgs-led .v-status { margin-top: 14px; padding: 10px; border-radius: 6px; background: #1a1200; text-align: center; font-size: 30px; }
.vdgs-led .v-status.ok { background: #002a0e; color: #3dff7a; text-shadow: 0 0 8px rgba(61,255,122,.6); }
.vdgs-led .v-status.alert { background: #2a0000; color: #ff3b30; text-shadow: 0 0 8px rgba(255,59,48,.6); }
.vdgs-led .v-sep { border-top: 3px dotted #5a3d00; margin: 12px 0; }

/* Météo */
.wx-card { margin: 0 var(--f7-list-inset-side-margin, 16px) 18px; border-radius: 30px; padding: 20px 22px; color: #fff; background: linear-gradient(180deg, #2a78d6, #63aef0); }
.wx-card.cat-IFR, .wx-card.cat-LIFR { background: linear-gradient(180deg, #3f4a57, #6b7a8c); }
.wx-card.cat-MVFR { background: linear-gradient(180deg, #355780, #6e94c2); }
.wx-card .wx-top { display: flex; justify-content: space-between; align-items: flex-start; }
.wx-card .wx-icao { font-size: 30px; font-weight: 700; }
.wx-card .wx-temp { font-size: 64px; font-weight: 200; line-height: 1; }
.wx-card .wx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.wx-card .wx-grid div { background: rgba(255,255,255,.16); border-radius: 18px; padding: 10px 12px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.wx-card .wx-grid span { display: block; font-size: 11px; text-transform: uppercase; opacity: .8; font-weight: 700; }
.wx-card .wx-grid strong { font-size: 17px; font-weight: 600; }
.wx-card .wx-raw { margin-top: 14px; font-family: var(--mono); font-size: 13px; background: rgba(0,0,0,.18); border-radius: 14px; padding: 10px 12px; white-space: pre-wrap; user-select: text; }
.cat-badge { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.25); }

/* Radar / web */
.web-frame { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; background: #111; }

/* Petits écrans */
@media (max-width: 900px), (max-height: 620px) {
    .home-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: auto; overflow: auto; }
    .widget.w-4x2 { grid-column: span 4; height: 190px; }
    .widget.w-2x2 { grid-column: span 2; height: 190px; }
    .split > .view-side { width: 250px; }
}

/* Champs de saisie dans les listes (Calculs) */
.efb-in { border: 0; outline: none; background: transparent; color: var(--label); text-align: right; font-size: 17px; font-family: var(--mono); width: 120px; padding: 0; }
.efb-in:focus { color: var(--f7-theme-color); }
.efb-select { font: inherit; font-size: 17px; color: var(--f7-theme-color); background: none; border: 0; outline: none; text-align: right; cursor: pointer; }

/* Widgets de la page 2 */
.msg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.msg-item { padding: 9px 12px; border-radius: 16px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.msg-item .msg-top { display: flex; justify-content: space-between; font-size: 13px; }
.msg-item .msg-top span { opacity: .75; font-variant-numeric: tabular-nums; }
.msg-item .msg-text { font-family: var(--mono); font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat-grid div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.stat-grid span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; opacity: .75; }
.stat-grid strong { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-grid small { font-size: 11px; opacity: .7; }
.widget.vdgs-w { background: #050505; color: #ffb000; font-family: var(--mono); text-shadow: 0 0 6px rgba(255,176,0,.5); border: 6px solid #23262b; }
.widget.vdgs-w .w-head { color: #c98a00; font-family: var(--font); text-shadow: none; }
.widget.vdgs-w .led-l { font-size: 34px; font-weight: 700; letter-spacing: .05em; margin-top: 12px; }
.widget.vdgs-w .led-row { display: flex; justify-content: space-between; font-size: 26px; font-weight: 700; margin-top: 6px; }
.widget.vdgs-w .led-row span { color: #c98a00; }
.widget.vdgs-w .led-s { margin-top: auto; font-size: 13px; color: #8c6000; text-shadow: none; letter-spacing: .06em; }

/* ================================================================ apps — design v3 */
/* Web apps (SimBrief, Navigraph) : barre façon Safari */
.webapp { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--f7-page-bg-color, var(--bg)); }
.web-bar { display: flex; align-items: center; gap: 10px; padding: 34px 16px 10px; }
.screen.windowed .web-bar { padding-top: 12px; padding-left: 110px; }
.web-addr { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--label); --glass-tint: rgba(255,255,255,.6); }
.dark .web-addr, .dark .web-btn { --glass-tint: rgba(60,60,66,.5); }
.web-actions { display: flex; gap: 8px; }
.web-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--f7-theme-color); cursor: pointer; --glass-tint: rgba(255,255,255,.6); }
.web-btn .f7-icons { font-size: 20px; }
.web-view { flex: 1; border: 0; width: 100%; background: #fff; }
.web-note { font-size: 12px; color: var(--label2); text-align: center; padding: 6px 16px 10px; }

/* Cartes Leaflet */
.leaflet-container { font-family: var(--font); background: #dfe6ee; }
.dark .leaflet-container { background: #1b1d22; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.6) !important; border-radius: 8px 0 0 0; }
.dark .leaflet-control-attribution { background: rgba(0,0,0,.45) !important; color: #bbb; }
.dark .leaflet-control-attribution a { color: #ddd; }
.map-ap span { display: inline-block; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 999px; background: #fff; color: #000; font: 700 12px var(--mono); box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 2px var(--f7-theme-color); white-space: nowrap; }
.map-plane { display: grid; place-items: center; }
.map-plane .f7-icons { font-size: 30px; color: var(--f7-theme-color); filter: drop-shadow(0 0 2px #fff) drop-shadow(0 2px 4px rgba(0,0,0,.35)); }

/* Tuiles d'information */
.itiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 16px 18px; }
.itile { background: var(--f7-list-strong-bg-color, var(--bg2)); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.itile.wide { grid-column: span 2; }
.itile .it-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--label2); }
.itile .it-head .f7-icons { font-size: 15px; }
.itile .it-value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: auto; }
.itile .it-value small { font-size: 15px; font-weight: 500; color: var(--label2); }
.itile .it-sub { font-size: 13px; color: var(--label2); }
.sect { margin: 22px 16px 10px; display: flex; align-items: baseline; justify-content: space-between; }
.sect h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sect span { font-size: 14px; color: var(--label2); }
.panel { margin: 0 16px 18px; background: var(--f7-list-strong-bg-color, var(--bg2)); border-radius: 26px; padding: 18px 20px; }

/* Barres et jauges */
.sbar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; }
.sbar i { display: block; min-width: 4px; }
.sbar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--label2); }
.sbar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sbar-legend b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sbar-legend em { font-style: normal; color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }
.gauge + .gauge { margin-top: 14px; }
.gauge .g-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--label2); }
.gauge .g-top b { color: var(--label); font-variant-numeric: tabular-nums; }
.gauge .g-track { height: 10px; border-radius: 5px; background: var(--fill2); margin-top: 6px; overflow: hidden; }
.gauge .g-track i { display: block; height: 100%; border-radius: 5px; }
.gauge .g-pct { font-size: 12px; color: var(--label3); margin-top: 3px; }
.vbars { display: flex; align-items: flex-end; gap: 4px; }
.vbars .vb { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.vbars .vb i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; }
.spark { width: 100%; display: block; }

/* Mon vol */
.tiles-light { filter: saturate(.55) brightness(1.04) contrast(.95); }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.5); }
.fl-map { isolation: isolate; z-index: 0; position: relative; height: clamp(260px, 38vh, 420px); margin: 0 16px; border-radius: 30px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.fl-map > .map { position: absolute; inset: 0; }
.fl-card {
    position: relative; z-index: 2; margin: -70px 32px 18px; padding: 18px 22px 16px; border-radius: 28px;
    background: color-mix(in srgb, var(--f7-list-strong-bg-color, #fff) 82%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
    box-shadow: 0 10px 40px rgba(0,0,0,.14), inset 0 0 0 .5px rgba(255,255,255,.5);
}
.dark .fl-card { box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 0 0 .5px rgba(255,255,255,.12); }
.fl-card .fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fl-card .fc-id { display: flex; align-items: center; gap: 10px; }
.fl-card .fc-id .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, #c2416b, #7a1634); display: grid; place-items: center; }
.fl-card .fc-id .logo img { width: 21px; }
.fl-card .fc-id b { font-size: 18px; }
.fl-card .fc-id span { font-size: 13px; color: var(--label2); display: block; }
.fl-card .fc-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; margin-top: 14px; }
.fl-card .fc-ap b { display: block; font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.fl-card .fc-ap .city { font-size: 14px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-card .fc-ap .time { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 8px; }
.fl-card .fc-ap .time small { font-size: 13px; color: var(--label2); font-weight: 500; }
.fl-card .fc-ap.r { text-align: right; }
.fl-card .fc-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 8px; color: var(--label2); font-size: 13px; min-width: 150px; }
.fl-card .fc-mid .track { position: relative; width: 100%; height: 3px; border-radius: 2px; background: var(--fill2); }
.fl-card .fc-mid .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--f7-theme-color); }
.fl-card .fc-mid .track .f7-icons { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 22px; color: var(--f7-theme-color); background: var(--f7-list-strong-bg-color, #fff); border-radius: 50%; }
.fl-card .fc-count { margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--sep); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.fl-card .fc-count strong { font-size: 17px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: var(--gray); }
.status-chip.green { background: #34c759; } .status-chip.blue { background: #007aff; } .status-chip.orange { background: #ff9500; } .status-chip.red { background: #ff3b30; } .status-chip.purple { background: #af52de; }
.steps { display: flex; margin: 0 16px 18px; background: var(--f7-list-strong-bg-color, var(--bg2)); border-radius: 22px; padding: 16px 10px; }
.steps .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12px; font-weight: 600; color: var(--label3); text-align: center; }
.steps .st::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--fill2); z-index: 0; }
.steps .st:first-child::before { display: none; }
.steps .st .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill2); color: #fff; position: relative; z-index: 1; }
.steps .st .dot .f7-icons { font-size: 15px; }
.steps .st.done { color: var(--label); }
.steps .st.done .dot { background: var(--green); }
.steps .st.done::before { background: var(--green); }
.steps .st.cur { color: var(--f7-theme-color); }
.steps .st.cur .dot { background: var(--f7-theme-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--f7-theme-color) 22%, transparent); }
.mission-card { margin: 0 16px 18px; border-radius: 26px; padding: 20px 22px; color: #fff; background: linear-gradient(135deg, #8e44d6, #5b2bb5 60%, #3a1d8a); box-shadow: 0 10px 30px rgba(91,43,181,.25); }
.mission-card .mc-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; display: flex; gap: 6px; align-items: center; }
.mission-card h3 { margin: 6px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.mission-card .mc-sub { opacity: .85; font-size: 14px; }
.mission-card .mc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mission-card .mc-chips span { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.mission-card p { margin: 12px 0 0; line-height: 1.45; opacity: .95; }
.wx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 16px 18px; }
.wx-mini { border-radius: 22px; padding: 14px 16px; color: #fff; background: linear-gradient(160deg, #2a78d6, #63aef0); cursor: pointer; }
.wx-mini.cat-IFR, .wx-mini.cat-LIFR { background: linear-gradient(160deg, #46505d, #74828f); }
.wx-mini.cat-MVFR { background: linear-gradient(160deg, #355780, #7299c4); }
.wx-mini .wm-top { display: flex; justify-content: space-between; align-items: flex-start; }
.wx-mini .wm-top b { font-size: 20px; }
.wx-mini .wm-top span { font-size: 42px; font-weight: 300; line-height: 1; }
.wx-mini .wm-lines { font-size: 13.5px; opacity: .92; margin-top: 6px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.wx-mini .wm-lines dt { opacity: .75; }
.wx-mini .wm-lines dd { margin: 0; font-weight: 600; }
.side-flight { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.item-inner > .item-title:has(.side-flight) { flex: 1; min-width: 0; }
.side-flight .sf-top, .side-flight .sf-sub { gap: 10px; }
.side-flight .sf-top { display: flex; justify-content: space-between; align-items: baseline; }
.side-flight .sf-codes { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.side-flight .sf-codes .f7-icons { font-size: 13px; color: var(--label3); margin: 0 4px; vertical-align: 2px; }
.side-flight .sf-time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-flight .sf-sub { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--label2); }
.split .view-side .list li.sel .sf-codes { color: var(--f7-theme-color); }

/* Météo (façon app Météo d'iOS) */
.wx-page { --wx-tile-bg: rgba(255,255,255,.16); color: #fff; min-height: 100%; padding-bottom: 40px; }
.wx-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #1f63c4 0%, #4f9be8 55%, #8ec3f2 100%); transition: background .5s; }
.wx-bg.cat-MVFR { background: linear-gradient(180deg, #2d4f7c 0%, #5d84b3 60%, #8fb0d6 100%); }
.wx-bg.cat-IFR, .wx-bg.cat-LIFR { background: linear-gradient(180deg, #2f3a47 0%, #56636f 60%, #7d8a96 100%); }
.wx-bg.night { background: linear-gradient(180deg, #0b1630 0%, #1d2f5c 60%, #31477a 100%); }
.view-main.wx-main .page { --f7-page-bg-color: transparent; }
.view-main.wx-main .navbar { --f7-navbar-text-color: #fff; color: #fff; }
.wx-hero { text-align: center; padding: 6px 0 22px; text-shadow: 0 1px 6px rgba(0,0,0,.12); }
.wx-hero .h-name { font-size: 32px; font-weight: 500; }
.wx-hero .h-sub { font-size: 15px; opacity: .85; }
.wx-hero .h-temp { font-size: 104px; font-weight: 200; line-height: 1; margin: 2px 0 0 26px; }
.wx-hero .h-cond { font-size: 20px; font-weight: 500; }
.wx-hero .h-extra { font-size: 16px; opacity: .9; margin-top: 2px; }
.wx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 16px 14px; }
.wtile { border-radius: 22px; padding: 12px 14px 14px; background: var(--wx-tile-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); display: flex; flex-direction: column; min-height: 150px; }
.wtile.wide { grid-column: 1 / -1; min-height: 0; }
.wtile .wt-head { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; opacity: .7; display: flex; align-items: center; gap: 6px; }
.wtile .wt-head .f7-icons { font-size: 14px; }
.wtile .wt-val { font-size: 32px; font-weight: 500; margin-top: 8px; font-variant-numeric: tabular-nums; }
.wtile .wt-sub { font-size: 14px; opacity: .85; margin-top: auto; }
.wtile .compass { width: 120px; height: 120px; margin: 4px auto 0; display: block; color: #fff; }
.wtile .wt-raw { font-family: var(--mono); font-size: 13px; line-height: 1.45; margin-top: 8px; user-select: text; }
.taf-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 0; border-top: .5px solid rgba(255,255,255,.22); font-size: 14px; }
.taf-row:first-of-type { border-top: 0; }
.taf-row b { font-weight: 700; }
.taf-row .tr-when { opacity: .8; font-variant-numeric: tabular-nums; }
.taf-row .tr-what { font-family: var(--mono); font-size: 13px; }
.wx-side-card { width: 100%; border-radius: 18px; padding: 12px 14px; color: #fff; background: linear-gradient(160deg, #2a78d6, #63aef0); display: flex; justify-content: space-between; gap: 10px; }
.wx-side-card.cat-MVFR { background: linear-gradient(160deg, #355780, #7299c4); }
.wx-side-card.cat-IFR, .wx-side-card.cat-LIFR { background: linear-gradient(160deg, #46505d, #74828f); }
.wx-side-card.err { background: linear-gradient(160deg, #8e8e93, #aeaeb2); }
.wx-side-card b { font-size: 19px; display: block; }
.wx-side-card small { opacity: .85; font-size: 12.5px; display: block; }
.wx-side-card .t { font-size: 34px; font-weight: 300; line-height: 1; text-align: right; }
.wx-side-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.wx-side-list a { color: inherit; border-radius: 18px; }
.wx-side-list a.sel { box-shadow: 0 0 0 3px var(--f7-theme-color); }
.wx-side-list h4 { margin: 12px 4px 0; font-size: 13px; color: var(--label2); text-transform: uppercase; }

/* ================================================================ BDW Nav (façon ForeFlight) */
.ff { --ff-bg: #111214; --ff-panel: #1c1d20; --ff-row: #232428; --ff-line: #34363b; --ff-text: #f2f2f2; --ff-dim: #9aa0a8; --ff-blue: #2f8cff; --ff-mag: #e43df5;
    position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--ff-bg); color: var(--ff-text); font-family: var(--font); }
.ff-body { flex: 1; min-height: 0; position: relative; }
.ff-pane { position: absolute; inset: 0; display: none; }
.ff-pane.on { display: flex; }
.ff-tabbar { display: flex; justify-content: center; gap: 4px; padding: 6px 10px calc(8px + 14px); background: #18191c; border-top: 1px solid #2b2d31; }
.ff-tabbar button { flex: 0 1 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; border: 0; background: none; color: #8d939b; font: 600 11px var(--font); cursor: pointer; border-radius: 10px; }
.ff-tabbar button .f7-icons { font-size: 24px; }
.ff-tabbar button.on { color: var(--ff-blue); }
.ff-tabbar button:hover { background: #222429; }
.ff input, .ff select { font: inherit; color: var(--ff-text); background: var(--ff-row); border: 1px solid var(--ff-line); border-radius: 10px; padding: 8px 10px; outline: none; }
.ff input:focus { border-color: var(--ff-blue); }
.ff .muted { color: var(--ff-dim); }
.ff a { color: var(--ff-blue); }
.ff-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--ff-line); background: #26282d; color: var(--ff-text); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; }
.ff-btn .f7-icons { font-size: 17px; }
.ff-btn.on, .ff-btn.primary { background: var(--ff-blue); border-color: var(--ff-blue); color: #fff; }
.ff-btn:hover { filter: brightness(1.15); }

/* Carte */
.ff-map { position: absolute; inset: 0; background: #0d0e10; }
.ff-top { position: absolute; z-index: 500; top: 34px; left: 104px; right: 12px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.screen.windowed .ff-top { top: 10px; }
.ff-top > * { pointer-events: auto; }
.ff-route { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; background: rgba(24,25,28,.92); border: 1px solid #2f3136; overflow-x: auto; scrollbar-width: none; backdrop-filter: blur(10px); }
.ff-route::-webkit-scrollbar { display: none; }
.ff-route .chip { flex: none; padding: 4px 9px; border-radius: 7px; background: #2b3f63; color: #cfe3ff; font: 600 13px var(--mono); }
.ff-route .chip.ap { background: var(--ff-blue); color: #fff; }
.ff-route .chip.aw { background: transparent; color: #8d939b; padding: 4px 2px; }
.ff-route .lbl { flex: none; color: var(--ff-dim); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 0 4px; }
.ff-iconbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(24,25,28,.92); border: 1px solid #2f3136; color: var(--ff-text); cursor: pointer; backdrop-filter: blur(10px); }
.ff-iconbtn .f7-icons { font-size: 21px; }
.ff-iconbtn.on { color: var(--ff-blue); border-color: var(--ff-blue); }
.ff-layers { position: absolute; z-index: 600; top: 84px; left: 104px; width: 300px; background: rgba(24,25,28,.97); border: 1px solid #2f3136; border-radius: 16px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: none; }
.ff-layers.open { display: block; }
.ff-layers h4 { margin: 4px 4px 8px; font-size: 12px; text-transform: uppercase; color: var(--ff-dim); }
.ff-seg { display: flex; background: #26282d; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.ff-seg button { flex: 1; border: 0; background: none; color: var(--ff-text); font: 600 13px var(--font); padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.ff-seg button.on { background: var(--ff-blue); }
.ff-toggle { display: flex; align-items: center; justify-content: space-between; padding: 9px 6px; border-top: 1px solid #2b2d31; font-size: 15px; cursor: pointer; }
.ff-toggle .sw { width: 42px; height: 25px; border-radius: 13px; background: #3a3c42; position: relative; transition: background .2s; flex: none; }
.ff-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ff-toggle.on .sw { background: #34c759; }
.ff-toggle.on .sw::after { transform: translateX(17px); }
.ff-toggle small { display: block; color: var(--ff-dim); font-size: 12px; }
.ff-inst { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; background: #2f3136; border: 1px solid #2f3136; }
.ff-inst div { background: rgba(20,21,24,.94); padding: 6px 10px; }
.ff-inst span { display: block; font-size: 10.5px; font-weight: 700; color: #6fb6ff; text-transform: uppercase; letter-spacing: .04em; }
.ff-inst b { font: 600 20px var(--mono); color: #fff; white-space: nowrap; }
.ff-sheet { position: absolute; z-index: 650; top: 84px; right: 12px; bottom: 76px; width: min(380px, 70%); background: rgba(24,25,28,.97); border: 1px solid #2f3136; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: none; flex-direction: column; overflow: hidden; }
.ff-sheet.open { display: flex; }
.ff-sheet .sh-head { padding: 14px 16px 10px; border-bottom: 1px solid #2b2d31; display: flex; justify-content: space-between; gap: 10px; }
.ff-sheet .sh-head b { font-size: 24px; }
.ff-sheet .sh-body { overflow: auto; padding: 10px 16px 16px; }
.ff-sheet .sh-close { background: #2b2d31; border: 0; color: var(--ff-text); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.ff-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.ff-kv dt { color: var(--ff-dim); }
.ff-kv dd { margin: 0; text-align: right; font-weight: 600; }
.ff-raw { font: 12.5px/1.45 var(--mono); background: #141518; border: 1px solid #2b2d31; border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; user-select: text; }
.ff-h { margin: 14px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ff-dim); letter-spacing: .04em; }
.ff-cat { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 12px var(--font); color: #fff; }
.ff-cat.VFR { background: #1fa64a; } .ff-cat.MVFR { background: #2f6fe0; } .ff-cat.IFR { background: #e0352f; } .ff-cat.LIFR { background: #c42ed6; } .ff-cat.none { background: #555; }
.ff-ap-lbl { color: #fff; font: 700 11px var(--mono); text-shadow: 0 0 3px #000, 0 0 3px #000; background: none; border: 0; box-shadow: none; padding: 0; }
.ff-ap-lbl::before { display: none; }
.ff-vor { width: 14px; height: 14px; background: #4fc3f7; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); opacity: .9; }
.ff-ndb { width: 10px; height: 10px; border-radius: 50%; border: 2px dotted #c78bff; }
.ff-nav-lbl { color: #9fdcff; font: 600 10px var(--mono); text-shadow: 0 0 3px #000; white-space: nowrap; }
.ff-wpt { color: #ffc6fb; font: 700 10.5px var(--mono); text-shadow: 0 0 3px #000, 0 0 3px #000; white-space: nowrap; transform: translate(6px, -14px); }
.ff-own { display: grid; place-items: center; }
.ff-own .f7-icons { font-size: 34px; color: #2f8cff; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.ff .leaflet-container { background: #0d0e10; }
.ff .leaflet-control-attribution { background: rgba(0,0,0,.5) !important; color: #aaa; }
.ff .leaflet-control-attribution a { color: #ccc; }

/* Listes et détails (Aéroports, Vols, Journal) */
.ff-split { display: flex; width: 100%; }
.ff-list { width: clamp(260px, 26vw, 340px); flex: none; background: var(--ff-panel); border-right: 1px solid #2b2d31; display: flex; flex-direction: column; padding-top: 34px; }
.screen.windowed .ff-list { padding-top: 40px; }
.ff-list .ff-search { padding: 8px 12px; }
.ff-list .ff-search input { width: 100%; }
.ff-list .ff-items { flex: 1; overflow: auto; padding-bottom: 20px; }
.ff-list h5 { margin: 12px 14px 4px; font-size: 11.5px; text-transform: uppercase; color: var(--ff-dim); letter-spacing: .05em; }
.ff-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #26282d; cursor: pointer; }
.ff-item:hover { background: #222428; }
.ff-item.sel { background: #1f3352; box-shadow: inset 3px 0 0 var(--ff-blue); }
.ff-item b { font: 700 16px var(--mono); }
.ff-item .it-main { flex: 1; min-width: 0; }
.ff-item .it-main span { display: block; font-size: 12.5px; color: var(--ff-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-detail { flex: 1; min-width: 0; overflow: auto; padding: 40px 22px 30px; }
.ff-detail h1 { margin: 0; font-size: 32px; font-weight: 800; }
.ff-detail h1 small { font-size: 16px; color: var(--ff-dim); font-weight: 500; margin-left: 8px; }
.ff-detail .sub { color: var(--ff-dim); margin-top: 2px; }
.ff-tabs { display: inline-flex; background: #26282d; border-radius: 10px; padding: 3px; margin: 16px 0 14px; }
.ff-tabs button { border: 0; background: none; color: var(--ff-text); font: 600 14px var(--font); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.ff-tabs button.on { background: var(--ff-blue); }
.ff-card { background: var(--ff-panel); border: 1px solid #2b2d31; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.ff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ff-grid > div { background: var(--ff-panel); border: 1px solid #2b2d31; border-radius: 12px; padding: 10px 12px; }
.ff-grid span { display: block; font-size: 11px; font-weight: 700; color: #6fb6ff; text-transform: uppercase; letter-spacing: .04em; }
.ff-grid b { font: 600 19px var(--mono); }
.ff-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ff-table th { text-align: left; font-size: 11px; font-weight: 700; color: #6fb6ff; text-transform: uppercase; letter-spacing: .04em; padding: 7px 8px; border-bottom: 1px solid #34363b; position: sticky; top: 0; background: var(--ff-panel); }
.ff-table td { padding: 7px 8px; border-bottom: 1px solid #26282d; font-family: var(--mono); white-space: nowrap; }
.ff-table tr.sid td { color: #b9a7ff; }
.ff-table tr.ap td { color: #fff; font-weight: 700; background: #1f2a3d; }
.ff-table td.r, .ff-table th.r { text-align: right; }
.rwy-best { color: #34c759 !important; font-weight: 700; }
.ff-mini-map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid #2b2d31; }
.ff-rwy-diag { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
.ff-radar-ctl { position: absolute; z-index: 500; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(24,25,28,.94); border: 1px solid #2f3136; }
.ff-radar-ctl input[type=range] { width: 260px; padding: 0; border: 0; background: none; }
.ff-radar-ctl b { font: 600 15px var(--mono); min-width: 64px; text-align: center; }

/* ================================================================ verrouillage d'activation (aucun accès sans clé API) */
.activation { position: absolute; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: #000; color: #fff; font-family: var(--font); }
.activation[hidden] { display: none; }
.activation .act-box { width: min(440px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.activation .act-icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #2c2c2e, #1c1c1e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.activation .act-icon .f7-icons { font-size: 46px; color: #ff9f0a; }
.activation h1 { margin: 6px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.activation p { margin: 0; color: rgba(235,235,245,.65); font-size: 16px; line-height: 1.45; }
.activation form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.activation input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid #3a3a3c; background: #1c1c1e; color: #fff; font: 17px var(--mono); text-align: center; outline: none; }
.activation input:focus { border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.3); }
.activation button { padding: 15px; border-radius: 14px; border: 0; background: #0a84ff; color: #fff; font: 600 17px var(--font); cursor: pointer; }
.activation button:disabled { opacity: .5; cursor: default; }
.activation .act-err { min-height: 22px; color: #ff453a; font-size: 15px; }
.activation .act-help { font-size: 14px; }
.activation .act-help a { color: #0a84ff; text-decoration: none; }
.activation .act-foot { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(235,235,245,.35); }
.screen.activation-required > :not(#activation) { visibility: hidden; }
/* Framework7 étire les <button> : pas dans BDW Nav */
.ff button { width: auto; }
.ff .ff-list { padding-top: 62px; }
.screen.windowed .ff .ff-list { padding-top: 44px; }
