/* ============================================================
   LOGBOOK V2 — Refonte éditoriale (Variante A — dashboard 3 colonnes)
   Handoff : design_handoff_logbook/README.md
   Tout est scopé sous #lbv2-overlay pour cohabiter avec l'UI hub
   existante (pilots_map). Activé par le flag ?lbv2=1.
   Valeurs visuelles = fidèles au prototype (hifi pixel-près).
   Fonts Playfair Display + Inter déjà chargées globalement (base.css).
   ============================================================ */

#lbv2-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: var(--wx-page-grad);
    background-attachment: fixed;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--c-text);
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
#lbv2-overlay.lbv2-open { display: flex; }
/* La bottom bar Forecast (.ios-toolbar-wrapper, z-index 10000) reste visible tant
   que #viewer.active existe — or l'overlay Logbook (z-index 4000) s'ouvre PAR-DESSUS
   le viewer sans le désactiver (ex. depuis SIMU). On la masque donc explicitement
   quand le Logbook est ouvert, sinon elle recouvre le bottom-nav Logbook. */
body:has(#lbv2-overlay.lbv2-open) .ios-toolbar-wrapper { display: none !important; }
/* Verrouille le scroll de la page SOUS l'overlay (sinon double scrollbar : celle du body
   au bord de la fenêtre + celle du feed .lbv2-main-content). Request user 2026-08-27. */
html:has(#lbv2-overlay.lbv2-open),
body:has(#lbv2-overlay.lbv2-open) { overflow: hidden !important; }
#lbv2-overlay * { box-sizing: border-box; }
/* Garde-fou : les icônes SVG dans les boutons flex ne doivent jamais
   être écrasées à 0 par flex-shrink (cf. boutons d'action Mes vols). */
#lbv2-overlay button svg { flex-shrink: 0; }

/* ── TOP BAR ─────────────────────────────────────────────── */
.lbv2-topbar {
    position: static;
    flex-shrink: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* iOS Capacitor/PWA (viewport-fit=cover) : la topbar absorbe le safe-area
       de l'encoche — sinon elle passe sous l'horloge (request user). */
    /* Aligné sur le topbar global (.top-bar : 52px, padding 0 2rem 0 0.75rem) — harmonisation
       logo/barre de menu (request user 2026-08-27). Le safe-area iOS s'ajoute par-dessus. */
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 2rem 0 12px;
    background: var(--wx-bar-solid);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.lbv2-topbar-left { display: flex; align-items: center; gap: 34px; }
.lbv2-logo { display: flex; align-items: center; gap: 11px; }
/* Logo identique au topbar global (.wx-logo-brand) : police serif de marque,
   pas DM Sans — sinon le « WindXplorer » du Logbook change de police (bug user 2026-08-27). */
.lbv2-logo-wordmark { font-family: var(--font-family-serif); font-size: 21px; font-weight: 500; letter-spacing: 0.02em; color: var(--c-text); }
/* Harmonisation : « WindXplorer » sur desktop, « wx » court sur mobile */
.lbv2-logo-sectionname, .lbv2-logo-brand-short { display: none; }
.lbv2-logo-chevron { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--c-text-muted); padding: 0 2px; line-height: 1; font-family: inherit; display: flex; align-items: center; transition: color .15s; }
.lbv2-logo-chevron:hover { color: #370028; }
.lbv2-app-menu { position: fixed; z-index: 9999; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.15); padding: 6px 0; min-width: 170px; }
.lbv2-app-menu-title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-text-muted); font-weight: 700; padding: 6px 14px 4px; }
.lbv2-app-menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--c-text); border: none; background: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; line-height: 1.2; }
.lbv2-app-menu-item:hover { background: var(--wx-surface-2); }
.lbv2-app-menu-active { color: #370028; font-weight: 700; pointer-events: none; }
.lbv2-nav { display: flex; gap: 4px; }
.lbv2-nav-pill {
    padding: 8px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    color: var(--c-text-muted);
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}
.lbv2-nav-pill:hover { background: rgba(0, 0, 0, .05); }
.lbv2-nav-pill.active { color: #fff; background: #000; font-weight: 700; }
.lbv2-nav-pill.active:hover { background: #000; }
.lbv2-topbar-right { display: flex; align-items: center; gap: 16px; }
.lbv2-icon-btn {
    background: none; border: none; cursor: pointer; padding: 0;
    display: inline-flex; color: var(--c-text-muted);
}
.lbv2-icon-btn:hover { color: var(--c-text); }
.lbv2-avatar-wrap { display: flex; align-items: center; gap: 9px; padding: 4px 6px; cursor: pointer; position: relative; }
/* ── USER MENU DROPDOWN ───────────────────────────────── */
.lbv2-user-menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 230px;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13); z-index: 1100; overflow: hidden;
}
.lbv2-user-menu-header { padding: 14px 16px 12px; }
.lbv2-user-menu-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.lbv2-user-menu-email { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-user-menu-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.lbv2-user-menu-item {
    width: 100%; text-align: left; background: none; border: none;
    padding: 9px 16px; font-size: 13px; color: var(--c-text); cursor: pointer;
    display: block; font-family: inherit;
}
.lbv2-user-menu-item:hover { background: var(--wx-surface-2); }
.lbv2-user-menu-item-danger { color: #c0392b; }
/* Ligne version + date de MAJ sous Crédits & Sources */
.lbv2-user-menu-version { padding: 0 16px 8px; font-size: 11px; color: var(--c-text-muted); }
.lbv2-avatar-mini {
    width: 32px; height: 32px; border-radius: 50%;
    background: #370028; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 14px;
    overflow: hidden; flex-shrink: 0;
}
.lbv2-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-chevron { font-size: 18px; color: var(--c-text-muted); }

/* ── GRID 2 COLONNES ─────────────────────────────────────── */
.lbv2-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    padding: 0 26px;
    align-items: stretch;
    max-width: 1452px;
    margin: 0 auto;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    width: 100%;
}
.lbv2-rail { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; min-height: 0; padding: 24px 0 60px; }

/* ── COLONNE DROITE — onglets principaux ────────────────── */
/* padding-top 24px = padding du rail gauche → le sous-menu s'aligne avec le HAUT du bloc profil */
.lbv2-right-col { display: flex; flex-direction: column; overflow: hidden; min-height: 0; padding-top: 24px; }
/* Sous-menu en CARTE : mêmes bord/arrondis que .lbv2-card (bloc profil) */
/* Visuel : classe partagée .wx-subnav (styles.css) — ici le placement seul */
.lbv2-main-tabs { gap: 0; position: static; flex-shrink: 0; }
.lbv2-tab-btns { display: flex; align-items: flex-end; flex-shrink: 0; }
.lbv2-tab-actions { display: flex; align-items: center; padding: 0 4px 10px; flex-shrink: 0; }
/* .lbv2-main-tab : visuel = .wx-subnav-tab (styles.css), crochet JS de l'état actif */
/* Rangée sous la barre d'onglets : view toggle (Liste/Cards/Carte) + actions,
   alignés à droite — le toggle blanc se détache sur le fond dégradé. */
.lbv2-tab-subrow { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; flex-shrink: 0; }
.lbv2-tab-subrow:empty { display: none; margin: 0; }
/* Mobile : subrow entièrement masqué (request user) — Mes vols passe par le
   modal « Filtres & affichage », Clubs/Annuaire sont figés en liste et le
   bouton « Créer un club » vit en fin de page. */
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-tab-subrow { display: none !important; margin: 0; }
}
/* « Créer un club » compact — rendu (JS) en vue liste uniquement, en fin du
   bloc « Mes clubs » (desktop + mobile ; la vue cards a sa carte « + Ajouter »). */
.lbv2-clubs-create-foot { display: flex; padding: 12px 0 4px; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-clubs-create-foot { justify-content: center; padding: 14px 0 8px; }
    .lbv2-clubs-create-foot .lbv2-btn-pill { font-size: 11px; padding: 8px 14px; }
}
/* Zone de scroll : commence APRÈS l'espace vide sous le sous-menu (le sous-menu
   reste fixe ; la scrollbar démarre sous le gap, pas au niveau des onglets). */
.lbv2-main-content { flex: 1; overflow-y: auto; min-height: 0; margin-top: 18px; }
.lbv2-tab-subrow:not(:empty) + .lbv2-main-content { margin-top: 12px; }
/* Annuaire mobile : bouton Liste/Carte dans la barre de recherche (request user 2026-08-22) */
.lbv2-dir-mapbtn { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; }
.lbv2-dir-search-row { display: flex; align-items: center; }
.lbv2-main-content.lbv2-mc-msgs-active { overflow: hidden; display: flex; flex-direction: column; }
.lbv2-tab-panel { padding: 0 0 80px; }

/* Rôle en toutes lettres (3e ligne, mobile) + picto suivre — bases */
.lbv2-dir-list-role { display: none; font-size: 11px; color: var(--c-text-muted); margin-top: 1px; }
.lbv2-dir-follow-btn .lbv2-fb-ico { display: none; line-height: 0; }
.lbv2-dir-follow-btn .lbv2-fb-txt { display: inline; }

/* ── PAGE CLUB (focus) — la page n'avait aucun style : logo pleine largeur ── */
/* Pleine largeur de la colonne centrale (request user 2026-07-22) */
.lbv2-club-detail-wrap { width: 100%; margin: 0; padding: 8px 4px 90px; }
.lbv2-club-detail-head { display: flex; align-items: center; gap: 16px; }
.lbv2-club-detail-logo {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 30px;
    border: 1px solid var(--c-border);
}
.lbv2-club-detail-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbv2-club-detail-name { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 24px; color: var(--c-text); line-height: 1.15; overflow-wrap: break-word; min-width: 0; }
.lbv2-club-detail-loc { font-size: 13px; color: var(--c-text-muted); margin-top: 4px; }
.lbv2-club-detail-desc { font-size: 14px; color: var(--c-text); margin-top: 16px; line-height: 1.5; }

/* ── PAGE CLUB v2 (club.js) : topbar, cover, sections, carte, membres, vols, ballons ── */
.lbv2-cd-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lbv2-cd-topbar .lbv2-pf-back { cursor: pointer; font-size: 18px; color: var(--c-text-muted); }
.lbv2-cd-topbar-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); }
.lbv2-cd-cover { height: 120px; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 14px; border: 1px solid var(--c-border); }
.lbv2-cd-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.lbv2-cd-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lbv2-cd-sec { margin-top: 24px; }
.lbv2-cd-count { font-weight: 400; color: var(--c-text-muted); margin-left: 4px; }
.lbv2-cd-danger-btn { color: #c62828 !important; }

/* Président */
.lbv2-cd-pres { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; cursor: pointer; transition: background .12s; }
.lbv2-cd-pres:hover { background: var(--wx-surface-2); }
.lbv2-cd-pres-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.lbv2-cd-pres-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbv2-cd-pres-name { font-size: 14.5px; font-weight: 700; color: var(--c-text); }
.lbv2-cd-pres-star { font-size: 12px; }
.lbv2-cd-pres-role { font-size: 11.5px; color: var(--c-text-muted); margin-top: 1px; }

/* Crew */
.lbv2-cd-crew { padding: 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; }
.lbv2-cd-crew-row { display: flex; align-items: center; gap: 10px; }
.lbv2-cd-crew-txt { font-size: 12.5px; color: var(--c-text-muted); line-height: 1.4; }
.lbv2-cd-crew-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lbv2-cd-crew-link a { font-size: 12px; color: #3a6ea5; word-break: break-all; text-decoration: none; }
.lbv2-cd-crew-link a:hover { text-decoration: underline; }

/* Carte du club */
.lbv2-cd-map { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface); }
.lbv2-cd-map-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--c-text-muted); }
.lbv2-cd-map-legend .ld { display: inline-flex; align-items: center; gap: 5px; }
.lbv2-cd-map-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lbv2-cd-map-legend .ln { width: 16px; height: 3px; border-radius: 2px; display: inline-block; background: linear-gradient(90deg, #3a6ea5, #c0392b); }
.lbv2-cd-map-ctrls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lbv2-cd-map-ctrls:empty { display: none; }
.lbv2-cd-map-hint { font-size: 11.5px; color: var(--c-text-muted); font-style: italic; }

/* Membres (grille avatars) */
.lbv2-cd-mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
.lbv2-cd-mem { text-align: center; cursor: pointer; min-width: 0; }
.lbv2-cd-mem-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.lbv2-cd-mem-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbv2-cd-mem-name { font-size: 12px; font-weight: 600; color: var(--c-text); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-cd-mem-role { font-size: 11px; color: var(--c-text-muted); margin-top: 1px; }

/* Derniers vols */
.lbv2-cd-flight { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-bottom: 1px solid var(--c-border); cursor: pointer; transition: background .12s; }
.lbv2-cd-flight:hover { background: var(--wx-surface-2); }
.lbv2-cd-flight-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; }
.lbv2-cd-flight-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbv2-cd-flight-info { flex: 1; min-width: 0; }
.lbv2-cd-flight-pilot { font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-cd-flight-city { font-weight: 400; color: var(--c-text-muted); }
.lbv2-cd-flight-meta { font-size: 11.5px; color: var(--c-text-muted); margin-top: 1px; }
.lbv2-cd-chevron { color: var(--c-text-muted); font-size: 16px; }

/* Ballons du club — petites cards en grille */
.lbv2-cd-bal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lbv2-cd-bal-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 10px 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; min-width: 0; }
.lbv2-cd-bal-ico { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 5px; }
.lbv2-cd-bal-name { font-size: 13px; font-weight: 700; color: var(--c-text); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-cd-bal-reg { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--c-text-muted); }
.lbv2-cd-bal-meta { font-size: 11px; color: var(--c-text-muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-cd-bal-owner { font-size: 11px; color: var(--c-text-muted); margin-top: 3px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal création de club — !important sur les inputs (override global dark-mode components.css) */
.lbv2-club-form label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin: 14px 0 5px; }
.lbv2-club-form label:first-child { margin-top: 0; }
.lbv2-club-form label .req { color: #c62828; }
.lbv2-club-form input[type=text], .lbv2-club-form textarea {
    width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 9px;
    border: 1px solid var(--c-border) !important;
    background: var(--c-surface) !important; color: var(--c-text) !important;
    font-family: inherit; font-size: 13.5px; outline: none;
}
.lbv2-club-form input[type=text]:focus, .lbv2-club-form textarea:focus { border-color: #370028 !important; }
.lbv2-club-form textarea { resize: vertical; }
.lbv2-club-form-toggle { display: flex !important; align-items: center; gap: 9px; margin-top: 16px !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; }
.lbv2-club-form-toggle span { font-size: 12.5px; color: var(--c-text); }
.lbv2-club-form-toggle input { width: auto; }

@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-cd-map { height: 250px; }
    .lbv2-cd-mem-grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; }
    .lbv2-cd-cover { height: 90px; }
    .lbv2-club-detail-logo { width: 64px; height: 64px; font-size: 24px; }
    .lbv2-club-detail-name { font-size: 20px; }
}

/* ── BOUTONS BAS DE RAIL GAUCHE ──────────────────────────── */
.lbv2-lr-actions { display: flex; gap: 8px; padding: 4px 0 8px; }
.lbv2-lr-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 8px;
    padding: 10px 8px; font-size: 12px; font-weight: 600; color: var(--c-text);
    cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s;
}
.lbv2-lr-action-btn:hover { background: var(--wx-surface-2); border-color: var(--c-border); }

/* ── VIEW TOGGLE (Card / List / Map) — design de référence « Mes vols » :
   groupe segmenté fond gris, actif = pill blanche bordée + ombre, labels
   uppercase visibles en desktop. Partagé : Mes vols, Annuaire, Clubs (+ Map lieux). */
.lbv2-view-toggle { display: flex; align-items: center; gap: 2px; border-radius: 8px; padding: 3px; background: var(--c-surface); }
.lbv2-vt-btn {
    background: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 10px; cursor: pointer;
    color: var(--c-text-muted); display: flex; align-items: center; gap: 5px; transition: background .15s, color .15s;
    font-family: inherit;
}
.lbv2-vt-btn.active { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.lbv2-vt-btn:hover:not(.active) { color: var(--c-text-muted); }
.lbv2-vt-btn .lbv2-vt-lbl { display: none; }
@media (min-width: 900px) and (pointer: fine), (min-width: 1000px) and (pointer: coarse) {
    .lbv2-vt-btn .lbv2-vt-lbl { display: inline; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
}

/* ── ANNUAIRE TYPE TABS (Membres / Clubs) ─────────────────── */
.lbv2-dir-type-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 16px; }
.lbv2-dir-ttab { flex: 1; padding: 10px; font-size: 13px; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--c-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; transition: color .15s, border-color .15s; }
.lbv2-dir-ttab.active { color: #370028; border-bottom-color: #370028; }
.lbv2-dir-ttab:not(.active):hover { color: var(--c-text-muted); }

/* ── ANNUAIRE HEAD (search + toggle) ─────────────────────── */
.lbv2-dir-annuaire-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lbv2-dir-annuaire-head .lbv2-dir-search-row { flex: 1; margin-bottom: 0; }
.lbv2-clubs-tab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

/* ── LIST VIEW (Membres et Clubs) ────────────────────────── */
/* Fond retire (request user 2026-09-01) — la liste (clubs + annuaire) pose ses rangees
   directement sur le fond de page. */
.lbv2-dir-list-view { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; background: transparent; }
.lbv2-dir-list-row { display: grid; grid-template-columns: 40px 1fr 110px 80px 120px 120px; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; transition: background .12s; background: var(--c-surface); }
.lbv2-dir-list-row:hover { background: var(--wx-surface-2); }
.lbv2-dir-list-av {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: #fff; font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 14px; font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.lbv2-dir-list-av img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-dir-list-body { flex: 1; min-width: 0; }
.lbv2-dir-list-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.lbv2-dir-list-sub { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-dir-list-extra { font-size: 12px; color: var(--c-text-muted); }
.lbv2-dir-list-num { font-weight: 600; }
.lbv2-dir-list-date { color: var(--c-text-muted); }
.lbv2-dir-role-pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.lbv2-dir-role-pilot { background: #e7f0ff; color: #1565c0; }
.lbv2-dir-role-crew { background: #eaf7ee; color: #1c7a3a; }
.lbv2-dir-list-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── MESSAGERIE PLEIN ÉCRAN ──────────────────────────────── */
#lbv2-messages-screen { display: none; background: var(--c-surface); }
.lbv2-msg-screen { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lbv2-msg-topbar {
    display: flex; align-items: center; gap: 14px; padding: 14px 26px;
    border-bottom: 1px solid var(--c-border); background: var(--c-surface); flex-shrink: 0;
}
.lbv2-msg-back {
    background: none; border: none; padding: 4px; cursor: pointer; color: var(--c-text-muted);
    display: flex; align-items: center; border-radius: 6px; transition: background .15s;
}
.lbv2-msg-back:hover { background: var(--wx-surface-2); }
.lbv2-msg-title { font-size: 16px; font-weight: 700; color: var(--c-text); flex: 1; }
.lbv2-msg-layout {
    display: grid; grid-template-columns: 300px 1fr; flex: 1; overflow: hidden;
}
.lbv2-msg-sidebar {
    border-right: 1px solid var(--c-border); display: flex; flex-direction: column;
    overflow-y: auto; background: var(--wx-surface-2);
}
.lbv2-msg-main { display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface); }
.lbv2-msg-chat-back { display: none; }

/* ── CARTES GÉNÉRIQUES ───────────────────────────────────── */
.lbv2-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
}
.lbv2-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.lbv2-section-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
    color: var(--c-text); font-weight: 700;
}
.lbv2-section-link {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--c-text-muted); font-weight: 600; cursor: pointer; background: none; border: none;
}
.lbv2-section-link:hover { color: var(--c-text); }
.lbv2-microlabel {
    font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
    color: var(--c-text-muted); font-weight: 700;
}

/* ── CARTE PROFIL (rail gauche) ──────────────────────────── */
.lbv2-profile { padding: 24px 20px; }
.lbv2-profile-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lbv2-profile-avatar {
    width: 84px; height: 84px; border-radius: 50%;
    background: #efe6ec; border: 3px solid #370028; color: #370028;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 32px;
    overflow: hidden;
}
.lbv2-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-profile-name { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 21px; color: var(--c-text); margin-top: 12px; }
.lbv2-profile-loc {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--c-text-muted); font-weight: 600; margin-top: 5px;
}
.lbv2-stats3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    margin: 20px 0; padding: 16px 0;
    border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
}
.lbv2-stat3 { text-align: center; }
.lbv2-stat3.mid { border-left: 1px solid var(--c-border); border-right: 1px solid var(--c-border); }
.lbv2-stat3-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 22px; color: var(--c-text); line-height: 1; }
.lbv2-stat3-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; margin-top: 5px; }

.lbv2-ach-head { margin-bottom: 10px; }
.lbv2-ach-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.lbv2-ach {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fcfcfc; border: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
}

.lbv2-week-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lbv2-week-val { font-size: 11px; color: var(--c-text); font-weight: 500; }
.lbv2-spark { display: flex; align-items: flex-end; gap: 6px; height: 38px; margin-bottom: 18px; }
.lbv2-spark-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; height: 100%; }
.lbv2-spark-bar { width: 100%; background: #1a1a1a; border-radius: 1px; }
.lbv2-spark-lbl { font-size: 11px; color: var(--c-text-muted); font-weight: 600; }

.lbv2-hr { height: 1px; background: #f0f0f0; margin-bottom: 14px; }
.lbv2-month-head { margin-bottom: 12px; }
.lbv2-month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.lbv2-month-cell { text-align: center; }
.lbv2-month-cell.mid { border-left: 1px solid var(--c-border); border-right: 1px solid var(--c-border); }
.lbv2-month-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 18px; color: var(--c-text); line-height: 1; }
.lbv2-month-l { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 600; margin-top: 5px; }

/* Boutons signature */
.lbv2-btn-outline {
    width: 100%; padding: 11px;
    background: var(--c-surface); border: 1px solid #1a1a1a; color: var(--c-text);
    font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
    cursor: pointer; transition: background .2s ease, color .2s ease;
    font-family: inherit;
}
.lbv2-btn-outline:hover { background: #1a1a1a; color: #fff; }
.lbv2-btn-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #000; color: #fff; border: none;
    padding: 9px 16px; border-radius: 999px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
    cursor: pointer; transition: opacity .2s ease; font-family: inherit;
}
.lbv2-btn-pill:hover { opacity: .85; }
.lbv2-btn-pill-light { background: var(--c-surface); color: var(--c-text); }

/* ── CTA REPLAY 3D (rail gauche) ─────────────────────────── */
.lbv2-cta3d {
    background: #0c0c0e; border-radius: 10px; padding: 22px 20px;
    color: #fff; position: relative; overflow: hidden;
}
.lbv2-cta3d-halo {
    position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 149, 0, .35), transparent 70%);
}
.lbv2-cta3d-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: #FF9500; font-weight: 700; position: relative; }
.lbv2-cta3d-title { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 20px; margin: 8px 0 6px; line-height: 1.15; position: relative; }
.lbv2-cta3d-desc { font-size: 12.5px; color: #9aa0a8; font-weight: 300; line-height: 1.55; margin: 0 0 16px; position: relative; }

/* ── MES BALLONS (rail gauche) ───────────────────────────── */
.lbv2-balloons { padding: 18px 18px 8px; }
.lbv2-balloon-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f4f4f4; }
.lbv2-balloon-pin {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lbv2-balloon-body { flex: 1; min-width: 0; }
.lbv2-balloon-name-row { display: flex; align-items: center; gap: 7px; }
.lbv2-balloon-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-immat-badge-sm {
    font-size: 11px; letter-spacing: .06em; font-weight: 700; color: var(--c-text-muted);
    background: var(--wx-surface-2); padding: 2px 6px; white-space: nowrap;
}
.lbv2-balloon-sub { font-size: 11px; color: var(--c-text-muted); font-weight: 300; margin-top: 2px; }

/* ── COLONNE CENTRALE : ONGLETS + FEED ───────────────────── */
.lbv2-feed-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.lbv2-feed-tab {
    padding: 10px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
    font-weight: 700; cursor: pointer; border-radius: 999px;
    border: 1px solid var(--c-border); background: transparent; color: var(--c-text-muted);
    transition: border-color .2s ease; font-family: inherit;
}
.lbv2-feed-tab:hover { border-color: #1a1a1a; }
.lbv2-feed-tab.active { border-color: #000; background: #000; color: #fff; }

.lbv2-feed-msg { padding: 40px 16px; text-align: center; color: var(--c-text-muted); font-size: 13px; }

/* ── CARTE DE VOL (feed) ─────────────────────────────────── */
.lbv2-flight {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px;
    overflow: hidden; margin-bottom: 20px;
}
.lbv2-flight-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px 10px; }
.lbv2-flight-title { font-size: 15px; font-weight: 700; color: var(--c-text); padding: 0 18px 10px; line-height: 1.3; text-align: center; }
.lbv2-flight-avatar {
    width: 42px; height: 42px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 16px; flex-shrink: 0;
    overflow: hidden; cursor: pointer;
}
.lbv2-flight-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-flight-headbody { flex: 1; min-width: 0; }
.lbv2-flight-pilotrow { display: flex; align-items: center; gap: 9px; }
/* Nom du pilote sur les cards du feed — DM Sans grasse (request user 2026-08-22) */
.lbv2-flight-pilot { font-family: 'DM Sans', 'Inter', sans-serif; font-weight: 700; font-size: 16px; color: var(--c-text); cursor: pointer; letter-spacing: -0.01em; }
.lbv2-group-badge {
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    color: var(--c-text-muted); background: var(--wx-surface-2); border: 1px solid var(--c-border); padding: 2px 8px; border-radius: 999px;
}
.lbv2-flight-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-text-muted); font-weight: 600; margin-top: 3px; }
.lbv2-immat-badge {
    font-size: 11px; letter-spacing: .07em; font-weight: 700;
    color: #1565c0; background: #e3f2fd; border: 1px solid #bbdefb;
    padding: 5px 9px; border-radius: 4px; white-space: nowrap;
}

/* Média (trace / photo / carte Leaflet) */
/* isolation:isolate → contient les z-index internes de Leaflet (panes 200–700)
   pour qu'ils ne débordent pas par-dessus la top-bar / bottom-nav fixes. */
.lbv2-media { position: relative; height: 262px; background: #e7ece4; overflow: hidden; isolation: isolate; z-index: 0; }
.lbv2-media-leaflet { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Carte figée dans le Fil : le doigt fait défiler la page (vertical) ou le carrousel
   photos (horizontal) au lieu d'être capturé par Leaflet (request user 2026-09-16) */
.lbv2-media .leaflet-container { touch-action: pan-x pan-y !important; cursor: pointer; }
.lbv2-photo-slide-map .lbv2-media-leaflet { position: absolute; inset: 0; }
.lbv2-map-layer-btn {
    background: var(--c-surface); border: 1px solid #ccc; border-radius: 6px; padding: 5px 7px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.15); color: var(--c-text-muted); transition: background .15s;
}
.lbv2-map-layer-btn:hover, .lbv2-map-layer-btn.active { background: #370028; color: #fff; border-color: #370028; }
.lbv2-media svg.lbv2-trace-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lbv2-media-tag { position: absolute; top: 14px; left: 16px; pointer-events: none; }
.lbv2-media-tag-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--c-text-muted); font-weight: 700; }
.lbv2-media-tag-route {
    font-family: 'DM Sans', 'Inter', sans-serif; font-style: italic; font-size: 15px; color: #c0392b;
    margin-top: 2px; text-shadow: 0 1px 2px rgba(255, 255, 255, .6);
}
.lbv2-media-marker {
    position: absolute; width: 24px; height: 24px; border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    display: flex; align-items: center; justify-content: center;
}
.lbv2-media-marker span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 700; }
.lbv2-media-marker.dep { background: #007AFF; transform: rotate(-45deg); }
.lbv2-media-marker.arr { background: #F94361; transform: rotate(-45deg); }
.lbv2-media-fullbtn {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
    background: var(--c-surface); border: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1); cursor: pointer;
}
/* Média photo */
.lbv2-media-photo { height: 300px; }
.lbv2-media-photo img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-media-photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }
/* Carrousel photos (feed) */
.lbv2-photo-track { position: absolute; inset: 0; z-index: 1; display: flex; width: 100%; height: 100%; transition: transform .3s ease; }
.lbv2-photo-slide { flex: 0 0 100%; width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; }
.lbv2-photo-slide-map { overflow: hidden; background: #e7ece4; }
.lbv2-photo-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.lbv2-photo-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s ease; }
.lbv2-photo-dot.on { background: var(--c-surface); }
.lbv2-media-photo .lbv2-media-tag,
.lbv2-media-photo .lbv2-media-weather,
.lbv2-media-photo .lbv2-media-fullbtn { z-index: 2; }
/* Titre + boutons toujours au-dessus du layer Leaflet */
.lbv2-media .lbv2-media-tag,
.lbv2-media .lbv2-media-fullbtn { z-index: 10; }
.lbv2-media .lbv2-media-weather { z-index: 10; }
.lbv2-media-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 32%); pointer-events: none; }
.lbv2-media-photo-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #2b3a52 0%, #5b6b86 32%, #c98b5a 74%, #ecd0a6 100%); }
.lbv2-media-photo-sun { position: absolute; left: 60%; top: 30%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 243, 210, .95), rgba(255, 200, 120, 0) 70%); }
.lbv2-media-weather {
    position: absolute; bottom: 14px; right: 14px;
    display: flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, .92); padding: 6px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--c-text);
}

/* Stats 5-up (Durée · Distance · V max · Alt max · Yoyo) */
.lbv2-flight-stats { display: grid; grid-template-columns: repeat(5, 1fr); padding: 16px 18px; border-top: 1px solid var(--c-border); }
.lbv2-fstat { text-align: center; padding: 0 8px; }
.lbv2-fstat + .lbv2-fstat { border-left: 1px solid var(--c-border); }
/* Harmonisé avec le résumé du détail (request user 2026-08-22) : DM Sans grasse */
.lbv2-fstat-v { font-family: 'DM Sans', 'Inter', sans-serif; font-weight: 700; font-size: 23px; color: var(--c-text); line-height: 1; letter-spacing: -0.01em; }

/* ── Viewer photo plein écran (zoom + swipe + like — request user 2026-08-22) ── */
#lbv2-pviewer { display: none; position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.96); align-items: center; justify-content: center; touch-action: none; }
#lbv2-pv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#lbv2-pv-img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; will-change: transform; transition: transform .06s linear; pointer-events: none; }
#lbv2-pv-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
#lbv2-pv-prev, #lbv2-pv-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 64px; border: none; background: rgba(255,255,255,.08); color: #fff; font-size: 34px; cursor: pointer; border-radius: 10px; }
#lbv2-pv-prev { left: 8px; }
#lbv2-pv-next { right: 8px; }
#lbv2-pv-bottom { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
#lbv2-pv-like { pointer-events: auto; border: none; background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; }
#lbv2-pv-like.on { color: #FF3B5C; }
#lbv2-pv-likecnt { color: #fff; font-size: 15px; font-weight: 700; min-width: 18px; }
#lbv2-pv-count { position: absolute; right: 18px; bottom: 16px; color: rgba(255,255,255,.65); font-size: 13px; font-weight: 600; }
#lbv2-pv-burst { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0); font-size: 90px; color: #FF3B5C; opacity: 0; pointer-events: none; z-index: 3; }
#lbv2-pv-burst.go { animation: lbv2-pv-burst .7s ease forwards; }
@keyframes lbv2-pv-burst {
    0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
    30% { transform: translate(-50%,-50%) scale(1.15); opacity: .95; }
    60% { transform: translate(-50%,-50%) scale(1); opacity: .9; }
    100% { transform: translate(-50%,-50%) scale(.9); opacity: 0; }
}
.lbv2-fstat-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; margin-top: 6px; }
/* Unité détachée en plus petit — partagée par News (.lbv2-fstat-v), Replay (.lbv2-sum-v)
   et Mes vols (request user) */
.lbv2-fstat-u { font-size: 12px; font-weight: 400; color: var(--c-text-muted); margin-left: 3px; }

/* Actions */
.lbv2-flight-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px; border-top: 1px solid var(--c-border); }
/* Boutons agrandis, répartis sur toute la largeur (request user 2026-09-16) :
   like à gauche, partage (ou ⋯ sur mes vols) à droite, cible tactile 44 px */
.lbv2-flight-actions .lbv2-action { font-size: 15px; gap: 8px; padding: 8px 10px; min-height: 44px; }
.lbv2-flight-actions .lbv2-action svg { width: 20px; height: 20px; }
.lbv2-flight-actions .lbv2-card-more-wrap { margin-left: 0; }
.lbv2-action {
    display: flex; align-items: center; gap: 7px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--c-text-muted); font-weight: 500; padding: 4px 0; font-family: inherit;
    transition: color .15s ease;
}
.lbv2-action:hover { color: var(--c-text); }
.lbv2-action.liked { color: #F94361; }
.lbv2-action.liked svg { fill: #F94361; stroke: #F94361; }
.lbv2-action-replay { margin-left: auto; }
/* Menu ⋯ (éditer/supprimer) sur ses propres vols */
.lbv2-card-more-wrap { position: relative; margin-left: 8px; }
.lbv2-action-more { padding: 4px 2px; }
.lbv2-card-menu { display: none; position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.16); min-width: 150px; overflow: hidden; }
.lbv2-card-menu.open { display: block; }
.lbv2-card-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 14px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--c-text); text-align: left; }
.lbv2-card-menu button:hover { background: #f6f7f8; }
.lbv2-card-menu button.danger { color: #F94361; border-top: 1px solid var(--c-border); }

/* Panneau commentaires (inline) */
.lbv2-comments { border-top: 1px solid var(--c-border); padding: 14px 18px; display: none; }
.lbv2-comments.open { display: block; }
.lbv2-comment { display: flex; gap: 10px; padding: 8px 0; }
.lbv2-comment-avatar {
    width: 30px; height: 30px; border-radius: 50%; color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 12px; overflow: hidden;
}
.lbv2-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-comment-body { flex: 1; min-width: 0; }
.lbv2-comment-meta { font-size: 11px; color: var(--c-text-muted); }
.lbv2-comment-name { font-weight: 600; color: var(--c-text); }
.lbv2-comment-text { font-size: 13px; color: var(--c-text); margin-top: 2px; line-height: 1.45; }
.lbv2-comment-form { display: flex; gap: 8px; margin-top: 10px; }
.lbv2-comment-input {
    flex: 1; border: 1px solid var(--c-border); padding: 8px 12px; font-size: 13px;
    font-family: inherit; color: var(--c-text); outline: none; background: var(--c-surface);
}
.lbv2-comment-input:focus { border-color: #1a1a1a; }

/* ── RAIL DROIT : CLUBS + MEMBRES ────────────────────────── */
.lbv2-clubs { padding: 18px 18px 8px; }
.lbv2-club-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f4f4f4; cursor: pointer; }
.lbv2-club-avatar {
    width: 34px; height: 34px; border-radius: 50%; color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 13px; overflow: hidden;
}
.lbv2-club-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-club-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.lbv2-club-members { font-size: 11px; color: var(--c-text-muted); font-weight: 300; margin-top: 1px; }

.lbv2-members { padding: 18px 18px 14px; }
.lbv2-member-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #f4f4f4; }
.lbv2-member-avatar {
    width: 36px; height: 36px; border-radius: 50%; color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 14px; overflow: hidden; cursor: pointer;
}
.lbv2-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-member-body { flex: 1; min-width: 0; }
.lbv2-member-namerow { display: flex; align-items: center; gap: 6px; }
.lbv2-member-name { font-size: 13px; font-weight: 600; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-role-badge {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
    padding: 2px 6px; border-radius: 999px; white-space: nowrap;
}
.lbv2-member-loc { font-size: 11px; color: var(--c-text-muted); font-weight: 300; margin-top: 2px; }
.lbv2-follow-btn {
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
    padding: 7px 12px; border: 1px solid #1a1a1a; cursor: pointer;
    background: var(--c-surface); color: var(--c-text); font-family: inherit; white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.lbv2-follow-btn.following { background: #1a1a1a; color: #fff; }

/* ── BOTTOM-NAV iOS : voir le bloc #lbv2-bottom-nav (media ≤768px) en fin
   de fichier — l'élément n'a que l'id, pas de classe .lbv2-bottom-nav. ─── */
.lbv2-bn-btn span { font-size: 11px; font-weight: 700; letter-spacing: .04em; }

/* Skeleton (chargement) */
.lbv2-skel { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: lbv2shimmer 1.2s infinite; border-radius: 4px; }
@keyframes lbv2shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes wxfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wxfloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lbv2-balloon-float { animation: wxfloat 6s ease-in-out infinite; }
.lbv2-balloon-float2 { animation: wxfloat2 7s ease-in-out infinite; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .lbv2-grid { grid-template-columns: 260px 1fr; }
    .lbv2-dir-pilots-grid { grid-template-columns: repeat(2, 1fr); }
    .lbv2-dir-clubs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    /* minmax(0,1fr) : la colonne ne peut JAMAIS dépasser l'écran, même avec un
       enfant large (min-width:auto réactivé par .lbv2-right-col{overflow:visible}
       du fix sticky Mes vols → page Profil qui débordait à droite) */
    .lbv2-grid { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 80px; gap: 16px; }
    .lbv2-rail-left { order: 2; min-width: 0; max-width: 100%; }
    .lbv2-right-col { order: 1; min-width: 0; max-width: 100%; }
    .lbv2-main-tabs { top: 52px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lbv2-main-tabs .lbv2-main-tab { padding: 12px 14px 10px; font-size: 12.5px; }  /* 2 classes : bat .wx-subnav-tab */
    /* Mobile : pas d'offset d'alignement profil (colonne unique) ni de gros gap scroller */
    .lbv2-right-col { padding-top: 0; }
    .lbv2-main-content { margin-top: 10px; }
    /* ── Dimensions EXACTES de #live-topbar (Track), version claire :
       52px, padding 0 8px, vagues 22px + pill rouge .lt-ctx-pill (request user) */
    .lbv2-topbar {
        padding: env(safe-area-inset-top, 0px) 8px 0;
        height: calc(52px + env(safe-area-inset-top, 0px));
        background: var(--wx-bar-solid);
        border-bottom: 1px solid rgba(0, 0, 0, .1);
    }
    .lbv2-logo { gap: 0; }
    .lbv2-logo > svg { width: 22px; height: 22px; margin-left: 5px; }
    .lbv2-logo-chevron { display: none; }
    .lbv2-nav { display: flex; margin-left: 0; }
    .lbv2-nav .wx-sect-oval {
        padding: 3px 10px; margin-left: 5px; gap: 5px;
        background: #e53935; border: none; border-radius: 20px; color: #fff;
        font-family: 'Space Mono', monospace; font-size: .6875rem; font-weight: 700;
        letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
        box-shadow: 0 2px 6px rgba(229, 57, 53, .35);
    }
    .lbv2-nav .wx-sect-oval:hover { background: #e53935; filter: brightness(1.08); }
    .lbv2-nav .wx-sect-oval:active { transform: scale(.97); }
    .lbv2-logo-brand { display: none; }
    .lbv2-logo-brand-short { display: none; }
    .lbv2-logo-sectionname { display: none; }
    .lbv2-icon-btn svg { width: 18px; height: 18px; }
    .lbv2-logo { gap: 8px; }
    .lbv2-logo-chevron { font-size: 24px; color: var(--c-text-muted); }
    .lbv2-topbar-left { gap: 0; }
    /* Cards annuaire/clubs : 3 par ligne sur mobile (request user) */
    .lbv2-dir-pilots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    /* Vignettes clubs : 2 par ligne sur mobile (request user 2026-10-24) */
    .lbv2-dir-clubs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    /* Messagerie mobile façon Messenger : liste PLEINE hauteur d'abord, le chat
       remplace la liste au clic (classe lbv2-msg-chat-open), retour via ‹ */
    .lbv2-msg-layout { grid-template-columns: 1fr; flex: 1; min-height: 0; }
    .lbv2-msg-sidebar { display: block; max-height: none; overflow-y: auto; flex: 1; border-right: none; }
    .lbv2-msg-main { display: none; min-height: 0; }
    .lbv2-msg-layout.lbv2-msg-chat-open .lbv2-msg-sidebar { display: none; }
    .lbv2-msg-layout.lbv2-msg-chat-open .lbv2-msg-main { display: flex; flex: 1; }
    .lbv2-msg-chat-back { display: flex !important; }
    /* Plein écran bord à bord : annule paddings/gaps de la grid quand l'onglet
       Messages est actif (classe posée par setMainTab sur l'overlay) */
    #lbv2-overlay.lbv2-tab-messages .lbv2-grid { padding: 0; gap: 0; }
    #lbv2-overlay.lbv2-tab-messages .lbv2-rail-left { display: none; }
    #lbv2-overlay.lbv2-tab-messages .lbv2-msg-screen { min-height: 0; }
}
@media (max-width: 600px) {
    /* Annuaire liste mobile : avatar | nom+lieu+rôle (3 lignes) | actions.
       Le rôle passe en toutes lettres sous le lieu (request user) — la colonne
       badge disparaît ; le bouton suivre devient un picto toggle. */
    .lbv2-dir-list-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
    .lbv2-dir-list-extra { display: none; }
    .lbv2-dir-list-role { display: block; }
    .lbv2-dir-follow-btn .lbv2-fb-txt { display: none; }
    .lbv2-dir-follow-btn .lbv2-fb-ico { display: inline-flex; }
    .lbv2-dir-follow-btn { padding: 8px; border-radius: 50%; }
    .lbv2-dir-list-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lbv2-dir-list-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lbv2-dir-list-num, .lbv2-dir-list-date { display: none; }
}
@media (max-width: 540px) {
    /* Cards mobile : 3 par ligne, compactées pour tenir écran avec le padding */
    .lbv2-dir-pilots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    /* Vignettes clubs 2 par ligne compactées (~170 px de large) */
    .lbv2-cc-cover { aspect-ratio: 16 / 9; }
    .lbv2-cc-badges { top: 6px; left: 6px; }
    .lbv2-cc-logo { width: 40px; height: 40px; left: 10px; bottom: -18px; font-size: 13px; border-radius: 10px; }
    .lbv2-cc-body { padding: 24px 10px 10px; gap: 5px; }
    .lbv2-cc-name { font-size: 13px; }
    .lbv2-cc-meta { font-size: 11px; flex-direction: column; gap: 2px; }
    .lbv2-cc-desc { font-size: 11.5px; }
    .lbv2-cc-pres .lbv2-club-pres-av { width: 22px; height: 22px; font-size: 11px; }
    .lbv2-cc-pres-name { font-size: 11px; }
    .lbv2-cc-actions .lbv2-dir-join-btn { padding: 6px 10px; }
    /* Cartes pilotes compactées (3 par ligne) */
    .lbv2-dir-pilot-card { padding: 12px 6px; gap: 4px; }
    .lbv2-dir-pilot-av { width: 42px; height: 42px; font-size: 14px; }
    .lbv2-dir-pilot-name { font-size: 11.5px; overflow-wrap: break-word; max-width: 100%; }
    .lbv2-dir-pilot-loc { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .lbv2-dir-follow-btn { padding: 4px 9px; font-size: 11px; }
    .lbv2-dir-write-btn { padding: 4px 7px; }
}
@media (max-width: 480px) {
    .lbv2-flight-stats { padding: 14px; }
    .lbv2-fstat-v { font-size: 20px; }
    .lbv2-media, .lbv2-media-photo { height: 220px; }
}

/* ════════════════════════════════════════════════════════════
   ÉCRAN 2 — DÉTAIL / REPLAY
   ════════════════════════════════════════════════════════════ */
/* Fond transparent : le dégradé bleu de #lbv2-overlay sert de fond au replay (request user) */
/* Fond opaque (request user 2026-08-22) : en transparent, la zone sous le contenu
   laissait voir le fond bleu sombre de l'app (#0f172a) en bas de page. */
#lbv2-detail { display: none; background: var(--c-bg, #ffffff); flex: 1; overflow-y: auto; min-height: 0; flex-direction: column; }
.lbv2-detail-loading { padding: 60px 20px; text-align: center; color: var(--c-text-muted); font-size: 14px; }

/* Barre retour + actions */
.lbv2-detail-back {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 26px; border-bottom: 1px solid var(--c-border); background: var(--c-surface); flex-wrap: wrap; gap: 10px;
}
.lbv2-detail-back-left { display: flex; align-items: center; gap: 12px; }
.lbv2-detail-back-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lbv2-breadcrumb { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; }
.lbv2-detail-mob-title { display: none; }
/* Bloc intro mobile (titre / route + auteur·date) DANS la back-bar — mobile only */
.lbv2-detail-mob-intro { display: none; }
.lbv2-detail-meta-who, .lbv2-detail-meta-route { display: inline; }
.lbv2-btn-ghost {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--c-surface); border: 1px solid var(--c-border); padding: 8px 13px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
    color: var(--c-text); cursor: pointer; font-family: inherit; transition: background .2s ease;
}
.lbv2-btn-ghost:hover { background: var(--wx-surface-2); }
.lbv2-btn-icon-only { width: 36px; height: 36px; padding: 0 !important; min-width: 36px; justify-content: center; }
.lbv2-btn-dark {
    display: inline-flex; align-items: center; gap: 7px;
    background: #000; border: none; padding: 9px 15px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
    color: #fff; cursor: pointer; font-family: inherit; transition: opacity .2s ease;
}
.lbv2-btn-dark:hover { opacity: .85; }

/* Même gabarit que la grid du feed (max-width 1452 + padding 26) → largeur identique */
.lbv2-detail-body { padding: 24px 26px 60px; max-width: 1452px; margin: 0 auto; width: 100%; }

/* ── MODE INVITÉ (/vol/{id}) — vol public consultable SANS compte ─────────
   L'invité ne voit RIEN d'autre que le vol : nav, onglets, feed, actions
   (éditer/exporter/partager), likes et commentaires sont masqués.        */
#lbv2-overlay.lbv2-guest .lbv2-topbar,
#lbv2-overlay.lbv2-guest #lbv2-bottom-nav,
#lbv2-overlay.lbv2-guest .lbv2-grid { display: none !important; }
#lbv2-overlay.lbv2-guest .lbv2-detail-back-left > .lbv2-btn-ghost,  /* bouton Retour (pas de feed) */
#lbv2-overlay.lbv2-guest .lbv2-detail-back-right,                   /* Éditer / Exporter / Partager */
#lbv2-overlay.lbv2-guest .lbv2-detail-kudos,
#lbv2-overlay.lbv2-guest .lbv2-detail-cmt-card { display: none !important; }
#lbv2-overlay.lbv2-guest #lbv2-detail { padding-bottom: 74px; } /* place pour le bandeau CTA */
.lbv2-guest-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
    background: #0d1b2e; color: #fff; font-size: 13px;
}
.lbv2-guest-cta svg { flex-shrink: 0; }
.lbv2-guest-cta a {
    color: #fff; background: #2e6cf5; padding: 8px 16px; border-radius: 999px;
    font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap;
}
@media (max-width: 480px) { .lbv2-guest-cta { font-size: 12px; gap: 8px; } }

/* En-tête vol */
.lbv2-detail-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.lbv2-detail-avatar {
    width: 50px; height: 50px; border-radius: 50%; color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 19px; overflow: hidden;
}
.lbv2-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-detail-htext { flex: 1; min-width: 0; }
.lbv2-detail-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lbv2-detail-title { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 25px; color: var(--c-text); }
.lbv2-detail-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-text-muted); font-weight: 600; margin-top: 5px; }
.lbv2-detail-kudos {
    display: flex; align-items: center; gap: 7px; background: var(--c-surface); border: 1px solid var(--c-border);
    padding: 9px 14px; cursor: pointer; font-size: 13px; color: var(--c-text-muted); font-weight: 600; font-family: inherit;
    transition: border-color .2s ease;
}
.lbv2-detail-kudos:hover { border-color: #1a1a1a; }
.lbv2-detail-kudos.liked { color: #F94361; }
.lbv2-detail-kudos.liked svg { fill: #F94361; stroke: #F94361; }

/* Viewer 472px */
.lbv2-viewer {
    position: relative; height: 472px; overflow: hidden;
    border-radius: 12px; border: 1px solid var(--c-border); background: #0c1828;
    isolation: isolate; z-index: 0;
}
.lbv2-viewer-stage { position: absolute; inset: 0; }
.lbv2-viewer-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.lbv2-viewer-grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 22%, transparent 58%, rgba(0,0,0,.6) 100%); }
.lbv2-viewer.is-3d .lbv2-viewer-grad,
.lbv2-viewer.is-3d .lbv2-viewer-title { display: none; }  /* le POC a son propre chrome */
.lbv2-viewer-title { position: absolute; left: 22px; bottom: 78px; max-width: 60%; pointer-events: none; }
.lbv2-viewer-title-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.85); font-weight: 700; }
.lbv2-viewer-title-route { font-family: 'DM Sans', 'Inter', sans-serif; font-style: italic; font-size: 22px; color: #fff; margin-top: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.5); line-height: 1.15; }
.lbv2-viewer-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); font-size: 13px; }

/* Barre de lecture */
.lbv2-playbar {
    position: absolute; left: 50%; transform: translateX(-50%); right: auto; bottom: 18px; z-index: 2;
    width: 50%; min-width: 300px; max-width: 560px;
    display: flex; align-items: center; gap: 13px;
    background: rgba(10,14,22,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 8px;
}
.lbv2-play-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--c-surface); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lbv2-play-cur { font-size: 11px; color: rgba(255,255,255,.85); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.lbv2-play-dur { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.lbv2-scrub { flex: 1; height: 4px; background: rgba(255,255,255,.22); border-radius: 2px; position: relative; cursor: pointer; }
.lbv2-scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c-surface); border-radius: 2px; }
.lbv2-scrub-knob { position: absolute; left: 0; top: 50%; transform: translate(-50%,-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--c-surface); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.lbv2-play-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.lbv2-mode-toggle { display: flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lbv2-mode-btn { border: none; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: transparent; color: rgba(255,255,255,.7); font-family: inherit; }
.lbv2-mode-btn.active { background: var(--c-surface); color: var(--c-text); }

/* 2 colonnes sous le viewer */
.lbv2-detail-cols { display: grid; grid-template-columns: 1fr 332px; gap: 24px; margin-top: 24px; align-items: start; }
/* Desktop : colonnes INVERSÉES (request user) — résumé/waypoints/conditions à GAUCHE
   (332px), viewer/profil altitude/commentaires à DROITE. Mobile : ordre inchangé. */
@media (min-width: 900px) and (pointer: fine), (min-width: 1000px) and (pointer: coarse) {
    .lbv2-detail-cols { grid-template-columns: 332px minmax(0, 1fr); }
    .lbv2-detail-colR { order: -1; }
    /* Infos pilote/horaires à côté du Retour : mobile uniquement (doublon du header en desktop) */
    .lbv2-detail-back .lbv2-detail-mob-info { display: none !important; }
}
.lbv2-detail-colL { display: flex; flex-direction: column; gap: 24px; }
.lbv2-detail-colR { display: flex; flex-direction: column; gap: 18px; }
.lbv2-detail-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.lbv2-detail-sec-sub { font-size: 11px; color: var(--c-text-muted); font-weight: 300; }

/* Résumé du vol (grille 2×3) */
.lbv2-sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
/* Refonte 2026-08-22 (request user) : police simple (DM Sans) plus grosse et grasse
   au lieu du serif Playfair — les unités restent détachées en petit (.lbv2-unit). */
.lbv2-sum-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 26px; font-weight: 700; color: var(--c-text); line-height: 1; letter-spacing: -0.01em; }
.lbv2-sum-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; margin-top: 5px; }

/* Avertissement couverture GPS (brief 06 §2) */
.lbv2-coverage-warn { margin-top: 14px; padding: 9px 13px; border-radius: 8px; background: #fff8e1; border: 1px solid #ffe082; color: #7a5400; font-size: 12px; font-weight: 500; line-height: 1.4; }
body.dark-mode .lbv2-coverage-warn { background: #2a2010; border-color: #6b4f00; color: #f5c842; }

/* Conditions au décollage */
.lbv2-cond-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #f4f4f4; }
.lbv2-cond-row:first-of-type { margin-top: 8px; }
.lbv2-cond-lbl { font-size: 12px; color: var(--c-text-muted); font-weight: 300; }
.lbv2-cond-val { font-size: 13px; color: var(--c-text); font-weight: 600; }

/* Équipage & ballon */
.lbv2-crew-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lbv2-crew-stack { display: flex; }
.lbv2-crew-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 13px; border: 2px solid #fff; margin-left: -8px; }
.lbv2-crew-av:first-child { margin-left: 0; }
.lbv2-crew-note { font-size: 12px; color: var(--c-text-muted); font-weight: 300; }
.lbv2-balloon-card { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #f4f4f4; }
.lbv2-balloon-ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lbv2-balloon-cardname { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.lbv2-balloon-cardspec { font-size: 11px; color: var(--c-text-muted); font-weight: 300; margin-top: 1px; }

/* Onglets mobile (Résumé / Profil / Photos / WPTS) */
.lbv2-detail-mob-tabs { display: none; flex-shrink: 0; }
.lbv2-detail-tab { flex: 1; border: none; background: transparent; color: var(--c-text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 11px 4px; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; }
.lbv2-detail-tab.active { color: #370028; border-bottom-color: #370028; }

/* Labels de boutons masquables */
.lbv2-btn-lbl { margin-left: 4px; }

@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-detail-cols { grid-template-columns: 1fr; }
    .lbv2-detail-body { padding: 16px 14px 80px; }
    .lbv2-viewer { height: 300px; }
    .lbv2-viewer.lbv2-viewer-sm { height: 300px; }
    .lbv2-detail-back { padding: 10px 14px; gap: 6px; }
    .lbv2-detail-title { font-size: 19px; }

    /* 1 — Masquer breadcrumb */
    .lbv2-breadcrumb { display: none; }

    /* 2 — Boutons icônes-only (masquer texte) */
    .lbv2-btn-lbl { display: none; }
    .lbv2-detail-back-right { gap: 4px; }
    .lbv2-detail-back-right .lbv2-btn-ghost,
    .lbv2-detail-back-right .lbv2-btn-dark { padding: 7px 9px; min-width: 0; }

    /* 3 — Titre + sous-titre pleine largeur (masquer avatar) */
    .lbv2-detail-header .lbv2-detail-avatar { display: none; }
    .lbv2-detail-htext { flex: 1; }

    /* 5 — Masquer sélecteur de vitesse 3D dans la barre de lecture */
    .lbv2-speed-sel, .lbv2-play-sep.lbv2-3d-only { display: none; }

    /* 6 — Profil altitude : hauteur homogène avec le bloc mobile (courbe entière) */
    #lbv2-alt-chart { height: 160px !important; }
    #lbv2-detail .lbv2-card { overflow: hidden; }

    /* 7 — Onglets mobiles */
    .lbv2-detail-mob-tabs { display: flex; margin: 10px -14px 0; border-bottom: 1.5px solid var(--c-border); padding: 0 14px; }

    /* Par défaut : masquer colR et cards optionnelles de colL */
    #lbv2-detail .lbv2-detail-colL > .lbv2-card,
    #lbv2-detail #lbv2-photos-card,
    #lbv2-detail .lbv2-detail-colR { display: none; }

    /* Onglet Résumé → colR sauf waypoints */
    #lbv2-detail[data-dtab="resume"] .lbv2-detail-colR { display: flex; }
    #lbv2-detail[data-dtab="resume"] #lbv2-wpt-card { display: none; }

    /* Onglet Profil → carte altitude */
    #lbv2-detail[data-dtab="profil"] .lbv2-detail-colL > .lbv2-card:not(.lbv2-detail-cmt-card) { display: block; }

    /* Onglet Photos */
    #lbv2-detail[data-dtab="photos"] #lbv2-photos-card { display: block; }

    /* Onglet WPTS → colR mais seulement wpt-card */
    #lbv2-detail[data-dtab="wpts"] .lbv2-detail-colR { display: flex; }
    #lbv2-detail[data-dtab="wpts"] .lbv2-detail-colR > *:not(#lbv2-wpt-card) { display: none; }
}

/* ════════════════════════════════════════════════════════════
   ÉCRAN 3 — ÉDITION DU VOL & REPLAY
   ════════════════════════════════════════════════════════════ */
#lbv2-edit { display: none; background: var(--c-surface); flex: 1; overflow-y: auto; min-height: 0; }
.lbv2-edit-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 26px; border-bottom: 1px solid var(--c-border); background: var(--c-surface); gap: 12px; flex-wrap: wrap;
}
.lbv2-edit-bar-title { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--c-text-muted); font-weight: 700; }
.lbv2-edit-bar-actions { display: flex; align-items: center; gap: 10px; }
.lbv2-edit-grid { display: grid; grid-template-columns: 1fr 384px; gap: 26px; padding: 26px; align-items: start; max-width: 1452px; margin: 0 auto; }
.lbv2-edit-colL { display: flex; flex-direction: column; gap: 22px; }
.lbv2-edit-colR { display: flex; flex-direction: column; gap: 20px; }

.lbv2-field-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; display: block; margin-bottom: 7px; }
.lbv2-inp { width: 100%; border: 1px solid var(--c-border); background: var(--c-surface); padding: 12px 14px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--c-text); outline: none; box-sizing: border-box; }
.lbv2-inp:focus { border-color: #1a1a1a; }

/* Preview */
.lbv2-edit-preview { position: relative; height: 330px; overflow: hidden; border-radius: 12px; border: 1px solid var(--c-border); background: #0c1828; isolation: isolate; z-index: 0; }
.lbv2-edit-preview-stage { position: absolute; inset: 0; }
.lbv2-edit-preview-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.lbv2-edit-replay-badge { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 4px 9px; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-weight: 700; }
.lbv2-edit-config-btn { position: absolute; top: 14px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); border: none; padding: 7px 12px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--c-text); cursor: pointer; font-family: inherit; }
.lbv2-edit-preview-title { position: absolute; left: 18px; bottom: 18px; z-index: 2; font-family: 'DM Sans', 'Inter', sans-serif; font-style: italic; font-size: 20px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* Équipage */
.lbv2-eq-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.lbv2-eq-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--c-surface); border: 1px solid var(--c-border); padding: 6px 8px 6px 6px; font-size: 12.5px; color: var(--c-text); font-weight: 500; }
.lbv2-eq-av { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 11px; }
.lbv2-eq-x { color: var(--c-text-muted); font-size: 14px; cursor: pointer; }
.lbv2-eq-x:hover { color: #F94361; }
.lbv2-eq-add { display: inline-flex; align-items: center; gap: 5px; background: var(--c-surface); border: 1px dashed #cfcfcf; padding: 6px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); font-weight: 700; cursor: pointer; font-family: inherit; }
.lbv2-eq-add:hover { border-color: #1a1a1a; color: var(--c-text); }

/* Photos */
.lbv2-photos-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.lbv2-photo-slot { width: 78px; height: 78px; border: 1px dashed #cfcfcf; background: #fcfcfc; display: flex; align-items: center; justify-content: center; cursor: pointer; }
/* Miniature d'une photo déjà uploadée (éditeur de vol) */
.lbv2-photo-slot-filled { border: 1px solid var(--c-border); border-radius: 8px; }
.lbv2-photo-slot:hover { border-color: #1a1a1a; }

/* Ballon select */
.lbv2-balloon-select { position: relative; display: flex; align-items: center; gap: 11px; border: 1px solid var(--c-border); background: var(--c-surface); padding: 10px 14px; cursor: pointer; }
.lbv2-balloon-select-ic { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lbv2-balloon-select-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.lbv2-balloon-dropdown { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: 0 10px 28px rgba(0,0,0,.14); z-index: 30; max-height: 240px; overflow-y: auto; }
.lbv2-balloon-dd-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f4f4f4; }
.lbv2-balloon-dd-item:hover { background: #f6f7f8; }
.lbv2-balloon-dd-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--c-text); }
.lbv2-balloon-dd-empty { padding: 14px; color: var(--c-text-muted); font-size: 12px; }

.lbv2-edit-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
/* Éditeur : touch & go détectés, supprimables (request user 2026-10-14) */
.lbv2-e-tg-list { display: flex; flex-direction: column; gap: 6px; }
.lbv2-e-tg-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-surface); font-size: 13px; }
.lbv2-e-tg-pin { width: 18px; height: 18px; border-radius: 50%; background: #F94361; color: var(--c-accent-text, #0B0F1A); font: 700 11px/18px inherit; text-align: center; flex-shrink: 0; }
.lbv2-e-tg-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-e-tg-dur { color: var(--c-text-muted); font-size: 11.5px; }
.lbv2-e-tg-x { width: 24px; height: 24px; border: 1px solid var(--c-border); border-radius: 6px; background: transparent; color: #F94361; font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.lbv2-e-tg-x:hover { border-color: #F94361; background: rgba(249,67,97,.08); }
.lbv2-edit-2x2 .lbv2-field { margin: 0; }

/* Trim */
.lbv2-trim-card { background: #fcfcfc; border: 1px solid var(--c-border); border-radius: 10px; padding: 20px 22px; }
.lbv2-trim-track { position: relative; height: 64px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 6px; overflow: hidden; }
.lbv2-trim-terrain { position: absolute; inset: 0; background: linear-gradient(180deg, #fff 40%, #eef1ec 100%); }
.lbv2-trim-alt { position: absolute; inset: 0; }
.lbv2-trim-dim { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.66); z-index: 1; pointer-events: none; }
.lbv2-trim-dim-l { left: 0; }
.lbv2-trim-dim-r { right: 0; }
.lbv2-trim-sel { position: absolute; top: 0; bottom: 0; z-index: 2; background: rgba(0,122,255,.08); border-left: 3px solid #007AFF; border-right: 3px solid #007AFF; pointer-events: none; }
.lbv2-trim-handle { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 40px; background: #007AFF; border-radius: 3px; cursor: ew-resize; z-index: 3; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.lbv2-trim-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-text-muted); font-weight: 600; margin-top: 8px; }

/* Section localisation : pill Nom/UTM + champ mono + arrondi heure */
.lbv2-loc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lbv2-loc-toggle { display: inline-flex; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; }
.lbv2-locpill { padding: 4px 11px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--c-text-muted); background: var(--c-surface); border: none; cursor: pointer; font-family: inherit; }
.lbv2-locpill.on { background: #000; color: #fff; }
.lbv2-inp-mono { font-family: 'Space Mono', ui-monospace, monospace; font-size: 12.5px; }
.lbv2-inp[readonly] { background: var(--wx-surface-2); color: var(--c-text-muted); }
.lbv2-time-wrap { display: flex; gap: 6px; }
.lbv2-time-wrap .lbv2-inp { flex: 1; }
.lbv2-time-round { flex: 0 0 auto; width: 38px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lbv2-time-round:hover { border-color: #1a1a1a; color: var(--c-text); }

/* Picto ballon (image) */
.lbv2-balloon-select-ic { overflow: hidden; }
.lbv2-balloon-select-ic img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-balloon-dd-ic { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.lbv2-balloon-dd-ic img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-eq-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Modal équipage */
.lbv2-crew-results { max-height: 240px; overflow-y: auto; margin: 4px 0 4px; border: 1px solid var(--c-border); border-radius: 8px; }
.lbv2-crew-hint { padding: 14px; color: var(--c-text-muted); font-size: 12.5px; text-align: center; }
.lbv2-crew-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f4f4f4; }
.lbv2-crew-item:hover { background: #f6f7f8; }
.lbv2-crew-item .lbv2-eq-av { width: 32px; height: 32px; font-size: 12px; }
.lbv2-crew-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lbv2-crew-item-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.lbv2-crew-item-loc { font-size: 11px; color: var(--c-text-muted); }
.lbv2-crew-item-add { font-size: 18px; color: #007AFF; font-weight: 700; }
.lbv2-crew-divider { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; margin: 14px 0 10px; }
.lbv2-crew-newform .lbv2-inp { font-size: 13px; }

/* Segments */
.lbv2-seg-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.lbv2-seg-vis { gap: 8px; }
.lbv2-seg-vis .lbv2-seg-btn { flex: 1; padding: 10px 0; }
.lbv2-seg-btn { padding: 8px 13px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; cursor: pointer; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-muted); font-family: inherit; transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease; }
.lbv2-edit-hint { font-size: 11.5px; color: var(--c-text-muted); font-weight: 300; line-height: 1.5; margin: 9px 0 0; }
.lbv2-delete-link { background: none; border: none; text-align: left; padding: 8px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #F94361; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; }
.lbv2-delete-link:hover { opacity: .8; }

/* Config modal */
.lbv2-config-overlay { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lbv2-config-card { background: var(--c-surface); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); width: 460px; max-width: 100%; padding: 24px 26px; }
.lbv2-config-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lbv2-config-x { background: none; border: none; font-size: 24px; line-height: 1; color: var(--c-text-muted); cursor: pointer; padding: 0; }
.lbv2-config-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.lbv2-config-row.bt { border-top: 1px solid var(--c-border); }
.lbv2-config-lbl { font-size: 12px; color: var(--c-text-muted); font-weight: 300; }
.lbv2-toggle { width: 46px; height: 26px; border-radius: 999px; border: none; cursor: pointer; padding: 3px; display: flex; justify-content: flex-start; background: var(--wx-surface-2); }
.lbv2-toggle.on { justify-content: flex-end; background: #34C759; }
.lbv2-toggle-knob { width: 20px; height: 20px; border-radius: 50%; background: var(--c-surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); display: block; }

@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-edit-grid { grid-template-columns: 1fr; padding: 16px 14px 40px; gap: 18px; }
    .lbv2-edit-bar { padding: 12px 14px; }
}

/* Onglet "Carnet" à droite des onglets du Fil */
.lbv2-feed-tab-carnet { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

/* ════════════════════════════════════════════════════════════
   ÉCRAN 4 — MES VOLS (vue liste / carnet)
   ════════════════════════════════════════════════════════════ */
#lbv2-mylist { display: none; min-height: calc(100vh - 72px); }
.lbv2-ml-body { padding: 22px 26px 60px; max-width: 1452px; margin: 0 auto; }
.lbv2-ml-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
/* Bandeau stats Mes vols : même design que les stats de la page News (request user)
   — police Playfair + séparateurs verticaux + unités en plus petit. */
.lbv2-ml-stats { display: flex; align-items: flex-end; gap: 0; }
.lbv2-ml-stats .lbv2-ml-stat { padding: 0 26px; text-align: center; }
.lbv2-ml-stats .lbv2-ml-stat:first-child { padding-left: 0; text-align: left; }
.lbv2-ml-stats .lbv2-ml-stat + .lbv2-ml-stat { border-left: 1px solid var(--c-border); }
/* Harmonisé (request user 2026-08-22) : DM Sans grasse comme feed/résumé détail */
.lbv2-ml-stats .lbv2-ml-stat-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 30px; font-weight: 700; color: var(--c-text); line-height: 1; letter-spacing: -0.01em; }
/* Stats des cartes de vol Mes vols (statBlock) — même famille */
.lbv2-ml-stat-v { font-family: 'DM Sans', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.lbv2-ml-stats .lbv2-ml-stat-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; margin-top: 5px; }
.lbv2-ml-bstat-unit { font-size: 14px; font-weight: 400; color: var(--c-text-muted); margin-left: 2px; }
.lbv2-ml-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; overflow: visible; }
.lbv2-ml-actions .lbv2-btn-icon-only { border-radius: 50%; background: var(--c-surface); border: 1.5px solid var(--c-border); color: var(--c-text); }
.lbv2-ml-actions .lbv2-btn-icon-only:hover { background: var(--wx-surface-2); border-color: #bbb; }
.lbv2-ml-viewswitch { display: flex; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; margin-left: 4px; }
.lbv2-ml-vbtn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--c-text-muted); cursor: pointer; border: none; border-right: 1px solid var(--c-border); background: var(--c-surface); font-family: inherit; }
.lbv2-ml-vbtn:last-child { border-right: none; }
.lbv2-ml-vbtn.active { color: #fff; background: #000; }
.lbv2-ml-trash-badge { background: #F94361; color: var(--c-accent-text, #0B0F1A); font-size: 11px; padding: 1px 6px; border-radius: 999px; }
.lbv2-ml-class { display: flex; gap: 26px; font-size: 12px; color: var(--c-text-muted); font-weight: 300; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); flex-wrap: wrap; }
.lbv2-ml-class strong { color: var(--c-text); font-weight: 700; }

.lbv2-ml-grid { display: grid; grid-template-columns: 1fr 252px; gap: 24px; margin-top: 18px; align-items: start; }
.lbv2-ml-table { min-width: 0; overflow: visible; }   /* la barre récap y est sticky : pas d'overflow */
.lbv2-ml-thead { display: none; }
.lbv2-ml-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 18px 22px 16px; background: var(--c-surface); border-radius: 10px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.lbv2-ml-row:hover { background: var(--wx-surface-2); }
.lbv2-ml-row-top { display: flex; gap: 10px; align-items: stretch; }
.lbv2-ml-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; flex-shrink: 0; background: var(--c-surface); border: 1.5px solid #1a1a1a; border-radius: 8px; padding: 5px 4px; }
.lbv2-ml-dd { font-size: 17px; font-weight: 700; color: var(--c-text); line-height: 1; }
.lbv2-ml-mm { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); font-weight: 700; margin-top: 2px; }
.lbv2-ml-yy { font-size: 11px; color: var(--c-text-muted); font-weight: 400; margin-top: 1px; }
.lbv2-ml-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lbv2-ml-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lbv2-ml-routes { flex: 1; min-width: 0; }
/* Design email onboarding (request user 2026-09-10) : HEURE en gras sombre
   (DM Sans, tabular), « · », puis ville en graisse moyenne atténuée. */
.lbv2-ml-routerow { display: inline-flex; gap: 7px; align-items: baseline; margin-right: 18px; }
.lbv2-ml-rtime { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; flex-shrink: 0; line-height: 1.7; }
.lbv2-ml-rcity { font-size: 14px; font-weight: 500; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.7; }
.lbv2-ml-rcity::before { content: '· '; color: var(--c-text-muted); font-weight: 400; }
.lbv2-ml-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); font-weight: 600; margin-top: 3px; }
/* Stats de ligne : MÊME style que les cartes du Feed (.lbv2-fstat-v — request user
   2026-08-23) : DM Sans grasse 23px (20px mobile), unités détachées en petit.
   NB : cette règle écrasait l'harmonisation 2026-08-22 en Playfair serif (elle
   arrivait après la règle DM Sans de même spécificité). */
.lbv2-ml-statrow { display: flex; gap: 0; border-top: 1px solid #f4f4f4; margin-top: 10px; padding-top: 10px; }
.lbv2-ml-stat { flex: 1; text-align: center; }
.lbv2-ml-statrow .lbv2-ml-stat + .lbv2-ml-stat { border-left: 1px solid var(--c-border); }
.lbv2-ml-stat-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 23px; font-weight: 700; color: var(--c-text); line-height: 1; letter-spacing: -0.01em; }
@media (max-width: 480px) {
    .lbv2-ml-statrow .lbv2-ml-stat-v { font-size: 20px; }
}
.lbv2-ml-stat-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; margin-top: 6px; }
/* CTA Éditer/Supprimer EMPILÉS en haut à droite (request user) ; immat calée à
   gauche au-dessus du bloc déco/atterrissage (.lbv2-ml-immat-row). */
.lbv2-ml-rowact { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
/* CTA en bas du bloc, alignés sur la ligne des stats (hauteur constante d'un vol à l'autre) — request user 2026-10-14 */
.lbv2-ml-rightcol { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 6px; flex-shrink: 0; grid-column: 2; grid-row: 1 / span 2; align-self: end; padding-bottom: 2px; }   /* empilés, en bas (request user 2026-10-14) */
.lbv2-ml-row-top, .lbv2-ml-statrow, .lbv2-ml-notrace { grid-column: 1; min-width: 0; }
.lbv2-ml-notrace { font-size: 12px; font-style: italic; color: var(--c-text-muted); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--c-border); }
.lbv2-ml-immat-row { margin-bottom: 5px; }
.lbv2-ml-dateline { display: none; font-size: 12px; font-weight: 600; color: var(--c-text-muted); margin: 0 0 4px; }
.lbv2-ml-month { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--c-text-muted); margin: 16px 0 8px; }
.lbv2-ml-month:first-child { margin-top: 0; }
.lbv2-ml-month-n { font-weight: 500; letter-spacing: .06em; opacity: .75; }
.lbv2-ml-month-n::before { content: ' · '; }
/* Chip immat teinté par ballon (--imm-h posé inline, cf. immatPill) : pastel clair / sombre profond */
.lbv2-ml-immat-pill[style*="--imm-h"] { background: hsl(var(--imm-h) 65% 90%); color: hsl(var(--imm-h) 50% 30%); }
html.dark .lbv2-ml-immat-pill[style*="--imm-h"] { background: hsl(var(--imm-h) 40% 24%); color: hsl(var(--imm-h) 70% 80%); }
.lbv2-ml-stat-unit { font-size: 12px; font-weight: 400; color: var(--c-text-muted); margin-left: 2px; }
.lbv2-ml-act { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lbv2-ml-act:hover { border-color: #1a1a1a; }
.lbv2-ml-act.danger { border-color: transparent; background: transparent; }
.lbv2-ml-act.danger:hover { border-color: #F94361; background: var(--c-surface); }
/* Anciennes classes préservées pour rowCardHtml */
.lbv2-ml-trace { width: 70px; height: 44px; background: #f4f6f3; border: 1px solid var(--c-border); border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lbv2-ml-trace svg { width: 100%; height: 100%; display: block; }
.lbv2-ml-trace-empty { font-size: 18px; opacity: .5; }
.lbv2-ml-val { font-size: 13px; font-weight: 600; color: var(--c-text); }
.lbv2-ml-vis { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid; }

/* Vue Carte (tous les vols) */
.lbv2-ml-map { height: min(620px, calc(100vh - 220px)); min-height: 360px; border-radius: 10px; overflow: hidden; border: 1px solid var(--c-border); isolation: isolate; z-index: 0; }

/* Tri colonnes */
.lbv2-ml-th.sortable { cursor: pointer; user-select: none; }
.lbv2-ml-th.sortable:hover { color: var(--c-text); }
.lbv2-ml-th.active { color: var(--c-text); }

/* Cartes-lignes (mobile) — cachées en desktop */
.lbv2-ml-cards { display: none; flex-direction: column; gap: 10px; }
.lbv2-mlc { border: 1px solid var(--c-border); border-radius: 10px; padding: 12px; background: var(--c-surface); cursor: pointer; }
.lbv2-mlc:active { background: #fcfcfc; }
/* Cards harmonisées avec la liste (request user) : routes 2 lignes + statrow News
   + colonne droite (vis/immat/CTA empilés) */
.lbv2-mlc-top { display: flex; align-items: flex-start; gap: 10px; }
.lbv2-mlc-trace { width: 54px; height: 36px; background: #f4f6f3; border: 1px solid var(--c-border); border-radius: 5px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.lbv2-mlc-trace svg { width: 100%; height: 100%; }
.lbv2-mlc-info { flex: 1; min-width: 0; }

.lbv2-ml-filters { border: 1px solid var(--c-border); border-radius: 10px; padding: 18px 18px 20px; background: #fcfcfc; }
/* Desktop : bloc filtres remonté au niveau de la barre récap (il est dans la même grille) et COLLANT
   au défilement de .lbv2-main-content ; défilement interne s'il dépasse la hauteur visible. */
@media (min-width: 900px) and (pointer: fine), (min-width: 1000px) and (pointer: coarse) {
    .lbv2-ml-filters { position: sticky; top: 0; max-height: calc(100vh - 150px); overflow-y: auto; }
    .lbv2-ml-stats .lbv2-ml-stat-v { white-space: nowrap; }   /* colonne plus étroite : « 121,5 h » ne se coupe pas */
    .lbv2-ml-stats .lbv2-ml-stat { padding: 0 18px; }
    .lbv2-ml-grid { margin-top: 0; }
}
.lbv2-fgroup { margin-top: 16px; }
.lbv2-fgroup-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; margin-bottom: 9px; }
.lbv2-fpills { display: flex; flex-wrap: wrap; gap: 6px; }
.lbv2-fpill { padding: 6px 11px; border: 1px solid var(--c-border); border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); font-weight: 700; cursor: pointer; background: var(--c-surface); }
.lbv2-fpill:hover { border-color: #1a1a1a; color: var(--c-text); }
.lbv2-fpill.active { background: #000; color: #fff; border-color: #000; }
.lbv2-fclear { margin-top: 16px; background: none; border: none; color: #F94361; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; font-family: inherit; padding: 0; }

.lbv2-ml-headrow { min-width: 0; }   /* en-tête de ligne Mes vols : date + immat */
/* Mes vols (desktop ET mobile, request user 2026-10-14) : date en texte à gauche, chip immat collé à droite ;
   le carré jour/mois/année est masqué. La fiche ballon « Vols récents » garde le carré (hors #lbv2-mylist). */
#lbv2-mylist .lbv2-ml-row .lbv2-ml-date { display: none; }
#lbv2-mylist .lbv2-ml-row .lbv2-ml-dateline { display: block; color: var(--c-text); font-size: 16px; font-family: 'DM Sans', 'Inter', sans-serif; margin: 0; min-width: 0; }
.lbv2-ml-title { font-weight: 400; color: var(--c-text-muted); font-size: 14px; }
.lbv2-ml-title::before { content: ' · '; }
/* Desktop : date + titre sur une ligne tronquée ; mobile : titre sur sa propre ligne (sinon il se replie derrière la date) */
#lbv2-mylist .lbv2-ml-row .lbv2-ml-dateline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    #lbv2-mylist .lbv2-ml-row .lbv2-ml-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; margin-top: 1px; }
    #lbv2-mylist .lbv2-ml-row .lbv2-ml-title::before { content: none; }
}
.lbv2-ml-kind-pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 3px 8px; white-space: nowrap; line-height: 1.2;
    background: hsl(var(--kind-h) 60% 92%); color: hsl(var(--kind-h) 45% 32%); }
html.dark .lbv2-ml-kind-pill { background: hsl(var(--kind-h) 35% 24%); color: hsl(var(--kind-h) 65% 80%); }
.lbv2-ml-kind-pill[style*="--kind-h:0"] { background: #ececef; color: #555; }   /* Contrôle / Autre : neutre */
#lbv2-mylist .lbv2-ml-row .lbv2-ml-headrow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
#lbv2-mylist .lbv2-ml-row .lbv2-ml-immat-row { margin: 0 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
#lbv2-mylist .lbv2-ml-row .lbv2-ml-headrow { align-items: flex-start; }
/* Décollage / atterrissage sur deux lignes, micro-picto gris devant (request user 2026-10-14) */
#lbv2-mylist .lbv2-ml-row .lbv2-ml-routerow { display: flex; align-items: baseline; gap: 7px; margin-right: 0; min-width: 0; }
#lbv2-mylist .lbv2-ml-row .lbv2-ml-ric { display: inline-flex; align-self: center; color: var(--c-text-muted); opacity: .8; flex-shrink: 0; width: 11px; height: 11px; }
#lbv2-mylist .lbv2-ml-row .lbv2-ml-rcity { overflow: hidden; text-overflow: ellipsis; }
/* Touch & go (request user 2026-10-14) : ligne intermédiaire + étiquette discrète */
#lbv2-mylist .lbv2-ml-row .lbv2-ml-tg-tag { flex-shrink: 0; margin-left: 2px; padding: 1px 5px; border-radius: 4px; background: rgba(249,67,97,.10); color: #F94361; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; line-height: 1.3; align-self: center; }
body.dark-mode #lbv2-mylist .lbv2-ml-row .lbv2-ml-tg-tag { background: rgba(249,67,97,.18); }
/* Photos uploadées : badge rouge picto + nombre, en haut de la colonne de droite (request user 2026-10-14) */
/* Badge rouge en HAUT de la colonne (margin-bottom:auto pousse les CTA en bas) — request user 2026-10-14 */
/* Conteneur des badges (photos + waypoints) : empilés, en haut ; margin-bottom:auto pousse les CTA en bas */
.lbv2-ml-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-bottom: auto; }
.lbv2-ml-photos, .lbv2-ml-wpts { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lbv2-ml-photos { background: #F94361; color: var(--c-accent-text, #0B0F1A); cursor: pointer; }
/* Vol sans photo (2026-10-15) : badge discret « + » qui ouvre directement l'upload */
.lbv2-ml-photos.lbv2-ml-photos-empty { background: rgba(127,127,127,.18); color: var(--c-text-muted, #777); }
.lbv2-ml-photos:active { transform: scale(.94); }
.lbv2-ml-wpts { background: #e6ebf2; color: #3a4a63; }   /* petit bloc WPTS, teinte des bandeaux mois (request user 2026-10-14) */
body.dark-mode .lbv2-ml-wpts { background: rgba(255,255,255,.12); color: #d6dde8; }
.lbv2-ml-photos svg, .lbv2-ml-wpts svg { flex-shrink: 0; }
.lbv2-ml-rightcol { align-self: stretch; }
#lbv2-mylist .lbv2-ml-row .lbv2-ml-immat-pill { line-height: 1.2; }
/* Desktop : barre récap COLLANTE en haut de la colonne, bandeaux de mois collés juste dessous
   (top = hauteur réelle de la barre, mesurée par _mlSyncBarH) */
@media (min-width: 900px) and (pointer: fine), (min-width: 1000px) and (pointer: coarse) {
    #lbv2-mylist .lbv2-ml-bar { position: sticky; top: 0; z-index: 5; }
    #lbv2-mylist .lbv2-ml-month { position: sticky; top: var(--lbv2-ml-bar-h, 70px); z-index: 4; margin: 0 0 8px; padding: 7px 14px; background: #e6ebf2; border-radius: 8px; }
    html.dark #lbv2-mylist .lbv2-ml-month { background: #1f2b40; }
}
/* Titre + immat pill en haut de chaque bloc de vol */
.lbv2-ml-immat-pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); background: #f0f0f0; border-radius: 999px; padding: 3px 8px; flex-shrink: 0; white-space: nowrap; }

@media (max-width: 1000px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-ml-grid { grid-template-columns: 1fr; }
    .lbv2-ml-filters { order: -1; }
    .lbv2-ml-body { padding: 0 8px 96px; }
    /* Barre stats — sans voile blanc translucide (request user) : le bloc garde
       son contenu et ses dimensions, posé directement sur le dégradé. Plus de
       sticky (transparent + sticky = texte illisible au scroll). */
    .lbv2-ml-bar {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin: 0 -8px;
        padding: 10px 8px 10px;
    }
    .lbv2-ml-stats { opacity: 0.8; }
    .lbv2-ml-stats .lbv2-ml-stat-v { font-size: 26px; }
    .lbv2-ml-bstat-unit { font-size: 13px; }
    /* Boutons Filtres + Import/Export sur la MÊME ligne que les stats (request user) */
    .lbv2-ml-bar { flex-wrap: nowrap; align-items: center; }
    .lbv2-ml-stats { flex: 1; min-width: 0; }
    .lbv2-ml-stats .lbv2-ml-stat { padding: 0 14px; }
    .lbv2-ml-stats .lbv2-ml-stat:first-child { padding-left: 0; }
    .lbv2-ml-actions { flex-shrink: 0; }
}
@media (max-width: 700px) {
    .lbv2-ml-table { overflow: visible; }
    .lbv2-ml-bar { gap: 10px; }
    .lbv2-ml-stats .lbv2-ml-stat { padding: 0 10px; }
    .lbv2-ml-stats .lbv2-ml-stat-v { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════
   ÉCRAN 5 — PROFIL PILOTE
   ════════════════════════════════════════════════════════════ */
#lbv2-profile { display: none; background: var(--c-surface); min-height: calc(100vh - 72px); }
.lbv2-pf-subhead { display: flex; align-items: center; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--c-border); }
.lbv2-pf-back { font-size: 20px; color: var(--c-text); cursor: pointer; }
.lbv2-pf-subhead-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--c-text-muted); font-weight: 700; }
.lbv2-pf-subhead-name { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 18px; color: var(--c-text); margin-top: 1px; }
.lbv2-pf-col { max-width: 760px; margin: 0 auto; padding: 34px 24px 60px; }

.lbv2-pf-identity { display: flex; gap: 26px; align-items: flex-start; }
.lbv2-pf-avatar { width: 104px; height: 104px; border-radius: 50%; background: #efe6ec; border: 3px solid #370028; color: #370028; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 40px; flex-shrink: 0; overflow: hidden; }
.lbv2-pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-pf-idtext { flex: 1; min-width: 0; }
.lbv2-pf-name { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 34px; color: var(--c-text); line-height: 1.05; }
.lbv2-pf-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-text-muted); font-weight: 300; margin-top: 6px; }
.lbv2-pf-handle { font-family: 'Space Mono', ui-monospace, monospace; font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }
.lbv2-pf-follow { display: flex; gap: 34px; margin-top: 18px; }
.lbv2-pf-follow-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 24px; color: var(--c-text); }
.lbv2-pf-follow-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; margin-top: 3px; }

.lbv2-pf-bio { font-size: 15px; color: var(--c-text); font-weight: 400; }
.lbv2-pf-hours { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-text-muted); font-weight: 300; margin-top: 10px; }
.lbv2-pf-hours strong { color: #370028; font-weight: 700; }
.lbv2-pf-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lbv2-pf-cert { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid; }

.lbv2-pf-sec { display: flex; align-items: center; gap: 8px; margin: 34px 0 16px; }
.lbv2-pf-sec span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--c-text); font-weight: 700; }
.lbv2-pf-stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lbv2-pf-stat-k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; }
.lbv2-pf-stat-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 28px; color: var(--c-text); margin-top: 6px; }
/* Mobile : tout tient dans l'écran (request user) — valeurs compactées, colonnes
   qui ne débordent plus, marge basse pour la bottom nav */
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-pf-col { padding: 22px 14px 90px; }
    .lbv2-pf-stats3 { gap: 10px; }
    .lbv2-pf-stat-v { font-size: 20px; white-space: nowrap; }
    .lbv2-pf-name { font-size: 25px; overflow-wrap: break-word; }
    .lbv2-pf-identity { gap: 16px; }
    .lbv2-pf-avatar { width: 84px; height: 84px; font-size: 32px; }
    .lbv2-pf-follow { gap: 24px; }
    .lbv2-pf-follow-v { font-size: 20px; }
}
.lbv2-pf-h3 { font-size: 13px; font-weight: 600; color: var(--c-text); margin: 32px 0 14px; }

.lbv2-pf-heat { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.lbv2-pf-heatbar { flex: 1; background: #1a1a1a; border-radius: 1px; min-height: 4px; }
.lbv2-pf-heat-lbls { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-text-muted); font-weight: 600; margin-top: 6px; }

.lbv2-pf-months { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.lbv2-pf-monthcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.lbv2-pf-monthbar { width: 100%; max-width: 34px; background: #1a1a1a; border-radius: 2px 2px 0 0; }
.lbv2-pf-monthm { font-size: 11px; color: var(--c-text-muted); font-weight: 700; }
.lbv2-pf-monthv { font-size: 11px; color: var(--c-text); font-weight: 600; }

.lbv2-pf-secrow { display: flex; align-items: center; justify-content: space-between; margin: 38px 0 16px; }
.lbv2-pf-secrow-t { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 20px; color: var(--c-text); }
.lbv2-pf-secrow-t span { font-size: 13px; color: var(--c-text-muted); font-family: 'Inter', sans-serif; }
.lbv2-pf-count { font-size: 13px; color: var(--c-text-muted); }

.lbv2-pf-balloons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lbv2-pf-balloon { border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; background: var(--c-surface); }
.lbv2-pf-balloon-hero { height: 150px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.lbv2-pf-balloon-body { padding: 12px 13px 14px; }
.lbv2-pf-balloon-name { font-size: 13.5px; font-weight: 700; color: var(--c-text); line-height: 1.2; }
.lbv2-pf-balloon-immat { font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; color: var(--c-text-muted); margin-top: 5px; letter-spacing: .04em; }
.lbv2-pf-balloon-spec { font-size: 11px; color: var(--c-text-muted); font-weight: 300; margin-top: 6px; line-height: 1.4; }

.lbv2-pf-clubs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.lbv2-pf-club { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.lbv2-pf-club-tile { width: 100%; aspect-ratio: 1; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 18px; overflow: hidden; }
/* Logo en absolute : un img à grande taille intrinsèque pouvait étirer la tuile
   au-delà de son aspect-ratio → tuiles de tailles inégales (bug user 2026-08-24) */
.lbv2-pf-club-tile { position: relative; }
.lbv2-pf-club-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lbv2-pf-club-name { font-size: 11px; color: var(--c-text-muted); font-weight: 600; text-align: center; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.lbv2-pf-act { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--c-border); cursor: pointer; }
.lbv2-pf-act-date { width: 36px; text-align: center; flex-shrink: 0; }
.lbv2-pf-act-dd { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 18px; color: var(--c-text); line-height: 1; }
.lbv2-pf-act-mm { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 700; margin-top: 2px; }
.lbv2-pf-act-body { flex: 1; min-width: 0; }
.lbv2-pf-act-title { font-size: 14.5px; font-weight: 600; color: var(--c-text); }
.lbv2-pf-act-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.lbv2-pf-act-vis { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.lbv2-pf-act-metatxt { font-size: 12px; color: var(--c-text-muted); font-weight: 300; }
.lbv2-pf-empty { color: var(--c-text-muted); font-size: 13px; padding: 10px 0; }

@media (max-width: 600px) {
    .lbv2-pf-clubs { grid-template-columns: repeat(4, 1fr); }
    .lbv2-pf-balloons { grid-template-columns: repeat(2, 1fr); }
    .lbv2-pf-name { font-size: 28px; }
    .lbv2-pf-avatar { width: 84px; height: 84px; font-size: 32px; }
    .lbv2-pf-col { padding: 24px 16px 96px; }
}

/* ── Résumé : en-tête + bouton éditer · Waypoints · crew cliquable ── */
.lbv2-sum-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lbv2-sum-edit { width: 28px; height: 28px; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lbv2-sum-edit:hover { border-color: #1a1a1a; }
.lbv2-wpt-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f4f4f4; }
.lbv2-wpt-row:first-of-type { border-top: none; }
.lbv2-wpt-idx { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: #007AFF; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lbv2-wpt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lbv2-wpt-name { font-size: 13px; font-weight: 600; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-wpt-dists { font-size: 11px; color: var(--c-text-muted); }
.lbv2-wpt-dists b { color: var(--c-text-muted); font-weight: 600; }
.lbv2-wpt-meta { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; }
.lbv2-wpt-meta b { color: var(--c-text); font-weight: 600; }
.lbv2-wpt-toggle-edit { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 7px; width: 28px; height: 28px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-muted); flex-shrink: 0; }
.lbv2-wpt-toggle-edit:hover, .lbv2-wpt-toggle-edit.is-active { background: #370028; border-color: #370028; color: #fff; }
.lbv2-wpt-row-edit { align-items: flex-start; }
.lbv2-wpt-rename { font-size: 13px; font-weight: 600; border: 1px solid var(--c-border); border-radius: 6px; padding: 3px 8px; width: 100%; box-sizing: border-box; outline: none; font-family: inherit; }
.lbv2-wpt-rename:focus { border-color: #370028; }
.lbv2-wpt-edit-btns { display: flex; gap: 4px; flex-shrink: 0; margin-top: 1px; }
.lbv2-wpt-ok, .lbv2-wpt-del { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lbv2-wpt-ok { color: #34C759; }
.lbv2-wpt-ok:hover { background: #34C759; color: #fff; border-color: #34C759; }
.lbv2-wpt-del { color: #FF3B30; }
.lbv2-wpt-del:hover { background: #FF3B30; color: #fff; border-color: #FF3B30; }
.lbv2-wpt-add-btn { display: block; width: 100%; margin-top: 10px; padding: 9px 12px; border: 1.5px dashed #c8d0da; background: transparent; border-radius: 8px; font-size: 12px; font-weight: 600; color: #370028; cursor: pointer; text-align: center; box-sizing: border-box; }
.lbv2-wpt-add-btn:hover { background: rgba(55,0,40,.05); }
.lbv2-utm-form { display: flex; flex-direction: column; gap: 10px; }
.lbv2-utm-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--c-text-muted); }
.lbv2-utm-label input { font-size: 14px; border: 1px solid var(--c-border); border-radius: 7px; padding: 8px 10px; outline: none; font-family: inherit; background: var(--c-surface); }
.lbv2-utm-label input:focus { border-color: #370028; }
.lbv2-wpt-pin-in { width: 22px; height: 22px; border-radius: 50%; background: #007AFF; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.lbv2-crew-av { cursor: default; }

/* Bouton "Charger Open-Meteo" (conditions) */
.lbv2-cond-load { display: inline-flex; align-items: center; gap: 6px; background: var(--c-surface); border: 1px solid var(--c-border); padding: 6px 11px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--c-text-muted); cursor: pointer; border-radius: 6px; font-family: inherit; }
.lbv2-cond-load:hover { border-color: #1a1a1a; color: var(--c-text); }

/* Modal export — choix de format */
.lbv2-export-fmt { flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 16px 10px; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 8px; cursor: pointer; font-family: inherit; }
.lbv2-export-fmt:hover { border-color: #1a1a1a; }
.lbv2-export-fmt strong { font-size: 16px; color: var(--c-text); }
.lbv2-export-fmt span { font-size: 11px; color: var(--c-text-muted); text-align: center; }

/* Galerie photos */
.lbv2-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lbv2-photo-thumb { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 8px; cursor: pointer; background-color: #eee; }
.lbv2-photo-thumb:hover { opacity: .9; }
#lbv2-photo-lightbox { display: none; position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,.85); align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
#lbv2-photo-lightbox img { max-width: 92%; max-height: 92%; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.lbv2-lb-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; }

/* ── Détail v2 : viewer taille éditeur + colonne droite alignée haut ── */
.lbv2-viewer-sm { height: 330px; }
.lbv2-media-fullbtn { z-index: 3; }
.lbv2-alt-reset { width: 26px; height: 26px; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 6px; color: var(--c-text-muted); cursor: pointer; display: none; align-items: center; justify-content: center; }
.lbv2-alt-reset.show { display: inline-flex; }
/* Survol trace / touch & go (request user 2026-10-14) : infobulle sombre + pastille T */
.leaflet-tooltip.lbv2-trace-tip { background: #1a1a1a; color: #fff; border: 0; border-radius: 6px; padding: 5px 8px; font-size: 11px; line-height: 1.35; box-shadow: 0 2px 8px rgba(0,0,0,.3); white-space: nowrap; }
.leaflet-tooltip.lbv2-trace-tip::before { border-top-color: #1a1a1a; }
.lbv2-tg-divicon { background: transparent; border: 0; }
/* Pictos déco / atterro de la carte du détail (request user 2026-10-27) */
.lbv2-endpin-icon { background: transparent; border: 0; }
.lbv2-endpin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.lbv2-endpin-tk { background: #1F9D55; }
.lbv2-endpin-ld { background: #E8572A; }
.lbv2-tg-pin { width: 22px; height: 22px; border-radius: 50%; background: #F94361; color: var(--c-accent-text, #0B0F1A); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); font: 700 11px/18px 'DM Sans', sans-serif; text-align: center; }
.lbv2-alt-reset:hover { border-color: #1a1a1a; color: var(--c-text); }
.lbv2-balloon-ic { overflow: hidden; }
.lbv2-balloon-ic img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-crew-av { overflow: hidden; }
.lbv2-crew-av img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-pilot-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.lbv2-pilot-av { width: 40px; height: 40px; border-radius: 50%; color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 16px; overflow: hidden; }
.lbv2-pilot-av img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-pilot-name { font-size: 14px; font-weight: 600; color: var(--c-text); }
.lbv2-pilot-role { font-size: 11px; color: var(--c-text-muted); }

/* ── Feed : carte cliquable ── */
.lbv2-flight-clickable { cursor: pointer; }
.lbv2-card-more-wrap { margin-left: auto; }

/* ── Carnet : switch de vue dans la colonne droite ── */
.lbv2-ml-viewlabel { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; margin-bottom: 9px; }
.lbv2-ml-viewswitch-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: none; border-radius: 0; overflow: visible; margin: 0 0 18px; }
.lbv2-ml-viewswitch-col .lbv2-ml-vbtn { border: 1px solid var(--c-border); border-radius: 8px; justify-content: center; }
.lbv2-ml-viewswitch-col .lbv2-ml-vbtn.active { background: #000; color: #fff; border-color: #000; }

/* ── Barre de lecture : bloc INDÉPENDANT sous le viewer (plus collée à la map) ── */
.lbv2-detail-viewer-bar { display: flex; flex-direction: column; position: relative; }
.lbv2-playbar-ext {
    position: static; transform: none; left: auto; right: auto; bottom: auto;
    width: 100%; min-width: 0; max-width: none; margin-top: 14px;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 14px;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* Plein écran : le wrapper (viewer + playbar) passe en fullscreen → la playbar
   reste utilisable, en overlay flottant en bas du viewer.
   /!\ !important + aspect-ratio:auto OBLIGATOIRES : les règles mobiles imposent
   `height:auto !important; aspect-ratio:4/3; max-height:46vh` qui gagnaient sinon
   (bug « carte en haut, reste noir » en plein écran — request user 2026-08-01). */
.lbv2-detail-viewer-bar:fullscreen { background: #000; }
.lbv2-detail-viewer-bar:fullscreen .lbv2-viewer,
.lbv2-detail-viewer-bar:fullscreen .lbv2-viewer.lbv2-viewer-sm {
    height: 100vh !important; height: 100dvh !important; max-height: none !important; aspect-ratio: auto !important; border-radius: 0;
}
.lbv2-detail-viewer-bar:fullscreen .lbv2-playbar-ext {
    position: absolute; left: 16px; right: 16px; bottom: 14px; width: auto; margin: 0; z-index: 10;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* Variante WebKit (Safari/vieux Chrome : :-webkit-full-screen ne se combine pas
   avec :fullscreen dans une même liste de sélecteurs) */
.lbv2-detail-viewer-bar:-webkit-full-screen { background: #000; }
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-viewer,
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-viewer.lbv2-viewer-sm {
    height: 100vh !important; height: 100dvh !important; max-height: none !important; aspect-ratio: auto !important; border-radius: 0;
}
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-playbar-ext {
    position: absolute; left: 16px; right: 16px; bottom: 14px; width: auto; margin: 0; z-index: 10;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ── FAUX plein écran CSS (iOS : pas d'API Fullscreen sur les <div>) ──
   Même rendu que :fullscreen : wrapper fixé sur tout l'écran, viewer plein cadre,
   playbar en overlay bas. z-index 4000 < modals (.lbv2-config-overlay = 5000) pour
   que le menu Options reste utilisable par-dessus. */
.lbv2-detail-viewer-bar.lbv2-fake-fs {
    position: fixed !important; inset: 0; z-index: 4000; background: #000;
    padding-top: env(safe-area-inset-top, 0px);
}
.lbv2-detail-viewer-bar.lbv2-fake-fs .lbv2-viewer,
.lbv2-detail-viewer-bar.lbv2-fake-fs .lbv2-viewer.lbv2-viewer-sm {
    height: 100% !important; max-height: none !important; aspect-ratio: auto !important;
    border-radius: 0 !important; border: none !important;
}
.lbv2-detail-viewer-bar.lbv2-fake-fs .lbv2-playbar-ext {
    position: absolute; left: 16px; right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: auto; margin: 0; z-index: 10;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* Page derrière figée pendant le faux plein écran */
html.lbv2-fake-fs-on, html.lbv2-fake-fs-on body { overflow: hidden !important; }

/* ── Bouton Menu unique du viewer (remplace les boutons ronds POC/Leaflet) ── */
.lbv2-viewer-menu-btn {
    position: absolute; top: 12px; right: 12px; z-index: 1000;
    width: 40px; height: 40px; border-radius: 50%; padding: 0;
    background: rgba(12, 17, 27, .78); color: #fff;
    border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.lbv2-viewer-menu-btn:active { background: rgba(12, 17, 27, .95); }
/* Plein écran (faux CSS iOS ou natif) : le viewer occupe tout l'écran, la barre de
   statut iPhone recouvrait le bouton (env() peut valoir 0 si viewport-fit≠cover →
   max() avec un plancher 54px ≈ status bar iPhone à encoche). */
.lbv2-detail-viewer-bar.lbv2-fake-fs .lbv2-viewer-menu-btn,
.lbv2-detail-viewer-bar:fullscreen .lbv2-viewer-menu-btn {
    top: max(54px, calc(12px + env(safe-area-inset-top, 0px)));
}
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-viewer-menu-btn {
    top: max(54px, calc(12px + env(safe-area-inset-top, 0px)));
}
.lbv2-detail-viewer-bar:-webkit-full-screen { background: #000; }
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-viewer,
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-viewer.lbv2-viewer-sm { height: 100vh; height: 100dvh; border-radius: 0; }
.lbv2-detail-viewer-bar:-webkit-full-screen .lbv2-playbar-ext {
    position: absolute; left: 16px; right: 16px; bottom: 14px; width: auto; margin: 0; z-index: 10;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lbv2-playbar-ext .lbv2-play-btn { background: #1a1a1a; }
.lbv2-playbar-ext .lbv2-play-btn svg { fill: #fff; }
.lbv2-playbar-ext .lbv2-play-cur { color: var(--c-text); }
.lbv2-playbar-ext .lbv2-play-dur { color: var(--c-text-muted); }
.lbv2-playbar-ext .lbv2-scrub { background: #e8e8ea; }
.lbv2-playbar-ext .lbv2-scrub-fill { background: #370028; }
.lbv2-playbar-ext .lbv2-scrub-knob { background: #370028; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.lbv2-playbar-ext .lbv2-play-sep { background: var(--wx-surface-2); }
.lbv2-playbar-ext .lbv2-mode-toggle { background: #f0f0f0; }
.lbv2-playbar-ext .lbv2-mode-btn { color: var(--c-text-muted); }
.lbv2-playbar-ext .lbv2-mode-btn.active { background: #1a1a1a; color: #fff; }

/* ── Playbar 3D : sélecteur vitesse + suivi ballon ── */
.lbv2-playbar-ext.is-2d .lbv2-3d-only { display: none !important; }
.lbv2-speed-sel { display: flex; gap: 2px; background: #f0f0f0; border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lbv2-speed-btn { border: none; cursor: pointer; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: transparent; color: var(--c-text-muted); font-family: inherit; font-variant-numeric: tabular-nums; }
.lbv2-speed-btn.active { background: #1a1a1a; color: #fff; }
.lbv2-follow-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lbv2-follow-btn.is-on { background: #370028; border-color: #370028; color: #fff; }

/* ══════════════════════════════════════════════════════════
   ANNUAIRE (écran 6) — directory.js
   ══════════════════════════════════════════════════════════ */
#lbv2-directory { display: block; }
.lbv2-dir-tabs { display: flex; gap: 4px; padding: 16px 0 0; border-bottom: 1px solid var(--c-border); }
.lbv2-dir-tab { background: none; border: none; padding: 8px 14px 10px; font-size: 13px; font-weight: 600; color: var(--c-text-muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.lbv2-dir-tab.active { color: var(--c-text); border-bottom-color: #370028; }
.lbv2-dir-tab:hover { color: var(--c-text); }
.lbv2-dir-content { padding: 20px 0 80px; }
.lbv2-dir-loading { color: var(--c-text-muted); font-size: 13px; padding: 20px 0; }
.lbv2-dir-empty { color: var(--c-text-muted); font-size: 13px; padding: 20px 0; line-height: 1.6; }
.lbv2-dir-sec-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 700; margin-bottom: 14px; }
.lbv2-dir-search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.lbv2-dir-search-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.lbv2-dir-search-ico { position: absolute; left: 10px; color: var(--c-text-muted); pointer-events: none; display: flex; align-items: center; }
.lbv2-dir-search { flex: 1; width: 100%; border: 1px solid var(--c-border); border-radius: 8px; padding: 9px 32px 9px 32px; font-size: 13px; font-family: inherit; outline: none; background: var(--c-surface); }
.lbv2-dir-search:focus { border-color: #370028; }
.lbv2-dir-search-clear {
    position: absolute; right: 8px; background: #ddd; border: none; border-radius: 50%;
    width: 18px; height: 18px; cursor: pointer; display: none; align-items: center; justify-content: center;
    color: var(--c-text-muted); font-size: 11px; line-height: 1; padding: 0;
}
.lbv2-dir-search-clear.visible { display: flex; }
.lbv2-dir-search-clear:hover { background: #ccc; }
.lbv2-dir-create-club { flex-shrink: 0; }

/* Membres : grille pilotes */
.lbv2-dir-pilots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lbv2-dir-pilot-card { border: 1px solid var(--c-border); border-radius: 10px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; background: var(--c-surface); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.lbv2-dir-pilot-card:hover { border-color: #1a1a1a; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.lbv2-dir-pilot-av { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 18px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.lbv2-dir-pilot-av img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-dir-pilot-name { font-size: 13px; font-weight: 600; color: var(--c-text); line-height: 1.3; }
.lbv2-dir-pilot-loc { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lbv2-dir-pilot-btns { display: flex; gap: 6px; align-items: center; margin-top: 4px; width: 100%; justify-content: center; min-width: 0; flex-wrap: wrap; }
.lbv2-dir-follow-btn { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 700; color: var(--c-text); cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.lbv2-dir-follow-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.lbv2-dir-follow-btn.following { background: var(--wx-surface-2); color: var(--c-text-muted); border-color: var(--c-border); }
.lbv2-dir-write-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--wx-surface-2); border: 1px solid var(--c-border); color: var(--c-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; flex-shrink: 0; }
.lbv2-dir-write-btn:hover { background: #370028; color: #fff; border-color: #370028; }

/* Clubs : grille */
.lbv2-dir-clubs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
/* Vignette club (2026-10-24) : bannière cover_url + logo à cheval, puis région ·
   membres, description 2 lignes, président, actions calées en bas (hauteurs égales). */
.lbv2-cc { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--c-surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
@media (hover: hover) and (pointer: fine) {
    .lbv2-cc:hover { border-color: #1a1a1a; box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
}
.lbv2-cc:active { transform: scale(.985); }
.lbv2-cc-cover { position: relative; aspect-ratio: 16 / 7; background-size: cover; background-position: center; background-color: #ccd6e2; }
.lbv2-cc-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.lbv2-cc-badges { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.lbv2-cc-badges .lbv2-club-badge { box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.lbv2-cc-logo { position: absolute; left: 12px; bottom: -22px; z-index: 1; width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--c-surface); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 16px; font-weight: 700; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.lbv2-cc-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.lbv2-cc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 30px 12px 12px; min-width: 0; }
.lbv2-cc-name { font-size: 14px; font-weight: 700; color: var(--c-text); line-height: 1.25; overflow-wrap: anywhere; }
.lbv2-cc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--c-text-muted); }
.lbv2-cc-region { color: #b5a06a; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lbv2-cc-desc { font-size: 12px; line-height: 1.4; color: var(--c-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lbv2-cc-pres { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 8px; border-top: 1px solid var(--c-border); margin-top: 2px; }
.lbv2-cc-pres .lbv2-club-pres-av { flex-shrink: 0; }
.lbv2-cc-pres-txt { min-width: 0; }
.lbv2-cc-pres-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); }
.lbv2-cc-pres-name { font-size: 12px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-cc-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
/* Toggle Cartes/Liste/Carte en tête du panneau : mobile uniquement (subrow masqué) */
.lbv2-clubs-mvt { display: none; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-clubs-mvt { display: flex; justify-content: flex-end; padding: 0 14px 10px; }
    .lbv2-clubs-mvt .lbv2-vt-lbl { display: none; }
}

/* Club list view (tableau) */
.lbv2-club-list-header,
.lbv2-club-list-row { display: grid; grid-template-columns: 1fr 70px 110px 80px 90px 80px 130px; align-items: center; gap: 8px; padding: 8px 12px; }
.lbv2-club-pres-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
.lbv2-club-pres-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbv2-club-list-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); border-bottom: 1px solid var(--c-border); padding-bottom: 10px; }
.lbv2-club-list-row { border-bottom: 1px solid var(--c-border); cursor: pointer; transition: background .12s; }
.lbv2-club-list-row:hover { background: var(--wx-surface-2); }
.lbv2-club-lr-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lbv2-club-lr-ident > div { min-width: 0; }
.lbv2-club-lr-col { font-size: 12px; color: var(--c-text-muted); }
.lbv2-club-lr-unit { font-size: 11px; color: var(--c-text-muted); }
.lbv2-club-lr-region { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-club-lr-badges { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 2px; }
.lbv2-club-lr-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
/* Mobile : ligne club « 2 niveaux » lisible (request user) — logo | nom gras +
   région/badges dessous | à droite N mbr + badge Actif. Les colonnes tableau
   (en-têtes, activité/mois, actions) disparaissent. */
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-club-list-header { display: none; }
    .lbv2-club-list-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px; padding: 10px 12px;
        background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; margin-bottom: 8px;
    }
    .lbv2-club-lr-region { grid-row: 2; grid-column: 1; margin-left: 46px; margin-top: -6px; font-size: 11px; color: var(--c-text-muted); }
    .lbv2-club-lr-pres { display: none; }                 /* Président → page club */
    .lbv2-club-list-row > div:nth-child(5) { display: none; }   /* activité/mois */
    .lbv2-club-lr-actions { display: none; }              /* Rejoindre/Écrire → page club */
    .lbv2-club-lr-col { font-size: 12.5px; white-space: nowrap; }
}

/* Club badges (type / public / privé) */
.lbv2-club-badge { font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.lbv2-club-badge-type { background: #f0f4ff; color: #3a6ea5; }
.lbv2-club-badge-pub  { background: #e8f8f0; color: #2a8a5a; }
.lbv2-club-badge-priv { background: #fff3e0; color: #b06a4f; }

/* Crew badge */
.lbv2-crew-badge { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.lbv2-crew-active { background: #e8f8f0; color: #2a8a5a; }
.lbv2-crew-off     { background: var(--wx-surface-2); color: var(--c-text-muted); }

/* Rejoindre / Membre */
.lbv2-club-member-badge { font-size: 11px; font-weight: 600; color: #2a8a5a; padding: 3px 8px; border: 1px solid #c6ecd9; border-radius: 6px; white-space: nowrap; }
.lbv2-dir-join-btn { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: #1a1a1a; color: #fff; border: none; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s; }
.lbv2-dir-join-btn:hover { background: #370028; }

/* Card view : badges + boutons alignés */
.lbv2-club-card-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 2px 0; }
.lbv2-dir-club-btns { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

/* Messages : 2 colonnes */
.lbv2-dir-msg-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; min-height: 460px; max-height: 600px; }
.lbv2-dir-conv-panel { border-right: 1px solid var(--c-border); display: flex; flex-direction: column; background: var(--wx-surface-2); }
.lbv2-dir-conv-panelhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--c-border); font-size: 13px; font-weight: 700; color: var(--c-text); background: var(--c-surface); }
.lbv2-dir-conv-items { overflow-y: auto; flex: 1; }
.lbv2-dir-conv-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--c-border); transition: background .1s; }
.lbv2-dir-conv-row:hover { background: var(--wx-surface-2); }
.lbv2-dir-conv-row.active { background: #f0ecf0; }
.lbv2-dir-conv-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.lbv2-dir-conv-info { flex: 1; min-width: 0; }
.lbv2-dir-conv-name { font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-dir-conv-preview { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-dir-conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.lbv2-dir-conv-date { font-size: 11px; color: var(--c-text-muted); }
.lbv2-dir-conv-badge { background: #370028; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.lbv2-dir-conv-empty { color: var(--c-text-muted); font-size: 12px; padding: 20px 14px; line-height: 1.6; }
.lbv2-dir-chat-panel { display: flex; flex-direction: column; background: var(--c-surface); }
.lbv2-dir-chat-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--c-text-muted); font-size: 13px; }
.lbv2-dir-chat-head { padding: 14px 16px; border-bottom: 1px solid var(--c-border); font-size: 14px; font-weight: 700; color: var(--c-text); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lbv2-dir-chat-back { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--c-text-muted); padding: 0; line-height: 1; }
.lbv2-dir-chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lbv2-dir-chat-input-row { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--c-border); flex-shrink: 0; }
.lbv2-dir-chat-input-row input { flex: 1; border: 1px solid var(--c-border); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-family: inherit; outline: none; }
.lbv2-dir-chat-input-row input:focus { border-color: #370028; }
.lbv2-dir-send-btn { width: 36px; height: 36px; border-radius: 50%; background: #370028; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lbv2-dir-send-btn:hover { opacity: .85; }
.lbv2-dir-msg { display: flex; gap: 8px; }
.lbv2-dir-msg-me { flex-direction: row-reverse; }
.lbv2-dir-msg-av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; align-self: flex-end; }
.lbv2-dir-msg-body { display: flex; flex-direction: column; gap: 2px; max-width: 70%; }
.lbv2-dir-msg-me .lbv2-dir-msg-body { align-items: flex-end; }
.lbv2-dir-msg-sender { font-size: 11px; color: var(--c-text-muted); padding: 0 4px; }
.lbv2-dir-msg-bubble { background: var(--wx-surface-2); color: var(--c-text); border-radius: 12px 12px 12px 2px; padding: 8px 12px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.lbv2-dir-msg-me .lbv2-dir-msg-bubble { background: #1a1a1a; color: #fff; border-radius: 12px 12px 2px 12px; }
.lbv2-dir-msg-time { font-size: 11px; color: var(--c-text-muted); padding: 0 4px; }

@media (max-width: 680px) {
    .lbv2-dir-content { padding: 16px 0 80px; }
    .lbv2-dir-msg-wrap { grid-template-columns: 1fr; min-height: unset; max-height: unset; }
    .lbv2-dir-conv-panel { display: block; }
    .lbv2-dir-chat-panel { display: none; }
    .lbv2-dir-msg-wrap.lbv2-dir-chat-open .lbv2-dir-conv-panel { display: none; }
    .lbv2-dir-msg-wrap.lbv2-dir-chat-open .lbv2-dir-chat-panel { display: flex; min-height: 60vh; }
    .lbv2-dir-chat-back { display: block; }
}

/* Profil (request user 2026-08-26) : TOUJOURS dans le flux de la page, sous la
   topbar WX Logbook (l'overlay fixe mobile masquait la topbar — retiré). Desktop :
   colonne centrale de la grille ; mobile : pleine largeur, bottom nav visible.
   Sortie par ✕ ou ← (closeProfile). */
#lbv2-profile-center { background: var(--c-surface); }
#lbv2-profile-center .lbv2-pf-subhead {
    display: flex; position: sticky; top: 0; z-index: 3;
    background: var(--c-surface, #fff);
}
.lbv2-pf-close {
    margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--c-border, #e5e5e5); background: var(--c-surface, #fff);
    color: var(--c-text, #1a1a1a); font-size: 17px; line-height: 1;
    cursor: pointer; flex-shrink: 0;
}
.lbv2-pf-close:hover { border-color: var(--c-text, #1a1a1a); }
#lbv2-profile-center .lbv2-pf-col { max-width: none; margin: 0; }

/* ── IMPORT MODAL ─────────────────────────────────────── */
/* z 6000 : au-dessus de l'overlay Logbook (4000) — à 2000 la modale « Ajouter un vol » s'ouvrait DERRIÈRE (bug user 2026-10-16) */
.lbv2-import-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 6000; display: flex; align-items: center; justify-content: center; }
.lbv2-import-modal-box { background: var(--c-surface); border-radius: 16px; padding: 28px 24px; min-width: 280px; max-width: 360px; width: 90%; }
.lbv2-import-modal-title { font-size: 16px; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.lbv2-import-modal-sub { font-size: 13px; color: var(--c-text-muted); margin-bottom: 20px; }
.lbv2-import-modal-btns { display: flex; flex-direction: column; gap: 10px; }
.lbv2-import-modal-btn { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer; text-align: left; display: flex; align-items: center; gap: 14px; transition: background .15s, border-color .15s; width: 100%; font-family: inherit; }
.lbv2-import-modal-btn:hover { background: #f7f4f6; border-color: #370028; }
.lbv2-import-modal-btn-title { font-size: 14px; font-weight: 600; color: var(--c-text); }
.lbv2-import-modal-btn-desc { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.lbv2-import-modal-cancel { width: 100%; margin-top: 12px; padding: 10px; border: none; background: none; cursor: pointer; color: var(--c-text-muted); font-size: 13px; font-family: inherit; }
.lbv2-import-modal-cancel:hover { color: var(--c-text); }
.lbv2-ie-section-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); margin: 0 0 10px; padding: 0; }

/* ── MESSAGES AS TAB PANEL ────────────────────────────── */
#lbv2-messages-screen.lbv2-tab-panel { padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#lbv2-messages-screen.lbv2-tab-panel .lbv2-msg-screen { height: 100%; min-height: 500px; flex: 1; }
#lbv2-messages-screen.lbv2-tab-panel .lbv2-msg-back { display: none; }

/* ══════════════════════════════════════════════════════════
   MES BALLONS (écran 7) — balloons.js
   ══════════════════════════════════════════════════════════ */
#lbv2-balloons-screen { display: block; }
.lbv2-bal-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 0; justify-content: space-between; }
.lbv2-bal-new-btn { flex-shrink: 0; }
#lbv2-bal-body { padding: 20px 24px 96px; max-width: 860px; }
.lbv2-bal-section-row { display: flex; align-items: center; gap: 8px; margin: 24px 0 14px; }
.lbv2-bal-section-row-sep { padding-top: 24px; border-top: 1px solid var(--c-border); }
.lbv2-bal-section-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-text); font-weight: 700; }
.lbv2-bal-section-cnt { font-size: 11px; color: #fff; background: #370028; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.lbv2-bal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lbv2-bal-card { border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--c-surface); transition: box-shadow .15s, border-color .15s; }
.lbv2-bal-card:hover { border-color: #1a1a1a; box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.lbv2-bal-hero { height: 160px; position: relative; overflow: hidden; background: linear-gradient(135deg, #c8d8e8, #dfe9d8); }
.lbv2-bal-role-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #fff; padding: 5px 10px; border-radius: 999px; }
.lbv2-bal-float { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); animation: wxfloat 6s ease-in-out infinite; }
.lbv2-bal-body { padding: 14px 15px 15px; }
.lbv2-bal-name { font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 700; color: var(--c-text); letter-spacing: .03em; }
.lbv2-bal-immat { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }
.lbv2-bal-spec { font-size: 11px; color: var(--c-text-muted); margin-top: 3px; }
.lbv2-bal-stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.lbv2-bal-stat-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 18px; color: var(--c-text); line-height: 1; }
.lbv2-bal-stat-k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 700; margin-top: 4px; }
.lbv2-bal-empty-btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

@keyframes wxfloat { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }

@media (max-width: 680px) {
    .lbv2-bal-grid { grid-template-columns: repeat(2, 1fr); }
    #lbv2-bal-body { padding: 16px 16px 96px; }
    .lbv2-bal-head { padding: 20px 16px 0; flex-wrap: wrap; }
}

/* ── Waypoints : chips de caractéristiques (P1/P2/P3/ZONE) ── */
.lbv2-wpt-chips { display: inline-flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; vertical-align: middle; }
.lbv2-wpt-chip { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #5a7a3a; background: rgba(90,122,58,.1); border-radius: 4px; padding: 1px 5px; }
.lbv2-wpt-chip-zone { color: #b06a4f; background: rgba(176,106,79,.12); }

/* ── POI sur la carte 2D (teardrop POI) ── */
.lbv2-poi-divicon { filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.lbv2-poi-divicon:hover { z-index: 1000 !important; }

/* ── Bouton recharger conditions (icône seule + spinner) ── */
.lbv2-cond-reload { background: none; border: none; padding: 4px; cursor: pointer; color: var(--c-text-muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.lbv2-cond-reload:hover { color: var(--c-text); background: var(--wx-surface-2); }
.lbv2-cond-reload.is-loading { opacity: .5; pointer-events: none; }
.lbv2-cond-reload.is-loading svg { animation: lbv2-spin 1s linear infinite; }
@keyframes lbv2-spin { to { transform: rotate(360deg); } }

/* Dark mode : on garde la signature claire de la section Logbook
   (le handoff définit un fond ciel clair). On force juste la lisibilité. */
body.dark-mode #lbv2-overlay,
html.dark #lbv2-overlay { color: var(--c-text); }

/* ══════════════════════════════════════════════════════════
   MEDIA SPLIT — carte à gauche, photos à droite
   ══════════════════════════════════════════════════════════ */
.lbv2-media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 262px;
    overflow: hidden;
}
.lbv2-media-split-map {
    position: relative;
    overflow: hidden;
}
.lbv2-media-split-photos {
    position: relative;
    overflow: hidden;
}
.lbv2-media-split-photos .lbv2-photo-track {
    position: absolute;
    inset: 0;
    display: flex;
}
.lbv2-media-split-photos .lbv2-photo-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.lbv2-media-split-photos .lbv2-photo-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
/* Titre + badges au-dessus du layer Leaflet dans le split */
.lbv2-media-split .lbv2-media-tag,
.lbv2-media-split .lbv2-media-fullbtn,
.lbv2-media-split .lbv2-media-weather { z-index: 10; }

/* Slide carte Leaflet pour le diaporama unifié mobile */
.lbv2-slide-map-diapo { background: #e8eff4; }
.lbv2-slide-map-diapo .leaflet-container { width: 100% !important; height: 100% !important; }

/* ══════════════════════════════════════════════════════════
   BOTTOM NAV — mobile uniquement
   ══════════════════════════════════════════════════════════ */
#lbv2-bottom-nav { display: none; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   FILTER MODAL (Mes vols) — bottom sheet sur mobile
   ══════════════════════════════════════════════════════════ */
.lbv2-ml-filter-trigger { display: none; align-items: center; gap: 6px; }
.lbv2-ml-filter-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.45);
    align-items: flex-end;
}
.lbv2-ml-filter-modal.active { display: flex; }
.lbv2-ml-filter-modal-body {
    width: 100%;
    max-height: 86vh;
    background: var(--c-surface);
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}
.lbv2-ml-filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.lbv2-ml-filter-views {
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--c-border);
}
.lbv2-ml-filter-views .lbv2-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.lbv2-ml-filter-views .lbv2-vt-btn {
    flex: 1 0 calc(50% - 4px);
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 12px;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    /* Sous-menu du haut masqué : il duplique la barre du bas (request user
       2026-09-18). News / Mes vols / Annuaire / Clubs sont dans les deux ;
       Messages reste accessible par la cloche (bouton dédié du centre de
       notifications, notif-ui.js) et Profil par la barre du bas ou l'avatar.
       CONDITION IDENTIQUE à celle de #lbv2-bottom-nav ci-dessous : avec le seuil
       à 899px des autres règles mobiles, un écran non tactile de 800px perdrait
       le sous-menu SANS avoir la barre du bas — plus aucune navigation. */
    .lbv2-main-tabs { display: none !important; }
    .lbv2-main-content { margin-top: 0; }

    /* Bottom nav */
    #lbv2-bottom-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        /* Bloc « liquide » harmonisé Forecast/Map/Logbook (request user) —
           mêmes métriques que .ios-toolbar-wrapper (Forecast) : hauteur pilotée
           par le contenu, pas de height fixe. */
        background: var(--wx-bar-glass);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(0, 0, 0, .08);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        position: relative;
        z-index: 100;
    }
    .lbv2-bn-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--c-text);
        font-size: 11px;
        font-family: inherit;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        padding: 8px 10px;
        margin: 0;
        border-radius: 16px;
        transition: color .15s, background .15s;
    }
    .lbv2-bn-btn.active { color: var(--c-accent-text, #0B0F1A); background: #F94361; }   /* rouge corail du picto AirVoice/Track (remplace l'ancien rouge brique partout, 2026-10-13) ; icône + libellé blancs (foncé essayé puis restauré) */
    .lbv2-bn-btn.active svg { stroke: #fff; }
    .lbv2-bn-add {
        position: relative;
        flex: 0 0 64px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lbv2-bn-add-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #370028;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(55,0,40,.35);
        margin-top: -10px;
        cursor: pointer;
    }

    /* Layout mobile */
    .lbv2-rail { display: none; }
    .lbv2-grid { grid-template-columns: 1fr; padding: 0 12px; }
    .lbv2-main-tabs { display: none; }
    .lbv2-media { height: 220px; }

    /* Stats feed : une seule ligne scrollable */
    .lbv2-flight-stats {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 0;
        padding: 12px 14px;
    }
    .lbv2-flight-stats::-webkit-scrollbar { display: none; }
    .lbv2-fstat { flex: 0 0 auto; min-width: 66px; padding: 0 10px; }
    .lbv2-fstat:first-child { padding-left: 0; }
    .lbv2-fstat-v { font-size: 17px; }
    .lbv2-fstat-l { font-size: 11px; }

    /* Bouton layer carte — masqué sur mobile */
    .lbv2-map-layer-btn { display: none !important; }

    /* Split sur mobile : empilé (carte en haut, photos en bas) */
    .lbv2-media.lbv2-media-split { height: auto; }
    .lbv2-media-split { grid-template-columns: 1fr; height: auto; }
    .lbv2-media-split-map { height: 160px; }
    .lbv2-media-split-photos { height: 160px; }

    /* Viewer 3D/2D : format 2/3 (2-class pour battre la règle 900px) */
    .lbv2-viewer.lbv2-viewer-sm, .lbv2-viewer { height: 220px !important; }

    /* Boutons vitesse ×1/×5/×10/×30 — !important pour battre la règle globale display:flex ligne 1182 */
    .lbv2-speed-sel { display: none !important; }
    .lbv2-play-sep.lbv2-3d-only { display: none !important; }

    /* Détail — actions dans la back-bar sticky du haut (request user) :
       Éditer (proprio) en haut à droite ; Exporter/Partager n'existent plus
       en vue mobile. */
    .lbv2-detail-back-right { gap: 6px; flex-wrap: nowrap; }
    .lbv2-detail-back-right .lbv2-act-export,
    .lbv2-detail-back-right .lbv2-act-share { display: none !important; }

    /* Profil altitude — empêcher débordement horizontal */
    #lbv2-alt-chart { width: 100% !important; overflow: hidden; }
    #lbv2-detail { overflow-x: hidden; }
    .lbv2-detail-body, .lbv2-detail-cols { max-width: 100%; overflow-x: hidden; }

    /* Mes vols — filtres dans le modal */
    .lbv2-ml-filter-trigger { display: flex; }
    .lbv2-ml-filters { display: none; }

    /* ── DÉTAIL mobile v3 : back-bar + viewer sticky, scroll naturel, colR visible ── */
    .lbv2-detail-mob-tabs { display: none !important; }
    .lbv2-detail-header { display: none !important; }
    .lbv2-detail-kudos { display: none !important; }
    /* #lbv2-detail : scroll container (JS set display:block sur mobile) */
    #lbv2-detail { overflow-y: auto !important; overflow-x: hidden !important; }
    /* Back-bar STICKY en haut (request user 2026-08-01) : une seule ligne
       Retour · auteur+date/titre · Éditer. Hauteur variable (titre 2 lignes) →
       mesurée par _setBackbarH() dans --lbv2-backbar-h pour caler le viewer. */
    .lbv2-detail-back {
        position: sticky; top: 0; z-index: 40;
        background: var(--wx-bar-solid);
        min-height: 50px; padding: 7px 12px;
        align-items: center; flex-wrap: nowrap; gap: 8px;
    }
    /* Body + cols + colL : blocs normaux, pas d'overflow contraignant */
    .lbv2-detail-body { display: block !important; padding: 0 !important; max-width: 100% !important; overflow: visible !important; }
    .lbv2-detail-cols { display: block !important; margin-top: 0 !important; overflow: visible !important; }
    .lbv2-detail-colL { display: block !important; overflow: visible !important; }
    /* Viewer sticky SOUS la back-bar sticky (hauteur mesurée) — la barre est
       opaque et au-dessus (z-index 40 > 10), la map se pince dessous au scroll */
    .lbv2-detail-viewer-bar { position: sticky; top: var(--lbv2-backbar-h, 50px); z-index: 10; background: #000; }
    /* Map bord à bord, format 4/3 — moins haut (request user) */
    .lbv2-viewer, .lbv2-viewer.lbv2-viewer-sm {
        height: auto !important; aspect-ratio: 4 / 3; max-height: 46vh;
        border-radius: 0 !important; border-left: none !important; border-right: none !important;
    }
    /* Scroll-content : pas d'overflow propre (c'est #lbv2-detail qui scrolle) */
    .lbv2-detail-scroll-content { overflow: visible !important; padding: 0; }
    /* Colonne droite visible après colL, pleine largeur */
    #lbv2-detail .lbv2-detail-colR { display: block !important; width: 100% !important; min-width: 0 !important; padding: 0 0 90px; }
    /* Annuler masquage par onglets (règles 900px) */
    #lbv2-detail .lbv2-detail-colL > .lbv2-card,
    #lbv2-detail #lbv2-photos-card,
    #lbv2-detail #lbv2-wpt-card { display: block !important; }
    /* Tous les cards : pleine largeur bord à bord */
    #lbv2-detail .lbv2-card { border-radius: 0 !important; margin: 0 0 2px !important; box-shadow: none !important; }
    .lbv2-detail-alt-card { padding: 14px !important; }
    /* Profil altitude : hauteur suffisante pour voir la courbe ENTIÈRE (Plotly cale
       sa hauteur sur le conteneur — cf. renderAltitude) */
    #lbv2-alt-chart { height: 160px !important; }
    .lbv2-detail-cmt-card { display: none !important; }
    #lbv2-detail .lbv2-detail-colR .lbv2-card { padding: 14px !important; }
    /* Résumé : format 4 colonnes × 2 lignes */
    .lbv2-sum-v { font-size: 19px; }
    .lbv2-sum-l { font-size: 11px; }
    .lbv2-sum-grid { grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
    .lbv2-sum-cell { text-align: center; }
    /* Playbar : collée sous le viewer sticky (pas de gap noir) */
    .lbv2-playbar-ext { margin-top: 0; border-radius: 0; border-left: none; border-right: none; }
    /* Mob-info : titre + sous-titre en colonne */
    .lbv2-detail-mob-title { display: block; font-size: 14px; font-weight: 700; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
    .lbv2-detail-mob-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; flex: 1; }
    .lbv2-detail-mob-sub { font-size: 11px; font-weight: 400; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* Placeholder trace GPS absente */
    .lbv2-viewer-no-trace { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--wx-surface-2); color: var(--c-text-muted); font-size: 13px; }
}

/* ─── Mes vols : corrige le sticky de la barre récap (overflow:hidden brise position:sticky) ─── */
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-right-col { overflow: visible; }
    .lbv2-ml-bar { border-bottom: 1px solid rgba(0,0,0,.06); }
}

/* ── Modale WPT : ajout depuis la bibliothèque de lieux ── */
.lbv2-wpt-lib-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--c-border); border-radius: 8px; margin-top: 6px; }
.lbv2-wpt-lib-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; background: none; border: none; border-bottom: 1px solid #f4f4f4; cursor: pointer; font-family: inherit; font-size: 12.5px; color: var(--c-text); text-align: left; }
.lbv2-wpt-lib-row:last-child { border-bottom: none; }
.lbv2-wpt-lib-row:hover { background: var(--wx-surface-2); }
.lbv2-wpt-lib-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lbv2-wpt-lib-city { margin-left: auto; color: var(--c-text-muted); font-size: 11px; white-space: nowrap; }
.lbv2-wpt-lib-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--c-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.lbv2-wpt-lib-sep::before, .lbv2-wpt-lib-sep::after { content: ''; flex: 1; height: 1px; background: #eee; }


/* ── DARK VIEW (bleu nuit) : ajustements non couverts par les tokens ────── */
html.dark .lbv2-btn-dark,
html.dark .lbv2-bn-add-circle,
html.dark .lbv2-clubs-create-foot .lbv2-btn-pill { border: 1px solid rgba(255, 255, 255, .18); }
html.dark .lbv2-cd-crew-link a { color: #7fb0e8; }
html.dark .lbv2-cd-map { border-color: rgba(255, 255, 255, .14); }
/* html.dark .lbv2-main-tab.active : couvert par .wx-subnav-tab (styles.css) */
/* ─── Balloon Detail (screen 8) ─── */
.lbv2-bd-hero { height: 180px; display: flex; align-items: center; justify-content: center; }
.lbv2-bd-body { padding: 16px 20px 40px; max-width: 720px; margin: 0 auto; }
.lbv2-bd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 22px; }
.lbv2-bd-stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.lbv2-bd-stat-v { font-size: 1.15rem; font-weight: 700; color: var(--c-text); }
.lbv2-bd-stat-k { font-size: .6875rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.lbv2-bd-specs { background: var(--c-surface); border-radius: 10px; padding: 6px 14px; margin-bottom: 22px; }
.lbv2-bd-spec-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: .82rem; }
.lbv2-bd-spec-row:last-child { border-bottom: none; }
.lbv2-bd-spec-k { color: var(--c-text-muted); }
.lbv2-bd-spec-v { color: var(--c-text); font-weight: 600; }
.lbv2-bd-flights-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: 8px; }
.lbv2-bd-flights { display: flex; flex-direction: column; gap: 4px; }
.lbv2-bd-flight { display: grid; grid-template-columns: 90px 1fr 60px; gap: 12px; padding: 10px 12px; background: var(--c-surface); border-radius: 8px; cursor: pointer; font-size: .82rem; }
.lbv2-bd-flight:hover { background: var(--c-border); }
.lbv2-bd-flight-d { color: var(--c-text-muted); }
.lbv2-bd-flight-t { color: var(--c-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-bd-flight-dur { text-align: right; color: var(--c-text-muted); font-family: 'Space Mono', monospace; }

/* ─── Modal generique (balloon create/edit) ─── */
.lbv2-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lbv2-modal-panel { background: var(--c-bg); border-radius: 14px; max-width: 480px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lbv2-modal-panel-md { max-width: 520px; }
.lbv2-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.lbv2-modal-title { font-size: 1.05rem; font-weight: 700; color: var(--c-text); }
.lbv2-modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--c-text-muted); padding: 4px 8px; line-height: 1; }
.lbv2-modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.lbv2-modal-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--c-border); gap: 10px; }

/* ─── Form ─── */
.lbv2-form-lbl { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); margin: 10px 0 4px; font-weight: 600; }
.lbv2-form-lbl:first-child { margin-top: 0; }
.lbv2-form-input { width: 100%; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 7px; background: var(--c-surface); color: var(--c-text); font-size: .88rem; box-sizing: border-box; outline: none; transition: border-color .15s; }
.lbv2-form-input:focus { border-color: #3a6ea5; }
.lbv2-form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lbv2-btn-danger { color: #c0392b !important; border-color: rgba(192,57,43,.3) !important; }
.lbv2-btn-danger:hover { background: rgba(192,57,43,.08) !important; }

html.dark .adm-tabs .adm-tab.active { border-bottom-color: #c88aa8; }
html.dark #lbv2-overlay { color: var(--c-text); }
html.dark .lbv2-vt-btn.active { background: var(--wx-surface-2); color: var(--c-text); border-color: var(--c-border); box-shadow: none; }
html.dark .lbv2-view-toggle { background: var(--c-surface); }

/* Bloc Affichage (view toggle) au-dessus des filtres — hors cadre, titre
   au même style que FILTRES (request user) */
.lbv2-ml-viewcard {
    background: transparent; border: none; border-radius: 0;
    padding: 0; margin-bottom: 20px;
}
.lbv2-ml-viewcard .lbv2-view-toggle { margin-top: 8px; flex-wrap: wrap; gap: 4px; background: transparent; padding: 0; }


/* ── Résumé d'heures Mes vols : BLOC BLANC sur desktop (request user) ── */
@media (min-width: 900px) and (pointer: fine), (min-width: 1000px) and (pointer: coarse) {
    .lbv2-ml-bar {
        background: var(--c-surface); border: 1px solid var(--c-border);
        border-radius: 10px; padding: 16px 20px; margin-bottom: 16px;
    }
}

/* ── Carte wireframe « Ajouter un club » (fin de Mes clubs — request user) ── */
.lbv2-club-add-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 210px; border: 2px dashed var(--c-border, #d5d5d5); border-radius: 12px;
    color: var(--c-text-muted, #999); cursor: pointer; background: transparent;
    transition: border-color .15s, color .15s;
}
.lbv2-club-add-card:hover { border-color: var(--c-text, #1a1a1a); color: var(--c-text, #1a1a1a); }
.lbv2-cac-plus { font-size: 36px; font-weight: 300; line-height: 1; }
.lbv2-cac-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ── Badge nb de demandes d'adhésion (bouton ⚙ Administrer, page club) ── */
.lbv2-cd-req-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px;
    border-radius: 999px; background: #c0392b; color: #fff;
    font-size: 11px; font-weight: 800; line-height: 1;
}

/* ── Cartes wireframe « Ajouter un ballon » (Parc de vol + profil — request user) ── */
.lbv2-bal-add-card, .lbv2-pf-balloon-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border: 2px dashed var(--c-border, #d5d5d5); border-radius: 12px;
    color: var(--c-text-muted, #999); cursor: pointer; background: transparent;
    transition: border-color .15s, color .15s;
}
.lbv2-bal-add-card { min-height: 250px; }
.lbv2-pf-balloon-add { min-height: 215px; border-radius: 10px; }
.lbv2-bal-add-card:hover, .lbv2-pf-balloon-add:hover { border-color: var(--c-text, #1a1a1a); color: var(--c-text, #1a1a1a); }

/* Tuile wireframe « Ajouter un club » (profil) */
.lbv2-pf-club-tile-add {
    background: transparent !important; border: 2px dashed var(--c-border, #d5d5d5);
    color: var(--c-text-muted, #999); font-family: inherit;
    transition: border-color .15s, color .15s;
}
.lbv2-pf-club:hover .lbv2-pf-club-tile-add { border-color: var(--c-text, #1a1a1a); color: var(--c-text, #1a1a1a); }
.lbv2-pf-club-tile-add .lbv2-cac-plus { font-size: 26px; }

/* ── Modale ballon : upload photo (request user) ── */
.lbv2-bmf-photo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.lbv2-bmf-photo-prev {
    width: 74px; height: 54px; border-radius: 8px; flex-shrink: 0;
    border: 1px solid var(--c-border, #d5d5d5); background: var(--c-bg-2, #f4f4f4) center/cover;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lbv2-bmf-photo-btns { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbv2-btn-outline-sm {
    width: auto; padding: 7px 12px; font-size: 11px;
    display: inline-flex; align-items: center; gap: 6px; border-radius: 6px;
}

/* ── DARK : histogrammes du profil en blanc (request user) ── */
html.dark .lbv2-spark-bar { background: #E8ECF4 !important; }
html.dark .lbv2-pf-monthbar { background: #E8ECF4 !important; }
html.dark .lbv2-pf-act-bar, html.dark .lbv2-pf-weekbar { background: #E8ECF4 !important; }


/* ── FICHE BALLON : grid 2 colonnes avec Mon profil à gauche (request user) ── */
.lbv2-bd-grid { max-width: 1200px; margin: 0 auto; }
.lbv2-bd-left { display: none; }
@media (min-width: 900px) and (pointer: fine), (min-width: 1000px) and (pointer: coarse) {
    .lbv2-bd-grid {
        display: grid; grid-template-columns: 320px minmax(0, 1fr);
        gap: 18px; align-items: start; padding: 0 18px;
    }
    .lbv2-bd-left { display: block; position: sticky; top: 70px; }
}
/* Lignes du carnet réutilisées dans la fiche : lecture seule (pas d'Éditer/Supprimer) */
#lbv2-balloon-detail .lbv2-ml-rowact { display: none !important; }
#lbv2-balloon-detail .lbv2-bd-flights { display: flex; flex-direction: column; gap: 10px; }


/* ── FICHE BALLON dans le shell : header harmonisé + vignette + scroll (request user) ── */
.lbv2-bd-toprow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lbv2-bd-idrow { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.lbv2-bd-toprow > :last-child { flex: 0 0 auto; }
.lbv2-bd-thumb {
    width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 1px solid var(--c-border, #e5e5e5);
}
/* Liste « Vols récents » : ~5 vols visibles puis scrollbar interne */
.lbv2-bd-flights { max-height: 560px; overflow-y: auto; padding-right: 4px; }
#lbv2-balloon-center .lbv2-ml-rowact { display: none !important; }
#lbv2-balloon-center .lbv2-bd-flights { display: flex; flex-direction: column; gap: 10px; }


/* ── DÉTAIL MOBILE (request user 2026-08-01) : back-bar TOUT-EN-UN compacte
   (~56px, cohérente avec la topbar app 52px) — Retour · [titre / route
   déco→atterrissage + auteur·date discret] · Éditer. ── */
.lbv2-dgrp-toggle { display: none; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-detail-mob-intro {
        display: flex; flex-direction: column; gap: 2px;
        flex: 1; min-width: 0; padding: 0 2px;
    }
    /* Ligne 2 : route déco→atterrissage (nom de l'auteur masqué — request user) */
    .lbv2-detail-mob-line2 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
    .lbv2-detail-mob-route {
        font-size: .74rem; font-weight: 500; color: var(--c-text, #222);
        min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .lbv2-detail-mob-sub { display: none; }
}

/* ── VERSION A (request user) : onglets internes des blocs du Détail mobile ── */
.lbv2-dtabs {
    display: flex; gap: 18px;
    border-bottom: 1px solid var(--c-border, #eee);
    margin-bottom: 14px;
}
/* Barre unique 7 onglets sur UNE ligne : scroll horizontal, scrollbar masquée */
.lbv2-dtabs-scroll {
    flex-wrap: nowrap; overflow-x: auto; gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lbv2-dtabs-scroll::-webkit-scrollbar { display: none; }
.lbv2-dtabs-scroll .lbv2-dtab-btn { white-space: nowrap; flex-shrink: 0; }

/* Barre CTA bas de page mobile SUPPRIMÉE (request user 2026-08-01) : Éditer vit
   dans la back-bar sticky du haut, Exporter/Partager n'existent plus sur mobile.
   Les blocs à onglets s'affichent donc entièrement au-dessus du bottom-nav. */

/* ── Page profil mobile : stoppe le débordement horizontal (min-content d'un
   enfant large propagé via flex/grid → page plus large que l'écran) ── */
@media (max-width: 899px), (pointer: coarse) and (max-width: 999px) {
    #lbv2-profile, #lbv2-profile-center { max-width: 100%; min-width: 0; overflow-x: hidden; }
    #lbv2-profile .lbv2-pf-col, #lbv2-profile-center .lbv2-pf-col { max-width: 100%; min-width: 0; }
}
.lbv2-dtab-btn {
    background: none; border: none; padding: 0 2px 9px;
    font-size: .78rem; font-weight: 700;
    color: var(--c-text-muted, #888); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.lbv2-dtab-btn.active { color: var(--c-text, #111); border-bottom-color: #370028; }
html.dark .lbv2-dtab-btn.active { border-bottom-color: #E8ECF4; }
.lbv2-dblock { overflow: hidden; }

/* ── Galerie photos Replay : mode édition — supprimer / réordonner (request user) ── */
.lbv2-photo-thumb { position: relative; }
.lbv2-ph-act {
    position: absolute; display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; color: #fff; background: rgba(0,0,0,.62);
    padding: 0; font-size: .8rem; line-height: 1; border-radius: 5px;
}
.lbv2-ph-left  { left: 4px;  top: 50%; transform: translateY(-50%); width: 24px; height: 34px; }
.lbv2-ph-right { right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 34px; }
.lbv2-ph-del   { top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(249, 67, 97,.92); font-size: .72rem; }
.lbv2-ph-act:disabled { opacity: .35; cursor: default; }

/* ── Curseur de position sur le profil altitude (sync lecture 2D/3D — request user) ── */
#lbv2-alt-chart { position: relative; }
.lbv2-alt-playline {
    position: absolute; width: 2px; margin-left: -1px;
    background: rgba(55, 0, 40, .5); pointer-events: none; z-index: 5;
}
.lbv2-alt-playdot {
    position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: #370028; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: none; z-index: 6;
}
html.dark .lbv2-alt-playline { background: rgba(232, 236, 244, .5); }
html.dark .lbv2-alt-playdot { background: #E8ECF4; border-color: #14203a; }

/* ── Modal Réglages 3D façon Big Button (remplace le panneau ⚙ du POC) ── */
.lbv2-3dset-lbl {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    color: var(--c-text-muted); margin: 16px 0 8px;
}
.lbv2-3dset-speedrow { display: flex; gap: 6px; flex-wrap: wrap; }
.lbv2-3dset-pill {
    flex: 1; min-width: 46px; padding: 12px 4px;
    border: 1px solid var(--c-border); border-radius: 9px;
    background: var(--c-surface); color: var(--c-text);
    font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lbv2-3dset-pill.active { background: #370028; border-color: #370028; color: #fff; }
.lbv2-3dset-range { width: 100%; accent-color: #370028; margin: 2px 0 4px; }
.lbv2-3dset-scen { position: relative; }
.lbv2-3dset-scen.is-active { border-color: #370028; }
.lbv2-3dset-check { margin-left: auto; color: #370028; font-weight: 800; font-size: 16px; }
html.dark .lbv2-3dset-pill.active { background: #E8ECF4; border-color: #E8ECF4; color: #14203a; }
html.dark .lbv2-3dset-check { color: #E8ECF4; }

/* ── Popup « Ils ont aimé » (liste des likes d'un vol — request user) ── */
.lbv2-likers-list { max-height: 55vh; overflow-y: auto; margin-top: 6px; }
.lbv2-liker-row {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px 2px; background: none; border: none;
    border-bottom: 1px solid var(--c-border, #eee);
    cursor: pointer; font-family: inherit; text-align: left;
}
.lbv2-liker-row:last-child { border-bottom: none; }
.lbv2-liker-row:hover { background: var(--wx-surface-2); }
.lbv2-liker-av {
    width: 34px; height: 34px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-family: 'DM Sans', 'Inter', sans-serif; font-size: 13px; flex: 0 0 auto;
}
.lbv2-liker-av img { width: 100%; height: 100%; object-fit: cover; }
.lbv2-liker-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); }


/* Harmonisation stats post-Playfair (request user 2026-08-24) : toutes les valeurs
   statistiques en DM Sans GRASSE comme le Feed (la famille vient du remplacement
   global, ici on aligne la graisse et l'interlettrage). */
.lbv2-stat3-v, .lbv2-month-v, .lbv2-pf-stat-v, .lbv2-pf-follow-v,
.lbv2-bal-stat-v, .lbv2-bd-stat-v, .lbv2-pf-act-dd {
    font-weight: 700; letter-spacing: -0.01em;
}
/* Bug WebKit iOS 26.0 (158055568) : la WebView ne rend rien dans la zone home
   indicator en standalone (voir responsive.css) — le canvas suit le fond du
   Logbook pour que la bande se fonde. */
html:has(#lbv2-overlay.lbv2-open) { background-color: var(--c-bg, #eef2f7); }


/* ═══════════════════════════════════════════════════════════════════════════
   Topbar UNIQUE (desktop 2026-09-17, étendue au MOBILE 2026-10-23 — request user)
   Le Logbook recouvrait la topbar de l'app (overlay fixed inset:0, z 4000) et
   en redessinait une COPIE (.lbv2-topbar, feed.js) qui dérivait visuellement de
   celle de Forecast à chaque retouche. On utilise désormais la vraie partout :
   l'overlay démarre sous elle et la copie est masquée → passage Forecast → Logbook
   identique à Forecast → Map. Exception : mode INVITÉ (lien de vol partagé, sans
   compte) — sa barre dédiée reste.
   ═══════════════════════════════════════════════════════════════════════════ */
/* Hauteur RÉELLE mesurée en JS (main.js). Ne pas coder en dur : sur desktop
   ios-fixes.css impose 80px + safe-area (styles.css dit 52px mais perd) — un
   52px figé plaçait l'overlay 28px DERRIÈRE la topbar et masquait le haut. */
#lbv2-overlay:not(.lbv2-guest) { top: var(--wx-topbar-h, 52px); }
#lbv2-overlay:not(.lbv2-guest) .lbv2-topbar { display: none !important; }
/* Le menu avatar (#user-dropdown-menu, z 9999) vit DANS .top-bar, qui crée un
   contexte d'empilement à z 1100 : sans ce relèvement, ses menus déroulants
   s'ouvriraient derrière l'overlay Logbook (z 4000). */
body:has(#lbv2-overlay.lbv2-open:not(.lbv2-guest)) .top-bar { z-index: 4100 !important; }
/* Topbar mobile pendant le Logbook : celle de l'accueil (cloche, thème, avatar) et pas
   celle du viewer resté actif dessous (✕ + exports Forecast). `html` en tête : passe
   devant les règles mobiles de styles.css (même spécificité, chargées après). */
/* :has() doublé = +1 id de spécificité : les règles d'affichage des exports (app.html,
   body:has(#viewer…):has(#weekviewer…) #id) pèsent 3 ids et passaient devant (bug 2026-10-23). */
html body:not(.nav-mode):has(#lbv2-overlay.lbv2-open:not(.lbv2-guest)):has(#lbv2-overlay.lbv2-open) .top-bar :is(#wx-topbar-close, #wx-topbar-fc-export, #wx-topbar-simu-export, #wx-topbar-snd-import, #wx-topbar-search) { display: none !important; }
html body:not(.nav-mode):has(#lbv2-overlay.lbv2-open:not(.lbv2-guest)) .top-bar #theme-toggle-btn { display: inline-flex !important; }
html body:not(.nav-mode):has(#lbv2-overlay.lbv2-open:not(.lbv2-guest)) .top-bar #auth-container {
    display: block !important; padding-right: 0 !important; border-right: none !important; margin-right: 0 !important;
}
html body:not(.nav-mode):has(#lbv2-overlay.lbv2-open:not(.lbv2-guest)) .top-bar #topbar-msg-wrap[style*="inline-flex"] { display: inline-flex !important; }

/* ── Model checker β (js/logbook/v2/modelcheck.js) ─────────────────────── */
.lbv2-mc-beta { color: #F94361; font-weight: 800; margin-left: 2px; }
.lbv2-mc-card { padding: 20px 22px; margin-bottom: 18px; }
.lbv2-mc-sub { font-size: 11px; color: var(--c-text-muted); font-weight: 300; line-height: 1.5; margin-bottom: 12px; }
.lbv2-mc-status { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--c-text); padding: 6px 0; }
.lbv2-mc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-border); border-top-color: var(--c-text); animation: lbv2-mc-rot .8s linear infinite; flex: none; }
@keyframes lbv2-mc-rot { to { transform: rotate(360deg); } }
.lbv2-mc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lbv2-mc-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.lbv2-mc-table td { padding: 8px; border-bottom: 1px solid var(--c-border); color: var(--c-text); vertical-align: middle; }
.lbv2-mc-table tr:last-child td { border-bottom: none; }
.lbv2-mc-row { cursor: pointer; transition: background .15s ease; }
.lbv2-mc-row:hover { background: var(--wx-surface-2); }
.lbv2-mc-best td { font-weight: 600; }
.lbv2-mc-off td { opacity: .4; }
.lbv2-mc-ko td { color: var(--c-text-muted); }
.lbv2-mc-reason { font-size: 11px; font-style: italic; }
.lbv2-mc-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lbv2-mc-dir { font-size: 11px; color: var(--c-text-muted); margin-left: 4px; }
.lbv2-mc-sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.lbv2-mc-win { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: #34C759; color: #fff; padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-weight: 700; }
.lbv2-mc-legend { font-size: 11px; color: var(--c-text-muted); line-height: 1.5; margin-top: 10px; }
.lbv2-mc-agg { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--c-border); }
@media (max-width: 999px) {
    .lbv2-mc-card { padding: 16px 18px; }
    .lbv2-mc-table th:nth-child(5), .lbv2-mc-table td:nth-child(5) { display: none; }
}

/* ── FIL MOBILE À PLAT (request user 2026-10-05) ───────────────────────────
   Les vols sortent de leur carte : plus de fond, de bordure ni d'arrondi, le
   média va d'un bord à l'autre de l'écran, et UN filet 1 px pleine largeur
   sépare deux vols (les traits internes stats / actions / commentaires sont
   retirés, sinon trois traits par vol se confondent avec le séparateur).
   Périmètre initial : le Fil seul (#lbv2-feed-list) ; étendu le 2026-10-13 à Mes vols,
   Annuaire et Clubs (bloc suivant). Profil et Messages gardent leurs marges.
   Pas de marges négatives : .lbv2-main-content défile (overflow-y:auto), tout
   débordement latéral y serait rogné. On annule donc la marge de la grille
   tant que l'overlay n'a pas .lbv2-tab-framed (posée par setMainTab).
   Condition = celle du layout téléphone (rail masqué, barre du bas). */
@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    #lbv2-overlay:not(.lbv2-tab-framed) .lbv2-grid { padding-left: 0; padding-right: 0; }
    #lbv2-overlay:not(.lbv2-tab-framed) .lbv2-tab-subrow,
    #lbv2-overlay:not(.lbv2-tab-framed) .lbv2-feed-tabs { padding-left: 14px; padding-right: 14px; }
    /* Fond blanc sous tout le Fil (request user 2026-10-05) : couleur de surface, donc fond sombre
       équivalent en mode nuit. Posé sur le panneau (et non sur chaque vol) pour couvrir aussi la
       marge basse et l'état vide ; min-height pour ne pas laisser le dégradé sous un fil court. */
    #lbv2-community-feed { background: var(--c-surface); min-height: 100%; }
    /* Profil pleine page comme les autres sections (request user 2026-10-18) : bord à bord, fond plein */
    #lbv2-profile-center { min-height: 100%; border-radius: 0; border-left: 0; border-right: 0; }
    #lbv2-feed-list > .lbv2-flight {
        background: transparent; border: 0; border-radius: 0; overflow: visible;
        margin: 0; padding: 16px 0 8px;
        border-bottom: 1px solid var(--c-border);
    }
    #lbv2-feed-list > .lbv2-flight:first-child { padding-top: 12px; }
    #lbv2-feed-list > .lbv2-flight:last-of-type { border-bottom: 0; }
    #lbv2-feed-list .lbv2-flight-head { padding: 0 14px 10px; }
    #lbv2-feed-list .lbv2-flight-title { padding: 0 14px 10px; }
    #lbv2-feed-list .lbv2-flight-stats { border-top: 0; padding: 14px 14px 6px; }
    #lbv2-feed-list .lbv2-flight-actions { border-top: 0; padding: 2px 6px 0; }
    #lbv2-feed-list .lbv2-comments { border-top: 0; padding: 6px 14px 10px; }
}
/* ── MES VOLS · ANNUAIRE · CLUBS MOBILES À PLAT (request user 2026-10-13) ──
   Même traitement que le Fil : fond blanc (surface) sous tout l'écran, blocs
   sans cadre ni arrondi, bord à bord, UN filet 1 px pleine largeur entre deux
   entrées. Mes vols : le trait horizontal au-dessus des stats disparaît, les
   séparateurs verticaux entre Durée / Distance / Alt max / V max restent.
   Périmètre : liste + corbeille de Mes vols (la vue Cards et la fiche ballon
   gardent leurs cadres), liste de l'Annuaire, listes Mes clubs / Tous les clubs
   (la page d'un club rend dans un autre panneau, #lbv2-club-center : pas touchée). */
@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    /* Mes vols */
    #lbv2-mylist { background: var(--c-surface); min-height: 100%; }
    #lbv2-mylist .lbv2-ml-body { padding: 0 0 96px; }
    /* Barre récap : teinte légèrement différente du blanc des vols et COLLANTE sous la barre du haut
       (request user 2026-10-13). Le sticky avait été retiré quand la barre était transparente (texte
       illisible au scroll) ; opaque, il redevient lisible. Scroller = .lbv2-main-content, et
       .lbv2-right-col est déjà en overflow:visible sur mobile (sinon le sticky casse). */
    /* Fond SOMBRE (request user 2026-10-15) : même teinte que le bandeau d'instruments
       de la Track (#live-metric-strip), dont cette barre reprend déjà les couleurs de
       valeurs — elles sont pensées pour du sombre, pas pour du blanc. */
    #lbv2-mylist .lbv2-ml-bar { position: sticky; top: 0; z-index: 5; margin: 0; padding: 12px 14px; background: #1c1c1e; border-bottom: 1px solid rgba(255,255,255,.08); }
    /* Valeurs aux couleurs de l'HUD Track (#hud-*-val, app.html) : Vols = speed bleu,
       Total = alt vert, Distance = vario orange */
    #lbv2-mylist .lbv2-ml-stats { opacity: 1; }
    #lbv2-mylist .lbv2-ml-bar .lbv2-ml-stat + .lbv2-ml-stat { border-left-color: rgba(255,255,255,.14); }
    #lbv2-mylist .lbv2-ml-bar .lbv2-ml-stat-l { color: rgba(255,255,255,.65); }
    #lbv2-mylist .lbv2-ml-bar .lbv2-btn-ghost { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
    #lbv2-mylist .lbv2-ml-bar .lbv2-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
    #lbv2-mylist .lbv2-ml-stats .lbv2-ml-stat:nth-child(1) .lbv2-ml-stat-v { color: #64D2FF; }
    #lbv2-mylist .lbv2-ml-stats .lbv2-ml-stat:nth-child(2) .lbv2-ml-stat-v { color: #30D158; }
    #lbv2-mylist .lbv2-ml-stats .lbv2-ml-stat:nth-child(3) .lbv2-ml-stat-v { color: #FF9F0A; }
    #lbv2-mylist .lbv2-ml-stats .lbv2-ml-bstat-unit { color: inherit; opacity: .7; }
    #lbv2-mylist .lbv2-ml-class { padding: 10px 14px; border-bottom: 1px solid var(--c-border); }
    #lbv2-mylist .lbv2-ml-grid { margin-top: 0; }
    /* Léger espacement entre blocs (request user 2026-10-13) : bande grisée de 6 px entre deux vols,
       chaque vol reste blanc avec un filet haut et bas. */
    #lbv2-mylist .lbv2-ml-desktop { background: #e6ebf2; }   /* même teinte que le bandeau de mois (request user 2026-10-13) */
    html.dark #lbv2-mylist .lbv2-ml-desktop { background: #1f2b40; }
    #lbv2-mylist .lbv2-ml-row { background: var(--c-surface); border-radius: 0; box-shadow: none; margin: 0 0 6px; padding: 14px 14px 12px 20px; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
    #lbv2-mylist .lbv2-ml-row:last-child { margin-bottom: 0; }
    #lbv2-mylist .lbv2-ml-month + .lbv2-ml-row { border-top: 0; }
    /* Request user 2026-10-13 : date en ligne (filet gauche essayé puis retiré le jour même) (le carré jour/mois/année
       est masqué) ; blocs Vols / Total / Distance de la barre récap à largeur égale et centrés. */
    /* Immat + date sur une ligne, sans filet dessous (ajouté puis retiré le 2026-10-13, request user) */
    /* Bandeau de mois : teinte distincte de la barre récap, et COLLANT juste sous elle (top = hauteur
       mesurée par _mlSyncBarH). z-index sous la barre (5) pour passer dessous en arrivant. */
    #lbv2-mylist .lbv2-ml-month { position: sticky; top: var(--lbv2-ml-bar-h, 66px); z-index: 4; margin: 0; padding: 7px 20px; background: #e6ebf2; border-bottom: 1px solid var(--c-border); }
    html.dark #lbv2-mylist .lbv2-ml-month { background: #1f2b40; }
    #lbv2-mylist .lbv2-ml-stats .lbv2-ml-stat,
    #lbv2-mylist .lbv2-ml-stats .lbv2-ml-stat:first-child { flex: 1 1 0; min-width: 0; padding: 0 6px; text-align: center; }
    #lbv2-mylist .lbv2-ml-statrow { border-top: 1px solid var(--c-border); margin-top: 10px; padding-top: 8px; }   /* trait rétabli (request user 2026-10-13) */
    /* Stats alignées à gauche dans leurs colonnes : « Durée » tombe sous l'heure de décollage (request user 2026-10-13) */
    #lbv2-mylist .lbv2-ml-statrow .lbv2-ml-stat { text-align: left; padding-left: 10px; }
    #lbv2-mylist .lbv2-ml-statrow .lbv2-ml-stat:first-child { padding-left: 0; }
    #lbv2-mylist .lbv2-ml-map { border-radius: 0; border-left: 0; border-right: 0; }
    #lbv2-mylist .lbv2-feed-msg { padding: 32px 14px; }
    #lbv2-mylist .lbv2-dir-empty, #lbv2-mylist .lbv2-dir-loading { padding-left: 14px; padding-right: 14px; }   /* « Connectez-vous… » collait au bord */
    /* Annuaire */
    #lbv2-dir-center { background: var(--c-surface); min-height: 100%; }
    #lbv2-dir-center .lbv2-dir-annuaire-head { padding: 12px 14px 0; margin-bottom: 12px; }
    #lbv2-dir-center #lbv2-ann-filters { padding: 0 14px; }
    #lbv2-dir-center .lbv2-dir-sec-lbl,
    #lbv2-dir-center .lbv2-dir-empty,
    #lbv2-dir-center .lbv2-dir-loading { padding-left: 14px; padding-right: 14px; }
    /* Clubs (listes seulement) */
    #lbv2-clubs-center { background: var(--c-surface); min-height: 100%; }   /* la page d'un club rend dans #lbv2-club-center, autre panneau */
    #lbv2-clubs-body .lbv2-dir-sec-lbl { padding: 14px 14px 0; margin-bottom: 10px; }
    #lbv2-clubs-body .lbv2-dir-empty,
    #lbv2-clubs-body .lbv2-dir-loading { padding-left: 14px; padding-right: 14px; }
    #lbv2-clubs-body .lbv2-clubs-create-foot { padding: 14px; }
    #lbv2-clubs-body #lbv2-clubs-map { border-radius: 0 !important; }
    #lbv2-clubs-body .lbv2-dir-clubs-grid { padding: 0 14px; }
    #lbv2-clubs-center .lbv2-clubs-mvt { padding-top: 12px; }
    /* Lignes de liste communes Annuaire / Clubs */
    #lbv2-dir-center .lbv2-dir-list-view,
    #lbv2-clubs-body .lbv2-dir-list-view { border: 0; border-radius: 0; gap: 0; background: transparent; }
    #lbv2-dir-center .lbv2-dir-list-row,
    #lbv2-clubs-body .lbv2-club-list-row { background: transparent; padding-left: 14px; padding-right: 14px; border-bottom: 1px solid var(--c-border); }
    #lbv2-dir-center .lbv2-dir-list-row { padding-top: 12px; padding-bottom: 12px; }
    #lbv2-dir-center .lbv2-dir-list-row:last-child,
    #lbv2-clubs-body .lbv2-club-list-row:last-child { border-bottom: 0; }
    /* La règle mobile existante (~l.1673) fait de chaque club une carte arrondie à ombre : à plat ici */
    #lbv2-clubs-body .lbv2-club-list-row { border-top: 0; border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; margin: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Page Club refondue (request user 2026-11-18) : plus de BTN retour, fiche
   d'identité pour tous (président, membres, vols, heures, description, base),
   onglets réservés aux membres (Membres · Derniers vols · Photos · Ballons ·
   Carte · Admin). L'admin (community_clubs.js) se rend dans l'onglet Admin.
   ═══════════════════════════════════════════════════════════════════════════ */
.lbv2-cd-idcard { margin-top: 18px; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; }
.lbv2-cd-idrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lbv2-cd-idpres { flex: 1 1 220px; min-width: 0; }
.lbv2-cd-idpres:empty { display: none; }
.lbv2-cd-idcard .lbv2-cd-pres { padding: 0; border: 0; background: transparent; }
.lbv2-cd-idcard .lbv2-cd-pres:hover { background: transparent; }
.lbv2-cd-idcard .lbv2-cd-pres-role { margin: 0 0 1px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.lbv2-cd-facts { display: flex; gap: 0; margin-left: auto; }
.lbv2-cd-fact { text-align: center; padding: 0 16px; border-left: 1px solid var(--c-border); min-width: 64px; }
.lbv2-cd-fact:first-child { border-left: 0; }
.lbv2-cd-fact-v { font-family: 'DM Sans', 'Inter', sans-serif; font-size: 22px; color: var(--c-text); line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lbv2-cd-fact-l { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); margin-top: 3px; white-space: nowrap; }
.lbv2-cd-idcard .lbv2-club-detail-desc { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.lbv2-cd-base { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--c-text-muted); }
.lbv2-cd-base b { color: var(--c-text); font-weight: 600; }
.lbv2-cd-locked { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--c-border); border-radius: 12px; font-size: 13px; color: var(--c-text-muted); }
.lbv2-cd-locked svg { flex-shrink: 0; }

/* Ligne Crew compacte (membres) — activation/révocation dans l'onglet Admin */
#lbv2cd-crew { margin-top: 16px; }
#lbv2cd-crew:empty { display: none; }
.lbv2-cd-crewline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; }
.lbv2-cd-crew-url { flex: 1 1 200px; min-width: 0; font-size: 12px; color: #3a6ea5; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv2-cd-crew-url:hover { text-decoration: underline; }
html.dark .lbv2-cd-crew-url { color: #7fb0e8; }

/* Onglets */
.lbv2-cd-tabs { display: flex; gap: 22px; margin-top: 20px; border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lbv2-cd-tabs::-webkit-scrollbar { display: none; }
.lbv2-cd-tab { position: relative; flex-shrink: 0; padding: 10px 0 11px; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); white-space: nowrap; }
.lbv2-cd-tab:hover { color: var(--c-text); }
.lbv2-cd-tab.active { color: var(--c-text); }
.lbv2-cd-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-text); }
.lbv2-cd-tab .lbv2-cd-req-badge { margin-left: 5px; }
.lbv2-cd-tabpanel { padding-top: 14px; }

/* Membres en liste (actions de gestion à droite pour owner/admin) */
.lbv2-cd-mem-list { display: flex; flex-direction: column; }
.lbv2-cd-mem-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--c-border); cursor: pointer; }
.lbv2-cd-mem-row:last-child { border-bottom: 0; }
.lbv2-cd-mem-row:hover { background: var(--wx-surface-2); }
.lbv2-cd-mem-row .lbv2-cd-mem-av { width: 38px; height: 38px; margin: 0; flex-shrink: 0; font-size: 14px; }
.lbv2-cd-mem-txt { flex: 1; min-width: 0; }
.lbv2-cd-mem-row .lbv2-cd-mem-name { margin-top: 0; font-size: 13.5px; }
.lbv2-cd-mem-acts { display: flex; gap: 6px; flex-shrink: 0; }
.lbv2-cd-mact { padding: 5px 9px; border: 1px solid var(--c-border); border-radius: 7px; background: var(--c-surface); color: var(--c-text); font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lbv2-cd-mact:hover { border-color: var(--c-text); }
.lbv2-cd-mact-danger { color: #c62828; }
.lbv2-cd-mact-danger:hover { border-color: #c62828; }

/* Photos des derniers vols */
.lbv2-cd-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.lbv2-cd-photo { aspect-ratio: 1 / 1; border: 0; padding: 0; border-radius: 8px; background-color: var(--wx-surface-2, #eee); background-size: cover; background-position: center; cursor: pointer; }
.lbv2-cd-photo:hover { filter: brightness(.92); }

/* Admin dans l'onglet : pas de padding de modale */
.pm-club-admin-body.pm-club-admin-intab { padding: 0; }

@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    .lbv2-cd-idrow { gap: 12px; }
    .lbv2-cd-facts { margin-left: 0; width: 100%; justify-content: space-between; }
    .lbv2-cd-fact { flex: 1; padding: 0 6px; min-width: 0; }
    .lbv2-cd-fact-v { font-size: 19px; }
    .lbv2-cd-tabs { gap: 18px; }
    .lbv2-cd-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
    .lbv2-cd-photo { border-radius: 4px; }
    .lbv2-cd-mem-acts { gap: 4px; }
    .lbv2-cd-mact { padding: 5px 7px; font-size: 10.5px; }
}

/* Membres les plus actifs (request user 2026-11-18) — podium en tête de l'onglet Membres */
.lbv2-cd-active { margin-bottom: 14px; }
.lbv2-cd-active-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text); margin-bottom: 8px; }
.lbv2-cd-active-lbl span { color: var(--c-text-muted); font-weight: 600; letter-spacing: .06em; }
.lbv2-cd-active-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lbv2-cd-active-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px 10px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); cursor: pointer; min-width: 0; }
.lbv2-cd-active-card:hover { border-color: var(--c-text); }
.lbv2-cd-active-av { position: relative; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.lbv2-cd-active-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.lbv2-cd-active-medal { position: absolute; right: -6px; bottom: -4px; font-size: 17px; line-height: 1; }
.lbv2-cd-active-name { font-size: 12.5px; font-weight: 700; color: var(--c-text); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv2-cd-active-meta { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Liste des clubs sur téléphone : UN club par ligne, bord à bord, filet comme le Fil
   (request user 2026-11-18). Vue « vignettes » seulement ; la vue liste est déjà à plat. */
@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    #lbv2-clubs-center .lbv2-dir-clubs-grid { display: flex; flex-direction: column; gap: 0; }
    #lbv2-clubs-center .lbv2-cc {
        flex-direction: row; align-items: center; gap: 14px; overflow: visible;
        padding: 12px 14px; border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0;
        background: transparent; box-shadow: none; transform: none;
    }
    #lbv2-clubs-center .lbv2-cc:last-child { border-bottom: 0; }
    #lbv2-clubs-center .lbv2-cc-cover { flex: 0 0 76px; width: 76px; aspect-ratio: 1 / 1; border-radius: 10px; }
    #lbv2-clubs-center .lbv2-cc-cover::after { border-radius: 10px; }
    #lbv2-clubs-center .lbv2-cc-badges { top: 4px; left: 4px; right: 4px; }
    #lbv2-clubs-center .lbv2-cc-badges .lbv2-club-badge { font-size: 9px; padding: 1px 5px; }
    #lbv2-clubs-center .lbv2-cc-logo { width: 34px; height: 34px; left: auto; right: -8px; bottom: -8px; border-width: 2px; border-radius: 9px; font-size: 12px; }
    #lbv2-clubs-center .lbv2-cc-body { padding: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; align-items: center; }
    #lbv2-clubs-center .lbv2-cc-body > * { grid-column: 1; }
    #lbv2-clubs-center .lbv2-cc-name { font-size: 15px; overflow-wrap: break-word; }
    #lbv2-clubs-center .lbv2-cc-meta { flex-direction: row; font-size: 11.5px; gap: 2px 8px; }
    #lbv2-clubs-center .lbv2-cc-desc { display: none; }
    #lbv2-clubs-center .lbv2-cc-pres { border-top: 0; padding-top: 0; margin-top: 1px; gap: 6px; }
    #lbv2-clubs-center .lbv2-cc-pres-txt { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
    #lbv2-clubs-center .lbv2-cc-pres-lbl { font-size: 9.5px; }
    #lbv2-clubs-center .lbv2-cc-pres-name { font-size: 12px; }
    #lbv2-clubs-center .lbv2-cc-body > .lbv2-cc-actions { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; margin: 0; padding: 0; }
    .lbv2-cd-active-row { gap: 6px; }
    .lbv2-cd-active-card { padding: 10px 4px 8px; }
}

/* BTN message direct : profil pilote + lignes membres du club (request user 2026-11-18) */
.lbv2-pf-msg-btn { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lbv2-cd-mact-msg { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; }

/* Onglet Clubs (request user 2026-11-18) : moteur de recherche, logos sur la carte,
   vignettes mobile collées à gauche et à angles droits */
.lbv2-clubs-search { position: relative; display: flex; align-items: center; margin: 0 0 14px; }
.lbv2-clubs-search > svg { position: absolute; left: 12px; color: var(--c-text-muted); pointer-events: none; }
.lbv2-clubs-search input { width: 100%; height: 42px; padding: 0 38px 0 36px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface); color: var(--c-text); font-family: inherit; font-size: 14px; outline: none; -webkit-appearance: none; appearance: none; }
.lbv2-clubs-search input:focus { border-color: var(--c-text); }
.lbv2-clubs-search input::-webkit-search-cancel-button { display: none; }
.lbv2-clubs-search-clear { position: absolute; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--c-text-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.lbv2-clubs-search-clear:hover { color: var(--c-text); background: var(--wx-surface-2, rgba(0,0,0,.05)); }
.lbv2-club-pin { background: transparent; border: 0; }
.lbv2-club-pin-in { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fff; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.lbv2-club-pin-in::after { content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 6px solid transparent; border-top: 7px solid #fff; border-bottom: 0; filter: drop-shadow(0 2px 1px rgba(0,0,0,.2)); }
.lbv2-club-pin-in img, .lbv2-club-pin-in span { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; object-fit: cover; color: #fff; font-size: 12px; font-weight: 700; overflow: hidden; }
@media (max-width: 768px), (pointer: coarse) and (max-width: 999px) {
    #lbv2-clubs-center .lbv2-clubs-search { margin: 0 14px 12px; }
    #lbv2-clubs-center .lbv2-cc { padding-left: 0; gap: 16px; }
    #lbv2-clubs-center .lbv2-cc-cover,
    #lbv2-clubs-center .lbv2-cc-cover::after { border-radius: 0; }
    #lbv2-clubs-center .lbv2-cc-cover { flex-basis: 84px; width: 84px; }
}
