/* =====================================================================================================
   Téléphone et tablette — chargé en dernier sur toutes les pages publiques.
   ≤ 1100 px : tablette (mise en page resserrée)   ≤ 900 px : barre d'onglets en bas, fenêtres en panneaux
   ≤ 600 px : téléphone (une colonne, gros boutons, textes adaptés)
   ===================================================================================================== */

/* ---------- barre d'onglets du bas (créée par common.js) : cachée sur ordinateur */
.mnav { display: none; }

@media (max-width: 900px) {
  :root { --mnav-h: 64px; }
  body.has-mnav { padding-bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom)); }
  .mnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    display: flex; justify-content: space-around; align-items: stretch;
    height: calc(var(--mnav-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(12, 10, 18, .94); border-top: 1px solid var(--line-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }
  .mn-tab { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .mn-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 99px; transition: background .2s, color .2s; }
  .mn-ic .ico { width: 22px; height: 22px; }
  .mn-lbl { font: 700 10.5px var(--sans); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mn-tab.on { color: var(--text); }
  .mn-tab.on .mn-ic { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--accent); }
  .mn-tab:active .mn-ic { transform: scale(.92); }
  .mn-login { color: #c9b3ff; }
  .mn-badge { position: absolute; top: -3px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; font: 800 10px var(--sans); background: var(--bad); color: #fff; box-shadow: 0 0 0 2px #0c0a12; }
  body.cinema .mnav, body.embed .mnav { display: none; }
  body.cinema.has-mnav { padding-bottom: 0; }

  /* en-tête : logo + mes points + mon compte (les pages sont dans la barre du bas) */
  .topbar { padding: calc(8px + env(safe-area-inset-top)) 12px 8px; gap: 10px; }
  .topbar .top-nav, .topbar .top-sep { display: none !important; }
  .topbar .brand-name { display: block; font-size: 15px; }
  .topbar .brand-mark { width: 32px; height: 32px; }
  .account { flex: 0 1 auto; gap: 6px; }
  .me-group { padding: 3px; gap: 4px; }
  .me-group .pts-chip { height: 38px; }
  .me-group .me .me-name, .me-group .me .role { display: none; }
  .me-group .me .me-lv { display: inline-flex; }
  .me-group .me { padding: 3px 8px 3px 3px; gap: 6px; }
  /* visiteur : seulement la connexion (classement, sons et style sont dans la barre du bas / le pied de page) */
  .account > .icon-btn, .account > .tcg-btn { display: none; }
  .account > .btn.twitch { padding: 8px 12px; font-size: 13px; }

  /* menu du compte : un panneau qui monte du bas, avec un voile derrière (toucher le voile = fermer) */
  .menu[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 30; background: rgba(5, 4, 10, .6); cursor: default; animation: sheet-fade .2s; }
  .menu-pop {
    position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; z-index: 31;
    width: auto !important; min-width: 0 !important; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 12px calc(14px + env(safe-area-inset-bottom)) !important; border-radius: 22px 22px 0 0 !important;
    animation: sheet-up .26s cubic-bezier(.2, .9, .3, 1);
  }
  .menu-pop::before { content: ""; position: absolute; left: 50%; top: 7px; width: 42px; height: 4px; translate: -50% 0; border-radius: 99px; background: rgba(255,255,255,.22); }
  .menu-pop a, .menu-pop button { padding: 12px 12px; font-size: 15px; }

  /* bulle des points : même chose (le voile = une ombre géante ; toucher dehors la ferme déjà) */
  .pts-pop {
    position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; z-index: 31;
    width: auto !important; max-height: 84vh; border-radius: 22px 22px 0 0 !important; padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 0 0 100vmax rgba(5, 4, 10, .6), 0 -10px 40px rgba(0,0,0,.5) !important;
    animation: sheet-up .26s cubic-bezier(.2, .9, .3, 1);
  }

  /* toutes les fenêtres du site : panneau plein largeur collé en bas */
  dialog.link-dialog, dialog.gx-dlg, dialog.mk-dlg, dialog.pl-dlg {
    width: 100% !important; max-width: 100% !important; margin: auto 0 0 !important; max-height: 92vh !important; max-height: 92dvh !important;
    border-radius: 22px 22px 0 0 !important; border-bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  dialog.link-dialog[open], dialog.gx-dlg[open], dialog.mk-dlg[open], dialog.pl-dlg[open] { animation: sheet-up .28s cubic-bezier(.2, .9, .3, 1); }
  dialog.link-dialog { overflow-y: auto; overscroll-behavior: contain; }
  /* fenêtre « collection d'un autre » : plein écran */
  dialog.col-dlg { width: 100vw !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important; }
  dialog.col-dlg[open] { display: flex; flex-direction: column; }
  .col-dlg iframe { flex: 1 1 auto !important; aspect-ratio: auto !important; height: auto !important; border-radius: 0 !important; }

  /* notifications au-dessus de la barre du bas */
  .toast { bottom: calc(var(--mnav-h) + 14px + env(safe-area-inset-bottom)) !important; left: 12px !important; right: 12px !important; transform: none !important; max-width: none !important; text-align: center; }
  .toast:not(.show) { transform: translateY(20px) !important; }

  /* menus déroulants du site : plus hauts, dans l'écran */
  .psel-btn { height: 42px; }
  .psel-list { max-height: 50vh; overflow-y: auto; }
  .psel-opt { padding: 11px 12px; font-size: 14.5px; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-fade { from { opacity: 0; } }

/* ---------- téléphone */
@media (max-width: 600px) {
  .topbar .brand-name { max-width: 34vw; font-size: 13.5px; }
  .pts-chip .pc-val { font-size: 13px; }
  /* boutons : une vraie zone de doigt */
  .btn { min-height: 42px; }
  .btn.small { min-height: 36px; }
  /* pied de page : centré et aéré */
  .site-footer { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 380px) {
  .topbar .brand-name { display: none; }
}

/* ---------- appareils tactiles : pas d'effets de survol qui restent « collés » après un toucher */
@media (hover: none) {
  .btn:hover { filter: none; }
}

/* =====================================================================================================  LIVE (accueil) */
@media (max-width: 960px) {
  .hero { padding: 28px 0 22px; }
  .live { gap: 12px; }
  .player-wrap { order: 1; }
  .support-col { order: 2; }
  .chat-wrap { order: 3; }
  .chat { min-height: 0; height: min(62vh, var(--chat-h, 460px)); }
  .player { width: 100%; }
}
@media (max-width: 600px) {
  main { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 18px 0 16px; }
  .hero-label { font-size: 11.5px; letter-spacing: .14em; }
  .timer { font-size: calc(min(21vw, 92px) * var(--num-scale)); }
  .hero-meta { margin-top: 10px; gap: 6px 10px; }
  .hero-tagline { font-size: 13.5px; }
  .live { padding: 8px; border-radius: 16px; }
  .player { border-radius: 10px; }
  .player-bar { display: none; }               /* mode cinéma : le plein écran du lecteur Twitch fait mieux sur téléphone */
  /* soutien : 4 tuiles compactes en 2 × 2 */
  .support-col:not(.quick-col) .col-title { display: none; }
  .support { grid-template-columns: 1fr 1fr !important; gap: 6px; }
  .support-btn { display: grid !important; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 9px 10px !important; align-items: center; }
  .support-btn:hover { transform: none; }
  .support-icon { width: 32px !important; height: 32px !important; font-size: 16px !important; grid-row: span 2; margin: 0 !important; }
  .support-icon .ico { width: 16px; height: 16px; }
  .support-text b { font-size: 13px; line-height: 1.15; }
  .support-text small { font-size: 11px; line-height: 1.2; }
  .support-go { display: none; }
  .chat { height: 58vh; border-radius: 10px; }
  .chat-hint { font-size: 11px; }
  /* comment ajouter du temps */
  .rules-block { padding: 20px 12px !important; }
  .rules-head h2 { font-size: 22px; }
  .rules { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rule { padding: 12px 8px !important; }
  /* sub goals : frise resserrée, rien ne dépasse */
  .goals-block { padding: 18px 12px !important; }
  .block-head { flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .block-head h2 { font-size: 24px; }
  .timeline { --shift: 18px; }
  .tl { grid-template-columns: 40px 22px minmax(0, 1fr) !important; }
  .tl-num b { font-size: calc(20px * var(--num-scale)); }
  .tl-num small { font-size: 9px; letter-spacing: .04em; }
  .tl-dot { width: 14px; height: 14px; border-width: 2px; }
  .tl-here { font-size: calc(12px * var(--num-scale)); padding: 1px 6px; }
  .bubble { padding: 11px 12px 12px; border-radius: 12px; }
  .bubble:hover { transform: none; }
  .bubble-top { flex-wrap: wrap; gap: 4px 8px; }
  .g-title { font-size: 15px; overflow-wrap: anywhere; }
  .g-reward { font-size: 12.5px; }
  .sum-chips { flex-wrap: wrap; }
  .sum-chips span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-card { padding: 14px; }
  .count-num { font-size: calc(48px * var(--num-scale)); }
}@media (max-width: 960px) {
  .bubble { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .bubble > * { min-width: 0; }
  .sum-chips span { max-width: 100%; }
}
/* =====================================================================================================  GOLRIDEX */
/* livre : une seule page (moitié gauche de l'image) */
.mb.single { aspect-ratio: 640 / 800; max-width: 520px; overflow: hidden; touch-action: pan-y; }
.mb.single .mb-bg { width: 200%; max-width: none; }
.mb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px auto 0; }
.mb-pager span { display: grid; justify-items: center; font: 700 15px var(--sans); line-height: 1.2; }
.mb-pager span b { font: var(--num-weight, 700) 17px var(--num, 'Pixelify Sans', monospace); color: var(--accent); }
.mb-pager small { font-size: 11px; color: var(--muted); font-weight: 600; }
.mb-pg { all: unset; box-sizing: border-box; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 26px; font-weight: 700; color: #ffe8b0; background: #6b3d1c; border: 3px solid #3d2210; box-shadow: 0 4px 0 #3d2210; -webkit-tap-highlight-color: transparent; }
.mb-pg:active { transform: translateY(3px); box-shadow: 0 1px 0 #3d2210; }
.mb-pg:disabled { opacity: .3; cursor: default; }

@media (max-width: 1100px) {
  .tcg-hero { gap: 18px; }
}
@media (max-width: 900px) {
  .tcg-main { padding-top: 14px; gap: 14px; }
  /* filtres : un bandeau qui défile au doigt au lieu de 3 lignes de boutons */
  .dex-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 4px; -webkit-overflow-scrolling: touch; }
  .dex-tools::-webkit-scrollbar { display: none; }
  .dex-tools > * { flex: none; }
  .seg-chips { flex-wrap: nowrap; }
  .seg-chips button { white-space: nowrap; }
  .dex-mine { white-space: nowrap; }
}
@media (max-width: 600px) {
  .tcg-main { padding: 10px 12px 30px; }
  .tcg-hero { padding: 18px 16px; border-radius: 18px; }
  .tcg-kicker { font-size: 10.5px; }
  .tcg-hero h1 { font-size: 40px; margin: 2px 0 6px; }
  .tcg-hero p { font-size: 13.5px; margin-bottom: 12px; }
  .gx-eds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .gx-eds::-webkit-scrollbar { display: none; }
  .gx-ed { flex: none; padding: 5px 12px 5px 6px; }
  /* boosters + points */
  .tcg-wallet { border-radius: 16px; }
  .w-side { padding: 14px; }
  .w-boosters { grid-template-columns: auto 1fr; gap: 14px; }
  .w-pack { width: 56px; height: 92px; }
  .w-big { font-size: 24px; }
  .w-open { width: 100%; }
  .w-pts { font-size: 28px; }
  .w-buy { gap: 8px; }
  .w-shop { flex: 1; }
  .w-shop-hint { display: none; }
  .earn-wrap { margin-left: 0; }
  .earn-btn { padding: 11px 12px; }
  .earn-btn span { display: none; }
  .earn-pop { right: 0; left: auto; transform-origin: bottom right; }
  .earn-pop::after { left: auto; right: 14px; }
  /* en-tête du Golridex */
  .dex-head { gap: 10px; }
  .dex-head h2 { font-size: 23px; }
  .dex-actions { width: 100%; }
  .dex-pop-wrap:first-child { flex: 1; }
  .dex-prog { width: 100%; }
  .dex-pop { position: fixed; left: 0 !important; right: 0 !important; top: auto; bottom: 0; width: auto !important; border-radius: 22px 22px 0 0; z-index: 40;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 100vmax rgba(5,4,10,.6); animation: sheet-up .26s cubic-bezier(.2, .9, .3, 1); }
  #gx-market span { display: none; }
  /* barre au-dessus du livre */
  .bb-ed { flex: 1; min-width: 0; }
  .bb-ed b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* bibliothèque */
  .gx-shelf { padding: 16px 12px 0; }
  .sh-head h3 { font-size: 19px; }
  .sh-row { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 18px; }
  .gb-cover { padding: 12px 10px 12px 20px; }
  .gb-ic { font-size: 32px; }
  .gb-plate b { font-size: 12px; }
  .gb-open { opacity: 1; }
  .sh-plank { margin: 0 -12px; }
  /* carte en grand : plein écran, on balaie pour passer à la suivante */
  .tcg-zoom { grid-template-columns: 1fr; gap: 0; padding-bottom: env(safe-area-inset-bottom); }
  .tcg-zoom .z-nav { display: none; }
  .z-card .tcg-card { --cw: min(78vw, 56vh); }
  .z-info { bottom: calc(14px + env(safe-area-inset-bottom)); padding: 0 12px; flex-wrap: wrap; font-size: 13px; }
  .z-recycle { bottom: calc(52px + env(safe-area-inset-bottom)); padding: 0 12px; }
  /* boutique */
  .shop-body { padding: 12px; }
  .shop-item { gap: 12px; padding: 12px; }
  .shop-info h3 { font-size: 19px; }
  .shop-buy { width: 100%; grid-template-columns: auto 1fr; align-items: center; }
  .shop-buy > small { grid-column: 1 / -1; }
  .shop-btns { justify-content: flex-end; }
  /* boîtier des badges */
  .bcase-body { padding: 12px; gap: 12px; }
  .bc-case { padding: 12px 10px 14px; }
  .bc-grid { gap: 6px; padding: 10px 6px; }
  .bc-socket { width: 62px; }
  .bc-socket .bdg-svg { width: 48px; height: 48px; }
  .bc-d-big { width: 84px; }
  .bc-d-big .bdg-svg { width: 74px; height: 74px; }
  .bc-d-top h3 { font-size: 19px; }
  /* collections des autres */
  .others-head { align-items: stretch; }
  .others-tools { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .others-tools .others-filter, .others-tools input { grid-column: 1 / -1; }
  .others-tools .psel, .others-tools .psel-btn { width: 100%; min-width: 0; }
  .others-grid { grid-template-columns: 1fr !important; }
  /* fenêtre « collection d'un autre » */
  .col-dlg-head { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
  .col-dlg-prog .cdp-bar, #col-dlg-open { display: none; }
  /* visite */
  .visit-bar { margin-top: 0; padding: 10px 12px; gap: 10px; }
  .visit-who { flex-wrap: wrap; }
  .visit-who b { font-size: 17px; }
  .visit-who .visit-fr-btn, .visit-who .visit-fr { margin-left: 0; }
}
.mb-pager span { display: block; text-align: center; min-width: 120px; }
.mb-pager small { display: block; }

/* =====================================================================================================  MARCHÉ */
@media (max-width: 900px) {
  .mk-tabs { overflow-x: auto; scrollbar-width: none; }
  .mk-tabs::-webkit-scrollbar { display: none; }
  .mk-tabs button { flex: none; white-space: nowrap; }
  .mk-tlist { position: static; max-height: none; display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 10px; gap: 8px; scrollbar-width: none; }
  .mk-tlist::-webkit-scrollbar { display: none; }
  .mk-tlist > * { flex: none; }
  .mk-tlist .mk-new { width: auto; margin: 0; }
  .mk-tlist #tr-list { display: flex; gap: 8px; }
  .mk-tlist #tr-list > * { flex: none; }
  .mk-tdetail { min-height: 0; }
}
@media (max-width: 600px) {
  .mk-hero { padding: 16px; gap: 12px; border-radius: 18px; }
  .mk-hero h1 { font-size: 34px; }
  .mk-hero p { font-size: 13.5px; }
  .mk-wallet { width: 100%; padding: 10px 14px; }
  /* onglets : 4 boutons égaux, icône + mot court */
  .mk-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; overflow: visible; }
  .mk-tabs button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; font-size: 11.5px; position: relative; }
  .mk-tabs button .ico { width: 20px; height: 20px; }
  .mk-tabs b { position: absolute; top: 2px; right: 6px; }
  .mk-live { display: none; }
  .mk-tdetail { padding: 14px 12px; border-radius: 16px; }
  .mk-steps { gap: 4px; }
  .mk-steps li { padding: 8px; font-size: 11.5px; gap: 6px; flex-direction: column; text-align: center; }
  .mk-steps b { width: 22px; height: 22px; }
  .mk-side { padding: 12px; }
  .mk-atools { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .mk-atools .seg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mk-atools .seg-chips::-webkit-scrollbar { display: none; }
  .mk-atools .seg-chips button { white-space: nowrap; flex: none; }
  .mk-atools input { max-width: none; width: 100%; }
  .mk-atools .btn, .mk-atools #au-sell { margin: 0; width: 100%; }
  .mk-agrid, .mk-rgrid { grid-template-columns: 1fr; gap: 10px; }
  .mk-histbox { padding: 12px; }
  .mk-hist li { grid-template-columns: 1fr auto; }
  .mk-hist li small { grid-column: 1 / -1; text-align: left; }
  /* fenêtres du marché */
  .mk-dlg-head { padding: 12px 14px; }
  .mk-dlg-head h2 { font-size: 19px; }
  .mk-dlg-foot { padding: 10px 14px; }
  .mk-dlg-foot .btn { flex: 1; }
  .mk-pick-tools { padding: 10px 14px 0; }
  .mk-pick-tools input { flex: 1; }
  .mk-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; }
}
/* =====================================================================================================  PLANNING */
@media (max-width: 600px) {
  .pl-main { padding-left: 12px !important; padding-right: 12px !important; }
  .pl-hero { padding: 16px !important; gap: 14px; }
  .pl-hero h1 { font-size: 34px; }
  .pl-week { padding: 14px 10px !important; }
  .pl-week-head { gap: 10px; }
  .pl-wnav h2 { font-size: 20px; }
  /* calendrier : 2 jours et demi visibles, on fait défiler au doigt ; les heures restent collées à gauche */
  .pl-cal-wrap { scroll-snap-type: x mandatory; margin: 0 -10px; padding: 0 10px 6px; overscroll-behavior-x: contain; }
  .pl-cal { min-width: calc(40px + 7 * 38vw); --H: 760px; }
  .pl-cal-head, .pl-cal-body { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 5px; }
  .pl-chead, .pl-col { scroll-snap-align: start; scroll-margin-left: 46px; }
  .pl-corner, .pl-hcol { position: sticky; left: -10px; z-index: 8; background: #15121d; }
  .pl-hcol span { font-size: 10px; }
  .pl-chead { padding: 6px 2px; gap: 4px; }
  .pl-ev span { font-size: 11.5px; }
  .pl-list { padding: 16px 12px !important; }
  /* fiche d'un évènement : panneau du bas */
  .pl-dlg-img { max-height: 32vh; object-fit: cover; }
}
/* =====================================================================================================  STATS DES VIEWERS */
@media (max-width: 700px) {
  /* classement : une ligne par viewer (rang, nom, la valeur du tri) ; toucher = le détail complet */
  .vs-table-wrap { overflow: visible; border: 0; }
  .vs-table { min-width: 0; font-size: 14px; }
  .vs-table thead { display: none; }
  .vs-table tbody { display: grid; gap: 6px; }
  .vs-table tr { display: block; }
  .vs-table tr[data-u] { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
  .vs-table tr.open { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
  .vs-table td { padding: 0; border: 0; white-space: nowrap; background: none !important; }
  .vs-table td:not(.rk):not(:nth-child(2)):not(.hl) { display: none; }
  .vs-table td.rk { width: auto; text-align: center; }
  .vs-table td:nth-child(2) { min-width: 0; overflow: hidden; }
  .vs-table .vs-who b { overflow: hidden; text-overflow: ellipsis; }
  .vs-table td.hl { display: grid; justify-items: end; font-size: 15px; }
  .vs-table td.hl::before { content: attr(data-l); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .vs-table tr.vs-detail td { display: block; white-space: normal; padding: 4px 2px 8px; }
  .vs-sort, #vs-sort { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  #vs-sort::-webkit-scrollbar { display: none; }
  #vs-sort button { flex: none; white-space: nowrap; }
}
/* =====================================================================================================  MON PERSO */
@media (max-width: 600px) {
  .perso-hero h1 { font-size: 26px; line-height: 1.15; }
  .perso-hero p { font-size: 13.5px; }
  .skin-btn { display: none !important; }      /* « Changer de skin » est dans la carte du perso */
  .quick-col .col-title { font-size: 11px; margin: 4px 2px 0; }
}
/* carte en grand : les gestes (balayer, glisser vers le bas) ne font pas défiler la page */
.tcg-zoom { touch-action: none; }
@media (max-width: 600px) { .z-card { justify-self: center; } }

/* ---------- tablette en paysage / petit portable : le menu du haut tient sur une ligne */
@media (min-width: 901px) and (max-width: 1400px) {
  .topbar { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .topbar .brand-name { display: none; }
  .top-nav .btn { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
  .me-group .me .me-name, .me-group .me .role { display: none; }
  .me-group .me { padding-right: 8px; }
  .pc-next { display: none !important; }
  .pc-main { min-width: 0; }
}
/* boutons « fermer » des fenêtres : pas de contour de focus au doigt */
@media (hover: none) { dialog [data-close]:focus, dialog .cd-btn:focus, dialog button:focus:not(:focus-visible) { outline: none; } }
/* =====================================================================================================  BACKOFFICE */
@media (max-width: 820px) {
  .admin { grid-template-columns: minmax(0, 1fr) !important; }
  .side { min-width: 0; position: sticky !important; top: 0; z-index: 8; }
  .side #nav { scrollbar-width: none; scroll-snap-type: x proximity; }
  .side #nav::-webkit-scrollbar { display: none; }
  .side a { scroll-snap-align: start; padding: 9px 11px; }
  .content { padding: 16px 12px 40px; }
  .panel-head h1 { font-size: 22px; }
  .card { padding: 14px; }
  .cols { grid-template-columns: 1fr; }
}