/* ═══════════════════════════════════════════════════════════════
   ORBIS — MOBILE
   Chargé uniquement sous 768px (voir <link media="(max-width:768px)">).
   Ce fichier n'adapte pas la version PC : il redessine l'essentiel pour
   un usage tactile — minimal, aéré, une seule information à la fois.
   Placé en fin de <head> pour passer après tout le reste (y compris
   les <style> inline de chaque page) et gagner les conflits de cascade.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --m-gutter: 16px;
    --m-radius: 14px;
    --m-tabbar-h: 60px;
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* Sécurité anti-débordement horizontal : quelle que soit la cause exacte
   (grille, flex, marge négative...), aucun conteneur ne doit pouvoir
   pousser la page plus large que l'écran. */
* { min-width: 0; }
.premium-wrap, .main-stage, .dashboard-grid, .main-container, .docs-layout,
.legal-wrap, .server-layout, .main-content, .plans-grid, .premium-features,
.feat-list, .servers-grid { max-width: 100vw; overflow-x: hidden; }

img, svg, video { max-width: 100%; height: auto; }

/* ─────────────────────────────────────────────
   TOPNAV — juste logo + avatar
   ───────────────────────────────────────────── */
.topnav {
    min-height: 56px;
    height: 56px;
    padding: 8px var(--m-gutter);
    padding-left: max(var(--m-gutter), env(safe-area-inset-left));
    padding-right: max(var(--m-gutter), env(safe-area-inset-right));
    gap: 8px;
    /* Pas de backdrop-filter ici : il transformerait la barre en « bloc conteneur » et le menu utilisateur
       (position:fixed, feuille du bas) se retrouverait coincé dans les 56px de la barre, hors écran. */
    background: rgba(7, 9, 18, .97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.topnav-left { min-width: 0; gap: 0; flex-wrap: nowrap; }
.topnav-logo { font-size: .98rem; gap: 8px; white-space: nowrap; }
.topnav-logo-img { width: 26px; height: 26px; }
.topnav-links { display: none !important; }
.topnav-right { width: auto; margin-left: auto; gap: 8px; flex-wrap: nowrap; }
/* Le bouton Support quitte la barre : il vit dans le menu utilisateur (voir plus bas) */
.topnav-right > a.btn-outline[href*="discord.gg"] { display: none !important; }

.user-pill { width: 40px; height: 40px; padding: 3px; justify-content: center; border-radius: 50%; }
.user-pill img { width: 30px; height: 30px; }
.user-pill span, .user-pill .user-menu-chevron { display: none; }
.user-menu-dropdown {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.user-menu-dropdown::before {
    content: "";
    display: block;
    width: 40px; height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    margin: 2px auto 10px;
}
.user-menu-item, .user-menu-item-btn { min-height: 46px; }
/* Entrée "Support" dupliquée dans le menu utilisateur (ajoutée en JS, voir orbis-mobile.js) */
.user-menu-item-mobile { display: flex !important; }
@media (min-width: 769px) { .user-menu-item-mobile { display: none !important; } }

/* ─────────────────────────────────────────────
   BOUTONS / CHAMPS — cibles tactiles confortables
   ───────────────────────────────────────────── */
.btn { min-height: 46px; padding: 0.7rem 1.1rem; font-size: .88rem; }
.btn-sm { min-height: 40px; padding: 0.55rem 0.9rem; font-size: .8rem; }
input, select, textarea, button { font-size: 16px; } /* empêche le zoom auto iOS au focus */

/* ─────────────────────────────────────────────
   CARTES — surfaces plates, pas de relief empilé
   ───────────────────────────────────────────── */
.card, .module-card, .plan-card, .stat-card, .docs-feature-card, .premium-feature, .legal-contact-card {
    border-radius: var(--m-radius) !important;
    box-shadow: none !important;
    transform: none !important;
}
.card:hover, .module-card:hover, .plan-card:hover, .stat-card:hover,
.docs-feature-card:hover, .premium-feature:hover { transform: none !important; }

/* Cartes imbriquées (Automod, etc.) : on retire le relief des niveaux internes
   pour qu'une carte-dans-une-carte ne lise plus comme 3 boîtes empilées,
   juste des sections séparées par un filet. */
.card .card, .automod-cols .card, .rr-layout .card {
    background: transparent !important;
    border: none !important;
    border-top: 1px solid var(--border);
    border-radius: 0 !important;
    padding: 14px 2px !important;
    margin: 0 !important;
}
.card .card:first-child, .automod-cols .card:first-child, .rr-layout .card:first-child { border-top: none; }

/* Carte "Évolution des membres" : moins de padding, graphique plus compact */
#overview > .card[style*="padding: 1.5rem"] { padding: 1.1rem 0.9rem !important; }
#overview [style*="height:280px"], #overview [style*="height: 280px"] { height: 220px !important; }
#memberChartCurrent { font-size: .98rem !important; }


/* ─────────────────────────────────────────────
   BARRE D'ONGLETS GLOBALE (Accueil / Serveurs / Premium / Docs)
   ───────────────────────────────────────────── */
.m-tabbar {
    position: fixed;
    z-index: 350;
    left: 0; right: 0; bottom: 0;
    display: flex;
    height: calc(var(--m-tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8, 10, 20, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
}
.m-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-tertiary);
    text-decoration: none;
    font: 600 11px/1.1 var(--font);
    -webkit-tap-highlight-color: transparent;
}
.m-tabbar-item svg { width: 21px; height: 21px; }
.m-tabbar-item.active { color: #c4b5fd; }
.m-tabbar-item:active { opacity: .7; }
/* Espace réservé en bas de page pour ne rien laisser passer sous la barre */
body:has(.m-tabbar) { padding-bottom: calc(var(--m-tabbar-h) + env(safe-area-inset-bottom)); }

/* ─────────────────────────────────────────────
   PAGE SERVEUR — bottom nav + feuille "Plus"
   (remplace l'ancien bloc supprimé d'orbis.css, en plus sobre)
   ───────────────────────────────────────────── */
.server-layout { min-height: calc(100vh - 56px) !important; flex-direction: column; }
.server-layout .sidebar { display: none !important; }
.main-content {
    margin-left: 0 !important;
    max-width: 100vw !important;
    width: 100%;
    padding: 14px var(--m-gutter) calc(var(--m-tabbar-h) + 24px + env(safe-area-inset-bottom)) !important;
}
body:has(.mobile-bottom-nav) { padding-bottom: 0; }

.main-content > .page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
    border-radius: var(--m-radius);
}
.page-header h1 { font-size: 1.2rem !important; line-height: 1.25; }
.page-header p { font-size: .78rem !important; }
.save-bar { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 6px !important; width: 100%; flex-wrap: nowrap !important; }
.save-bar .btn-outline,
.save-bar #toggleBotBtn,
.save-bar .bot-toggle {
    flex: 1 1 0 !important;
    justify-content: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    min-height: 36px;
    border-radius: 10px !important;
    font-size: .72rem !important;
    padding: 0 .55rem !important;
    margin-left: 0 !important;
    box-sizing: border-box;
    gap: 5px !important;
}
.save-bar .btn-outline { order: 2; }
.save-bar #toggleBotBtn, .save-bar .bot-toggle { order: 1; }
.save-bar .bot-toggle-label { white-space: nowrap; }
.save-bar .bot-toggle-dot { width: 5px; height: 5px; }
/* État de sauvegarde : petit toast flottant plutôt qu'une ligne de texte dans l'en-tête */
.save-status {
    position: fixed;
    left: 50%;
    bottom: calc(var(--m-tabbar-h) + 12px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(6px);
    z-index: 360;
    background: rgba(16, 185, 129, .16);
    border: 1px solid rgba(16, 185, 129, .35);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .78rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.save-status.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.section-title { font-size: 1rem; margin-bottom: 10px; }
.section-desc { font-size: .8rem; line-height: 1.5; }
.stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; margin-bottom: 16px; }
.stat-card { padding: 12px !important; }
.stat-card span { font-size: .68rem; }
.stat-card h3 { font-size: 1.25rem !important; }
.form-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
.toggle-row, .autorole-row { padding: 12px 2px !important; flex-wrap: wrap; gap: 10px; }
.toggle-label { font-size: .86rem; }
.toggle-desc { font-size: .74rem; line-height: 1.4; }

/* Champs pleine largeur, 1 colonne */
.automod-cols, .rr-layout { display: flex !important; flex-direction: column !important; }
.automod-cols > *, .rr-layout > * { width: 100% !important; max-width: none !important; min-width: 0 !important; }
[style*="width:550px"], [style*="width: 550px"] { width: 100% !important; max-width: 100% !important; }
[style*="min-width:300px"], [style*="min-width: 300px"],
[style*="min-width:320px"], [style*="min-width: 320px"] { min-width: 0 !important; }

/* Tableaux : défilement horizontal contenu, jamais la page entière */
.data-table-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; margin-inline: -2px; }
.data-table { min-width: 0; width: 100%; }
.data-table th, .data-table td { padding: .55rem .6rem; font-size: .76rem; }

/* Ligne de membre tactile */
tr[data-open-member] { cursor: pointer; }

/* ─────────────────────────────────────────────
   TABLEAU DES MEMBRES → cartes compactes
   Ligne 1 : avatar + nom à gauche, bouton « Gérer » à droite
   Ligne 2 : rôles (qui passent à la ligne, jamais de débordement)
   Ligne 3 : statut à gauche, ancienneté à droite
   (sélection par position de colonne : ne dépend pas de la langue des en-têtes)
   ───────────────────────────────────────────── */
#members .form-group { max-width: none !important; }
#members .table-container {
    overflow-x: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
#members .data-table, #members .data-table tbody { display: block; width: 100%; min-width: 0 !important; }
#members .data-table thead { display: none; }
#members .data-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "member actions" "roles roles" "status joined";
    gap: 10px 12px;
    align-items: center;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}
#members .data-table td {
    display: block;
    min-width: 0;
    padding: 0 !important;
    border: none !important;
    font-size: .8rem !important;
}
#members .data-table td[colspan] { grid-area: 1 / 1 / 2 / -1; text-align: center; padding: 14px 0 !important; }
#members .data-table td:nth-child(1):not([colspan]) { grid-area: member; }
#members .data-table td:nth-child(2) { grid-area: roles; display: flex; flex-wrap: wrap; gap: 6px; }
#members .data-table td:nth-child(3) { grid-area: status; display: flex; align-items: center; gap: 6px; }
#members .data-table td:nth-child(4) { grid-area: joined; text-align: right; }
#members .data-table td:nth-child(5) { grid-area: actions; }
#members .data-table td.member-cell > div { min-width: 0; }
#members .data-table td.member-cell > div > div { min-width: 0; }
#members .data-table td.member-cell > div > div > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#members .data-table td:nth-child(2) .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#members .data-table td:nth-child(2) .badge[onclick] { min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; }
#members .data-table td:nth-child(5) .btn { width: auto; }


/* ─────────────────────────────────────────────
   BOTTOM NAV propre à server.ejs (Aperçu / Membres / …)
   ───────────────────────────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    z-index: 350;
    left: 0; right: 0; bottom: 0;
    display: flex;
    height: calc(var(--m-tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8, 10, 20, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-bottom-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font: 600 11px/1.1 var(--font);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav button i { font-size: 17px; }
.mobile-bottom-nav button.active { color: #c4b5fd; }
.mobile-bottom-nav button:active { opacity: .7; }

.mobile-nav-sheet-backdrop {
    position: fixed; inset: 0; z-index: 355;
    background: rgba(0,0,0,.55);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.mobile-nav-sheet {
    position: fixed; z-index: 356;
    left: 0; right: 0; bottom: 0;
    max-height: min(80vh, 720px);
    padding: 10px 14px calc(20px + env(safe-area-inset-bottom));
    background: var(--bg-elevated, #0b0d16);
    border-top: 1px solid rgba(255,255,255,.1);
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
    transition: transform .28s var(--ease-out-soft, ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.mobile-nav-open .mobile-nav-sheet-backdrop { opacity: 1; visibility: visible; }
body.mobile-nav-open .mobile-nav-sheet { transform: translateY(0); }
.mobile-nav-sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 2px auto 10px; }

/* Champ de recherche + liste à une colonne (au lieu du mur de boutons encadrés) */
.mobile-nav-search {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
}
#mobileNavLinks .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
}
#mobileNavLinks .nav-link {
    min-height: 50px;
    padding: 12px 8px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: normal;
}
#mobileNavLinks .nav-link.active { color: #c4b5fd; }
#mobileNavLinks .nav-links > div:not(.nav-link) {
    padding: 14px 8px 4px !important;
    font-size: .68rem !important;
}
#mobileNavLinks .nav-link.m-hidden { display: none !important; }
.mobile-nav-empty { padding: 24px 8px; text-align: center; color: var(--text-tertiary); font-size: .84rem; }

/* ─────────────────────────────────────────────
   ACCUEIL (index.ejs) — modules en lignes cliquables
   Le hero et la grille de stats sont déjà repensés dans le <style>
   inline de la page (900px/380px) ; on ajoute juste la liste de modules.
   ───────────────────────────────────────────── */
.modules-row { grid-template-columns: 1fr !important; }
.module-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    padding: 12px 14px !important;
    position: relative;
}
.module-top { margin-bottom: 0 !important; flex: 1; min-width: 0; }
.module-icon { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
.module-card h3 { font-size: .92rem !important; }
.module-card p { display: none; } /* description masquée : le libellé suffit sur mobile */
.module-divider { display: none; }
.module-meta { display: none; }
.module-btn {
    all: unset;
    position: absolute; inset: 0;
    display: block;
    border-radius: inherit;
    cursor: pointer;
    /* Toute la carte est le lien : le libellé (« Consulter les logs → ») restait dessiné en haut à gauche, PAR-DESSUS le titre du module.
       On le sort de l'écran (il reste lu par les lecteurs d'écran). */
    overflow: hidden; text-indent: -9999px; white-space: nowrap;
}
.module-btn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: -2px; }
.module-card::after {
    content: "";
    width: 8px; height: 8px;
    border-top: 2px solid var(--text-tertiary);
    border-right: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   LISTE DES SERVEURS (dashboard.ejs)
   ───────────────────────────────────────────── */
.main-container { width: 94%; margin: 20px auto calc(var(--m-tabbar-h) + 20px); }
.dashboard-header { margin-bottom: 16px; }
.dashboard-header h1 { font-size: 1.5rem !important; }
.servers-grid { gap: 8px; }
.server-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border-left: none !important;
    flex-wrap: nowrap;
}
.server-icon { width: 40px !important; height: 40px !important; font-size: .8rem; }
.server-details h3 { font-size: .92rem; }
.server-status { font-size: .74rem; }
.server-card .btn { padding: .45rem .8rem; font-size: .74rem; white-space: nowrap; }

/* ─────────────────────────────────────────────
   PREMIUM — pile de tuiles + garde-fou anti-débordement
   ───────────────────────────────────────────── */
.premium-wrap { padding: 16px var(--m-gutter) calc(var(--m-tabbar-h) + 20px); }
.premium-hero h1 { font-size: 1.4rem !important; }
.premium-features { grid-template-columns: 1fr !important; gap: 10px; }
.premium-feature { padding: 12px !important; }
.plans-grid { grid-template-columns: 1fr !important; gap: 12px; }
.plan-card { padding: 1.2rem !important; }
.feat-list li { padding: 8px 4px !important; margin: 0 !important; font-size: .82rem !important; }
/* CTA collant au-dessus de la barre d'onglets */
.premium-cta { position: sticky; bottom: calc(var(--m-tabbar-h) + 10px); z-index: 5; }
.premium-cta .btn { width: 100%; }

/* ─────────────────────────────────────────────
   DOCS / CGU / CONFIDENTIALITÉ
   ───────────────────────────────────────────── */
.docs-wrap, .docs-layout, .legal-wrap, .main-stage { padding-bottom: calc(var(--m-tabbar-h) + 16px) !important; }
.docs-feature-card, .legal-contact-card { padding: 14px !important; }

/* ─────────────────────────────────────────────
   DÉCORATIF — on retire ce qui coûte cher et n'aide pas la lecture
   ───────────────────────────────────────────── */
.orbis-bg { background-image: linear-gradient(rgba(4,7,18,.5), rgba(4,7,18,.68)), url("/banner.png"); }
.orb-bg, .orb-bg-2, .hero-orb-visual { animation: none !important; }


/* ═══════════════════════════════════════════════════════════════
   PASSE MOBILE v2 — ergonomie une main / un doigt
   ═══════════════════════════════════════════════════════════════ */

/* Viewport dynamique iOS : 100vh dépasse la zone visible (barre Safari) */
.server-layout { min-height: calc(100dvh - 56px) !important; }
.mobile-nav-sheet { max-height: min(80dvh, 720px); }
#memberPanel { height: 100dvh !important; padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; }

/* Menu utilisateur : fond assombri (un tap dessus le ferme, voir orbis-mobile.js) */
.user-menu.open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 340; }
.user-menu-dropdown { z-index: 341; }

/* Cibles tactiles */
.topnav-logo { min-height: 44px; display: inline-flex; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.icon-btn, .icon-btn-neutral { min-width: 44px; min-height: 44px; flex: none; }
.rr-remove-btn { min-width: 36px; min-height: 36px; }
#memberPanelContent .badge button { padding: 8px !important; margin: -8px -6px -8px 0 !important; min-width: 28px; min-height: 28px; }
.docs-nav-link { min-height: 44px; display: flex; align-items: center; }
#docs-sidebar-close-btn { min-width: 44px; min-height: 44px; }
.legal-toc a { min-height: 40px; }

/* Textes trop petits */
.stat-card span { font-size: .72rem; }

/* En-tête du serveur : on garde le nom + les 2 boutons, la phrase d'accroche est superflue sur mobile */
.main-content > .page-header p { display: none; }

/* Cartes de section : moins de marge interne perdue (les champs gagnent en largeur) */
.section .card:not(.card .card) { padding: 14px !important; }
textarea, textarea.form-control { min-height: 92px; }

/* Bouton d'action final d'une carte (Enregistrer, Créer…) : pleine largeur, facile au pouce */
.section .card > .btn:not(.btn-sm), .section .card > button.btn:not(.btn-sm) { display: flex; width: 100%; margin-top: 12px; }
.section .card > .btn + .btn { margin-top: 8px; }

/* Groupes de boutons (Avertir / Voir / Effacer, Donner / Retirer…) */
.m-actions { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.m-actions > .btn { flex: 1 1 calc(50% - 4px) !important; margin: 0 !important; }
.m-actions--lead > .btn:first-of-type { flex-basis: 100% !important; }
.m-actions > .form-group { flex: 1 1 100% !important; min-width: 0 !important; margin: 0 0 4px !important; }

/* Lignes de liste (backups, giveaways, suggestions…) : le texte prend la largeur, les actions passent dessous si besoin */
.section .card[style*="justify-content:space-between"] { flex-wrap: wrap !important; gap: 10px !important; }
.section .card[style*="justify-content:space-between"] > div:first-child { flex: 1 1 55%; min-width: 0; }
.row-actions { flex: 1 1 100%; justify-content: flex-end; }
.row-actions .btn { flex: 1; }

/* Autorôles : sélecteur pleine largeur, puis bouton pleine largeur */
.autorole-add { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
.autorole-add .btn { width: 100%; }

/* Rôle Réaction : le sélecteur de rôle prend toute la ligne, l'emoji et « + » passent dessous */
.rr-add-role-row, .rr-msg-add-row { grid-template-columns: minmax(0, 1fr) auto !important; }
.rr-add-role-row > select, .rr-msg-add-row > select { grid-column: 1 / -1; }
.rr-msg-add-row .oep-label { display: inline !important; }
.rr-add-role-row .btn, .rr-msg-add-row .btn { min-width: 46px; }

/* Logs en direct : statut au-dessus, filtres en bandeau défilant */
.live-head { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
#logFilters { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
#logFilters::-webkit-scrollbar { display: none; }
#logFilters > * { flex: none; min-height: 36px; padding-inline: 12px !important; }

/* Pages légales : le tableau devient une pile de fiches lisibles */
.legal-wrap .data-table, .legal-wrap .data-table tbody, .legal-wrap .data-table tr, .legal-wrap .data-table td { display: block; width: 100%; min-width: 0; }
.legal-wrap .data-table thead { display: none; }
.legal-wrap .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
.legal-wrap .data-table tr:last-child { border-bottom: none; }
.legal-wrap .data-table td { border: none !important; padding: 2px 0 !important; white-space: normal !important; }
.legal-wrap .data-table td:first-child { font-size: .92rem; padding-bottom: 4px !important; }
.legal-wrap .data-table td[data-label]::before { content: attr(data-label) " · "; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); }

/* Champs et sélecteurs : hauteur tactile confortable (44px) */
select.form-control, input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 44px; }
/* Liens de pied de page : zone de toucher agrandie sans changer le visuel */
.docs-footer-links a, .docs-footer a { display: inline-flex !important; align-items: center; min-height: 44px; }
.stat-card .stat-label { font-size: max(.72rem, 11px) !important; }

.stat-item, .stat-item span { font-size: max(.72rem, 11px) !important; }
#members .data-table td:nth-child(2) .badge[onclick] { min-height: 36px; min-width: 40px; justify-content: center; }

/* Liste déroulante de recherche de membre : lignes tactiles, hauteur adaptée à l'écran */
.warn-user-option { min-height: 46px; }
#warnUserDropdown { max-height: 50dvh !important; }
