/* =============================================
   TECHMEET — Design System Core
   African Social Network | Dark Futuristic
   ============================================= */

/* Polices Google chargées par index.html SANS bloquer l'affichage (avant :
   @import ici → page blanche tant que fonts.googleapis.com ne répondait pas) */

/* ─── CSS Variables ─────────────────────── */
:root {
  /* Backgrounds */
  --bg-root:    #05080f;
  --bg-dark:    #0a0f1e;
  --bg-card:    #0e1628;
  --bg-card2:   #121c35;
  --bg-hover:   #162040;
  --bg-input:   #0d1525;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-focus:  rgba(59,130,246,0.6);

  /* Brand Colors */
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --blue-glow:  #60a5fa;
  --cyan:       #06b6d4;
  --cyan-dark:  #0891b2;
  --purple:     #7c3aed;
  --green:      #10b981;
  --red:        #ef4444;
  --orange:     #f59e0b;
  --pink:       #ec4899;

  /* Text */
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #475569;
  --text-link: #60a5fa;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
  --grad-card:   linear-gradient(145deg, #0e1628, #121c35);
  --grad-glow:   radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.18) 0%, transparent 65%);
  --grad-purple: linear-gradient(135deg, #7c3aed, #ec4899);
  --grad-green:  linear-gradient(135deg, #10b981, #06b6d4);

  /* Radius */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-blue: 0 0 24px rgba(37,99,235,0.35);
  --shadow-cyan: 0 0 24px rgba(6,182,212,0.25);

  /* Light theme overrides */
  --bg-light-root:    #f8fafc;
  --bg-light-dark:    #edf2f7;
  --bg-light-card:    #ffffff;
  --bg-light-card2:   #f1f5f9;
  --bg-light-input:   #ffffff;
  --text-light-1:     #0f172a;
  --text-light-2:     #64748b;
  --text-light-3:     #475569;
  --text-link-light:  #2563eb;
}

body[data-theme='light'] {
  background: var(--bg-light-root);
  color: var(--text-light-1);
  --bg-root: var(--bg-light-root);
  --bg-dark: var(--bg-light-dark);
  --bg-card: var(--bg-light-card);
  --bg-card2: var(--bg-light-card2);
  --bg-hover: #e2e8f0;
  --bg-input: var(--bg-light-input);
  --border: rgba(15,23,42,0.12);
  --border-focus: rgba(37,99,235,0.35);
  --text-1: var(--text-light-1);
  --text-2: var(--text-light-2);
  --text-3: var(--text-light-3);
  --text-link: var(--text-link-light);
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.icon-inline svg {
  width: 100%;
  height: 100%;
}

:root {
  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --topbar-h:     56px;
  --navbar-h:     60px;
  --safe-b: min(env(safe-area-inset-bottom, 0px), 34px);
  --safe-t: min(env(safe-area-inset-top, 0px), 48px);

  /* Transitions */
  --ease-fast: 0.15s ease;
  --ease-base: 0.25s ease;
  --ease-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-root);
  color: var(--text-1);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button, input, textarea, select {
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
  color: inherit;
}
button { cursor: pointer; }

/* ─── App Shell ──────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — meilleur sur mobile */
  overflow: hidden;
  background: var(--bg-root);
  padding-top: env(safe-area-inset-top, 0px);
}

/* ─── Page System ────────────────────────── */
.page {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: pageFadeIn 0.22s ease;
}
.page.active { display: flex; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* ─── Scroll Area ────────────────────────── */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 0;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ─── Topbar ─────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  overflow: hidden;
  /* Cordova/WebView : la status bar chevauche la topbar */
  padding-top: 0; /* reset — c'est #app qui gère le safe-area */
}
.topbar-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.topbar-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.topbar-spacer { flex: 1; }

/* Bouton topbar — taille fixe, pas de débordement */
.topbar-btn {
  width: 38px;
  height: 38px;
  min-width: 38px; /* empêche la compression */
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--ease-fast);
  position: relative;
  flex-shrink: 0;
  /* "visible" (pas "hidden") : le bouton est un cercle (border-radius:full) —
     un badge posé sur son coin dépasse forcément du cercle et se faisait
     rogner/écraser par le clip d'un overflow:hidden ici. */
  overflow: visible;
}
/* Le span texte dans topbar-btn est masqué sur petits écrans */
.topbar-btn span {
  font-size: 11px;
  white-space: nowrap;
}
.topbar-btn:active { transform: scale(0.92); background: var(--bg-card2); }
.topbar-btn .badge-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}
.topbar-btn .badge-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border-radius: 9px;
  border: 2px solid var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}

/* ─── Bottom Navbar ──────────────────────── */
#app-navbar {
  height: calc(var(--navbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  z-index: 100;
}
.nb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  cursor: pointer;
  position: relative;
  transition: color var(--ease-fast);
  border: none; background: none;
  min-width: 0; /* évite la compression */
  padding: 0 2px;
}
.nb-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* Pastille de compteur sur l'icône (Marketplace/Messages) — positionnée
   relativement à l'icône elle-même, pas au bouton entier (qui inclut le
   libellé en dessous), pour rester collée au coin de l'icône quelle que
   soit la largeur du bouton. */
.nb-icon-badge-wrap {
  position: relative;
  display: inline-flex;
}
.nb-icon-badge-wrap .badge-count {
  position: absolute; top: -8px; right: -12px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border-radius: 10px;
  border: 1.5px solid var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.nb-item.active { color: var(--blue-light); }
.nb-item.active svg {
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.7));
}
.nb-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 2px;
  background: var(--blue-light);
  border-radius: 0 0 4px 4px;
}
.nb-fab {
  width: 46px; height: 46px;
  background: var(--grad-brand);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-blue);
  margin-top: -6px;
  transition: transform var(--ease-fast);
  flex-shrink: 0;
}
.nb-fab:active { transform: scale(0.91); }

/* ─── Cards ──────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-glass {
  background: rgba(14,22,40,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
}

/* ─── Avatar ─────────────────────────────── */
.av {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-glow);
  border: 1.5px solid var(--border);
}
.av-xs  { width: 28px; height: 28px; font-size: 11px; }
.av-sm  { width: 36px; height: 36px; font-size: 13px; }
.av-md  { width: 46px; height: 46px; font-size: 16px; }
.av-lg  { width: 60px; height: 60px; font-size: 20px; }
.av-xl  { width: 80px; height: 80px; font-size: 26px; }
.av-2xl { width: 100px; height: 100px; font-size: 32px; }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Online indicator ───────────────────── */
.av-online { position: relative; display: inline-flex; }
.av-online::after {
  content: '';
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: var(--green); border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

/* ─── Verified Badge ─────────────────────── */
.v-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.v-badge svg { display: block; }

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease-fast);
  white-space: nowrap;
  border: 1.5px solid transparent;
  flex-shrink: 0;
  min-width: 0;
}
.btn:active { transform: scale(0.95); }
.btn-primary   { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }
.btn-secondary { background: var(--bg-card2); color: var(--text-1); border-color: var(--border); }
.btn-outline   { background: transparent; color: var(--blue-light); border-color: var(--blue-light); }
.btn-ghost     { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-danger    { background: var(--red); color: #fff; border-color: transparent; }
.btn-green     { background: rgba(16,185,129,0.15); color: var(--green); border-color: rgba(16,185,129,0.3); }
.btn-whatsapp  { background: rgba(37,211,102,0.12); color: #25d366; border-color: rgba(37,211,102,0.25); }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 24px; font-size: 16px; }
.btn-xs  { padding: 5px 10px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-icon { padding: 0; width: 38px; height: 38px; border-radius: var(--r-full); }
.btn-icon-sm { padding: 0; width: 32px; height: 32px; border-radius: var(--r-full); }

/* ─── Form Fields ────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .i-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; flex-shrink: 0; }
.input-wrap .i-right { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); cursor: pointer; }
.tm-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 15px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  min-width: 0;
}
.tm-input::placeholder { color: var(--text-3); }
.tm-input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.tm-input-bare {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 15px;
  transition: border-color var(--ease-fast);
  min-width: 0;
}
.tm-input-bare:focus { border-color: var(--blue-light); }
.tm-select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1); font-size: 15px;
  appearance: none;
  transition: border-color var(--ease-fast);
  min-width: 0;
}
.tm-select:focus { border-color: var(--blue-light); }

/* ─── Toggle Switch ──────────────────────── */
.toggle {
  width: 46px; height: 26px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  position: relative; cursor: pointer;
  transition: background var(--ease-base), border-color var(--ease-base);
  flex-shrink: 0;
}
.toggle.on { background: var(--blue-light); border-color: var(--blue-light); }
.toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: white; border-radius: 50%;
  transition: transform var(--ease-base);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle.on::after { transform: translateX(20px); }

/* ─── Chips ──────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--ease-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.chip.active {
  background: rgba(37,99,235,0.18);
  border-color: rgba(59,130,246,0.5);
  color: var(--blue-glow);
}
.chip:active { transform: scale(0.95); }

/* ─── Badges ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-blue   { background: rgba(37,99,235,0.18); color: var(--blue-glow); border: 1px solid rgba(59,130,246,0.3); }
.badge-gold   { background: rgba(245,158,11,0.18); color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.badge-green  { background: rgba(16,185,129,0.18); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge-red    { background: rgba(239,68,68,0.18); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-purple { background: rgba(124,58,237,0.18); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.badge-gray   { background: rgba(148,163,184,0.15); color: var(--text-3); border: 1px solid rgba(148,163,184,0.25); }

/* ─── Stars ──────────────────────────────── */
.stars { color: var(--orange); letter-spacing: 1px; }

/* ─── Divider ────────────────────────────── */
.divider { height: 1px; background: var(--border); }
.divider-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3); font-size: 13px; font-weight: 500;
}
.divider-or::before, .divider-or::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── Skeleton ───────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--r-xs);
}

/* ─── Toast ──────────────────────────────── */
#toast-root {
  position: fixed;
  bottom: calc(var(--navbar-h) + 14px + var(--safe-b));
  left: 50%; transform: translateX(-50%);
  z-index:  1000000;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  pointer-events: none; width: max-content; max-width: 88vw;
}
.toast {
  padding: 10px 18px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.28s ease, toastOut 0.3s ease 2.4s forwards;
  white-space: nowrap;
}
.toast.success { border-color: rgba(16,185,129,0.4); color: var(--green); }
.toast.error   { border-color: rgba(239,68,68,0.4); color: var(--red); }
.toast.info    { border-color: rgba(59,130,246,0.4); color: var(--blue-glow); }

@keyframes toastIn  { from { opacity:0; transform:translateY(10px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { to { opacity:0; transform:translateY(-6px); } }

/* ─── Bannière de notification in-app (style Messenger, en haut) ────── */
#notif-banner-root {
  position: fixed;
  top: calc(var(--safe-t) + 8px);
  left: 0; right: 0;
  z-index: 1000001;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 0 12px;
  pointer-events: none;
}
.notif-banner {
  width: 100%; max-width: 420px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  cursor: pointer;
  animation: notifBannerIn 0.3s cubic-bezier(0.34,1.1,0.64,1), notifBannerOut 0.3s ease 4.2s forwards;
}
.notif-banner:active { transform: scale(0.98); }
.notif-banner-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.notif-banner-av {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-1);
}
.notif-banner-body { flex: 1; min-width: 0; }
.notif-banner-title {
  font-size: 13.5px; font-weight: 700; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.notif-banner-text {
  font-size: 13px; color: var(--text-2); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
@keyframes notifBannerIn  { from { opacity:0; transform:translateY(-16px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes notifBannerOut { to { opacity:0; transform:translateY(-10px); } }

/* ─── Animations ─────────────────────────── */
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp  { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn  { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
@keyframes pulse    { 0%,100% { opacity:1; } 50% { opacity:0.45; } }
@keyframes spin      { to { transform:rotate(360deg); } }
@keyframes blink     { 0%,100% { opacity:1; } 50% { opacity:.3; } }
@keyframes bounce   { 0%,100% { transform:scale(1); } 40% { transform:scale(1.35); } 70% { transform:scale(0.9); } }
@keyframes glow     {
  0%,100% { box-shadow: 0 0 12px rgba(37,99,235,0.3); }
  50%     { box-shadow: 0 0 32px rgba(37,99,235,0.65), 0 0 60px rgba(6,182,212,0.2); }
}

.anim-fade { animation: fadeIn 0.3s ease; }
.anim-up   { animation: slideUp 0.35s ease; }
.anim-in   { animation: scaleIn 0.3s ease; }

/* ─── Section Header ─────────────────────── */
.sec-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
}
.sec-link { font-size: 13px; color: var(--blue-glow); font-weight: 600; cursor: pointer; }

/* ─── Empty State ────────────────────────── */
.empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  padding: 56px 24px; text-align: center;
}
.empty-icon { font-size: 44px; }
.empty-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.empty-sub   { font-size: 14px; color: var(--text-2); line-height: 1.55; max-width: 280px; }

/* ─── Spinner ────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* ─── Overlay / Modal ────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none; align-items: flex-end;
}
.overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.sheet {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 12px 0 calc(16px + var(--safe-b));
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  margin: 0 auto 14px;
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  padding: 0 16px 12px;
}
.sheet-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  cursor: pointer; transition: background var(--ease-fast);
}
.sheet-item:active { background: var(--bg-card2); }
.sheet-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.sheet-label { font-size: 15px; font-weight: 500; }

/* ─── Utility ────────────────────────────── */
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-1 { flex: 1; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.p-16 { padding: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.text-lg  { font-size: 17px; }
.text-2   { color: var(--text-2); }
.text-3   { color: var(--text-3); }
.text-blue { color: var(--blue-glow); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-orange { color: var(--orange); }
.text-cyan  { color: var(--cyan); }
.font-bold    { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.hidden   { display: none !important; }
.invisible { visibility: hidden; }
.pointer  { cursor: pointer; }
.no-wrap  { white-space: nowrap; }
.lh-1_5  { line-height: 1.5; }

/* Grilles responsives */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

/* ─── CupertinoSheet ─────────────────────── */
.cupertino-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.cupertino-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card, #0e1628);
  color: var(--text-1, #f1f5f9);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: cupertinoUp 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  /* hauteur max pour ne pas couvrir tout l'écran */
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.cupertino-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(120, 120, 120, 0.35);
  margin: 10px auto 6px;
  flex-shrink: 0;
}

.cupertino-content {
  padding: 0 0 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.cupertino-section {
  padding: 6px 10px 0;
}

.cupertino-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2, #94a3b8);
  margin: 4px 6px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* tronque si trop long */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cupertino-list,
.cupertino-actions {
  display: grid;
  gap: 6px;
}

.cupertino-option,
.cupertino-action {
  width: 100%;
  border: none;
  background: var(--bg-card2, #121c35);
  color: var(--text-1, #f1f5f9);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease-fast);
  min-width: 0;
}

.cupertino-option:active,
.cupertino-action:active {
  background: var(--bg-hover, #162040);
}

.cupertino-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-2);
}

/* SVG dans cupertino-icon hérite la couleur */
.cupertino-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cupertino-option-content,
.cupertino-action-content {
  flex: 1;
  min-width: 0;
}

.cupertino-option-title,
.cupertino-action-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cupertino-option-subtitle,
.cupertino-action-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3, #475569);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cupertino-option-right {
  margin-left: auto;
  color: var(--text-3, #475569);
  flex-shrink: 0;
}

/* Feuille haute (panier) et lignes non cliquables */
.cupertino-sheet-large { height: 88vh; }
.cupertino-option-static { cursor: default; }
.cupertino-option-static:active { background: var(--bg-card2, #121c35); }

/* Panier : sélecteur de quantité avec libellé */
.cart-qty { display:flex; flex-direction:column; align-items:center; gap:4px; }
.cart-qty-label { font-size:10px; font-weight:700; color:var(--text-3); text-transform:uppercase; letter-spacing:.4px; }
.cart-qty-row { display:flex; align-items:center; gap:8px; }
.cart-qty-btn { width:32px; height:32px; border-radius:50%; border:1.5px solid var(--border); background:var(--bg-card); color:var(--text-1); font-size:18px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; line-height:1; padding:0; }
.cart-qty-btn:active { background:var(--bg-hover); }
.cart-qty-val { font-size:16px; font-weight:800; color:var(--text-1); min-width:18px; text-align:center; }

.cupertino-danger .cupertino-action-title { color: var(--red, #ef4444); }
.cupertino-danger .cupertino-icon        { color: var(--red, #ef4444); }
.cupertino-danger:active                 { background: rgba(239,68,68,.1); }

.cupertino-footer {
  padding: 10px;
  flex-shrink: 0;
}

.cupertino-close-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: var(--bg-card2, #121c35);
  color: var(--text-1, #f1f5f9);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease-fast);
}
.cupertino-close-btn:active {
  background: var(--bg-hover);
}

@keyframes cupertinoUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Responsive Global ──────────────────── */
.settings-page-cupertino {
  padding: 14px 0 24px;
}

.settings-cupertino-section {
  margin-bottom: 16px;
}

.settings-cupertino-title {
  padding: 0 16px 8px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-cupertino-group {
  background: var(--bg-card, #111827);
  border: 1px solid rgba(255,255,255,0.08);
  margin: 0 14px;
  border-radius: 18px;
  overflow: hidden;
}

.settings-cupertino-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.settings-cupertino-row:last-child {
  border-bottom: 0;
}

.settings-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.settings-row-label {
  font-weight: 600;
}

.settings-row-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.settings-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.settings-version-card {
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card, #111827);
  border: 1px solid rgba(255,255,255,0.08);
}

.settings-logout-btn {
  margin: 4px 14px 24px;
  width: calc(100% - 28px);
}
#app-navbar {
  display: flex;
}
#app-navbar .nb-item {
  flex: 1;
  min-width: 0;
}
#app-navbar .nb-item span {
  font-size: 9px; /* légèrement réduit pour 6 items */
}
.splash-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: transparent; 
}
.splash-icon-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ══════════════════════════════════════════
   MARKETPLACE
══════════════════════════════════════════ */

/* Tabs */
.mk-tabs{display:flex;gap:0;overflow-x:auto;background:var(--bg-card);border-bottom:1px solid var(--border);-webkit-overflow-scrolling:touch}
.mk-tabs::-webkit-scrollbar{display:none}
.mk-tab{display:flex;align-items:center;gap:5px;padding:10px 14px;font-size:12px;font-weight:600;color:var(--text-2);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap;transition:color .15s,border-color .15s;flex-shrink:0}
.mk-tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.mk-tab svg{flex-shrink:0}

/* Shop banner */
.mk-shop-banner{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--bg-card);border-bottom:1px solid var(--border);cursor:pointer}
.mk-shop-banner:active{background:var(--bg-card2)}
.mk-shop-banner-left{display:flex;align-items:center;gap:10px}
.mk-shop-av{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;color:white;flex-shrink:0}
.mk-shop-name{font-size:14px;font-weight:700;color:var(--text-1)}
.mk-shop-sub{font-size:12px;color:var(--cyan);margin-top:1px}

/* Catégories */
.mk-cats-scroll{display:flex;gap:8px;overflow-x:auto;padding:10px 14px;-webkit-overflow-scrolling:touch;border-bottom:1px solid var(--border)}
.mk-cats-scroll::-webkit-scrollbar{display:none}
.mk-cat-btn{display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0;cursor:pointer;padding:2px}
.mk-cat-icon{width:52px;height:52px;border-radius:14px;background:var(--bg-card);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:22px;transition:transform .15s}
.mk-cat-btn:active .mk-cat-icon{transform:scale(.93)}
.mk-cat-label{font-size:10px;font-weight:600;color:var(--text-2);text-align:center;max-width:56px}

/* Search bar */
.mk-search-bar{padding:10px 14px;background:var(--bg-card);border-bottom:1px solid var(--border)}

/* Section header */
.mk-section-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px}
.mk-section-title{font-size:15px;font-weight:700;color:var(--text-1)}
.mk-section-link{font-size:13px;color:var(--cyan);font-weight:600;cursor:pointer}

/* Grid produits — 2 colonnes exactement comme Facebook */
.mk-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);padding:0}
.mk-product-card{background:var(--bg-dark);cursor:pointer;position:relative;overflow:hidden}
.mk-product-card:active{opacity:.85}
.mk-product-img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:var(--bg-card2)}
.mk-product-info{padding:8px 10px 10px}
.mk-product-price{font-size:15px;font-weight:800;color:var(--text-1);margin-bottom:2px}
.mk-product-title{font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}
.mk-product-location{font-size:11px;color:var(--text-3);display:flex;align-items:center;gap:3px}
.mk-product-badge{position:absolute;top:7px;left:7px;background:rgba(10,15,30,.75);backdrop-filter:blur(6px);border-radius:var(--r-full);font-size:10px;font-weight:700;padding:3px 8px;color:white}
.mk-product-save{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;background:rgba(10,15,30,.65);backdrop-filter:blur(6px);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mk-product-save.saved svg{fill:var(--red);stroke:var(--red)}
/* Point rouge "élément concerné par une notification" — décalage POSITIF
   uniquement (jamais négatif) car .mk-product-card a overflow:hidden :
   un décalage négatif serait rogné, comme le bug déjà rencontré sur les
   badges de la barre de navigation. */
.mk-unread-dot{position:absolute;top:6px;right:6px;width:11px;height:11px;border-radius:50%;background:var(--red);border:2px solid var(--bg-dark);z-index:3}

/* Boutiques scroll */
.mk-shops-scroll{display:flex;gap:10px;overflow-x:auto;padding:0 14px 12px;-webkit-overflow-scrolling:touch}
.mk-shops-scroll::-webkit-scrollbar{display:none}
.mk-shop-card{flex-shrink:0;width:130px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;cursor:pointer}
.mk-shop-card-banner{height:56px;background:linear-gradient(135deg,#1d4ed8,#0891b2);position:relative}
.mk-shop-card-av{width:38px;height:38px;border-radius:10px;background:var(--bg-card2);border:2.5px solid var(--bg-dark);position:absolute;bottom:-12px;left:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:var(--text-1)}
.mk-shop-card-body{padding:18px 10px 10px}
.mk-shop-card-name{font-size:12px;font-weight:700;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}
.mk-shop-card-city{font-size:10px;color:var(--text-3)}
.mk-shop-follow-btn{margin-top:7px;width:100%;padding:5px;font-size:11px;font-weight:600;border-radius:var(--r-full)}

/* Escrow badge */
.mk-escrow-badge{display:flex;align-items:center;gap:4px;background:rgba(16,185,129,.15);border:1px solid rgba(16,185,129,.3);border-radius:var(--r-full);padding:4px 10px;font-size:11px;font-weight:700;color:var(--green)}

/* Product detail action bar */
/* .pd-action-bar{position:absolute;bottom:0;left:0;right:0;padding:10px 14px;padding-bottom:calc(10px + env(safe-area-inset-bottom));background:var(--bg-card);border-top:1px solid var(--border);display:flex;gap:8px} */
.pd-action-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    z-index: 10;
  }
/* Navbar — item marketplace accent */
.nb-item.marketplace.active{color:var(--orange)}
.nb-item.marketplace.active svg{stroke:var(--orange)}
/* 480px — téléphones moyens */
@media (max-width: 480px) {
  .topbar {
    padding: 0 8px;
    gap: 5px;
  }
  .topbar-logo { font-size: 19px; }
  .topbar-title { font-size: 16px; }
  .topbar-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  /* Masquer le texte dans les topbar-btn sur petit écran
     (ex: "Afficher la carte" → juste l'icône) */
  .topbar-btn span {
    display: none;
  }
  /* Exception : garde le texte si la classe .topbar-btn-label est ajoutée */
  .topbar-btn.show-label span {
    display: inline;
  }

  .home-topbar {
    padding: 0 8px;
    gap: 5px;
  }

  .nb-fab {
    width: 42px;
    height: 42px;
  }

  .btn-lg { padding: 13px 20px; font-size: 15px; }
  .btn    { padding: 10px 16px; }
  .btn-sm { padding: 7px 12px; font-size: 12px; }

  .cupertino-option-title,
  .cupertino-action-title { font-size: 14px; }
}

/* 360px — petits téléphones (Galaxy A, iPhone SE, Tecno…) */
@media (max-width: 360px) {
  :root {
    --topbar-h: 50px;
    --navbar-h: 56px;
  }
  .topbar-logo { font-size: 17px; }
  .topbar-title { font-size: 15px; }
  .topbar-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .nb-item span { font-size: 9px; }
  .nb-fab { width: 40px; height: 40px; }

  /* Avatars réduits */
  .av-md  { width: 40px; height: 40px; font-size: 14px; }
  .av-lg  { width: 52px; height: 52px; font-size: 17px; }
  .av-xl  { width: 68px; height: 68px; font-size: 22px; }
  .av-2xl { width: 84px; height: 84px; font-size: 26px; }

  /* Empty state compacté */
  .empty       { padding: 36px 16px; gap: 8px; }
  .empty-icon  { font-size: 36px; }
  .empty-title { font-size: 16px; }
  .empty-sub   { font-size: 13px; max-width: 240px; }

  /* Grilles adaptées */
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));  gap: 8px; }

  /* Boutons */
  .btn    { padding: 9px 14px; font-size: 13px; }
  .btn-lg { padding: 12px 18px; font-size: 15px; }
  .btn-sm { padding: 6px 11px; font-size: 12px; }

  /* Chips et badges */
  .chip   { padding: 5px 10px; font-size: 12px; }

  /* Sections */
  .sec-header { padding: 10px 12px 6px; }
  .sec-title  { font-size: 15px; }

  .cupertino-sheet { border-radius: 20px 20px 0 0; }
  .cupertino-option,
  .cupertino-action { padding: 11px 12px; gap: 10px; }
  .cupertino-option-title,
  .cupertino-action-title { font-size: 13px; }
  .cupertino-option-subtitle,
  .cupertino-action-subtitle { display: none; }
  .cupertino-close-btn { padding: 12px; font-size: 14px; }

  /* Sheet */
  .sheet-title { font-size: 15px; padding: 0 14px 10px; }
  .sheet-item  { padding: 12px 14px; gap: 12px; }
  .sheet-label { font-size: 14px; }
  .sheet-icon  { width: 36px; height: 36px; font-size: 16px; }
}

/* ─── Onglets Chat ───────────────────────── */
.chat-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ─── Responsivité globale TechMeet ──────── */

/* Inputs toujours lisibles */
.tm-input {
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px; /* évite le zoom iOS */
  min-height: 46px;
}

/* Cards ne débordent jamais */
.bg-card, [style*="background:var(--bg-card)"] {
  word-break: break-word;
}

/* Texte tronqué proprement */
.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Images toujours contenues */
img { max-width: 100%; height: auto; }

/* Flex wrap sur petits écrans */
@media (max-width: 400px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
  .role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .settings-cupertino-group {
    border-radius: 14px;
  }
  .settings-row-label { font-size: 13px; }
  .settings-row-sub   { font-size: 11px; }
}

/* Très petits écrans (320px Tecno, itel…) */
@media (max-width: 320px) {
  .tm-input { font-size: 14px; min-height: 42px; padding: 10px 12px; }
  .btn      { padding: 8px 12px; font-size: 13px; }
  .btn-lg   { padding: 12px 16px; font-size: 14px; }
  .btn-sm   { padding: 6px 10px; font-size: 11px; }
  .role-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .role-emoji { font-size: 14px; }
  .role-label { font-size: 9px; }
  .auth-headline { font-size: 18px; }
  .nb-label { font-size: 8px; }

  /* Avatars encore plus compacts */
  .av-md  { width: 36px; height: 36px; font-size: 12px; }
  .av-lg  { width: 46px; height: 46px; font-size: 15px; }
  .av-xl  { width: 60px; height: 60px; font-size: 18px; }
  .av-2xl { width: 72px; height: 72px; font-size: 22px; }

  .empty       { padding: 28px 12px; }
  .empty-icon  { font-size: 30px; }
  .empty-title { font-size: 15px; }
  .empty-sub   { max-width: 200px; font-size: 12px; }

  .grid-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }

  .sec-title { font-size: 14px; }
  .chip      { padding: 4px 8px; font-size: 11px; }
}
/* Back office : rangée d'onglets qui défile, barre de défilement visible */
.adm-hscroll { scrollbar-width: thin; scrollbar-color: var(--text-3) transparent; }
.adm-hscroll::-webkit-scrollbar { height: 4px; }
.adm-hscroll::-webkit-scrollbar-track { background: var(--bg-card2); border-radius: 2px; }
.adm-hscroll::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 2px; }

/* ─── Version navigateur sur ordinateur (techmeetafrica.com) ──────────
   L'app garde sa taille téléphone, centrée. Le transform de body fait de
   la colonne le cadre de TOUS les éléments position:fixed (appel, feuilles,
   réglages, visionneuse…) : ils restent dans la colonne. Jamais appliqué
   dans l'app Android (classe tm-web absente), même sur tablette. */
@media (min-width: 768px) {
  html.tm-web { background: #020409; }
  html.tm-web body {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    transform: translateZ(0);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 60px rgba(0,0,0,.6);
  }
}
