/* ================================================================ v202607194200
   Lions DM403 - Design Responsive Desktop + Mobile + PWA
   ================================================================ */

:root {
  --lions-blue: #003f8a;
  --lions-dark: #002a5c;
  --lions-light: #0066cc;
  --lions-gold: #f5a623;
  --lions-gold-light: #ffd700;
  --bg-primary: #f0f4f9;
  --bg-sidebar: #001e45;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,63,138,0.10);
  --shadow-lg: 0 8px 32px rgba(0,63,138,0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar-width: 240px;
  --header-height: 60px;
  --nav-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Hauteur dynamique viewport — tient compte de la barre navigateur mobile */
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100%;
  overflow-x: hidden;
  /* Empêche le scroll-bounce iOS sur le body */
  overscroll-behavior: none;
  /* Empêche le zoom double-tap iOS */
  touch-action: manipulation;
}

/* ================================================================
   LAYOUT DESKTOP (≥768px) : sidebar fixe + contenu scrollable
   ================================================================ */

/* Wrapper global */
#app-shell {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR DESKTOP ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--lions-dark) 0%, #001a40 60%, #00102a 100%);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  cursor: pointer;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-logo-text {
  color: white;
}

.sidebar-logo-text .title {
  font-weight: 800;
  font-size: 14px;
  color: white;
  line-height: 1.2;
}

.sidebar-logo-text .sub {
  font-size: 9px;
  color: var(--lions-gold);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* User info in sidebar */
.sidebar-user {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--lions-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  overflow: hidden;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-info .name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.sidebar-user-info .role {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

/* Nav items */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
}

.sidebar-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  padding: 12px 16px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  border-radius: 0;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.sidebar-item.active {
  background: rgba(245,166,35,0.12);
  color: var(--lions-gold);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--lions-gold);
  border-radius: 0 2px 2px 0;
}

.sidebar-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-item .badge-count {
  margin-left: auto;
  background: var(--lions-gold);
  color: var(--lions-dark);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .version {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: 6px;
}

/* ===== MAIN AREA DESKTOP ===== */
.main-area {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOP BAR DESKTOP */
.topbar {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.topbar-search input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  outline: none;
  background: var(--bg-primary);
  transition: all 0.2s;
}

.topbar-search input:focus {
  border-color: var(--lions-blue);
  background: white;
}

.topbar-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}

.topbar-icon-btn:hover {
  background: var(--lions-blue);
  color: white;
}

.topbar-page-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* ===== GRID LAYOUTS DESKTOP ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-home { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

/* ================================================================
   MOBILE (< 768px) : layout plein écran sans scroll global
   ================================================================ */
@media (max-width: 767px) {
  .sidebar { display: none !important; }

  html {
    /* NE PAS mettre overflow:hidden sur html — ça tue le clavier virtuel iOS/Android */
    /* Android Chrome resize le viewport quand le clavier s'ouvre :               */
    /* overflow:hidden bloque ce resize → l'input perd le focus immédiatement      */
    height: 100%;
  }

  body {
    /* height:100% se propage jusqu'à .main-area pour que le resize clavier marche */
    height: 100%;
    /* overflow:hidden tue le clavier — utiliser seulement overscroll-behavior     */
    overscroll-behavior: none;
  }

  #app {
    /* height:100% — pas de overflow:hidden — laisser le viewport se redimensionner */
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #app-shell { display: block; }

  /* Zone principale : hauteur exacte entre header et bottom nav */
  .main-area {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    /* height:100% (pas 100svh) : se redimensionne quand le clavier Android ouvre */
    /* overflow:visible : pas de scroll context créé → le clavier peut resize      */
    height: 100%;
    overflow: visible;
  }

  .topbar { display: none !important; }

  /* Contenu scrollable uniquement à l'intérieur */
  .page-content {
    padding: 10px 12px;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
    flex: 1;
    min-height: 0;           /* flex child doit pouvoir rétrécir */
    overflow-y: auto;
    overflow-x: hidden;      /* clip horizontal — évite tout scroll/débord latéral */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    /* Empêche tout enfant de déborder visuellement hors de la zone */
    contain: layout style;
  }

  /* Sur mobile : stats en 2×2, pas 4 colonnes — évite les débordements */
  .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-home { grid-template-columns: 1fr; }

  /* ── Mobile header ── */
  .mobile-header {
    display: flex !important;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    /* Espace pour le notch iOS (Dynamic Island, etc.) */
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    background: linear-gradient(135deg, var(--lions-dark), var(--lions-blue));
    align-items: center;
    justify-content: space-between;
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
  }

  .mobile-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .mobile-header-logo img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }

  .mobile-header-logo .name {
    font-size: 14px;
    font-weight: 800;
    color: white;
  }

  .mobile-header-logo .sub {
    font-size: 8px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.8px;
  }

  .mobile-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .main-content-mobile {
    padding-top: 0 !important; /* header est sticky, pas fixed */
  }

  /* ── Bottom nav ── */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    background: white;
    border-top: 1px solid var(--border);
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    flex-shrink: 0;
  }
}

/* Desktop: masquer les éléments mobile-only */
@media (min-width: 768px) {
  .mobile-header { display: none !important; }
  .bottom-nav { display: none !important; }
  .mobile-only { display: none !important; }
}

/* ================================================================
   COMPOSANTS COMMUNS
   ================================================================ */

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, var(--lions-dark) 0%, var(--lions-blue) 60%, #0055b8 100%);
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(245,166,35,0.12);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-banner .hero-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lions-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.hero-banner h2 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.hero-banner .hero-sub {
  font-size: 13px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .hero-banner { border-radius: 0; margin: 0 -12px 16px; }
  .hero-banner h2 { font-size: 20px; }
}

/* ===== STATS CARDS ===== */
.stat-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--lions-blue);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card .stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--lions-blue);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card .stat-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .stat-card .stat-number { font-size: 22px; }
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}

.card-body { padding: 16px 18px; }

@media (max-width: 767px) {
  .card-body { padding: 12px; }
  .card-header { padding: 12px; }
}

/* ===== OFFICIAL CARDS ===== */
.official-card {
  background: linear-gradient(135deg, var(--lions-blue), #0055b3);
  color: white;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.official-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.official-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: rgba(245,166,35,0.15);
  border-radius: 50%;
}

.official-card.pcg {
  background: linear-gradient(135deg, #001e45, var(--lions-blue), #b8880e);
}

.official-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid rgba(245,166,35,0.7);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.official-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.official-info .tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--lions-gold);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.official-info .name {
  font-size: 15px;
  font-weight: 800;
}

.official-info .meta {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}

/* ===== MEMBER CARD ===== */
.member-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  margin-bottom: 7px;
}

.member-card:hover {
  border-color: var(--lions-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,63,138,0.14);
}

.member-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.member-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}

.member-info { flex: 1; min-width: 0; }

.member-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-sub {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.member-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  background: #e8f0fe;
  color: var(--lions-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== DISTRICT CARD ===== */
.district-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid var(--lions-gold);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.district-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.district-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--lions-blue), var(--lions-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ===== SEARCH ===== */
.search-container {
  padding: 12px 12px 4px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-primary);
  /* Empêche tout reflow de déclencher un scroll qui fait perdre le focus */
  flex-shrink: 0;
  will-change: transform;
}

@media (min-width: 768px) {
  .search-container {
    padding: 0 0 16px;
    position: static;
    background: transparent;
  }
}

.search-wrap { position: relative; }

.search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 14px;
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--lions-blue);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== FILTERS ===== */
.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 10px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .filter-scroll {
    padding: 0 0 14px;
    flex-wrap: wrap;
  }
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--lions-blue);
  color: var(--lions-blue);
}

.filter-chip.active {
  background: var(--lions-blue);
  color: white;
  border-color: var(--lions-blue);
}

/* ===== ADS ===== */
.ad-carousel {
  overflow-x: auto;
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ad-carousel::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .ad-carousel {
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .ad-item { min-width: 220px; flex: 1; }
}

.ad-item {
  min-width: 200px;
  max-width: 260px;
  background: linear-gradient(135deg, #001e45, var(--lions-blue));
  border-radius: var(--radius-sm);
  padding: 16px;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ad-item:hover { transform: translateY(-2px); }

.ad-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--lions-gold);
  background: rgba(245,166,35,0.15);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lions-blue), var(--lions-light));
  color: white;
  box-shadow: 0 3px 10px rgba(0,63,138,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,63,138,0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--lions-gold), #e09b1a);
  color: var(--lions-dark);
  box-shadow: 0 3px 10px rgba(245,166,35,0.3);
}

.btn-gold:hover { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--lions-blue);
  color: var(--lions-blue);
}

.btn-outline:hover {
  background: var(--lions-blue);
  color: white;
}

.btn-sm { padding: 6px 14px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}

.btn-whatsapp:hover { transform: scale(1.03); }

.btn-email {
  background: #ea4335;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .section-title { padding: 12px 12px 4px; font-size: 14px; }
}

.section-title .see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--lions-blue);
  cursor: pointer;
  text-decoration: none;
}

/* ===== CHAT ===== */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  height: calc(100vh - var(--header-height) - 48px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 767px) {
  .chat-layout {
    grid-template-columns: 1fr;
    /* Hauteur = viewport - header mobile - bottom nav */
    height: calc(100dvh - var(--header-height) - var(--nav-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
  .chat-list-panel { display: block; }
}

.chat-list-panel {
  background: white;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.chat-messages-panel {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: calc(100dvh - 280px);
}

.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.message-bubble.sent {
  background: var(--lions-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  background: white;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-meta {
  font-size: 10px;
  opacity: 0.65;
  margin-top: 3px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  outline: none;
  background: var(--bg-primary);
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--lions-blue); }

.btn-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lions-blue);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-send:hover { background: var(--lions-dark); transform: scale(1.05); }

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: 12px;
  gap: 2px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
}

.tab-btn.active {
  background: white;
  color: var(--lions-blue);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
  display: none; /* shown via media query */
  align-items: center;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  transition: all 0.2s;
  color: var(--text-secondary);
  min-width: 52px;
  border: none;
  background: none;
  font-family: inherit;
  text-decoration: none;
}

.nav-item.active { color: var(--lions-blue); }

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  position: relative;
}

.nav-item.active .nav-icon {
  background: rgba(0,63,138,0.1);
}

.nav-label { font-size: 10px; font-weight: 500; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal {
    border-radius: var(--radius) !important;
    max-width: 560px !important;
    max-height: 80vh !important;
  }
}

.modal-overlay.show { display: flex; }

.modal {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  width: 100%;
  max-width: 480px;
  /* Modal : max 90% du viewport dynamique sur mobile */
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (min-width: 768px) {
  .modal { animation: fadeIn 0.2s ease; }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

@media (min-width: 768px) {
  .modal-handle { display: none; }
}

/* Bouton fermeture modal — toujours visible sur fond header */
#modalCloseBtn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  background: rgba(255,255,255,0.22) !important;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#modalCloseBtn:hover { background: rgba(255,255,255,0.38) !important; }

/* Barre de recherche vocale */
.voice-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--lions-blue);
  font-size: 16px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.voice-btn:hover { background: rgba(0,63,138,0.08); }
.voice-btn.recording { color: #e74c3c; animation: voice-pulse 0.8s infinite alternate; }
@keyframes voice-pulse {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.6; transform: scale(1.18); }
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg-primary);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--lions-blue);
  background: white;
}

select.form-input { cursor: pointer; }

/* ===== AUTH PAGE ===== */
.auth-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--lions-dark) 0%, var(--lions-blue) 50%, #0059c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 36px 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

@media (max-width: 767px) {
  .auth-card { padding: 28px 20px; border-radius: 16px; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--lions-dark);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s;
  max-width: 320px;
  transform: translateX(20px);
}

@media (max-width: 767px) {
  .toast {
    top: auto;
    bottom: 80px;
    right: 16px;
    left: 16px;
    max-width: none;
    transform: translateY(10px);
    text-align: center;
  }
}

.toast.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: var(--lions-blue); }

/* ===== BADGE ===== */
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
}

/* ===== BTN ICON (header) ===== */
.btn-icon {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.btn-icon:hover { background: rgba(255,255,255,0.22); }

/* ===== ADMIN PANEL DESKTOP ===== */
.admin-stat-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--lions-blue);
  text-align: center;
}

/* ===== DATA TABLE DESKTOP ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.data-table tr:hover td { background: #f8fbff; }

/* ===== PAYS CHART ===== */
.pays-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pays-name { font-size: 13px; font-weight: 500; min-width: 110px; max-width: 140px; overflow: hidden; }

.pays-progress {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.pays-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lions-blue), var(--lions-light));
  border-radius: 3px;
}

.pays-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--lions-blue);
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 42px;
  opacity: 0.25;
  display: block;
  margin-bottom: 14px;
}

.empty-state p { font-size: 14px; font-weight: 500; }

/* ===== PROFILE ===== */
.profile-hero {
  background: linear-gradient(135deg, var(--lions-dark), var(--lions-blue));
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  color: white;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .profile-hero { border-radius: 0; margin: 0 -12px 16px; }
}

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* ===== UTIL ===== */
.text-blue { color: var(--lions-blue); }
.text-gold { color: var(--lions-gold); }
.text-muted { color: var(--text-secondary); }
.fw-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.p-3 { padding: 12px; }
.px-3 { padding-left: 12px; padding-right: 12px; }

/* Prevent unwanted highlights on tap */
.btn, .nav-item, .filter-chip, .tab-btn, .member-card, .district-card, .official-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d7e0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b0bac5; }

/* ================================================================
   NOUVEAU DESIGN CONNEXION — fond bleu glassmorphism
   ================================================================ */

.auth-new-container {
  /* Hauteur exacte du viewport — permet à overflow-y:auto de s'activer */
  height: 100svh;
  min-height: 0;
  background: linear-gradient(160deg, #001a40 0%, #002a5c 40%, #003f8a 75%, #0059c0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 32px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* Safe-area top pour notch */
  padding-top: max(24px, calc(24px + env(safe-area-inset-top, 0px)));
  padding-bottom: max(32px, calc(32px + env(safe-area-inset-bottom, 0px)));
}
.auth-new-container::before {
  content: '';
  position: absolute; top: -160px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(245,166,35,.09);
  pointer-events: none;
}
.auth-new-container::after {
  content: '';
  position: absolute; bottom: -100px; left: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(0,89,192,.2);
  pointer-events: none;
}

/* ── en-tête ── */
.auth-new-brand {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
  max-width: 420px;
}
.auth-new-ring {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(245,166,35,.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(245,166,35,.07), 0 8px 32px rgba(0,0,0,.4);
  overflow: hidden;
  flex-shrink: 0;
}
/* L'image à l'intérieur du ring remplit toujours le cercle */
.auth-new-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.auth-new-int {
  font-size: 10px; font-weight: 800; letter-spacing: 3px;
  color: rgba(245,166,35,.8); text-transform: uppercase; margin-bottom: 6px;
}
.auth-new-title {
  font-size: 20px; font-weight: 900; color: #fff;
  line-height: 1.25; margin-bottom: 10px; letter-spacing: .2px;
}
.auth-new-desc {
  font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.65;
  max-width: 360px; margin: 0 auto;
}

/* ── card ── */
.auth-new-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px 26px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
@media (max-width: 767px) {
  /* Sur mobile : on compacte tout pour tenir dans l'écran */
  .auth-new-container {
    justify-content: flex-start;
    padding-top: max(16px, calc(12px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  }

  /* Brand plus petit sur mobile */
  .auth-new-brand {
    margin-bottom: 12px;
  }
  .auth-new-ring {
    width: 68px; height: 68px;
    margin-bottom: 8px;
    box-shadow: 0 0 0 5px rgba(245,166,35,.07), 0 6px 20px rgba(0,0,0,.4);
  }
  .auth-new-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .auth-new-desc {
    font-size: 11px;
    display: none; /* On cache la description sur très petit écran */
  }

  .auth-new-card {
    padding: 18px 16px;
    border-radius: 18px;
    /* La card peut défiler si le contenu est trop grand */
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  /* Inputs et boutons plus compacts */
  .auth-inp { padding: 11px 14px 11px 40px; font-size: 13px; }
  .auth-btn { padding: 12px; font-size: 13px; margin-top: 6px; }
  .auth-lbl { margin-bottom: 5px; }
  .auth-iw { margin-bottom: 10px; }
  .auth-pin-box { width: 42px; height: 50px; font-size: 20px; }
  .auth-pin-row { gap: 6px; margin: 14px 0; }
  .auth-sent { margin-bottom: 10px; }
  .auth-sent-ring { width: 46px; height: 46px; margin-bottom: 8px; }
  .auth-prog-bar { margin-bottom: 16px; }
  .auth-step-title { margin-bottom: 14px; font-size: 13px; }

  /* Footer auth plus petit */
  .auth-new-foot { margin-top: 10px; font-size: 10px; }
}

/* ── Viewport trop bas (desktop fenêtre réduite ou petits écrans) ── */
/* Niveau 1 : < 750px hauteur — compacter modérément */
@media (max-height: 750px) {
  .auth-new-container { justify-content: flex-start; }
  .auth-new-brand { margin-bottom: 14px; }
  .auth-new-ring { width: 76px; height: 76px; margin-bottom: 10px; }
  .auth-new-int { font-size: 9px; margin-bottom: 4px; }
  .auth-new-title { font-size: 17px; margin-bottom: 7px; }
  .auth-new-desc { font-size: 11px; }
  .auth-new-card { padding: 22px 22px; }
  .auth-prog-bar { margin-bottom: 16px; }
  .auth-iw { margin-bottom: 11px; }
  .auth-inp { padding: 11px 14px 11px 40px; font-size: 13px; }
  .auth-btn { padding: 11px; font-size: 13px; margin-top: 6px; }
  .auth-new-foot { margin-top: 10px; font-size: 10px; }
}

/* Niveau 2 : < 620px hauteur — compacter davantage, masquer desc */
@media (max-height: 620px) {
  .auth-new-ring { width: 60px; height: 60px; margin-bottom: 8px; }
  .auth-new-int { font-size: 8px; letter-spacing: 2px; margin-bottom: 3px; }
  .auth-new-title { font-size: 14px; margin-bottom: 5px; }
  .auth-new-desc { display: none; }
  .auth-new-brand { margin-bottom: 10px; }
  .auth-new-card { padding: 16px 18px; border-radius: 18px; }
  .auth-prog-bar { margin-bottom: 12px; }
  .auth-step-title { font-size: 12px; margin-bottom: 12px; }
  .auth-iw { margin-bottom: 8px; }
  .auth-inp { padding: 9px 12px 9px 36px; font-size: 12px; }
  .auth-btn { padding: 10px; font-size: 12px; margin-top: 4px; }
  .auth-btn-ghost { padding: 8px; font-size: 11px; }
  .auth-new-foot { margin-top: 6px; font-size: 9px; }
  .auth-sent { margin-bottom: 8px; }
  .auth-sent-ring { width: 42px; height: 42px; margin-bottom: 6px; }
  .auth-sent-title { font-size: 13px; margin-bottom: 4px; }
  .auth-sent-sub { font-size: 11px; }
  .auth-pin-box { width: 38px; height: 44px; font-size: 18px; }
  .auth-pin-row { gap: 5px; margin: 10px 0; }
}

/* ── barre de progression ── */
.auth-prog-bar { display: flex; gap: 5px; margin-bottom: 22px; }
.auth-ps { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background .4s; }
.auth-ps.done   { background: rgba(255,255,255,.5); }
.auth-ps.active { background: var(--lions-gold); }

/* ── titre étape ── */
.auth-step-title {
  font-size: 14px; font-weight: 800; color: #fff;
  margin-bottom: 18px;
}

/* ── labels ── */
.auth-lbl {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 7px;
}

/* ── inputs ── */
.auth-iw { position: relative; margin-bottom: 14px; }
.auth-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.3); font-size: 14px; pointer-events: none;
}
.auth-inp {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 13px;
  padding: 13px 16px 13px 42px;
  color: #fff; font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.auth-inp::placeholder { color: rgba(255,255,255,.28); }
.auth-inp:focus { border-color: var(--lions-gold); background: rgba(245,166,35,.06); }
.auth-itag {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 700;
  background: rgba(245,166,35,.18); color: var(--lions-gold);
  padding: 2px 8px; border-radius: 6px; pointer-events: none;
}

/* ── suggestions autocomplete ── */
.auth-sugg {
  background: rgba(0,15,50,.97);
  border: 1px solid rgba(245,166,35,.25);
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin-top: -8px; margin-bottom: 14px;
  overflow: hidden;
  max-height: 220px; overflow-y: auto;
}
.auth-si {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.auth-si:last-child { border-bottom: none; }
.auth-si:hover { background: rgba(245,166,35,.08); }
.auth-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(245,166,35,.15);
  color: var(--lions-gold); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.auth-sm { flex: 1; min-width: 0; }
.auth-sn { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-ss { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-chip {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  background: rgba(245,166,35,.15); color: var(--lions-gold);
  padding: 2px 8px; border-radius: 6px;
}

/* ── boutons ── */
.auth-btn {
  width: 100%; padding: 13px; border-radius: 13px;
  border: none; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s; margin-top: 8px;
  font-family: inherit; letter-spacing: .1px;
}
.auth-btn-gold {
  background: linear-gradient(135deg, var(--lions-gold), #e8950a);
  color: #002a5c;
  box-shadow: 0 6px 22px rgba(245,166,35,.35);
}
.auth-btn-gold:hover  { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(245,166,35,.5); }
.auth-btn-gold:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.auth-btn-ghost {
  background: transparent; color: rgba(255,255,255,.45);
  border: 1.5px solid rgba(255,255,255,.12);
  font-size: 12px;
}
.auth-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.auth-btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,.28);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn-wa:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,211,102,.4); }

/* ── case PIN ── */
.auth-pin-row { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.auth-pin-box {
  width: 44px; height: 52px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  font-size: 22px; font-weight: 900; color: #fff;
  text-align: center; outline: none;
  transition: all .2s; font-family: inherit;
}
.auth-pin-box:focus { border-color: var(--lions-gold); background: rgba(245,166,35,.08); }

/* ── bloc envoi ── */
.auth-sent { text-align: center; margin-bottom: 16px; }
.auth-sent-ring {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(245,166,35,.12);
  border: 1.5px solid rgba(245,166,35,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.auth-sent-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.auth-sent-sub   { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }
.auth-sent-em    { color: rgba(255,255,255,.85); font-weight: 700; }

/* ── notice support ── */
.auth-sup-notice {
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex; gap: 10px;
}

/* ── lien admin ── */
.auth-admin-link {
  text-align: center; margin-top: 14px;
  font-size: 11px; color: rgba(255,255,255,.28);
  cursor: pointer;
}
.auth-admin-link:hover { color: rgba(255,255,255,.55); }

/* ── footer ── */
.auth-new-foot {
  margin-top: 18px;
  font-size: 11px; color: rgba(255,255,255,.75);
  letter-spacing: .5px; text-align: center;
  font-weight: 500;
}
