/* ============================================================================
   QUIZ'EM ALL v1.1.0 — NAVIGATION MOBILE V2 (v269-mobile-nav.css)
   ----------------------------------------------------------------------------
   Fichier ADDITIF chargé en DERNIER : aucune règle existante modifiée ou supprimée.
   Sélecteurs tous préfixés qe-more-* / qsc- / qg-card--social :

   1. Tiroir « ⚡ Plus » du dock mobile (#qeDockMoreSheet) — liens secondaires
      (Défi Social, Anecdotes, Statistiques, Historique, Concours, Règles, CGU)
      sortis du dock, qui reste épuré (5 actions + Admin conditionnel).
   2. Carte « Défi Social » du hub 🎮 Jeux (3e pilier, même gabarit que les cartes
      Blind Test / Arcade de v268-games-hub.css).
   3. Écran statique #socialPanel (qsc-*) : grille 1 colonne mobile, 3 colonnes
      desktop — cohérent avec le thème or/metal existant.

   Garde-fous : le tiroir n'existe visuellement qu'à l'écran ≤ 768px (media
   requête), z-index 9700 = au-dessus du dock (9600), SOUS les modales (10000+).
   ============================================================================ */

/* ---------- Écran Défi Social (tous écrans : c'est un panneau comme les autres) ---------- */
.qsc-root { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 2px 12px; }
.qsc-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.qsc-card {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 72px; padding: 14px; text-align: left; font: inherit; color: #ececf2; cursor: pointer;
  border: 1px solid rgba(120, 170, 255, .30); border-radius: 16px;
  background: linear-gradient(160deg, rgba(34, 34, 43, .96), rgba(16, 16, 22, .98));
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  transition: transform .12s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.qsc-card:active { transform: scale(.985); }
.qsc-card:focus-visible { outline: 2px solid var(--gold-2, #e7c87a); outline-offset: 2px; }
.qsc-ico { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
.qsc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.qsc-body strong { font-size: 1.02rem; color: #fff; }
.qsc-body span { font-size: .82rem; color: #aeaebb; line-height: 1.35; }
.qsc-cta { flex: 0 0 auto; font-weight: 700; color: var(--gold-2, #e7c87a); font-size: .88rem; }
.qsc-note { margin: 14px 4px 0; font-size: .8rem; color: #8f8f9c; line-height: 1.5; }

@media (min-width: 769px) {
  .qsc-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Carte « Défi Social » du hub Jeux (gabarit qg-card de v268) ---------- */
.qg-card--social { border-color: rgba(120, 170, 255, .30); }
.qg-card--social .qg-cta {
  color: #0d0e15; background: linear-gradient(180deg, #b9d0ff, #78aaff);
  box-shadow: 0 2px 10px rgba(120, 170, 255, .25);
}

/* ---------- Tiroir « ⚡ Plus » : MOBILE UNIQUEMENT ---------- */
.qe-more-sheet { display: none; }

@media (max-width: 768px) {
  .qe-more-sheet {
    position: fixed; inset: 0; z-index: 9700;   /* au-dessus du dock (9600), sous les modales (10000+) */
    display: block; visibility: hidden; pointer-events: none;
  }
  .qe-more-sheet.is-open { visibility: visible; pointer-events: auto; }

  .qe-more-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .62); opacity: 0;
    transition: opacity .22s ease;
  }
  .qe-more-sheet.is-open .qe-more-backdrop { opacity: 1; }

  .qe-more-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: calc(100dvh - 90px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(20, 20, 26, .98), rgba(8, 8, 12, .99));
    border-top: 1px solid rgba(212, 175, 55, .45);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, .6);
    transform: translateY(105%);
    transition: transform .26s cubic-bezier(.22, .9, .25, 1);
  }
  .qe-more-sheet.is-open .qe-more-panel { transform: translateY(0); }

  .qe-more-head {
    display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px;
  }
  .qe-more-title {
    margin: 0; font-family: 'Rajdhani', sans-serif; font-size: 1.15rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2, #e7c87a);
  }
  .qe-more-close {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;   /* cible tactile ≥ 44px */
    border: 1px solid rgba(212, 175, 55, .4); border-radius: 12px;
    background: rgba(20, 20, 26, .9); color: var(--gold-2, #e7c87a);
    font-size: 1.4rem; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .qe-more-close:active { transform: scale(.94); }

  .qe-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .qe-more-item {
    display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px;
    border: 1px solid rgba(58, 58, 66, .9); border-radius: 14px;
    background: rgba(24, 24, 31, .92); color: #e6e6ee; font: inherit; text-align: left;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, border-color .18s ease;
  }
  .qe-more-item:active { transform: scale(.97); }
  .qe-more-item:focus-visible { outline: 2px solid var(--gold-2, #e7c87a); outline-offset: 2px; }
  .qe-more-ico { font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
  .qe-more-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .qe-more-txt strong { font-size: .92rem; font-weight: 700; }
  .qe-more-txt small { font-size: .72rem; color: #9a9aa5; }
  /* Section actuellement ouverte : repère or (même langage visuel que le dock) */
  .qe-more-item.is-active {
    border-color: rgba(212, 175, 55, .55); background: rgba(212, 175, 55, .10); color: #f4c95d;
  }

  .qe-more-legal {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 8px; border-radius: 12px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
    color: #b9b9c4; font-size: .8rem; text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .qe-more-legal:active { transform: scale(.98); }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .qe-more-panel, .qe-more-backdrop { transition: none; }
}
