/* ═══════════════════════════════════════════
   GENIWORK — Style global (format APK mobile)
   ═══════════════════════════════════════════ */

/* --gw-sat/--gw-sab : marges réelles barre de statut/navigation, injectées
   par MainActivity.java (mesure native, fiable même sur WebView ancien qui
   ne supporte pas env(safe-area-inset-*)). Si non injectées (app web), le
   fallback env(safe-area-inset-*) prend le relais. */
:root {
  --gw-sat: env(safe-area-inset-top, 0px);
  --gw-sab: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  touch-action: manipulation;
}

/* Fond noir derrière le "téléphone" sur desktop */
body {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ═══════════════════════════════════════════
   SYSTÈME DE NAVIGATION — ÉCRANS
   ═══════════════════════════════════════════ */

.screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  justify-content: center;    /* centre le cadre téléphone horizontalement */
}

.screen.active {
  display: flex;
}

/* Cadre téléphone (largeur max 430px, centré) */
.phone-frame {
  width: 100%;
  max-width: 430px;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   ÉCRAN 1 — LANDING
   ═══════════════════════════════════════════ */

.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 13, 31, 0.30)  0%,
    rgba(6, 13, 31, 0.55)  25%,
    rgba(6, 13, 31, 0.85)  50%,
    rgba(6, 13, 31, 0.97)  68%,
    rgba(6, 13, 31, 1.00)  80%
  );
}

.landing-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 56px 26px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Logo landing (texte blanc sur fond sombre) */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 22px;
  font-weight: 400;
  color: #fff;           /* blanc pour la landing sombre */
  letter-spacing: -0.2px;
  line-height: 1;
}

.logo-text strong {
  font-weight: 800;
  color: #2563EB;
}

/* ── Hero */
.hero {
  margin-top: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 .blue { color: #2563EB; }

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.65;
}

/* ── Features */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feat-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 13px;
  background: #0F2166;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.feat-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
}

.feat-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.feat-text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

/* ── Boutons landing */
.landing-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: var(--gw-sab, env(safe-area-inset-bottom, 0px));
}

.btn-blue {
  width: 100%;
  padding: 17px;
  border-radius: 14px;
  background: #2563EB;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  font-family: inherit;
}
.btn-blue:active { background: #1D4ED8; transform: scale(0.98); }

.btn-outline {
  width: 100%;
  padding: 17px;
  border-radius: 14px;
  background: transparent;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.40);
  cursor: pointer;
  transition: border-color 0.18s, transform 0.1s;
  font-family: inherit;
}
.btn-outline:active { border-color: rgba(255,255,255,0.80); transform: scale(0.98); }

/* ═══════════════════════════════════════════
   ÉCRANS AUTH — CONNEXION & INSCRIPTION
   ═══════════════════════════════════════════ */

.auth-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

/* Flèche retour */
.btn-back {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F0F1F3;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1a1a1a;
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s;
  flex-shrink: 0;
}
.btn-back:active { background: #E0E2E5; }

/* ── Logo AUTH — "Geni" en NOIR sur fond blanc */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 76px;
  padding-bottom: 30px;
  flex-shrink: 0;
}

/* Surcharge : texte sombre sur fond clair */
.auth-logo .logo-text {
  color: #0D1B2A;   /* ← "Geni" en noir */
}

.auth-logo .logo-text strong {
  color: #2563EB;   /* ← "work" reste bleu */
}

/* ── Titre page */
.auth-header {
  text-align: left;
  padding: 0 24px 28px;
  flex-shrink: 0;
}

.auth-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.auth-header p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* ── Formulaire */
.auth-form {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 8px;
}

.field-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #E0E4EA;
  border-radius: 12px;
  padding: 0 14px;
  height: 54px;
  transition: border-color 0.2s;
}
.field-box:focus-within { border-color: #2563EB; }

.field-icon {
  color: #9CA3AF;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.field-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #0D1B2A;
  background: transparent;
  font-family: inherit;
}

.field-box input::placeholder { color: #B0B7C3; }

.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 17px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eye-btn:active { color: #2563EB; }

/* Mot de passe oublié */
.forgot-row {
  text-align: right;
  margin-top: 8px;
}

.link-blue {
  background: none;
  border: none;
  cursor: pointer;
  color: #2563EB;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}

/* Bouton plein bleu dans formulaire */
.btn-blue.full {
  width: 100%;
  margin-top: 4px;
}

/* Séparateur "ou" / "ou continuer avec" */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #9CA3AF;
  font-size: 14px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E0E4EA;
}

/* Bouton Google */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #E0E4EA;
  border-radius: 12px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  color: #0D1B2A;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-google:hover  { box-shadow: 0 2px 10px rgba(0,0,0,.10); }
.btn-google:active { background: #F5F7FA; }

/* ── Overlay chargement Google ── */
.google-loading {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.google-loading-card {
  background: #fff; border-radius: 20px;
  padding: 32px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.20);
  min-width: 220px;
}
.google-loading-card p {
  font-size: 14px; color: #374151; font-weight: 500; margin: 0;
}
.google-loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid #E5E7EB;
  border-top-color: #4285F4;
  border-radius: 50%;
  animation: gSpinAnim 0.8s linear infinite;
}
@keyframes gSpinAnim {
  to { transform: rotate(360deg); }
}

/* ── Badge "Compte Google" sur le profil ── */
.google-account-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FEF3F2; border: 1px solid #FCA5A5;
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: #DC2626; font-weight: 600;
  margin-top: 6px;
}

/* Badge CTA sur le profil */
.profil-badge-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.profil-badge-cta:active { opacity: 0.75; }
.profil-badge-cta-default { background: #F3F4F6; color: #374151; border: 1px solid #E5E7EB; }
.profil-badge-cta-blue    { background: #DBEAFE; color: #2563EB; border: 1px solid #BFDBFE; }
.profil-badge-cta-gold    { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.profil-badge-cta-pending { background: #F5F3FF; color: #8B5CF6; border: 1px solid #DDD6FE; }

/* Lien bas de page */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #6B7280;
  padding: 24px 24px 44px;
  margin-top: auto;
}

/* ── Inscription sans logo : titre décalé vers le haut */
.auth-header.no-logo {
  padding-top: 80px;
}

/* ═══════════════════════════════════════════
   INDICATEUR MOT DE PASSE
   ═══════════════════════════════════════════ */

.pwd-rules {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule {
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}

.rule i {
  font-size: 13px;
  width: 14px;
  flex-shrink: 0;
}

/* Règle non validée */
.rule.fail {
  color: #EF4444;
}
.rule.fail i::before { content: "\f057"; } /* fa-circle-xmark */

/* Règle validée */
.rule.ok {
  color: #16A34A;
}
.rule.ok i::before { content: "\f058"; } /* fa-circle-check */

/* Erreur sous champ */
.field-error {
  font-size: 12px;
  color: #EF4444;
  margin-top: 6px;
  font-weight: 500;
}
.field-error.hidden { display: none; }

/* Bordure rouge sur champ email déjà utilisé */
.field-box.error { border-color: #EF4444; }

/* ═══════════════════════════════════════════
   ÉCRANS VÉRIFICATION & RESET
   ═══════════════════════════════════════════ */

/* Zone d'intro (icône + titre + texte) */
.verify-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 28px 28px;
  flex-shrink: 0;
}

.verify-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #2563EB;
  margin-bottom: 20px;
}

.verify-icon.orange { background: #FFF7ED; color: #EA580C; }
.verify-icon.green  { background: #F0FDF4; color: #16A34A; }

.verify-top h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 10px;
}

.verify-top p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.65;
}

.verify-top strong { color: #0D1B2A; }

/* Boîte code démo */
.demo-code-box {
  margin-top: 14px;
  background: #FEF9C3;
  border: 1.5px solid #FDE047;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #713F12;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-code-box strong {
  font-size: 18px;
  letter-spacing: 4px;
  color: #92400E;
}

/* Label code */
.code-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 14px;
}

/* Les 4 boîtes du code */
.code-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}

.code-box {
  width: 62px;
  height: 68px;
  border: 2px solid #E0E4EA;
  border-radius: 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0D1B2A;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  caret-color: #2563EB;
}
.code-box:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.code-box.filled { border-color: #2563EB; background: #EFF6FF; }

/* Lien renvoyer */
.resend-row {
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  margin-top: 20px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.code-box.shake { animation: shake 0.5s ease; }

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0D1B2A;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok  { background: #16A34A; }
.toast.err { background: #DC2626; }

/* ═══════════════════════════════════════════
   ÉCRAN CGU
   ═══════════════════════════════════════════ */

.cgu-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #F5F7FA;
  overflow: hidden;
}

/* En-tête fixe */
.cgu-topbar {
  flex-shrink: 0;
  background: #fff;
  padding: calc(52px + var(--gw-sat, env(safe-area-inset-top, 0px))) 20px 16px;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
  position: relative;
}

/* Bouton retour vers les paramètres (lecture seule) */
.cgu-settings-back {
  position: absolute; top: 14px; left: 14px;
  background: none; border: none;
  width: 38px; height: 38px; border-radius: 50%;
  color: #374151; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #F3F4F6;
}
.cgu-settings-back.hidden { display: none; }

.cgu-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cgu-logo-text {
  color: #0D1B2A !important;  /* Geni en noir sur fond blanc */
}

.cgu-title {
  font-size: 18px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 4px;
}

.cgu-subtitle {
  font-size: 13px;
  color: #6B7280;
}

/* Zone scrollable */
.cgu-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 0;
  -webkit-overflow-scrolling: touch;
}

/* Sections */
.cgu-section {
  margin-bottom: 20px;
}

.cgu-section h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 4px;
  line-height: 1.4;
}

.cgu-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1D4ED8;
  margin-bottom: 8px;
}

.cgu-section p {
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 8px;
}

.cgu-section ul {
  margin: 6px 0 8px 4px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cgu-section ul li {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.cgu-section strong {
  color: #0D1B2A;
  font-weight: 700;
}

.cgu-date {
  font-size: 12px !important;
  color: #9CA3AF !important;
  margin-bottom: 0 !important;
}

.cgu-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 24px 0;
}

/* Pied de page fixe */
.cgu-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  padding: 16px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

/* Checkbox personnalisée */
.cgu-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.cgu-check-label input[type="checkbox"] {
  display: none;
}

.cgu-checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid #D1D5DB;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
}

/* Coche quand cochée */
.cgu-check-label input:checked + .cgu-checkmark {
  background: #2563EB;
  border-color: #2563EB;
}

.cgu-check-label input:checked + .cgu-checkmark::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.cgu-check-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
}

/* Bouton accepter (désactivé par défaut) */
.cgu-btn:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
  transform: none !important;
}

.cgu-btn:not(:disabled) {
  animation: btnPulse 0.4s ease;
}

@keyframes btnPulse {
  0%   { transform: scale(0.97); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════
   ÉCRAN 9 — APPLICATION (feed / app)
   ═══════════════════════════════════════════ */

/* Cadre app (fond blanc, flex colonne) */
.app-frame {
  background: #F3F4F6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── TOPBAR ── */
.app-topbar {
  flex-shrink: 0;
  height: calc(56px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: linear-gradient(135deg, #0B1A33 0%, #0D2150 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 20;
}

.app-topbar-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 20px;
  color: #E2E8F0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-topbar-btn:active { background: rgba(255,255,255,0.1); }

.app-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-brand-logo { width: 28px; height: 28px; }

.app-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #F1F5F9;
  letter-spacing: -0.3px;
}

.notif-badge {
  position: absolute;
  top: 5px;
  right: 4px;
  background: #EF4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Groupe droite topbar (loupe + cloche) ── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ══════════════════════════════════════════
   RECHERCHE — OVERLAY
══════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%) translateY(-100%);
  transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
  background: #fff;
  z-index: 180;
  display: flex;
  flex-direction: column;
}
.search-overlay.hidden {
  display: none;
}
.search-overlay.open {
  transform: translateX(-50%) translateY(0);
  display: flex;
}

/* ── En-tête : champ + Annuler ── */
.search-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #E5E7EB;
  background: #fff;
}

.search-input-row {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 0 10px;
  gap: 8px;
  height: 42px;
}

.srch-icon-left {
  color: #9CA3AF;
  font-size: 15px;
  flex-shrink: 0;
}

.search-input-row input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  color: #111827;
  min-width: 0;
}

.search-input-row input::placeholder { color: #9CA3AF; }

.srch-clear-btn {
  border: none;
  background: none;
  color: #9CA3AF;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.srch-cancel-btn {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #2563EB;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  white-space: nowrap;
}

/* ── Filtres ── */
.srch-filters-row {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #F3F4F6;
  background: #fff;
}

.srch-filter {
  border: 1.5px solid #E5E7EB;
  background: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
}
.srch-filter.active {
  background: #1E3A5F;
  border-color: #1E3A5F;
  color: #fff;
}

/* ── Zone de résultats ── */
.srch-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

/* État vide */
.srch-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 24px;
  color: #9CA3AF;
  text-align: center;
}
.srch-empty-state i { font-size: 38px; color: #D1D5DB; }
.srch-empty-state p { font-size: 15px; line-height: 1.5; }

/* Aucun résultat */
.srch-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 24px;
  color: #9CA3AF;
  text-align: center;
}
.srch-no-results i { font-size: 34px; color: #D1D5DB; }
.srch-no-results p { font-size: 15px; font-weight: 600; color: #374151; }
.srch-no-results small { font-size: 13px; }

/* Titre de section */
.srch-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 16px 6px;
}

/* ── Carte utilisateur ── */
.srch-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F9FAFB;
  transition: background 0.12s;
}
.srch-user-item:active { background: #F3F4F6; }

.srch-av {
  flex-shrink: 0;
}

.srch-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.srch-user-info strong {
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srch-user-info small {
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srch-chevron {
  color: #D1D5DB;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Carte publication ── */
.srch-post-item {
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.12s;
}
.srch-post-item:active { background: #F3F4F6; }

.srch-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.srch-post-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.srch-post-meta strong {
  font-size: 13px;
  color: #111827;
}
.srch-post-meta small {
  font-size: 11px;
  color: #9CA3AF;
}
.srch-media-icon {
  font-size: 14px;
  color: #9CA3AF;
  margin-left: auto;
}

.srch-post-preview {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Surligneur de recherche */
mark.srch-mark {
  background: #DBEAFE;
  color: #1D4ED8;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 600;
}

/* ── PAGES ── */
.app-pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.app-page {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  overflow: hidden;
}

/* Animation de navigation — sensation native (fade + léger slide up) */
@keyframes gw-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-page.active {
  display: flex;
  animation: gw-page-in 0.18s ease-out both;
}

.page-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  /* Empêche le rebond de se propager → scroll plus fluide */
  overscroll-behavior-y: contain;
}

/* Inner topbar (pages internes) */
.inner-topbar {
  flex-shrink: 0;
  height: calc(52px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 16px 0;
  gap: 12px;
}

.inner-topbar h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0D1B2A;
  flex: 1;
}

.back-btn-sm {
  width: 36px;
  height: 36px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  font-size: 16px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FEED TABS ── */
.feed-tabs-wrap {
  display: none; /* À réactiver lors de l'ajout des onglets Abonnements / Découvrir */
}

.feed-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 13px 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.feed-tab.active {
  color: #2563EB;
  font-weight: 700;
}

.feed-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  background: #2563EB;
  border-radius: 3px 3px 0 0;
}

/* ── BOUTON NOUVEAUX POSTS ── */
.new-posts-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 0;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── AVATAR UTILISATEUR ── */
.user-av {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.user-av.xs { width: 26px; height: 26px; min-width: 26px; font-size: 10px; }
.user-av.sm { width: 32px; height: 32px; min-width: 32px; font-size: 12px; }
.user-av.lg { width: 48px; height: 48px; min-width: 48px; font-size: 17px; }

.user-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo de profil dans un avatar */
.user-av.av-photo {
  background: none !important;
  position: relative;
}
.user-av.av-photo span { display: none !important; }
.user-av.av-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── COMPOSER CARD ── */
.composer-card {
  background: #fff;
  margin: 10px 10px 0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-placeholder {
  flex: 1;
  border: 1.5px solid #E5E7EB;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  color: #9CA3AF;
  background: #F9FAFB;
  text-align: left;
  cursor: pointer;
}

.composer-plus {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: none;
  background: #2563EB;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-media {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.composer-media button {
  flex: 1;
  border: none;
  background: #F3F4F6;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  color: #4B5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.composer-media button i { color: #2563EB; font-size: 13px; }

/* Boutons découverte Short / Vidéo */
.composer-media-discover { justify-content: center; gap: 12px; }
.composer-discover-btn {
  flex: 1 !important;
  max-width: 160px;
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 24px !important;
  gap: 7px !important;
  transition: opacity .15s;
}
.composer-discover-btn:active { opacity: .75; }
.composer-short-btn {
  background: linear-gradient(135deg,#E11D48,#BE185D) !important;
  color: #fff !important;
}
.composer-short-btn i { color: #fff !important; font-size: 15px !important; }
.composer-video-btn {
  background: linear-gradient(135deg,#2563EB,#1D4ED8) !important;
  color: #fff !important;
}
.composer-video-btn i { color: #fff !important; font-size: 15px !important; }

/* ══════════════════════════════════════════
   FEED HERO SECTION
══════════════════════════════════════════ */
.feed-hero {
  background: linear-gradient(160deg, #0B1A33 0%, #0D2150 100%);
  padding: 20px 18px 22px;
  margin: 0;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
}
/* Halo déco en arrière-plan */
.feed-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.feed-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.feed-hero-text { flex: 1; padding-right: 12px; }

.feed-hero-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1.25;
}
.feed-hero-title span {
  color: #60A5FA;
}

.feed-hero-sub {
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
}

/* Avatar cercle avec anneau bleu */
.feed-hero-av-wrap {
  position: relative;
  flex-shrink: 0;
}
.feed-hero-av {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  border: 3px solid #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25) !important;
  font-size: 24px !important;
}
.feed-hero-av img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Point vert "en ligne" */
.feed-hero-online-dot {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 14px; height: 14px;
  background: #22C55E;
  border-radius: 50%;
  border: 2px solid #0B1A33;
}

/* ── Boutons catégories ── */
.feed-hero-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.feed-hero-cats::-webkit-scrollbar { display: none; }

.feed-cat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: none;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  color: #F1F5F9;
  flex-shrink: 0;
}
.feed-cat-btn:active { opacity: .75; transform: scale(.96); }

.feed-cat-video {
  background: rgba(37,99,235,0.25);
  border: 1px solid rgba(37,99,235,0.4);
}
.feed-cat-short {
  background: linear-gradient(135deg, #9333EA, #7C3AED);
}
.feed-cat-ai {
  background: rgba(13,148,136,0.25);
  border: 1px solid rgba(13,148,136,0.4);
}
.feed-cat-collab {
  background: rgba(217,119,6,0.25);
  border: 1px solid rgba(217,119,6,0.4);
}

.feed-cat-ai-badge {
  background: #0D9488;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

/* ── Barre composer sous le héro ── */
.feed-compose-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  margin: 10px 10px 0;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.feed-compose-av {
  width: 36px !important;
  height: 36px !important;
  font-size: 13px !important;
  flex-shrink: 0;
}
.feed-compose-placeholder {
  flex: 1;
  border: 1.5px solid #E5E7EB;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #9CA3AF;
  background: #F9FAFB;
  text-align: left;
  cursor: pointer;
}

/* dark mode hero */
body.dark-mode .feed-hero { background: linear-gradient(160deg, #060E1C 0%, #081230 100%); }
body.dark-mode .feed-compose-bar { background: #1F2937; box-shadow: none; }
body.dark-mode .feed-compose-placeholder { background: #111827; border-color: #374151; color: #6B7280; }

/* ── Scroll infini — spinner de chargement ── */
.feed-inf-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 28px;
}

/* ── Fin du feed — plus de publications à charger ── */
.feed-end-msg {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px 0 32px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
}
.feed-end-msg i { color: #22C55E; font-size: 15px; }
body.dark-mode .feed-end-msg { color: #64748B; }
.feed-inf-spinner {
  width: 28px; height: 28px;
  border: 3px solid #E5E7EB;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: feedSpin .7s linear infinite;
  display: inline-block;
}
@keyframes feedSpin { to { transform: rotate(360deg); } }

/* ── POST CARD ── */
.post-card {
  background: #fff;
  margin: 10px 10px 0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
  /* Isole le rendu de chaque carte — un changement dans une carte
     ne provoque pas le recalcul des autres → scroll plus fluide */
  contain: layout style;
}

.post-header {
  display: flex;
  align-items: flex-start;
  padding: 14px 14px 10px;
  gap: 10px;
}

.post-meta { flex: 1; }

.post-name {
  font-size: 14px;
  font-weight: 700;
  color: #0D1B2A;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.post-badge {
  font-size: 12px;
  color: #2563EB;
}

.post-time {
  font-size: 11.5px;
  color: #9CA3AF;
  margin-top: 2px;
}

.post-menu-btn {
  border: none;
  background: none;
  color: #9CA3AF;
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 8px;
}
.post-menu-btn:active { background: #F3F4F6; }

/* ── Menu items du post ── */
.post-menu-list { padding: 4px 16px 8px; display: flex; flex-direction: column; gap: 2px; }
.post-menu-item {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 12px 8px; background: none; border: none;
  cursor: pointer; border-radius: 10px; text-align: left;
}
.post-menu-item:active { background: #F9FAFB; }
.post-menu-danger:active { background: #FEF2F2; }
.post-menu-warn:active   { background: #FFF7ED; }
.pmi-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.pmi-label { font-size: 15px; font-weight: 600; color: #111827; }
.pmi-sep { height: 1px; background: #F3F4F6; margin: 6px 0; }

.post-body {
  padding: 0 14px 12px;
}

.post-text {
  font-size: 14px;
  color: #1F2937;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-text .see-more {
  color: #2563EB;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

/* Images grille */
.post-images {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  gap: 2px;
}

.post-images.grid-1 { grid-template-columns: 1fr; }
.post-images.grid-2 { grid-template-columns: 1fr 1fr; }
.post-images.grid-3 { grid-template-columns: 1fr 1fr; }
.post-images.grid-3 .post-img:first-child { grid-column: 1/-1; }

.post-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.post-images.grid-1 .post-img { aspect-ratio: 16/9; }

.post-images.grid-4 { grid-template-columns: 1fr 1fr; }
.post-images.grid-4 .post-img { aspect-ratio: 1; }
.post-images.grid-5 { grid-template-columns: 1fr 1fr; }
.post-images.grid-5 .post-img { aspect-ratio: 1; }
.post-images.grid-5 .post-img:last-child { grid-column: 1/-1; aspect-ratio: 16/9; }
.post-images.grid-6 { grid-template-columns: 1fr 1fr 1fr; }
.post-images.grid-6 .post-img { aspect-ratio: 1; }

/* Bouton télécharger les photos d'un post */
/* .post-dl-btn supprimé — bouton déplacé dans le menu ⋯ */

/* ── VISIONNEUSE PHOTOS (plein écran) ── */
.photo-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-viewer.hidden { display: none; }

.pv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-counter-top {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  padding: 4px 12px;
}

.pv-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 52px;
  overflow: hidden;
}

.pv-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.pv-prev, .pv-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
}

.pv-prev { left: 10px; }
.pv-next { right: 10px; }
.pv-prev.hidden, .pv-next.hidden { opacity: 0; pointer-events: none; }

/* Dots indicateurs */
.pv-dots {
  display: flex;
  gap: 6px;
  padding: 8px 0 4px;
}

.pv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s, transform 0.2s;
}

.pv-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.pv-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  padding-bottom: calc(14px + var(--gw-sab, env(safe-area-inset-bottom, 0)));
  background: rgba(0,0,0,0.4);
}

.pv-footer-left { color: rgba(255,255,255,0.65); font-size: 13px; }

.pv-dl {
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Vidéo embed */
.post-video-wrap {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.post-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Barre d'actions */
.post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 12px 10px;
  border-top: 1px solid #F3F4F6;
  gap: 2px;
}

.act-btn {
  border: none;
  background: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}

.act-btn:active { background: #F3F4F6; }

.act-btn i { font-size: 16px; flex-shrink: 0; }

/* Like */
.act-btn.liked      { color: #EF4444; }
.act-btn.liked i    { color: #EF4444; }
.act-btn.disliked   { color: #6366F1; }
.act-btn.disliked i { color: #6366F1; }

/* fav-btn, share-btn, translate-btn déplacés dans le menu ⋯ — cachés dans le DOM pour état */

/* Compteur commentaires — masqué si 0 */
.comment-count-span:empty { display: none; }

/* ── CHARGEMENT ── */
.feed-loading {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563EB;
  animation: bounce 0.9s infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%,60%,100% { transform: translateY(0); }
  30%         { transform: translateY(-8px); }
}

/* ── BOTTOM NAV ── */
.app-bottom-nav {
  flex-shrink: 0;
  height: 62px;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: var(--gw-sab, env(safe-area-inset-bottom, 0));
  position: relative;
}

.bnav-item {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s;
}

/* Icône rebondit au tap — sensation native */
.bnav-item i {
  font-size: 20px;
  display: block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s;
}
.bnav-item.active i { transform: translateY(-3px) scale(1.18); }
.bnav-item.active { color: #2563EB; }

/* Badge non lus sur l'icône Messages */
.msg-nav-badge {
  position: absolute;
  top: 4px; right: calc(50% - 22px);
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #EF4444; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 18px;
  border-radius: 9px; text-align: center;
  border: 2px solid #fff;
  pointer-events: none;
  animation: badgePop .2s ease;
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.bnav-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.5);
  flex-shrink: 0;
  margin-bottom: 8px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
}
.bnav-center:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

/* ── SIDEBAR ── */
/* ancienne sidebar supprimée — remplacée par .app-sidebar */

/* ── COMMENTAIRES (bottom sheet) ── */
.comments-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 950;
}

.comments-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 951;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  animation: slideUp 0.28s ease;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}

.comments-panel.hidden { display: none; }

.comments-handle {
  width: 40px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
  margin: 10px auto 0;
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
}

.comments-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0D1B2A;
}

.comments-head button {
  border: none;
  background: none;
  font-size: 18px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
}

.comments-count {
  font-size: 13px;
  font-weight: 400;
  color: #9CA3AF;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── COMMENTAIRE ITEM ── */
.comment-item {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #F9FAFB;
}

.comment-item:last-child { border-bottom: none; }

/* Réponse indentée */
.comment-reply {
  margin-left: 36px;
  padding-top: 6px;
  position: relative;
}

.comment-reply::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #E5E7EB;
  border-radius: 1px;
}

.comment-content { flex: 1; min-width: 0; }

.comment-bubble {
  background: #F3F4F6;
  border-radius: 0 12px 12px 12px;
  padding: 9px 12px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: #0D1B2A;
}

.comment-time {
  font-size: 11px;
  color: #9CA3AF;
}

.edited-label {
  font-size: 11px;
  color: #9CA3AF;
  font-style: italic;
}

/* Boutons modifier / supprimer (propres comments seulement) */
.comment-own-actions {
  margin-left: auto;
  display: flex;
  gap: 1px;
}

.comment-own-actions button {
  border: none;
  background: none;
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #9CA3AF;
}

.comment-own-actions button:first-child { color: #2563EB; }
.comment-own-actions button:last-child  { color: #EF4444; }
.comment-own-actions button:active { background: #F3F4F6; }

.comment-text {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.5;
  word-break: break-word;
}

/* Zone d'édition d'un commentaire */
.comment-edit-area {
  width: 100%;
  border: 1.5px solid #2563EB;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13.5px;
  color: #1F2937;
  resize: none;
  outline: none;
  font-family: inherit;
  min-height: 56px;
  background: #fff;
}

.comment-edit-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* Boutons d'action sous un commentaire (répondre, 👍, 👎) */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 5px;
  padding-left: 2px;
}

.c-act-btn {
  border: none;
  background: none;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.c-act-btn:active { background: #F3F4F6; }
.c-act-btn i { font-size: 13px; }
.c-act-btn.c-liked    { color: #2563EB; font-weight: 600; }
.c-act-btn.c-disliked { color: #EF4444; font-weight: 600; }
.c-act-btn.c-reply-btn { color: #6B7280; }

.c-save-btn {
  background: #2563EB !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.c-cancel-btn {
  color: #6B7280;
  border: none;
  background: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* Zone saisie commentaire */
.comments-input-area {
  flex-shrink: 0;
  border-top: 1px solid #E5E7EB;
}

/* Indicateur de réponse */
.reply-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  font-size: 13px;
  color: #1D4ED8;
}

.reply-indicator i { color: #60A5FA; font-size: 13px; }

.reply-indicator button {
  border: none;
  background: none;
  color: #9CA3AF;
  cursor: pointer;
  margin-left: auto;
  padding: 3px 6px;
  font-size: 14px;
  border-radius: 50%;
}

.comments-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-bottom: calc(10px + var(--gw-sab, env(safe-area-inset-bottom, 0)));
}

.comments-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 24px;
  padding: 0 12px;
  gap: 8px;
}

.comments-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 0;
  font-size: 14px;
  color: #1F2937;
  outline: none;
}

.comments-input-wrap button {
  border: none;
  background: none;
  color: #2563EB;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

/* ── EMOJI PICKER ── */
.emoji-trigger-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}
.emoji-picker-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  margin: 0 12px 8px;
  max-height: 180px;
  overflow-y: auto;
}
.emoji-picker-panel.hidden { display: none; }
.emoji-btn {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.emoji-btn:active { background: #F3F4F6; }

/* ── PAGE PUBLIER ── */
.pub-scroll { background: #F9FAFB; }

.pub-composer {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
}

.pub-right { flex: 1; display: flex; flex-direction: column; }

.pub-name {
  font-size: 14px;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 8px;
}

.pub-right textarea {
  border: none;
  background: none;
  resize: none;
  font-size: 15px;
  color: #1F2937;
  line-height: 1.6;
  outline: none;
  min-height: 120px;
  font-family: inherit;
}

.pub-send-btn {
  border: none;
  background: #2563EB;
  color: #fff;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ── SECTION MÉDIAS (PUBLIER) ── */
.pub-media-section {
  background: #fff;
  margin-top: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pub-media-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-media-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 62px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7280;
}

.pub-media-label i { color: #2563EB; font-size: 15px; }

.pub-media-btns {
  display: flex;
  gap: 8px;
  flex: 1;
}

.pub-media-btns .pub-type-btn { flex: 1; }

.pub-media-row-doc { padding-top: 2px; }

.pub-doc-btn { width: 100%; }

/* Bouton type média (réutilisé) */
.pub-type-btn {
  border: 1.5px solid #E5E7EB;
  background: #fff;
  border-radius: 10px;
  padding: 11px 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.pub-type-btn:active { background: #EFF6FF; border-color: #BFDBFE; }
.pub-type-btn i { color: #2563EB; font-size: 15px; }

/* Fiche specs vidéo */
.pub-video-specs {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 16px 2px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #1D4ED8;
  line-height: 1.5;
}

.pub-video-specs i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.pub-video-specs span { color: #6B7280; font-size: 11.5px; }

/* ── APERÇU IMAGE (formulaire publier) ── */
.pub-img-preview {
  margin: 10px 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pub-img-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.pub-img-preview .rm-img {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── APERÇU VIDÉO (formulaire publier) ── */
.pub-video-preview {
  margin: 10px 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.pub-video-preview video {
  width: 100%;
  max-height: 260px;
  display: block;
}

.pub-video-preview .rm-video {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pub-video-meta {
  display: flex;
  gap: 14px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.65);
  font-size: 11.5px;
  color: #fff;
}

.pub-video-meta i { color: #93C5FD; }

.pub-video-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  margin: 8px 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #EF4444;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── APERÇU DOCUMENT (formulaire publier) ── */
.pub-doc-preview { margin: 8px 16px; }

.pub-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
}

.pub-doc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #EEF2FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pub-doc-info { flex: 1; min-width: 0; }
.pub-doc-name { font-size: 13px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-doc-meta { font-size: 11px; color: #94A3B8; margin-top: 2px; }

.pub-doc-preview-btn, .pub-doc-remove {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pub-doc-preview-btn { color: #6366F1; background: #EEF2FF; }
.pub-doc-remove      { color: #EF4444; background: #FEF2F2; }

/* ── DOCUMENT DANS LE FEED (post card) ── */
.post-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.post-doc-card:hover { background: #EEF2FF; border-color: #C7D2FE; }

.post-doc-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.post-doc-info { flex: 1; min-width: 0; }
.post-doc-name { font-size: 13.5px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-doc-meta { font-size: 11.5px; color: #94A3B8; margin-top: 2px; }

.post-doc-open {
  color: #6366F1; font-size: 14px; flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #EEF2FF;
  display: flex; align-items: center; justify-content: center;
}

/* ── VISIONNEUSE DOCUMENT ── */
#gw-doc-viewer {
  position: fixed;
  inset: 0;
  z-index: 4100;
  background: #0F172A;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#gw-doc-viewer.open { transform: translateY(0); }

.gw-doc-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1E293B;
  gap: 12px;
  flex-shrink: 0;
  min-height: 56px;
}

.gw-doc-viewer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gw-doc-viewer-btn {
  background: #334155;
  border: none;
  border-radius: 10px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #CBD5E1;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.gw-doc-viewer-close { color: #F87171; }

.gw-doc-viewer-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gw-doc-viewer-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  display: block;
}

.gw-doc-viewer-text {
  flex: 1;
  overflow: auto;
  padding: 16px;
  color: #E2E8F0;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.gw-doc-viewer-nopreview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.gw-doc-dl-btn {
  background: linear-gradient(135deg,#6366F1,#4F46E5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── VIDÉO DANS LE POST CARD ── */
.post-video-wrap {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.post-video-wrap video {
  width: 100%;
  max-height: 380px;
  display: block;
}

.post-video-wrap.ratio-45  video { aspect-ratio: 4/5;  object-fit: cover; }
.post-video-wrap.ratio-169 video { aspect-ratio: 16/9; object-fit: cover; }

/* ── Thumbnail cliquable dans le feed ── */
.post-video-wrap { cursor: pointer; position: relative; }
.post-video-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.post-video-play-ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.8);
  color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
}
.post-video-dur-badge {
  position: absolute; bottom: 8px; right: 10px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  pointer-events: none;
}
/* Badge "son coupé" affiché pendant l'autoplay du feed */
.post-video-muted-badge {
  position: absolute; bottom: 8px; left: 10px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 13px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.15s ease;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}
.post-video-muted-badge:active { background: rgba(99,102,241,.75); }
/* Badge vues vidéo — haut gauche */
.post-video-views-badge {
  position: absolute; top: 8px; left: 10px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
  pointer-events: none;
  backdrop-filter: blur(2px);
  letter-spacing: .2px;
}
.post-video-views-badge i { font-size: 10px; opacity: .9; }
/* Variante pour les vidéos officielles (avec controls natifs) */
.off-vid-views-badge {
  top: auto;
  bottom: 48px;   /* au-dessus des contrôles vidéo natifs */
  left: 10px;
}

/* ══════════════════════════════════════════
   PROJECT FORM MODAL
══════════════════════════════════════════ */
.project-form-modal {
  position: fixed;
  left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform .28s ease;
  background: #fff;
  z-index: 270;
  display: flex;
  flex-direction: column;
}
.project-form-modal.hidden  { display: none; }
.project-form-modal.open    { transform: translateX(-50%) translateX(0); display: flex; }

.proj-form-topbar {
  flex-shrink: 0; height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  display: flex; align-items: center; gap: 10px;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 12px 0;
  border-bottom: 1px solid #F3F4F6;
  background: #fff;
}
.proj-form-back {
  width: 38px; height: 38px; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 18px; color: #374151; cursor: pointer;
}
.proj-form-back:active { background: #F3F4F6; }
.proj-form-title-label {
  flex: 1; font-size: 17px; font-weight: 700; color: #111827;
}
.proj-form-save {
  border: none; background: #2563EB; color: #fff;
  font-size: 14px; font-weight: 700; padding: 8px 18px;
  border-radius: 20px; cursor: pointer;
}
.proj-form-save:active { background: #1D4ED8; }
.proj-form-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 40px; }

/* ══════════════════════════════════════════
   PROJECT CARDS
══════════════════════════════════════════ */
.proj-card {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px; border-bottom: 1px solid #F3F4F6; background: #fff;
}
.proj-card:last-child { border-bottom: none; }
.proj-card-icon {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 24px; overflow: hidden;
}
.proj-card-icon-photo img { width: 100%; height: 100%; object-fit: cover; }
.proj-card-body { flex: 1; min-width: 0; }
.proj-card-toprow {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 6px; margin-bottom: 3px;
}
.proj-title { font-size: 15px; font-weight: 700; color: #111827; margin: 0; flex: 1; line-height: 1.3; }
.proj-menu-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  border: none; background: none; color: #9CA3AF;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.proj-menu-btn:active { background: #F3F4F6; color: #374151; }
.proj-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.proj-cat-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: #2563EB;
  background: #EFF6FF; border-radius: 20px; padding: 2px 8px;
}
.proj-date-txt { font-size: 11px; color: #9CA3AF; }
.proj-desc {
  font-size: 13px; color: #6B7280; line-height: 1.5;
  margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.proj-tag { font-size: 11px; color: #374151; background: #F3F4F6; border-radius: 4px; padding: 2px 7px; }
.proj-foot { margin-top: 4px; }
.proj-link-btn {
  font-size: 12px; font-weight: 600; color: #2563EB;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.proj-link-btn:active { opacity: .7; }
/* Icon form picker */
.proj-icon-form-row { display: flex; align-items: center; gap: 14px; }
.proj-icon-form-preview {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 14px; background: #EFF6FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden;
}
.proj-icon-form-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-icon-opt-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  border: 1.5px solid #E5E7EB; background: #fff;
  color: #374151; font-size: 13px; font-weight: 600; cursor: pointer;
}
.proj-icon-opt-btn.active { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }

/* Status picker (form) */
.proj-status-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-status-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 20px;
  border: 1.5px solid #E5E7EB; background: #fff;
  color: #6B7280; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.proj-status-btn[data-status="encours"].active { border-color: #16A34A; color: #16A34A; background: #F0FDF4; }
.proj-status-btn[data-status="pause"].active   { border-color: #D97706; color: #D97706; background: #FFFBEB; }
.proj-status-btn[data-status="termine"].active { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }

/* Status badge (card) */
.proj-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  border-radius: 20px; padding: 2px 8px;
}

/* Doc section (form) */
.proj-docs-preview { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.proj-doc-item {
  display: flex; align-items: center; gap: 8px;
  background: #F9FAFB; border-radius: 8px; padding: 8px 10px;
  font-size: 13px;
}
.proj-doc-name { flex: 1; min-width: 0; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-doc-remove {
  width: 24px; height: 24px; border: none; background: none;
  color: #9CA3AF; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proj-doc-remove:active { color: #EF4444; }
.proj-doc-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 8px;
  border: 1.5px dashed #D1D5DB; background: #F9FAFB;
  color: #6B7280; font-size: 13px; font-weight: 600; cursor: pointer;
}
.proj-doc-add-btn:active { background: #F3F4F6; }

/* Doc chips (card) */
.proj-card-docs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.proj-doc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F3F4F6; border: none; border-radius: 6px;
  padding: 4px 8px; font-size: 11px; color: #374151;
  cursor: pointer; max-width: 150px; overflow: hidden;
}
.proj-doc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-doc-chip:active { background: #E5E7EB; }

/* ══════════════════════════════════════════
   COLLABORATION PROJETS
══════════════════════════════════════════ */

/* Avatars sur la carte projet */
.proj-card-collabs {
  display: flex; align-items: center; gap: 4px;
  margin-top: 6px; flex-wrap: wrap;
}
.proj-collab-av {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; object-fit: cover;
  font-size: 11px; font-weight: 700; color: #fff;
  background: #6366F1; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-collab-av-init { background: #8B5CF6; }
.proj-collab-av-more { background: #E5E7EB; color: #6B7280; font-size: 10px; }
.proj-collab-add-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px dashed #D1D5DB; background: #F9FAFB;
  color: #9CA3AF; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proj-collab-add-btn:active { background: #EFF6FF; border-color: #2563EB; color: #2563EB; }
.proj-collab-lbl { font-size: 11px; color: #9CA3AF; margin-left: 2px; }

/* Sheet d'invitation */
.collab-sheet { max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; }
.collab-sheet-head { padding: 0 16px 10px; }
.collab-sheet-head h4 { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 3px; display: flex; align-items: center; gap: 8px; }
.collab-sheet-sub { font-size: 13px; color: #6B7280; margin: 0; }
.collab-search-row { padding: 0 16px 10px; }
.collab-search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: #F3F4F6; border-radius: 10px; padding: 0 12px; height: 40px;
}
.collab-search-wrap i { color: #9CA3AF; font-size: 14px; flex-shrink: 0; }
.collab-search-input { flex: 1; border: none; background: transparent; font-size: 14px; color: #111827; outline: none; }
.collab-search-results { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.collab-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9CA3AF; margin: 10px 0 8px; }
.collab-user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #F3F4F6;
}
.collab-user-row:last-child { border-bottom: none; }
.collab-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; font-size: 15px; font-weight: 700; color: #fff;
  background: #6366F1; display: flex; align-items: center; justify-content: center;
}
.collab-av-sm { width: 30px; height: 30px; font-size: 12px; }
.collab-av-init { background: #8B5CF6; }
.collab-user-info { flex: 1; min-width: 0; }
.collab-user-info b { font-size: 14px; font-weight: 600; color: #111827; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collab-user-info span { font-size: 12px; color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.collab-invite-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 20px;
  border: 1.5px solid #2563EB; background: #EFF6FF;
  color: #2563EB; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.collab-invite-btn:active { background: #DBEAFE; }
.collab-badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.collab-badge-ok   { background: #F0FDF4; color: #16A34A; }
.collab-badge-wait { background: #FFFBEB; color: #D97706; }
.collab-empty { text-align: center; padding: 24px 0; color: #9CA3AF; }
.collab-empty i { font-size: 28px; margin-bottom: 8px; display: block; }
.collab-empty p { font-size: 13px; margin: 0; line-height: 1.5; }

/* Bannière invitations (profil) */
.collab-banner {
  background: #fff; border-radius: 14px; margin: 0 16px 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06); overflow: hidden;
}
.collab-banner-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px; font-size: 14px; font-weight: 700; color: #111827;
  border-bottom: 1px solid #F3F4F6;
}
.collab-banner-head i { color: #2563EB; font-size: 16px; }
.collab-invite-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid #F3F4F6;
}
.collab-invite-item:last-child { border-bottom: none; }
.collab-invite-info { flex: 1; font-size: 13px; color: #374151; line-height: 1.4; min-width: 0; }
.collab-invite-proj { font-weight: 600; color: #2563EB; }
.collab-invite-actions { display: flex; gap: 6px; flex-shrink: 0; }
.collab-btn-accept, .collab-btn-decline {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.collab-btn-accept  { background: #F0FDF4; color: #16A34A; }
.collab-btn-decline { background: #FEF2F2; color: #EF4444; }
.collab-btn-accept:active  { background: #DCFCE7; }
.collab-btn-decline:active { background: #FEE2E2; }

/* ══════════════════════════════════════════
   VIDEO PLAYER MODAL
══════════════════════════════════════════ */
#video-player-modal { display: flex; }

.vp-topbar {
  flex-shrink: 0; height: calc(52px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  display: flex; align-items: center; gap: 10px;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 12px 0; background: rgba(0,0,0,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vp-close-btn, .vp-fullscreen-topbtn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.vp-close-btn:active, .vp-fullscreen-topbtn:active { background: rgba(255,255,255,.22); }
.vp-topbar-title {
  flex: 1; color: #fff; font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.vp-video-area {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}

/* Flash play/pause au centre */
.vp-play-flash {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.vp-play-flash.show { opacity: 1; }

.vp-controls {
  flex-shrink: 0; background: rgba(0,0,0,.9);
  padding: 10px 14px 22px;
}

/* Barre de progression */
.vp-progress-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.vp-time { color: #D1D5DB; font-size: 12px; font-weight: 600; min-width: 36px; }
.vp-seek {
  flex: 1; height: 4px; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.25); border-radius: 4px; outline: none; cursor: pointer;
}
.vp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; }
.vp-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; margin-top: -6px; cursor: pointer;
}

/* Boutons de contrôle */
.vp-btns-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.vp-ctrl-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.vp-ctrl-btn:active { background: rgba(255,255,255,.2); }
.vp-skip-label {
  position: absolute; bottom: 5px; font-size: 8px; font-weight: 700;
  color: rgba(255,255,255,.85);
}
.vp-play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #2563EB; border: none; color: #fff;
  font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding-left: 2px;
}
.vp-play-btn:active { background: #1D4ED8; }

/* Sélecteur de vitesse */
.vp-speed-group {
  display: flex; gap: 4px; background: rgba(255,255,255,.1);
  border-radius: 20px; padding: 3px;
}
.vp-speed {
  padding: 5px 10px; border-radius: 16px; border: none;
  background: transparent; color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.vp-speed.active { background: #fff; color: #111; }
.vp-speed:active { opacity: .7; }

/* ══════════════════════════════════════════
   SHARE SHEET (feuille de partage)
══════════════════════════════════════════ */
#gw-share-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
}
#gw-share-card {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 301;
  padding: 0 20px calc(24px + var(--gw-sab, env(safe-area-inset-bottom, 0)));
  animation: slideUp 0.28s cubic-bezier(0.32,0.72,0,1);
}
.gw-share-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 14px;
  border-bottom: 1px solid #F1F5F9;
}
.gw-share-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gw-share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gw-share-thumb i   { font-size: 22px; color: #94A3B8; }
.gw-share-meta      { flex: 1; min-width: 0; }
.gw-share-author    { font-size: 14px; font-weight: 700; color: #1F2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-share-snippet   { font-size: 12px; color: #6B7280; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gw-share-apps {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 6px;
}
.gw-share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  min-width: 52px;
}
.gw-share-app-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}
.gw-share-app:active .gw-share-app-ico { transform: scale(0.88); opacity: 0.8; }
.gw-share-app span {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.gw-share-cancel {
  width: 100%;
  padding: 14px;
  border: none;
  background: #F1F5F9;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s;
}
.gw-share-cancel:active { background: #E2E8F0; }

/* ══════════════════════════════════════════
   VIDEO SCROLL PLAYER (TikTok / Shorts)
══════════════════════════════════════════ */
#vs-modal { touch-action: pan-y; }
#vs-feed::-webkit-scrollbar { display: none; }
#vs-end-panel { display: none; }
#vs-end-panel.show { display: flex; }

.vs-item {
  width: 100%;
  height: 100vh;
  height: 100svh; /* small viewport height — exclut UI mobile dynamique */
  height: 100dvh; /* dynamic viewport height — support progressif */
  scroll-snap-align: start;
  scroll-snap-stop: always; /* empêche le swipe rapide de sauter plusieurs items (TikTok) */
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  /* Force GPU layer — évite le décodage vidéo sur le CPU principal */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}
/* Dégradé bas pour lisibilité du texte — style TikTok/Instagram Reels */
.vs-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.35) 40%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}
/* Spinner de chargement au centre pendant le buffering */
.vs-item::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: rgba(255,255,255,.7);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s;
}
/* Cache le spinner dès que la vidéo joue */
.vs-item.vs-playing::after { opacity: 0; }
/* Réaffiche le spinner si la vidéo est en train de bufferer (waiting) */
.vs-item.vs-playing.vs-buffering::after { opacity: 1; }
.vs-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
  /* GPU compositing — évite image figée/son sans image sur Chrome desktop */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  /* Fluidité 60fps — désactive le rendu CPU sur Android WebView */
  -webkit-backface-visibility: hidden;
}
.vs-tap-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.vs-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
/* Bouton son désactivé */
.vs-mute-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0,0,0,.72);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  animation: vs-mute-pulse 1.6s ease-in-out infinite;
}
.vs-mute-btn i { font-size: 20px; color: #F87171; }
@keyframes vs-mute-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.45); }
  50%       { box-shadow: 0 0 0 10px rgba(248,113,113,0); }
}
/* Mini profil bas-gauche */
.vs-author-row {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px) + var(--gw-sab, 0px));
  left: 0;
  right: 72px;
  padding: 0 14px;
  z-index: 5; /* au-dessus du gradient ::before (z-index:1) */
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.vs-author {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-caption {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-follow-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}
.vs-follow-btn.vs-following {
  background: rgba(99,102,241,.85);
  border-color: rgba(99,102,241,1);
  color: #fff;
}
.vs-side {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--gw-sab, 0px));
  right: 6px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.vs-side-btn {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}
.vs-side-btn i { font-size: 28px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.vs-side-btn span { font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.vs-play-ico {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-prog-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.25);
  z-index: 5;
}
.vs-prog-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: none;
}
/* États actifs boutons latéraux */
.vs-liked i             { color: #F43F5E !important; }
.vs-fav-active          { color: #FBBF24 !important; }
.vs-side-btn:active     { transform: scale(.88); transition: transform .1s; }

/* ── Badges type vidéo dans le feed (SHORT / VIDÉO) ── */
.post-video-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
  text-transform: uppercase;
}
.post-video-type-short {
  background: #E11D48;
  color: #fff;
}
.post-video-type-video {
  background: #2563EB;
  color: #fff;
}

/* Ligne active dans créer un post */
.pub-row-active {
  background: #F5F3FF;
  border-radius: 10px;
  outline: 2px solid #7C3AED;
}

/* Ligne vidéo fusionnée (Short + Vidéo) */
.pub-media-row-video .pub-media-label i { color: #7C3AED; }
.pub-media-row-video .pub-media-label span { color: #7C3AED; font-weight: 700; }

/* ── FEUILLE SÉLECTION CAMÉRA ── */
.cam-sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 160;
}

.cam-sheet-card {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 161;
  padding: 0 12px calc(20px + var(--gw-sab, env(safe-area-inset-bottom, 0)));
  animation: slideUp 0.25s ease;
}

.cam-sheet-handle {
  width: 40px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
  margin: 12px auto 8px;
}

.cam-sheet-title {
  font-size: 13px;
  font-weight: 600;
  color: #9CA3AF;
  text-align: center;
  padding: 4px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cam-sheet-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: none;
  border-radius: 14px;
  font-size: 15px;
  color: #1F2937;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.cam-sheet-btn:active { background: #F3F4F6; }

.cam-sheet-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cam-icon-back  { background: #DBEAFE; color: #2563EB; }
.cam-icon-front { background: #F3E8FF; color: #7C3AED; }
.cam-icon-cancel{ background: #FEE2E2; color: #EF4444; }

.cam-sheet-label strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0D1B2A;
}

.cam-sheet-label small {
  font-size: 12px;
  color: #9CA3AF;
}

.cam-sheet-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 4px 0;
}

/* ── PAGE NOTIFICATIONS ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item:active { background: #F9FAFB !important; }
.notif-item.unread { background: #EFF6FF; }

/* Avatar + badge de type (like / comment / partage / suivi) */
.notif-av-wrap {
  position: relative;
  flex-shrink: 0;
}
/* Taille spécifique pour les avatars dans les notifications */
.notif-av-wrap .user-av.sm {
  width: 44px;
  height: 44px;
  min-width: 44px;
  font-size: 15px;
  border-radius: 50%;
}
.notif-av-wrap .user-av.sm.av-photo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-type-badge {
  position: absolute;
  bottom: -3px;
  right: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.nb-like    { background: #FEE2E2; color: #EF4444; }
.nb-comment { background: #DBEAFE; color: #2563EB; }
.nb-share   { background: #DCFCE7; color: #16A34A; }
.nb-follow  { background: #F3E8FF; color: #7C3AED; }
.nb-system  { background: #FEF3C7; color: #D97706; }
.nb-tag     { background: #FEE2E2; color: #DC2626; }

/* ── Système de tag (@mention) ── */
.gw-tag-mention {
  color: #DC2626;
  font-weight: 600;
  cursor: pointer;
}
.gw-mention-dropdown {
  display: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  max-height: 260px;
  overflow-y: auto;
  z-index: 960;
  border: 1px solid #E2E8F0;
}
.gw-mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: #0F172A;
}
.gw-mention-item:hover { background: #F1F5F9; }
.gw-mention-av {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.gw-mention-av-ph {
  width: 28px; height: 28px; border-radius: 50%;
  background: #6366F1; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}

/* Corps de la notification */
.notif-body { flex: 1; min-width: 0; }

.notif-msg {
  font-size: 13.5px;
  color: #1F2937;
  line-height: 1.45;
}

.notif-msg strong { color: #0D1B2A; }

.notif-preview {
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
  background: #F3F4F6;
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time-row {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563EB;
  flex-shrink: 0;
}

.notif-chevron {
  color: #D1D5DB;
  font-size: 13px;
  align-self: center;
  flex-shrink: 0;
}

/* ── FLASH POST (depuis notification) ── */
@keyframes postFlash {
  0%   { box-shadow: 0 0 0 3px rgba(37,99,235,0.65); }
  60%  { box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
  100% { box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
}

.post-card.post-highlight {
  animation: postFlash 2s ease forwards;
}

/* ── PROFIL RAPIDE (modal depuis notification) ── */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-modal.hidden { display: none; }

.profile-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.profile-modal-card {
  position: relative;
  z-index: 151;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 32px;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.28s ease;
}

.pm-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
}

.pm-name {
  font-size: 20px;
  font-weight: 700;
  color: #0D1B2A;
  text-align: center;
}

.pm-role {
  font-size: 13px;
  color: #6B7280;
  text-align: center;
}

.pm-stats {
  display: flex;
  width: 100%;
  background: #F9FAFB;
  border-radius: 12px;
  overflow: hidden;
  margin: 6px 0;
}

.pm-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 0;
  border-right: 1px solid #E5E7EB;
}

.pm-stat:last-child { border-right: none; }
.pm-stat strong { font-size: 18px; font-weight: 700; color: #0D1B2A; }
.pm-stat span { font-size: 11px; color: #9CA3AF; }

/* ── COMING SOON (placeholder pages) ── */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  color: #9CA3AF;
  text-align: center;
}

.coming-soon i { font-size: 52px; color: #D1D5DB; }
.coming-soon p { font-size: 16px; font-weight: 600; color: #6B7280; line-height: 1.5; }
.coming-soon small { font-size: 13px; color: #9CA3AF; font-weight: 400; }

/* ══════════════════════════════════════════
   PAGE PROFIL
══════════════════════════════════════════ */

.profil-scroll { background: #F3F4F6; }

/* ── En-tête sombre ── */
.profil-header {
  background: linear-gradient(155deg, #0A1628 0%, #1A3558 100%);
  padding: 16px 18px 0;
  position: relative;
}

.profil-settings-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.13);
  border: none; border-radius: 50%;
  color: #fff; font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.profil-settings-btn:active { background: rgba(255,255,255,0.22); }

.profil-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
}

/* Photo */
.profil-photo-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.profil-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.profil-photo span {
  color: #fff; font-size: 28px; font-weight: 700;
  position: relative; z-index: 1;
}
.profil-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.profil-photo-edit {
  position: absolute; bottom: 1px; right: 1px;
  width: 26px; height: 26px;
  background: #2563EB; border-radius: 50%;
  border: 2px solid #1A3558;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px;
}
.profil-online-dot {
  position: absolute; bottom: 3px; left: 3px;
  width: 13px; height: 13px;
  background: #22C55E; border-radius: 50%;
  border: 2px solid #1A3558;
}

/* Infos texte */
.profil-info { flex: 1; padding-top: 4px; min-width: 0; }

.profil-name-row {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 5px; cursor: pointer;
}
.profil-name-row h2 {
  font-size: 19px; font-weight: 700;
  color: #fff; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px;
}
.profil-verified-badge { color: #3B82F6; font-size: 16px; flex-shrink: 0; }
.profil-edit-inline    { color: rgba(255,255,255,0.40); font-size: 11px; flex-shrink: 0; }

.profil-domain {
  font-size: 14px; color: rgba(255,255,255,0.82);
  margin-bottom: 7px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profil-domain:empty::before { content: 'Ajouter votre domaine'; }

.profil-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,0.55);
  cursor: pointer;
}
.profil-location i { font-size: 11px; }

/* Stats */
.profil-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.09);
  margin: 0 -18px;
}
.profil-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 13px 4px;
  border-right: 1px solid rgba(255,255,255,0.09);
}
.profil-stat:last-child { border-right: none; }
.profil-stat strong { font-size: 16px; font-weight: 700; color: #fff; }
.profil-stat span   { font-size: 10px; color: rgba(255,255,255,0.50); text-align: center; }

/* ── Barre de tabs ── */
.profil-tabs-bar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 4px;
  position: sticky; top: 0; z-index: 10;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.profil-tabs-bar::-webkit-scrollbar { display: none; }
.profil-tab {
  flex: 0 0 auto;
  min-width: 72px;
  background: none; border: none;
  padding: 13px 10px;
  font-size: 13px; font-weight: 500;
  color: #6B7280; cursor: pointer;
  position: relative; transition: color 0.15s;
  white-space: nowrap;
}
.profil-tab.active { color: #2563EB; font-weight: 700; }
.profil-tab.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2.5px; background: #2563EB; border-radius: 2px;
}

/* ── Panels ── */
.profil-tab-panel {
  padding: 14px 14px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.profil-tab-panel.hidden { display: none; }

/* ── Card blanche ── */
.profil-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  overflow: hidden;
}
/* Projets: flush edge layout (cards use border-bottom separators) */
#profil-projects-list { margin: 0 -16px -16px; }
#upv-projects-list .profil-card { padding: 0; }
.profil-card-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.profil-card-head h4 { font-size: 15px; font-weight: 700; color: #111827; }

.profil-edit-btn {
  width: 30px; height: 30px;
  border: 1.5px solid #E5E7EB; background: none;
  border-radius: 8px; color: #6B7280;
  font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.profil-edit-btn:active { background: #F3F4F6; }

/* Bio */
.profil-bio-text {
  font-size: 14px; color: #374151;
  line-height: 1.65; margin-bottom: 12px;
  white-space: pre-line;
}
.profil-bio-text.empty-bio { color: #9CA3AF; font-style: italic; }

.profil-meta-list {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid #F3F4F6; padding-top: 12px;
}
.profil-meta-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: #6B7280;
}
.profil-meta-item i { width: 15px; color: #9CA3AF; flex-shrink: 0; }

/* Skills */
.profil-skills-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.profil-skill-chip {
  background: #EFF6FF; color: #1D4ED8;
  border-radius: 20px; padding: 5px 13px;
  font-size: 13px; font-weight: 500;
}
.profil-empty-hint { font-size: 13px; color: #9CA3AF; font-style: italic; }

/* ── Publications du profil ── */
#ptab-posts,
#upvtab-posts {
  padding: 12px 0 20px;
}
.profil-posts-count {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #6B7280;
  padding: 0 16px 10px;
}
.profil-posts-count i { color: #2563EB; font-size: 14px; }
#ptab-posts .post-card,
#upvtab-posts .post-card {
  margin: 0 0 10px;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.profil-posts-empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 48px 16px 32px;
  color: #9CA3AF; text-align: center;
}
.profil-posts-empty i    { font-size: 34px; color: #D1D5DB; }
.profil-posts-empty p    { font-size: 15px; font-weight: 600; color: #6B7280; margin: 0; }
.profil-posts-empty small{ font-size: 12px; color: #9CA3AF; }

/* ── Sous-onglets Publications ── */
.pp-subtab-bar {
  display: flex; gap: 4px; padding: 10px 12px 6px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid #F1F5F9;
  background: #fff; position: sticky; top: 0; z-index: 5;
}
.pp-subtab-bar::-webkit-scrollbar { display: none; }
.pp-subtab {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 20px; border: 1.5px solid #E5E7EB;
  background: #fff; color: #64748B; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .18s;
}
.pp-subtab i { font-size: 11px; }
.pp-subtab.active {
  background: #1D4ED8; border-color: #1D4ED8; color: #fff;
}
.pp-subtab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: rgba(0,0,0,.1); border-radius: 20px;
  font-size: 10px; font-weight: 700;
}
.pp-subtab.active .pp-subtab-badge { background: rgba(255,255,255,.25); }

.pp-subtab-body { padding: 6px 0; }

/* ── Grille Shorts dans le profil ── */
.pp-shorts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  padding: 6px 0;
}
.pp-short-cell {
  cursor: pointer; display: flex; flex-direction: column;
}
.pp-short-thumb {
  position: relative; aspect-ratio: 9/16; background: #0F172A; overflow: hidden;
}
.pp-short-overlay {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  transition: background .18s;
}
.pp-short-cell:hover .pp-short-overlay { background: rgba(0,0,0,.36); }
.pp-short-repost-badge {
  position: absolute; top: 5px; left: 5px;
  background: rgba(0,0,0,.55); border-radius: 4px; padding: 1px 5px;
  font-size: 11px;
}
.pp-short-meta {
  padding: 3px 4px 5px; font-size: 10px; color: #64748B;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Coming soon small */
.profil-coming-soon-sm {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 28px 0 10px;
  color: #9CA3AF; text-align: center;
}
.profil-coming-soon-sm i     { font-size: 26px; color: #D1D5DB; }
.profil-coming-soon-sm p     { font-size: 14px; color: #6B7280; }
.profil-coming-soon-sm small { font-size: 12px; color: #9CA3AF; }

/* ══════════════════════════════════════════
   FEUILLE D'ÉDITION GÉNÉRIQUE (profil)
══════════════════════════════════════════ */
.edit-sheet-card {
  max-height: 88vh;
  overflow-y: auto;
}

.edit-sheet-head {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 4px 20px 16px;
  border-bottom: 1px solid #F3F4F6;
}
.edit-sheet-title { font-size: 17px; font-weight: 700; color: #111827; }
.edit-sheet-close {
  border: none; background: none;
  color: #9CA3AF; font-size: 19px; cursor: pointer; padding: 4px;
}

.edit-sheet-body { padding: 16px 20px 8px; }

.edit-sheet-footer {
  display: flex; gap: 10px;
  padding: 12px 20px 18px;
  border-top: 1px solid #F3F4F6;
}
.edit-sheet-footer .btn-outline { flex: 1; }
.edit-sheet-footer .btn-blue    { flex: 2; }
.edit-sheet-footer-cancel {
  flex: 1;
  background: none;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
}

/* Champ texte */
.edit-field-group {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 14px;
}
.edit-field-group label {
  font-size: 13px; font-weight: 600; color: #374151;
}
.edit-field-box {
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 11px;
  padding: 0 14px; height: 48px;
  display: flex; align-items: center;
}
.edit-field-box input {
  width: 100%; border: none; background: none;
  outline: none; font-size: 15px; color: #111827;
  font-family: inherit;
}
.edit-field-box:focus-within { border-color: #2563EB; }

.edit-field-row { display: flex; gap: 8px; }
.edit-add-btn {
  width: 48px; height: 48px;
  background: #2563EB; border: none; border-radius: 11px;
  color: #fff; font-size: 17px; cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.edit-add-btn:active { background: #1E4FBF; }

/* Textarea */
.edit-textarea {
  width: 100%;
  background: #F9FAFB; border: 1.5px solid #E5E7EB;
  border-radius: 11px; padding: 12px 14px;
  font-size: 14px; color: #111827; resize: none; outline: none;
  font-family: inherit; line-height: 1.65;
}
.edit-textarea:focus { border-color: #2563EB; }
.edit-charcount { text-align: right; font-size: 12px; color: #9CA3AF; }

/* Note d'aide dans les modaux */
.edit-hint {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Email professionnel — éléments spécifiques ── */

/* Badge "Non modifiable" à côté du label */
.pro-email-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  margin-left: 7px;
  vertical-align: middle;
}

/* Champ verrouillé (grisé) */
.edit-field-locked {
  background: #F3F4F6 !important;
  border-color: #E5E7EB !important;
  cursor: not-allowed;
}
.edit-field-locked input {
  color: #9CA3AF !important;
  cursor: not-allowed !important;
}

/* Bannière de cooldown dans le modal */
.pro-email-cooldown {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.pro-email-cooldown i {
  color: #F59E0B;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pro-email-cooldown div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pro-email-cooldown strong {
  font-size: 13px;
  color: #92400E;
}
.pro-email-cooldown span {
  font-size: 12px;
  color: #B45309;
  line-height: 1.4;
}

/* Mini badge cooldown sur la ligne du profil */
.pro-email-mini-cd {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FFF7ED;
  color: #D97706;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 5px;
}

/* ── Boutons Visibilité (Privé / Public) ── */
.vis-toggle-row {
  display: flex;
  gap: 8px;
}
.vis-toggle-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  background: #F9FAFB;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: all 0.15s;
}
.vis-toggle-btn:active { opacity: 0.8; }

.vis-toggle-sub {
  font-size: 10.5px;
  font-weight: 400;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.3;
}

/* État Privé actif */
.vis-active-private {
  border-color: #374151;
  background: #111827;
  color: #F9FAFB;
}
.vis-active-private .vis-toggle-sub { color: #9CA3AF; }

/* État Public actif */
.vis-active-public {
  border-color: #059669;
  background: #D1FAE5;
  color: #059669;
}
.vis-active-public .vis-toggle-sub { color: #6EE7B7; }

/* Liste de domaines */
.domain-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 2px;
  max-height: 260px; overflow-y: auto;
}
.domain-option {
  background: #F3F4F6; border: 1.5px solid #E5E7EB;
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; color: #374151; cursor: pointer;
  transition: all 0.14s; font-family: inherit;
}
.domain-option.selected {
  background: #1E3A5F; border-color: #1E3A5F; color: #fff;
}

/* Liste de compétences à sélectionner */
.skill-pick-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 2px;
  max-height: 240px; overflow-y: auto;
}
.skill-pick-chip {
  background: #F3F4F6; border: 1.5px solid #E5E7EB;
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; color: #374151; cursor: pointer;
  transition: all 0.14s; font-family: inherit;
}
.skill-pick-chip.active {
  background: #EFF6FF; border-color: #2563EB;
  color: #1D4ED8; font-weight: 600;
}

/* ══════════════════════════════════════════
   VUE PROFIL UTILISATEUR (lecture seule)
══════════════════════════════════════════ */

/* Slide depuis la droite */
.upv-screen {
  position: fixed;
  left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
  background: #F3F4F6;
  z-index: 160;
  display: flex; flex-direction: column;
  overflow: hidden; /* nécessaire pour que l'overlay ban reste dans les bounds */
}
.upv-screen.hidden  { display: none; }
.upv-screen.open    { transform: translateX(-50%) translateX(0); display: flex; }

/* Topbar */
.upv-topbar {
  flex-shrink: 0; height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  display: flex; align-items: center;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 12px 0; gap: 10px;
  border-bottom: 1px solid #E5E7EB; z-index: 10;
}
.upv-back-btn {
  width: 38px; height: 38px;
  border: none; background: none; border-radius: 50%;
  font-size: 18px; color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.upv-back-btn:active { background: #F3F4F6; }
.upv-title {
  flex: 1; font-size: 16px; font-weight: 700;
  color: #111827; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Groupe boutons topbar */
.upv-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Bouton icône message dans la topbar */
.upv-msg-btn {
  width: 36px; height: 36px;
  border: 1.5px solid #E5E7EB;
  border-radius: 50%; background: #fff;
  font-size: 15px; color: #2563EB;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.upv-msg-btn:active { background: #EFF6FF; }

/* Bouton Suivre (topbar) */
.upv-follow-btn {
  background: #1E3A5F; border: none;
  border-radius: 20px; color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; transition: background 0.14s;
  font-family: inherit;
}
.upv-follow-btn:active { background: #0F2440; }
.upv-follow-btn.following {
  background: none; border: 1.5px solid #D1D5DB;
  color: #6B7280;
}

/* ── Barre d'actions sous les stats ── */
.upv-action-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px 4px;
}
.upv-action-msg {
  flex: 1;
  height: 44px;
  background: #2563EB;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.14s, transform 0.1s;
}
.upv-action-msg:active { background: #1D4ED8; transform: scale(0.98); }

.upv-action-follow {
  flex: 1;
  height: 44px;
  background: #1E3A5F;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.14s, transform 0.1s;
}
.upv-action-follow:active { transform: scale(0.98); }
.upv-action-follow.following {
  background: #fff;
  border: 1.5px solid #D1D5DB;
  color: #6B7280;
}

/* Zone scrollable */
.upv-content {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 30px;
}

/* ── Étoiles notation ── */
.upv-stars-row {
  display: flex; gap: 8px;
  justify-content: center; padding: 8px 0 2px;
}
.upv-star {
  background: none; border: none;
  font-size: 32px; color: #D1D5DB;
  cursor: pointer; padding: 4px;
  transition: color 0.12s, transform 0.1s;
  line-height: 1;
}
.upv-star.active { color: #F59E0B; }
.upv-star:active { transform: scale(1.25); }
.upv-rating-label {
  text-align: center; font-size: 14px;
  color: #6B7280; padding: 4px 0 6px;
  min-height: 26px;
}

/* ── Carte avis ── */
.upv-review-item {
  background: #fff; border-radius: 13px;
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.upv-review-header {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 7px;
}
.upv-review-meta { flex: 1; min-width: 0; }
.upv-review-meta strong { font-size: 13px; color: #111827; display: block; }
.upv-review-meta small  { font-size: 11px; color: #9CA3AF; }
.upv-review-stars { color: #F59E0B; font-size: 12px; letter-spacing: 1.5px; flex-shrink: 0; }
.upv-review-text  { font-size: 13px; color: #4B5563; line-height: 1.55; }

/* Bloc moyenne */
.upv-avg-block {
  display: flex; align-items: center; gap: 14px;
  background: #FFFBEB; border-radius: 13px;
  padding: 14px 18px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.upv-avg-score { font-size: 40px; font-weight: 800; color: #0D1B2A; line-height: 1; }
.upv-avg-stars { color: #F59E0B; font-size: 17px; margin-bottom: 3px; }
.upv-avg-count { font-size: 12px; color: #6B7280; }

/* Aucun avis */
.upv-empty-reviews {
  text-align: center; padding: 44px 24px;
  color: #9CA3AF;
}
.upv-empty-reviews i { font-size: 34px; color: #D1D5DB; margin-bottom: 10px; display: block; }
.upv-empty-reviews p { font-size: 14px; }

/* ── Auteur post (cliquable) ── */
.post-author-area {
  display: flex; align-items: center; gap: 10px;
  flex: 1; cursor: pointer; min-width: 0;
}
.post-author-area:active .user-av { opacity: 0.75; }

/* ── Bouton Suivre sur chaque post ── */
.post-follow-btn {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid #2563EB;
  border-radius: 16px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.13s, color 0.13s;
}
.post-follow-btn:active { background: #EFF6FF; }
.post-follow-btn.following {
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #9CA3AF;
  font-weight: 500;
}

/* ── Stat cliquable ── */
.profil-stat-clickable {
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 6px;
}
.profil-stat-clickable:active { background: rgba(255,255,255,0.15); }

/* ── Feuille liste des abonnements ── */
.following-list-card {
  max-height: 78vh;
  display: flex;
  flex-direction: column;
}
.following-list-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.following-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #F3F4F6;
  gap: 10px;
  transition: opacity 0.3s;
}
.following-item-left {
  display: flex; align-items: center; gap: 12px;
  flex: 1; cursor: pointer; min-width: 0;
}
.following-item-left:active { opacity: 0.65; }

.following-item-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.following-item-info strong {
  font-size: 14px; font-weight: 600; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.following-item-info small {
  font-size: 12px; color: #6B7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.following-unfollow-btn {
  flex-shrink: 0;
  background: #F3F4F6; border: 1.5px solid #E5E7EB;
  border-radius: 16px; color: #6B7280;
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: all 0.13s;
}
.following-unfollow-btn:active {
  background: #FEE2E2; border-color: #FCA5A5; color: #EF4444;
}

.following-empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 40px 24px; color: #9CA3AF; text-align: center;
}
.following-empty i     { font-size: 36px; color: #D1D5DB; }
.following-empty p     { font-size: 15px; font-weight: 600; color: #374151; }
.following-empty small { font-size: 13px; line-height: 1.5; }

.upv-stat-seed-hint {
  text-align: center; font-size: 12px; color: #9CA3AF;
  padding: 6px 0 14px; margin: 0;
}

/* ── Feed vide (onglet abonnements) ── */
.feed-empty-subs {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  padding: 70px 24px; color: #9CA3AF; text-align: center;
}
.feed-empty-subs i { font-size: 42px; color: #D1D5DB; }
.feed-empty-subs p { font-size: 15px; font-weight: 600; color: #374151; }
.feed-empty-subs small { font-size: 13px; }
.feed-empty-subs .btn-blue { margin-top: 6px; padding: 12px 28px; }

/* ── UTILITAIRE ── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════ */

/* Topbar */
.msg-topbar {
  flex-shrink: 0; height: calc(56px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff; border-bottom: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 16px 0; position: relative;
}
.msg-title {
  font-size: 18px; font-weight: 700; color: #0D1B2A;
  text-align: center; flex: 1;
}
.msg-compose-btn {
  position: absolute; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none; font-size: 18px; color: #2563EB; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.msg-compose-btn:active { background: #EFF6FF; }

/* Recherche */
.msg-search-row {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 0;
  background: #F3F4F6; border-radius: 22px;
  padding: 0 16px; height: 42px;
}
.msg-search-ico { font-size: 14px; color: #9CA3AF; flex-shrink: 0; }
.msg-search-input {
  flex: 1; border: none; background: none;
  font-size: 14px; color: #111827; outline: none;
}
.msg-search-input::placeholder { color: #9CA3AF; }

/* Tabs */
.msg-tabs {
  display: flex; border-bottom: 1.5px solid #E5E7EB;
  margin: 12px 16px 0;
}
.msg-tab {
  flex: 1; border: none; background: none;
  padding: 10px 0; font-size: 14px; font-weight: 500;
  color: #6B7280; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.msg-tab.active { color: #2563EB; font-weight: 700; }
.msg-tab.active::after {
  content: ''; position: absolute; bottom: -1.5px; left: 15%; right: 15%;
  height: 2.5px; background: #2563EB; border-radius: 2px;
}
.msg-unread-badge {
  background: #2563EB; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* Scroll */
.msg-scroll { padding: 8px 0 20px; }

/* Item conversation */
.conv-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; cursor: pointer;
  transition: background 0.12s;
}
.conv-item:active { background: #F9FAFB; }
.conv-item + .conv-item { border-top: 1px solid #F3F4F6; }

/* Avatar */
.conv-av-wrap { position: relative; flex-shrink: 0; }
.conv-av-img {
  border-radius: 50%; object-fit: cover;
  display: block;
}
.conv-av-fallback,
.conv-av-color {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.conv-online-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #94A3B8; border: 2px solid #fff;
}
.conv-online-dot.online { background: #22C55E; }

/* Corps */
.conv-body { flex: 1; min-width: 0; }
.conv-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.conv-name {
  font-size: 15px; font-weight: 600; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-verified { font-size: 12px; color: #2563EB; }
.conv-time { font-size: 12px; color: #9CA3AF; flex-shrink: 0; }
.conv-bottom {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px;
}
.conv-preview {
  font-size: 13px; color: #6B7280; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.conv-item.conv-unread .conv-preview { color: #374151; font-weight: 500; }
.conv-item.conv-unread .conv-name    { font-weight: 700; }
.conv-unread-badge {
  background: #2563EB; color: #fff;
  min-width: 22px; height: 22px; border-radius: 11px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; flex-shrink: 0; margin-top: 2px;
}

/* Vide */
.msg-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 16px; color: #9CA3AF; text-align: center;
}
.msg-empty i { font-size: 40px; color: #D1D5DB; }
.msg-empty p { font-size: 15px; color: #6B7280; }

/* ═══════════════════════════════════════════════════════════════
   GWM — Liste des conversations (gw-messaging v2)
   ═══════════════════════════════════════════════════════════════ */
.gwm-conv {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #F3F4F6;
  min-height: 72px;
  -webkit-tap-highlight-color: transparent;
  background: #fff;
}
.gwm-conv:hover  { background: #F9FAFB; }
.gwm-conv:active { background: #EFF6FF; }
.gwm-conv--active  { background: #EFF6FF; }
.gwm-conv--unread .gwm-name    { font-weight: 700; }
.gwm-conv--unread .gwm-preview { color: #111827; font-weight: 500; }

/* Avatar */
.gwm-av-wrap { position: relative; flex-shrink: 0; }
.gwm-av-img  {
  width: 50px; height: 50px;
  border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0;
}
.gwm-av-color {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Dot présence */
.gwm-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #CBD5E1; border: 2.5px solid #fff;
}
.gwm-dot--on { background: #22C55E; }

/* Corps */
.gwm-info { flex: 1; min-width: 0; }
.gwm-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 3px;
}
.gwm-row2 {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px;
}
.gwm-name {
  font-size: 15px; font-weight: 600; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.gwm-grp-ico  { font-size: 10px; color: #6366F1; margin-right: 5px; }
.gwm-verified { font-size: 11px; color: #3B82F6; margin-left: 3px; }
.gwm-time     { font-size: 12px; color: #9CA3AF; flex-shrink: 0; }
.gwm-preview  {
  font-size: 13px; color: #6B7280; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.gwm-preview--bold { font-weight: 600; color: #374151; }

/* Badge non-lus */
.gwm-badge {
  background: #2563EB; color: #fff;
  min-width: 20px; height: 20px; border-radius: 10px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0; margin-top: 1px;
}

/* État vide */
.gwm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 24px; text-align: center;
}
.gwm-empty i { font-size: 38px; color: #D1D5DB; }
.gwm-empty p { font-size: 15px; color: #6B7280; margin: 0; }

/* ═══════════════════════════════════════════
   CHAT SCREEN (overlay slide depuis droite)
   ═══════════════════════════════════════════ */
.chat-screen {
  position: fixed;
  left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
  background: #F0F2F5;
  z-index: 170;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-screen.hidden  { display: none; }
.chat-screen.open    { transform: translateX(-50%) translateX(0); display: flex; }

/* Chat topbar */
.chat-topbar {
  flex-shrink: 0; height: calc(60px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff; border-bottom: 1px solid #E5E7EB;
  display: flex; align-items: center; gap: 10px;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 12px 0;
}
.chat-back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none; font-size: 17px; color: #374151;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-back-btn:active { background: #F3F4F6; }
.chat-contact-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-contact-av { flex-shrink: 0; }
.chat-contact-av .conv-av-img,
.chat-contact-av .conv-av-color,
.chat-contact-av .conv-av-fallback { width: 38px !important; height: 38px !important; font-size: 12px !important; }
.chat-contact-name { font-size: 15px; font-weight: 700; color: #111827; }
.chat-contact-status { font-size: 12px; color: #22C55E; font-weight: 500; }
.chat-topbar-actions { display: flex; gap: 2px; flex-shrink: 0; }
.chat-act-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: none; font-size: 17px; color: #2563EB; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-act-btn:active { background: #EFF6FF; }

/* Zone messages */
.chat-messages {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 12px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.chat-date-sep {
  text-align: center; font-size: 11px; color: #9CA3AF;
  font-weight: 600; letter-spacing: 0.3px; margin-bottom: 6px;
}

/* Rangées de messages */
.chat-msg-row { display: flex; flex-direction: column; margin-bottom: 2px; transition: opacity .22s, max-height .28s, margin .28s; }
.chat-msg-row.mine   { align-items: flex-end; }
.chat-msg-row.theirs { align-items: flex-start; }

/* Animation long-press */
.chat-msg-row.msg-pressing .chat-bubble,
.chat-msg-row.msg-pressing .bubble-reply-wrap { transform: scale(0.96); transition: transform .12s; }

/* Message supprimé pour tous */
.chat-bubble.chat-bubble-deleted {
  background: transparent !important;
  border: 1.5px dashed #D1D5DB;
  color: #9CA3AF !important;
  font-size: 13px;
  font-style: italic;
  padding: 7px 13px;
  display: flex; align-items: center; gap: 7px;
}
.chat-bubble.chat-bubble-deleted i { font-size: 12px; opacity: .6; }

/* Menu de suppression — z-index au-dessus du chat screen (170) */
#msg-del-menu-bg  { z-index: 400 !important; }
#msg-del-menu-card { z-index: 401 !important; }

/* Boutons du menu de suppression */
.msg-del-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 18px;
  background: none; border: none;
  font-size: 15px; font-weight: 500; color: #1F2937;
  cursor: pointer; border-radius: 10px;
  text-align: left;
}
.msg-del-btn i { font-size: 17px; width: 22px; text-align: center; }
.msg-del-btn:active { background: #F3F4F6; }
.msg-del-all { color: #EF4444 !important; }
.msg-del-all i { color: #EF4444; }
.msg-del-me  i { color: #6B7280; }
.msg-del-cancel { color: #6B7280 !important; border-top: 1px solid #F3F4F6; margin-top: 4px; }

/* Message système centré */
.chat-system-msg {
  display: flex; justify-content: center; margin: 10px 0;
}
.chat-system-msg span {
  background: #F3F4F6; color: #6B7280;
  font-size: 11px; border-radius: 20px; padding: 4px 12px;
  text-align: center; max-width: 90%;
}

/* Expéditeur dans un groupe (messages reçus) */
.chat-group-sender-row {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 3px; margin-left: 2px;
}
.chat-group-av {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; font-size: 10px; font-weight: 700; color: #fff;
  background: #6366F1; display: flex; align-items: center; justify-content: center;
}
.chat-group-av-init { background: #8B5CF6; }
.chat-group-sender-name { font-size: 11px; font-weight: 600; color: #6B7280; }

/* Bulles */
.chat-bubble {
  max-width: 78%; border-radius: 18px;
  padding: 10px 14px 6px;
}
.chat-bubble p { font-size: 14px; line-height: 1.5; margin: 0 0 4px; }
.bubble-sent {
  background: #2563EB; color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-recv {
  background: #fff; color: #111827;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.bubble-time {
  font-size: 10px; opacity: 0.7;
  display: flex; align-items: center; gap: 4px;
  justify-content: flex-end;
}
.bubble-read { font-size: 10px; }
/* 1 coche grise = envoyé, pas encore lu */
.bubble-read-sent  { color: rgba(255,255,255,.45); }
/* 2 coches bleues = lu par le destinataire */
.bubble-read-seen  { color: #60C6FF; }
.bubble-sent .bubble-time  { color: rgba(255,255,255,.8); }
.bubble-recv .bubble-time  { color: #9CA3AF; }

/* Barre d'input */
.chat-input-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 12px;
  background: #fff; border-top: 1px solid #E5E7EB;
  position: relative;
}
.chat-attach-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: #F3F4F6; font-size: 16px; color: #6B7280;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-attach-btn:active { background: #E5E7EB; }
.chat-input-wrap {
  flex: 1; background: #F3F4F6; border-radius: 22px;
  padding: 0 14px; height: 42px; display: flex; align-items: center;
}
.chat-input {
  border: none; background: none; font-size: 14px;
  color: #111827; outline: none; width: 100%;
}
.chat-input::placeholder { color: #9CA3AF; }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: #2563EB; color: #fff;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.chat-send-btn:active { background: #1D4ED8; }
.chat-send-btn:disabled { background: #D1D5DB; cursor: not-allowed; }

/* ── Overlay bottom-sheet DANS le chat (z > 170) ── */
.chat-sheet-bg {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(0,0,0,.50);
  z-index: 400;
}
.chat-sheet-card {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 24px 24px 0 0;
  z-index: 401;
  max-height: 88vh; overflow-y: auto;
  animation: slideUp 0.26s cubic-bezier(0.4,0,0.2,1);
  padding: 0 12px calc(24px + var(--gw-sab, env(safe-area-inset-bottom,0)));
}

/* ── Bouton 3 points (⋮) ── */
.chat-menu-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: none; color: #374151;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.chat-menu-btn:active { background: #F3F4F6; }

/* ── Menu chat (bottom sheet) ── */
.chat-menu-card {
  padding: 0 12px 28px !important;
}
.chat-menu-title {
  font-size: 15px; font-weight: 700; color: #111827;
  padding: 14px 4px 10px; margin: 0;
  border-bottom: 1px solid #F3F4F6; margin-bottom: 6px;
}
.chat-menu-item {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 13px 6px; background: none; border: none;
  cursor: pointer; text-align: left; border-radius: 12px;
  transition: background .12s;
}
.chat-menu-item:active { background: #F9FAFB; }
.chat-menu-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.chat-menu-text { flex: 1; }
.chat-menu-text span  { display: block; font-size: 14px; font-weight: 600; color: #111827; }
.chat-menu-text small { display: block; font-size: 12px; color: #9CA3AF; margin-top: 2px; }
.chat-menu-sep { height: 1px; background: #F3F4F6; margin: 4px 0; }
.chat-menu-cancel-btn {
  width: 100%; padding: 13px; margin-top: 8px;
  background: #F3F4F6; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #374151; cursor: pointer;
}
.chat-menu-cancel-btn:active { background: #E5E7EB; }

/* ── Bannières état (bloqué / sourdine) ── */
.chat-status-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  border-bottom: 1px solid transparent;
}
.chat-ban-blocked {
  background: #FEF2F2; color: #DC2626; border-color: #FECACA;
}
.chat-ban-muted {
  background: #F9FAFB; color: #6B7280; border-color: #E5E7EB;
}

/* ── Pièces jointes dans les bulles ── */
.bubble-img { padding: 4px 4px 2px; background: transparent !important; box-shadow: none !important; }
.chat-img-attach {
  display: block; max-width: 220px; max-height: 200px;
  border-radius: 14px; object-fit: cover; cursor: pointer;
  transition: opacity .15s;
}
.chat-img-attach:active { opacity: .8; }
.bubble-img .bubble-time { padding: 0 4px 2px; }

.chat-file-attach {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 2px; min-width: 180px;
}
.chat-file-ico { font-size: 22px; flex-shrink: 0; }
.bubble-sent .chat-file-ico { color: rgba(255,255,255,.9); }
.bubble-recv .chat-file-ico { color: #2563EB; }
.chat-file-info { flex: 1; min-width: 0; }
.chat-file-name {
  display: block; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-file-size { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.chat-file-dl {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.2); color: inherit; text-decoration: none;
  transition: background .15s;
}
.bubble-recv .chat-file-dl { background: rgba(37,99,235,.12); color: #2563EB; }
.chat-file-dl:active { background: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════
   MARKETPLACE
   ═══════════════════════════════════════════ */

/* Topbar */
.mk-topbar {
  flex-shrink: 0;
  height: calc(56px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 16px 0;
}
.mk-title {
  font-size: 22px;
  font-weight: 800;
  color: #0D1B2A;
  letter-spacing: -0.3px;
}
.mk-topbar-icons { display: flex; align-items: center; gap: 4px; }
.mk-icon-btn {
  width: 40px; height: 40px;
  border: none; background: none; border-radius: 50%;
  font-size: 18px; color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mk-icon-btn:active { background: #F3F4F6; }
.mk-cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #EF4444; color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Badge notification marketplace */
.mk-notif-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #EF4444; color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mk-notif-badge.hidden { display: none; }

/* ══ ÉCRAN ACHETER ══ */
.achat-screen {
  position: fixed; left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  background: #F3F4F6; z-index: 262;
  display: flex; flex-direction: column;
}
.achat-screen.hidden { display: none; }
.achat-screen.open   { transform: translateX(-50%) translateX(0); display: flex; }

.achat-topbar {
  flex-shrink: 0; height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px))); background: #fff;
  display: flex; align-items: center; padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0; gap: 12px;
  border-bottom: 1px solid #E5E7EB;
}
.achat-back-btn {
  background: none; border: none; padding: 6px 8px;
  color: #374151; font-size: 18px; cursor: pointer;
  display: flex; align-items: center;
}
.achat-title { font-size: 17px; font-weight: 700; color: #111827; margin: 0; }

.achat-search-row { flex-shrink: 0; padding: 10px 12px 6px; background: #fff; }
.achat-search-box {
  display: flex; align-items: center; gap: 8px;
  background: #F3F4F6; border-radius: 10px; padding: 0 12px; height: 40px;
}
.achat-search-box i { color: #9CA3AF; font-size: 14px; }
.achat-search-box input {
  flex: 1; border: none; background: none; font-size: 14px; color: #111827; outline: none;
}

/* Filtre type : Tout / Services / Produits */
.achat-type-row {
  flex-shrink: 0; display: flex; gap: 0;
  background: #fff; border-bottom: 2px solid #F3F4F6;
  padding: 0 12px;
}
.achat-type-btn {
  flex: 1; padding: 10px 4px; border: none; background: none;
  font-size: 13px; font-weight: 600; color: #9CA3AF; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: color .18s, border-color .18s;
}
.achat-type-btn.active         { color: #2563EB; border-bottom-color: #2563EB; }
.achat-type-btn[data-type="produit"].active { color: #EA580C; border-bottom-color: #EA580C; }

.achat-cats-row {
  flex-shrink: 0; display: flex; gap: 6px;
  padding: 8px 12px; overflow-x: auto; background: #fff;
  border-bottom: 1px solid #F3F4F6;
}
.achat-cats-row::-webkit-scrollbar { display: none; }
.achat-cat {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid #E5E7EB; background: #fff;
  font-size: 13px; font-weight: 600; color: #6B7280; cursor: pointer;
}
.achat-cat.active { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }

.achat-scroll { flex: 1; overflow-y: auto; padding: 12px; }

/* Badge type sur les cartes achat */
.achat-item-type-badge {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; border-radius: 20px; padding: 3px 8px;
}
.achat-item-type-badge.svc  { background: rgba(37,99,235,.85); color: #fff; }
.achat-item-type-badge.prod { background: rgba(234,88,12,.85);  color: #fff; }

/* Bouton Commander (produits) */
.achat-svc-order-btn { background: #EA580C !important; }
.achat-svc-order-btn:active { background: #C2410C !important; }

/* Carte service dans l'écran achat */
.achat-svc-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  margin-bottom: 12px; box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.achat-svc-media { position: relative; }
.achat-svc-img   { width: 100%; height: 160px; object-fit: cover; display: block; }
.achat-svc-img-ph {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(255,255,255,.5);
}
.achat-svc-cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; border-radius: 20px; padding: 3px 8px;
}
.achat-svc-wish {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  color: #9CA3AF; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.achat-svc-wish.saved { color: #EF4444; }
.achat-svc-body { padding: 12px 14px 14px; }
.achat-svc-seller {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6B7280; margin-bottom: 6px;
}
.achat-seller-name { font-weight: 600; color: #374151; }
.achat-svc-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.achat-svc-desc  { font-size: 13px; color: #6B7280; margin: 0 0 10px; line-height: 1.4; }
.achat-svc-footer { display: flex; align-items: center; justify-content: space-between; }
.achat-svc-price  { font-size: 15px; font-weight: 700; color: #2563EB; }
.achat-svc-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #2563EB; color: #fff; border: none;
  border-radius: 8px; padding: 9px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.achat-svc-contact-btn:active { background: #1D4ED8; }

/* État vide écran achat */
.achat-empty {
  text-align: center; padding: 60px 20px; color: #9CA3AF;
}
.achat-empty i { font-size: 40px; margin-bottom: 14px; display: block; color: #D1D5DB; }
.achat-empty p { font-size: 15px; font-weight: 600; color: #374151; margin: 0 0 6px; }
.achat-empty small { font-size: 12px; }

/* ══ ÉCRAN PANIER ══ */
.cart-screen {
  position: fixed; left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  background: #F3F4F6; z-index: 263;
  display: flex; flex-direction: column;
}
.cart-screen.hidden { display: none; }
.cart-screen.open   { transform: translateX(-50%) translateX(0); display: flex; }

.cart-topbar {
  flex-shrink: 0; height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px))); background: #fff;
  display: flex; align-items: center; padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0; gap: 10px;
  border-bottom: 1px solid #E5E7EB;
}
.cart-back-btn {
  background: none; border: none; padding: 6px 8px;
  color: #374151; font-size: 18px; cursor: pointer;
  display: flex; align-items: center;
}
.cart-title      { font-size: 17px; font-weight: 700; color: #111827; margin: 0; flex: 1; }
.cart-count-label { font-size: 12px; color: #6B7280; font-weight: 600; white-space: nowrap; }

.cart-scroll { flex: 1; overflow-y: auto; padding: 12px 12px 0; }

/* Carte article dans le panier */
.cart-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border-radius: 12px; padding: 12px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.cart-item-img {
  width: 70px; height: 70px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; display: block;
}
.cart-item-img-ph {
  background: #F3F4F6; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #9CA3AF;
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-title  { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 3px; line-height: 1.3; }
.cart-item-seller { font-size: 11px; color: #6B7280; margin: 0 0 8px; }
.cart-item-row    { display: flex; align-items: center; justify-content: space-between; }
.cart-qty-ctrl {
  display: flex; align-items: center; gap: 0;
  background: #F3F4F6; border-radius: 8px; overflow: hidden;
}
.cart-qty-ctrl button {
  width: 30px; height: 30px; border: none; background: none;
  color: #374151; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cart-qty-ctrl button:active { background: #E5E7EB; }
.cart-qty-ctrl span { font-size: 14px; font-weight: 700; color: #111827; padding: 0 8px; min-width: 24px; text-align: center; }
.cart-item-price  { font-size: 15px; font-weight: 700; color: #2563EB; }
.cart-item-remove {
  background: none; border: none; color: #9CA3AF; font-size: 16px;
  padding: 4px; cursor: pointer; flex-shrink: 0; align-self: flex-start;
}
.cart-item-remove:active { color: #EF4444; }

/* État vide */
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 24px; text-align: center; color: #9CA3AF;
}
.cart-empty i       { font-size: 48px; margin-bottom: 16px; color: #D1D5DB; }
.cart-empty p       { font-size: 16px; font-weight: 700; color: #374151; margin: 0 0 6px; }
.cart-empty small   { font-size: 13px; color: #9CA3AF; margin-bottom: 20px; display: block; }
.cart-empty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2563EB; color: #fff; border: none;
  border-radius: 10px; padding: 12px 20px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}

/* Pied de page panier */
.cart-footer {
  flex-shrink: 0; background: #fff;
  border-top: 1px solid #E5E7EB; padding: 14px 16px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.cart-footer.hidden { display: none; }
.cart-summary { display: flex; flex-direction: column; gap: 6px; }
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #6B7280;
}
.cart-total-row { margin-top: 4px; padding-top: 8px; border-top: 1px solid #F3F4F6; }
.cart-total-row span { font-size: 16px; font-weight: 800; color: #111827; }

/* Paiement PayPal panier */
#cart-paypal-wrap {
  padding: 12px 16px 8px;
  border-top: 1px solid #F3F4F6;
}
#cart-paypal-btn-container {
  min-height: 50px;
}

/* Badge panier dans la topbar marketplace */
.mk-cart-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #EA580C; color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mk-cart-badge.hidden { display: none; }

/* ══ FILTRES MARKETPLACE ══ */
.mk-filters-card { max-height: 85vh; overflow-y: auto; }
.mkf-section     { padding: 10px 16px 14px; border-bottom: 1px solid #F3F4F6; }
.mkf-label       { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.mkf-sort-row    { display: flex; flex-direction: column; gap: 6px; }
.mkf-sort-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; border: 1.5px solid #E5E7EB;
  background: #F9FAFB; font-size: 14px; font-weight: 600; color: #374151; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.mkf-sort-btn.active { background: #EFF6FF; border-color: #2563EB; color: #2563EB; }
.mkf-type-row    { display: flex; gap: 8px; }
.mkf-type-btn {
  flex: 1; padding: 9px 6px; border-radius: 10px; border: 1.5px solid #E5E7EB;
  background: #F9FAFB; font-size: 13px; font-weight: 600; color: #6B7280; cursor: pointer;
  text-align: center;
}
.mkf-type-btn.active { background: #EFF6FF; border-color: #2563EB; color: #2563EB; }
.mkf-price-row { display: flex; align-items: center; gap: 10px; }
.mkf-price-input {
  flex: 1; padding: 10px 12px; border: 1.5px solid #E5E7EB; border-radius: 10px;
  font-size: 14px; background: #F9FAFB; outline: none; color: #111827;
}
.mkf-price-input:focus { border-color: #2563EB; background: #fff; }
.mkf-price-sep { font-size: 16px; color: #9CA3AF; font-weight: 700; flex-shrink: 0; }
.mkf-btns {
  display: flex; gap: 10px; padding: 14px 16px 24px;
}
.mkf-reset-btn {
  flex: 1; padding: 13px; border-radius: 10px;
  background: #F3F4F6; border: none; color: #374151; font-size: 15px; font-weight: 600; cursor: pointer;
}
.mkf-apply-btn {
  flex: 2; padding: 13px; border-radius: 10px;
  background: #2563EB; border: none; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.mkf-apply-btn:active { background: #1D4ED8; }

/* Indicateur filtre actif sur le bouton Filtres */
.mk-filter-active {
  background: #EFF6FF !important; color: #2563EB !important;
  border-color: #2563EB !important;
}

/* Vendeur cliquable sur les cartes marketplace */
.mk-seller-clickable { cursor: pointer; border-radius: 8px; padding: 3px 4px; transition: background .15s; }
.mk-seller-clickable:active { background: #F3F4F6; }
.mk-seller-name-link { font-weight: 600; color: #374151; margin-left: 6px; }
.mk-seller-arrow { font-size: 10px; color: #9CA3AF; margin-left: auto; }

/* ══ SHEET NOTIFICATIONS MARKETPLACE ══ */
.mk-notifs-card { max-height: 80vh; display: flex; flex-direction: column; }
.mk-notifs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.mk-notifs-title { font-size: 15px; font-weight: 700; color: #111827; }
.mk-notifs-clear { background: none; border: none; color: #EF4444; font-size: 13px; font-weight: 600; cursor: pointer; }
.mk-notifs-list  { overflow-y: auto; padding: 0 12px 20px; }
.mk-notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid #F3F4F6;
}
.mk-notif-item:last-child { border-bottom: none; }
.mk-notif-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mk-notif-body { flex: 1; min-width: 0; }
.mk-notif-text  { font-size: 13px; font-weight: 600; color: #111827; margin: 0 0 2px; line-height: 1.4; }
.mk-notif-time  { font-size: 11px; color: #9CA3AF; }
.mk-notif-empty { text-align: center; padding: 32px 20px; color: #9CA3AF; }
.mk-notif-empty i { font-size: 30px; margin-bottom: 10px; display: block; }
.mk-notif-empty p { font-size: 14px; font-weight: 600; color: #374151; }

/* Scroll */
.mk-scroll { padding: 0 0 24px; }

/* Recherche */
.mk-search-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 8px;
}
.mk-search-box {
  flex: 1; height: 44px;
  background: #F3F4F6; border-radius: 22px;
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
}
.mk-search-ico { font-size: 14px; color: #9CA3AF; }
.mk-search-input {
  flex: 1; border: none; background: none; font-size: 14px;
  color: #111827; outline: none;
}
.mk-search-input::placeholder { color: #9CA3AF; }
.mk-filter-btn {
  height: 44px; padding: 0 14px;
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: 22px;
  font-size: 13px; font-weight: 600; color: #374151;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.mk-filter-btn:active { background: #F3F4F6; }

/* Catégories */
.mk-cats-row {
  display: flex; gap: 8px;
  padding: 8px 16px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.mk-cats-row::-webkit-scrollbar { display: none; }
.mk-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.mk-cat-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: #F3F4F6; border: 1.5px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #374151;
  transition: all 0.15s;
}
.mk-cat span {
  font-size: 11px; color: #6B7280; font-weight: 500;
  white-space: nowrap;
}
.mk-cat.active .mk-cat-ico {
  background: #EFF6FF; border-color: #2563EB; color: #2563EB;
}
.mk-cat.active span { color: #2563EB; font-weight: 700; }

/* Cartes Acheter / Vendre */
.mk-action-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 4px 16px 16px;
}
.mk-action-card {
  background: #F8FAFC; border: 1.5px solid #E5E7EB; border-radius: 16px;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: box-shadow 0.15s;
}
.mk-action-card:active { box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.mk-action-circle {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.mk-action-circle.blue  { background: #2563EB; }
.mk-action-circle.green { background: #16A34A; }
.mk-action-info { flex: 1; }
.mk-action-info strong { font-size: 15px; font-weight: 700; display: block; }
.mk-action-info strong.blue  { color: #2563EB; }
.mk-action-info strong.green { color: #16A34A; }
.mk-action-info p { font-size: 11.5px; color: #6B7280; margin: 3px 0 0; line-height: 1.4; }
.mk-action-arrow { font-size: 14px; align-self: flex-end; }
.mk-action-arrow.blue  { color: #2563EB; }
.mk-action-arrow.green { color: #16A34A; }

/* En-tête de section */
.mk-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 12px;
}
.mk-section-head h3,
.mk-section-title {
  font-size: 16px; font-weight: 700; color: #111827;
}
.mk-section-title { padding: 8px 16px 12px; }
.mk-see-all {
  font-size: 13px; color: #2563EB; font-weight: 600;
  border: none; background: none; cursor: pointer;
}

/* Scroll horizontal services */
.mk-services-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 16px;
}

/* ── Ligne individuelle scrollable horizontalement ── */
.mk-cards-row {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mk-cards-row::-webkit-scrollbar { display: none; }

/* Carte dans une ligne : largeur fixe, 2 visibles à la fois */
.mk-cards-row .mk-service-card {
  flex-shrink: 0;
  width: calc(50vw - 28px);
  min-width: 150px;
  max-width: 210px;
}

/* Carte service */
.mk-service-card {
  width: 100%;
  background: #fff; border-radius: 16px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.mk-service-img {
  width: 100%; height: 130px;
  position: relative;
}
.mk-service-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 10px;
}
.mk-wish-btn {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: #6B7280;
}
.mk-wish-btn.wished { color: #EF4444; }
.mk-service-body { padding: 10px 10px 12px; }
.mk-service-seller {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.mk-seller-av {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.mk-service-seller span { font-size: 12px; font-weight: 600; color: #111827; }
.mk-verified { font-size: 11px; color: #2563EB; }
.mk-service-title { font-size: 13px; font-weight: 700; color: #111827; margin: 0 0 3px; }
.mk-service-desc  { font-size: 11.5px; color: #6B7280; margin: 0 0 6px; line-height: 1.4; }
.mk-service-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #374151; margin-bottom: 4px;
}
.mk-service-rating i { color: #F59E0B; font-size: 11px; }
.mk-service-rating span { color: #9CA3AF; }
.mk-service-price { font-size: 12px; color: #2563EB; font-weight: 700; margin: 0; }
.mk-service-price strong { font-size: 13px; }

/* Acheter ou vendre */
.mk-trade-row { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.mk-trade-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  cursor: pointer;
}
.mk-trade-card:active { background: #F9FAFB; }
.mk-trade-ico {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mk-trade-ico.blue-light  { background: #EFF6FF; color: #2563EB; }
.mk-trade-ico.green-light { background: #F0FDF4; color: #16A34A; }
.mk-trade-info { flex: 1; }
.mk-trade-info strong { font-size: 14px; font-weight: 700; color: #111827; display: block; }
.mk-trade-info small  { font-size: 12px; color: #6B7280; }
.mk-trade-arrow { font-size: 12px; color: #9CA3AF; }

/* Tabs transactions */
.mk-tx-tabs {
  display: flex; border-bottom: 1.5px solid #E5E7EB;
  margin: 0 16px 0; background: #fff; border-radius: 10px 10px 0 0;
}
.mk-tx-tab {
  flex: 1; border: none; background: none; padding: 12px 0;
  font-size: 14px; font-weight: 500; color: #6B7280; cursor: pointer;
  position: relative;
}
.mk-tx-tab.active { color: #2563EB; font-weight: 700; }
.mk-tx-tab.active::after {
  content: ''; position: absolute; bottom: -1.5px; left: 20%; right: 20%;
  height: 2.5px; background: #2563EB; border-radius: 2px;
}

/* Liste transactions */
.mk-tx-list { padding: 8px 16px 0; }
.mk-tx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #F3F4F6;
}
.mk-tx-item:last-child { border-bottom: none; }
.mk-tx-thumb {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.mk-tx-info { flex: 1; min-width: 0; }
.mk-tx-info strong { font-size: 13px; font-weight: 600; color: #111827; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tx-info small  { font-size: 11px; color: #9CA3AF; display: block; margin: 2px 0 4px; }
.mk-tx-status {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.mk-tx-status.ongoing { background: #DBEAFE; color: #2563EB; }
.mk-tx-status.done    { background: #DCFCE7; color: #16A34A; }
.mk-tx-status.pending { background: #FEF3C7; color: #D97706; }
.mk-tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.mk-tx-amount { font-size: 14px; font-weight: 700; color: #111827; }
.mk-tx-chevron { font-size: 11px; color: #D1D5DB; }

/* ═══════════════════════════════════════════
   ADAPTATION PETITS ÉCRANS
   ═══════════════════════════════════════════ */

@media (max-height: 700px) {
  .landing-content     { padding-top: 40px; padding-bottom: 28px; }
  .hero h1             { font-size: 32px; }
  .features            { gap: 12px; margin-bottom: 24px; }
  .feat-icon           { width: 44px; height: 44px; min-width: 44px; font-size: 17px; }
  .landing-btns        { gap: 10px; }
  .btn-blue,
  .btn-outline         { padding: 15px; font-size: 15px; }
  .auth-logo           { padding-top: 56px; padding-bottom: 18px; }
  .auth-header.no-logo { padding-top: 60px; }
  .field-box           { height: 48px; }
  .field-group         { margin-bottom: 14px; }
}

/* ═══════════════════════════════════════════
   SIDEBAR / DRAWER
   ═══════════════════════════════════════════ */

/* Fond assombri derrière le drawer */
.sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer lui-même */
.app-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 88%;
  max-width: 340px;
  background: #fff;
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  /* Promote GPU layer en avance — évite le à-coup au premier tap */
  will-change: transform;
}
.app-sidebar.open {
  transform: translateX(0);
}

/* ── En-tête utilisateur ── */
.sidebar-user-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: calc(40px + var(--gw-sat, env(safe-area-inset-top, 0px))) 20px 20px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-av {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.sidebar-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-verified-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.sidebar-user-role {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-see-profile {
  font-size: 13px;
  color: #2563EB;
  font-weight: 600;
  margin-top: 5px;
}

/* ── Navigation ── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  margin: 1px 8px;
  width: calc(100% - 16px);
  transition: background 0.15s;
}
.sidebar-item:active,
.sidebar-item:hover {
  background: #F3F4F6;
}
.sidebar-item.active {
  background: #EFF6FF;
}
.sidebar-item.active .sdb-icon { color: #2563EB; }
.sidebar-item.active .sdb-label { color: #2563EB; font-weight: 700; }

.sdb-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #374151;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sidebar-item.active .sdb-icon {
  background: #DBEAFE;
  color: #2563EB;
}
.sidebar-item-logout .sdb-icon {
  background: #FEF2F2;
  color: #EF4444;
}
.sidebar-item-logout .sdb-label { color: #EF4444 !important; }
.sidebar-item-logout .sdb-desc { color: #FCA5A5 !important; }
.sidebar-item-logout:hover { background: #FEF2F2; }

.sdb-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sdb-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}
.sdb-desc {
  font-size: 11.5px;
  color: #9CA3AF;
  line-height: 1.4;
  white-space: normal;
}

.sdb-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 6px 20px;
}

/* ── Pied — Mode sombre ── */
.sidebar-footer {
  flex-shrink: 0;
  padding: 14px 20px 28px;
  border-top: 1px solid #F3F4F6;
}
.sdb-darkmode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sdb-darkmode-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sdb-darkmode-label i {
  font-size: 16px;
  color: #6B7280;
}

/* Toggle switch */
.sdb-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.sdb-toggle input { opacity: 0; width: 0; height: 0; }
.sdb-toggle-track {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.22s;
}
.sdb-toggle-track::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.sdb-toggle input:checked + .sdb-toggle-track { background: #2563EB; }
.sdb-toggle input:checked + .sdb-toggle-track::before { transform: translateX(20px); }

/* ── Dark mode ── */
body.dark-mode .app-sidebar { background: #1F2937; }
body.dark-mode .sidebar-user-header { background: linear-gradient(135deg, #1E3A5F, #1e3a5f88); border-color: #374151; }
body.dark-mode .sidebar-user-name span:first-child { color: #F9FAFB; }
body.dark-mode .sidebar-user-role { color: #9CA3AF; }
body.dark-mode .sidebar-see-profile { color: #60A5FA; }
body.dark-mode .sidebar-item:hover { background: #374151; }
body.dark-mode .sidebar-item.active { background: #1e3a5f; }
body.dark-mode .sdb-label { color: #F9FAFB; }
body.dark-mode .sdb-desc { color: #6B7280; }
body.dark-mode .sdb-icon { background: #374151; color: #D1D5DB; }
body.dark-mode .sdb-divider { background: #374151; }
body.dark-mode .sidebar-footer { border-color: #374151; }
body.dark-mode .sdb-darkmode-label { color: #D1D5DB; }
/* topbar always dark — no dark-mode override needed */
body.dark-mode .app-frame { background: #111827; }
body.dark-mode .sdb-toggle-track { background: #374151; }

/* ═══════════════════════════════════════════
   BADGES — inline icons
   ═══════════════════════════════════════════ */

/* Badge générique inline (à côté d'un nom) */
.badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 3px;
}
.badge-inline-blue {
  background: #2563EB;
  color: #fff;
}
.badge-inline-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
}
.badge-inline-green {
  background: linear-gradient(135deg, #16A34A, #15803D);
  color: #fff;
}

/* Badge dans les post-cards */
.post-badge-blue  { color: #2563EB; font-size: 13px; margin-left: 3px; }
.post-badge-gold  { color: #F59E0B; font-size: 13px; margin-left: 3px; }
.post-badge-green { color: #16A34A; font-size: 13px; margin-left: 3px; }

/* Badge dans la recherche */
.srch-badge { font-size: 12px; margin-left: 3px; }
.srch-badge-blue { color: #2563EB; }
.srch-badge-gold { color: #F59E0B; }

/* ═══════════════════════════════════════════
   PAGE VÉRIFICATION DU BADGE
   ═══════════════════════════════════════════ */

.badge-screen {
  position: absolute;
  inset: 0;
  background: #F3F4F6;
  z-index: 250;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.badge-screen.open {
  transform: translateX(0);
}
.badge-screen.hidden {
  display: none;
}
.badge-screen.show {
  display: flex;
}

/* Topbar */
.badge-topbar {
  flex-shrink: 0;
  height: calc(56px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 16px 0;
  border-bottom: 1px solid #E5E7EB;
}
.badge-back-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 18px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.badge-back-btn:active { background: #F3F4F6; }
.badge-topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

/* Scroll zone */
.badge-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Statut actuel */
.badge-current-status {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 2px solid #E5E7EB;
}
.badge-current-status.status-verified { border-color: #2563EB; background: #EFF6FF; }
.badge-current-status.status-premium  { border-color: #F59E0B; background: #FFFBEB; }
.badge-current-status.status-pending  { border-color: #8B5CF6; background: #F5F3FF; }
.badge-status-icon { font-size: 28px; flex-shrink: 0; }
.badge-status-label { font-weight: 700; font-size: 15px; color: #111827; }
.badge-status-sub   { font-size: 12px; color: #6B7280; margin-top: 2px; }

/* Card standard */
.badge-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.badge-card-premium-outer {
  border: 1.5px solid #F59E0B22;
  background: linear-gradient(160deg, #fff 60%, #FFFBEB 100%);
}

.badge-card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.badge-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.badge-card-icon-blue { background: #DBEAFE; color: #2563EB; }
.badge-card-icon-gold { background: #FEF3C7; color: #D97706; }
.badge-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-card-sub { font-size: 12px; color: #6B7280; margin-top: 2px; }

/* Progress bar */
.badge-progress-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.badge-progress-bar {
  flex: 1;
  height: 7px;
  background: #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
}
.badge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  border-radius: 10px;
  transition: width 0.4s ease;
}
.badge-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  white-space: nowrap;
}

/* Conditions list */
.badge-conditions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.badge-cond {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.badge-cond-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.badge-cond-ok      { background: #D1FAE5; color: #059669; }
.badge-cond-fail    { background: #FEE2E2; color: #EF4444; }
.badge-cond-pending { background: #FEF3C7; color: #D97706; }
.badge-cond-upload  { background: #DBEAFE; color: #2563EB; }
.cond-upload        { color: #2563EB; }

.badge-cond-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.badge-cond-text span {
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
}
.badge-cond-text span.cond-ok   { color: #059669; }
.badge-cond-text span.cond-fail { color: #EF4444; }
.badge-cond-text small {
  font-size: 11.5px;
  color: #9CA3AF;
  line-height: 1.3;
}

/* Avantages */
.badge-advantages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  background: #FFFBEB;
  border-radius: 10px;
  padding: 12px 14px;
}
.badge-advantages li {
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 9px;
}
.badge-advantages li i {
  color: #D97706;
  font-size: 13px;
  width: 16px;
  text-align: center;
}

/* CTA buttons */
.badge-cta-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.15s, transform 0.1s;
}
.badge-cta-btn:active { transform: scale(0.98); }
.badge-cta-btn:disabled { background: #D1D5DB !important; color: #9CA3AF !important; cursor: not-allowed; opacity: 1; }

.badge-cta-blue { background: #2563EB; color: #fff; }
.badge-cta-blue:not(:disabled):hover { background: #1D4ED8; }
.badge-cta-gold { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }

.badge-cta-note {
  text-align: center;
  font-size: 11.5px;
  color: #9CA3AF;
  margin-top: 8px;
}

/* Légende */
.badge-legend {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.badge-legend-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.badge-legend-row .badge-inline {
  width: 24px;
  height: 24px;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 0;
}
.badge-legend-row strong { font-size: 13.5px; color: #111827; }
.badge-legend-row small  { font-size: 11.5px; color: #9CA3AF; }

/* ═══════════════════════════════════════════
   CONTACT ROWS (téléphone / email) — profil
   ═══════════════════════════════════════════ */

.profil-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s;
  gap: 8px;
}
.profil-contact-row:active { background: #F3F4F6; }

.profil-contact-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.profil-contact-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6B7280;
  flex-shrink: 0;
}
.profil-contact-ico-green { background: #D1FAE5; color: #059669; }
.profil-contact-ico-blue  { background: #DBEAFE; color: #2563EB; }

.profil-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.profil-contact-label {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
}
.profil-contact-value {
  font-size: 13.5px;
  color: #111827;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profil-contact-verified {
  color: #059669;
  font-size: 12px;
  flex-shrink: 0;
}

.profil-contact-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.profil-contact-edit {
  font-size: 11px;
  color: #9CA3AF;
}

/* Badge de visibilité */
.profil-visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
/* Privé (défaut) */
.profil-visibility-badge:not(.profil-vis-public) {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}
/* Public */
.profil-vis-public {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Row en mode visiteur */
.profil-contact-row-view { cursor: pointer; }
.profil-contact-row-view:active { background: #F0FDF4; }

/* Bouton démo */

/* ══════════════════════════════════════════
   SETTINGS SCREEN
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   ÉCRAN FAVORIS
══════════════════════════════════════════ */
.favoris-screen {
  position: fixed;
  left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  background: #F3F4F6;
  z-index: 265;
  display: flex; flex-direction: column;
}
.favoris-screen.hidden { display: none; }
.favoris-screen.open   { transform: translateX(-50%) translateX(0); display: flex; }

.favoris-topbar {
  flex-shrink: 0; height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  display: flex; align-items: center;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0; gap: 12px;
  border-bottom: 1px solid #E5E7EB;
}
.favoris-back-btn {
  background: none; border: none; padding: 6px 8px;
  color: #374151; font-size: 18px; cursor: pointer;
  display: flex; align-items: center;
}
.favoris-title { font-size: 17px; font-weight: 700; color: #111827; margin: 0; }

.favoris-scroll { flex: 1; overflow-y: auto; }
.fav-tab-panel { padding: 0 0 32px; }
.fav-tab-panel.hidden { display: none; }

/* État vide */
.fav-empty {
  text-align: center; padding: 60px 20px;
  color: #9CA3AF;
}
.fav-empty i  { font-size: 38px; margin-bottom: 14px; display: block; }
.fav-empty p  { font-size: 15px; font-weight: 600; color: #374151; margin: 0 0 6px; }
.fav-empty small { font-size: 12px; }

/* Carte service sauvegardé */
.fav-svc-card {
  background: #fff; border-radius: 14px;
  overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.fav-svc-img {
  width: 100%; height: 140px; object-fit: cover; display: block;
}
.fav-svc-img-placeholder {
  width: 100%; height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(255,255,255,.6);
}
.fav-svc-body { padding: 12px 14px 14px; }
.fav-svc-toprow {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 6px;
}
.fav-svc-title { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.fav-svc-seller {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6B7280; margin-bottom: 10px;
}
.fav-svc-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.fav-svc-contact-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #2563EB; color: #fff; border: none;
  border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.fav-svc-contact-btn:active { background: #1D4ED8; }
.fav-svc-remove {
  background: none; border: none; color: #EF4444;
  font-size: 18px; cursor: pointer; padding: 4px;
}
.fav-svc-remove:active { opacity: .7; }

/* Bouton sauvegarder sur carte UPV service */
.upv-svc-actions {
  display: flex; align-items: center; gap: 0;
  border-top: 1px solid #F3F4F6; margin: 14px -14px 0;
}
.upv-svc-save-btn {
  width: 52px; height: 48px; flex-shrink: 0;
  background: #F9FAFB; border: none; border-right: 1px solid #F3F4F6;
  color: #9CA3AF; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 0 0 14px;
}
.upv-svc-save-btn.saved { color: #EF4444; background: #FEF2F2; }
.upv-svc-save-btn:active { background: #F3F4F6; }
.upv-svc-contact-btn {
  flex: 1; height: 48px;
  background: #2563EB; color: #fff; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 0 0 14px 0;
}
.upv-svc-contact-btn:active { background: #1D4ED8; }

/* Cœur sur carte marketplace */
.mk-wish-btn.saved { color: #EF4444; background: rgba(239,68,68,.15); }

.settings-screen {
  position: fixed;
  left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
  background: #F3F4F6;
  z-index: 260;
  display: flex; flex-direction: column;
}
.settings-screen.hidden  { display: none; }
.settings-screen.open    { transform: translateX(-50%) translateX(0); display: flex; }

/* ══ ÉCRANS LÉGAUX (CGU / CONFIDENTIALITÉ) ══ */
.legal-screen {
  position: fixed; left: 50%; top: 0; bottom: 0;
  width: 100%; max-width: 430px;
  transform: translateX(-50%) translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  background: #F8FAFC; z-index: 261;
  display: flex; flex-direction: column;
}
.legal-screen.hidden { display: none; }
.legal-screen.open   { transform: translateX(-50%) translateX(0); display: flex; }

.legal-topbar {
  flex-shrink: 0; height: calc(56px + var(--gw-sat, env(safe-area-inset-top, 0px))); background: #fff;
  display: flex; align-items: center; padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0; gap: 12px;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.legal-back-btn {
  width: 38px; height: 38px; border-radius: 50%; background: #F3F4F6;
  border: none; color: #374151; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.legal-back-btn:active { background: #E5E7EB; }
.legal-topbar-info { flex: 1; min-width: 0; }
.legal-topbar-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0; line-height: 1.2; }
.legal-topbar-sub   { font-size: 11px; color: #9CA3AF; display: block; }

.legal-scroll { flex: 1; overflow-y: auto; }
.legal-content { padding: 20px 18px 40px; }

.legal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFF6FF; color: #2563EB;
  font-size: 11px; font-weight: 700; border-radius: 20px; padding: 4px 12px;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.legal-badge.privacy { background: #F0FDF4; color: #16A34A; }

.legal-main-title {
  font-size: 20px; font-weight: 800; color: #111827;
  margin: 0 0 6px; line-height: 1.3;
}
.legal-date {
  font-size: 12px; color: #9CA3AF; margin: 0 0 20px;
  display: flex; align-items: center; gap: 5px;
}
.legal-section {
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #F3F4F6;
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h4 {
  font-size: 14px; font-weight: 700; color: #1E3A5F;
  margin: 0 0 8px; display: flex; align-items: center; gap: 6px;
}
.legal-section h4::before {
  content: ''; display: inline-block;
  width: 3px; height: 14px; background: #2563EB;
  border-radius: 2px; flex-shrink: 0;
}
.legal-screen[id="legal-privacy-screen"] .legal-section h4::before { background: #16A34A; }
.legal-section p {
  font-size: 13px; color: #374151; line-height: 1.65; margin: 0 0 8px;
}
.legal-section ul {
  padding-left: 18px; margin: 6px 0 0;
}
.legal-section ul li {
  font-size: 13px; color: #374151; line-height: 1.65; margin-bottom: 5px;
}
.legal-footer-note {
  margin-top: 10px; padding: 14px 16px; border-radius: 12px;
  background: #F0F9FF; color: #0284C7; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

.settings-topbar {
  flex-shrink: 0; height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  display: flex; align-items: center;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0; gap: 12px;
  border-bottom: 1px solid #E5E7EB;
}
.settings-back-btn {
  background: none; border: none; padding: 6px 8px;
  color: #374151; font-size: 18px; cursor: pointer;
  display: flex; align-items: center;
}
.settings-title {
  font-size: 17px; font-weight: 700; color: #111827; margin: 0;
}

.settings-scroll {
  flex: 1; overflow-y: auto; padding: 20px 16px 0;
}

.settings-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #9CA3AF; text-transform: uppercase;
  padding: 0 4px 8px;
  margin-top: 20px;
}
.settings-section-label:first-child { margin-top: 0; }

.settings-group {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.settings-row {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none; border: none; cursor: pointer;
  text-align: left; gap: 12px;
}
.settings-row:active { background: #F9FAFB; }
.settings-row-left {
  display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0;
}
.settings-row-ico {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.settings-row-name {
  display: block; font-size: 15px; font-weight: 600; color: #111827;
}
.settings-row-sub {
  display: block; font-size: 12px; color: #9CA3AF; margin-top: 1px;
}
.settings-row-arrow { color: #D1D5DB; font-size: 13px; flex-shrink: 0; }
.settings-row-sep { height: 1px; background: #F3F4F6; margin: 0 16px; }

.settings-row-danger:active { background: #FEF2F2; }

/* ── Mot de passe modal ── */
.change-pwd-modal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.change-pwd-card {
  background: #fff; border-radius: 20px 20px 0 0;
  width: 100%; max-width: 430px;
  padding: 24px 20px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.change-pwd-title {
  font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 4px;
}
.change-pwd-field {
  display: flex; flex-direction: column; gap: 5px;
}
.change-pwd-field label { font-size: 12px; font-weight: 600; color: #6B7280; }
.change-pwd-input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #E5E7EB; font-size: 15px; outline: none;
  box-sizing: border-box; background: #F9FAFB;
}
.change-pwd-input:focus { border-color: #2563EB; background: #fff; }
.change-pwd-error {
  font-size: 12px; color: #DC2626; text-align: center;
  display: none; margin: 0;
}
.change-pwd-btns { display: flex; gap: 10px; margin-top: 4px; }
.change-pwd-btns button { flex: 1; padding: 13px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.change-pwd-cancel { background: #F3F4F6; border: none; color: #374151; }
.change-pwd-save   { background: #2563EB; border: none; color: #fff; }

/* ══ ÉCRAN CHANGEMENT DE MOT DE PASSE ══ */
.cpwd-scroll { background: #F8FAFC; }

.cpwd-form-wrap {
  padding: 24px 18px 48px;
  display: flex; flex-direction: column; gap: 22px;
}

/* Header icon */
.cpwd-header-ico {
  display: flex; justify-content: center; align-items: center;
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 6px 20px rgba(37,99,235,.30);
}
.cpwd-header-ico i {
  font-size: 28px; color: #fff;
}

/* Intro text */
.cpwd-intro {
  text-align: center; padding: 0 8px;
  font-size: 13px; color: #6B7280; line-height: 1.55; margin: 0;
}

/* Field groups */
.cpwd-field {
  display: flex; flex-direction: column; gap: 6px;
}
.cpwd-label {
  font-size: 12px; font-weight: 700; color: #374151;
  text-transform: uppercase; letter-spacing: .04em;
}
.cpwd-input-wrap {
  position: relative; display: flex; align-items: center;
}
.cpwd-field-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9CA3AF; font-size: 15px; pointer-events: none;
}
.cpwd-input {
  width: 100%; padding: 13px 46px 13px 42px;
  border-radius: 12px; border: 1.5px solid #E5E7EB;
  font-size: 15px; outline: none; background: #fff;
  color: #111827; transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box;
}
.cpwd-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
  background: #fff;
}
.cpwd-input.cpwd-input-err {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.10);
}
.cpwd-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #9CA3AF; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: color .15s;
}
.cpwd-eye:active { color: #374151; }

/* Strength bar */
.cpwd-strength-bar {
  height: 5px; border-radius: 4px; background: #E5E7EB;
  overflow: hidden; margin-top: 2px;
}
.cpwd-strength-fill {
  height: 100%; border-radius: 4px;
  width: 0%; transition: width .3s ease, background-color .3s ease;
}
/* strength colours by data-score */
.cpwd-strength-fill[data-score="1"] { background: #EF4444; width: 20%; }
.cpwd-strength-fill[data-score="2"] { background: #F97316; width: 40%; }
.cpwd-strength-fill[data-score="3"] { background: #EAB308; width: 60%; }
.cpwd-strength-fill[data-score="4"] { background: #22C55E; width: 80%; }
.cpwd-strength-fill[data-score="5"] { background: #16A34A; width: 100%; }

.cpwd-strength-label {
  font-size: 11px; font-weight: 600; color: #9CA3AF;
  transition: color .3s;
}
.cpwd-strength-label[data-score="1"] { color: #EF4444; }
.cpwd-strength-label[data-score="2"] { color: #F97316; }
.cpwd-strength-label[data-score="3"] { color: #EAB308; }
.cpwd-strength-label[data-score="4"] { color: #22C55E; }
.cpwd-strength-label[data-score="5"] { color: #16A34A; }

/* Rules checklist */
.cpwd-rules {
  list-style: none; padding: 0; margin: 2px 0 0;
  display: flex; flex-direction: column; gap: 5px;
}
.cpwd-rule {
  font-size: 12px; color: #9CA3AF;
  display: flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.cpwd-rule i {
  font-size: 11px; width: 14px; text-align: center;
  color: #D1D5DB; transition: color .2s;
}
.cpwd-rule.ok { color: #16A34A; }
.cpwd-rule.ok i { color: #16A34A; }

/* Match label */
.cpwd-match-label {
  font-size: 12px; font-weight: 600; display: none;
  align-items: center; gap: 5px; margin-top: 2px;
}
.cpwd-match-label.cpwd-match-ok  { color: #16A34A; display: flex; }
.cpwd-match-label.cpwd-match-err { color: #EF4444; display: flex; }

/* Error message — starts with .hidden (removed by JS to reveal) */
.cpwd-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #DC2626; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

/* Save button */
.cpwd-save-btn {
  margin-top: 6px; width: 100%; padding: 15px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: opacity .18s, transform .12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cpwd-save-btn:active { opacity: .88; transform: scale(.98); }

/* ══ ÉCRAN VISIBILITÉ & CONFIDENTIALITÉ ══ */
.priv-content { padding: 16px 0 48px; }

.priv-section-label {
  font-size: 11px; font-weight: 800; color: #9CA3AF;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 18px 18px 8px;
}

.priv-group {
  background: #fff; border-radius: 16px;
  margin: 0 14px 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.priv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  transition: background .15s;
}
.priv-row-main { padding: 16px; }
.priv-row-left {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0;
}
.priv-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.priv-name {
  display: block; font-size: 14px; font-weight: 600; color: #111827;
  line-height: 1.3;
}
.priv-desc {
  display: block; font-size: 12px; color: #9CA3AF; margin-top: 2px;
  line-height: 1.4;
}
.priv-row-sep { height: 1px; background: #F3F4F6; margin: 0 16px; }

/* Select (messages / commentaires) */
.priv-row-select { flex-wrap: wrap; gap: 10px; }
.priv-select {
  flex-shrink: 0;
  padding: 7px 10px; border-radius: 10px;
  border: 1.5px solid #E5E7EB; background: #F9FAFB;
  font-size: 13px; font-weight: 600; color: #374151;
  outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.priv-select:focus { border-color: #7C3AED; }

/* Note info bas de page */
.priv-info-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 14px 0; padding: 14px 16px;
  background: #F0F9FF; border-radius: 14px;
  border: 1px solid #BAE6FD;
}
.priv-info-note i { color: #0284C7; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.priv-info-note p { font-size: 12.5px; color: #0369A1; line-height: 1.55; margin: 0; }

/* ══ ÉCRAN SUPPORT ══ */
.support-content { padding-bottom: 40px; }

/* Bannière héro */
.support-hero {
  text-align: center; padding: 22px 8px 18px;
  border-bottom: 1px solid #F3F4F6; margin-bottom: 18px;
}
.support-hero-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,99,235,.28);
}
.support-hero-ico i { font-size: 26px; color: #fff; }
.support-hero h3 { font-size: 18px; font-weight: 800; color: #111827; margin: 0 0 6px; }
.support-hero p  { font-size: 13px; color: #6B7280; margin: 0; }

/* Boutons contact rapide */
.support-contact-row {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.support-contact-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border-radius: 14px;
  background: #EFF6FF; text-decoration: none;
  transition: opacity .15s;
}
.support-contact-btn:active { opacity: .75; }
.support-contact-btn i    { font-size: 22px; color: #2563EB; }
.support-contact-btn span { font-size: 13px; font-weight: 700; color: #1D4ED8; }
.support-contact-btn small { font-size: 11px; color: #6B7280; text-align: center; }
.support-contact-wa { background: #F0FDF4; }
.support-contact-wa i    { color: #16A34A; }
.support-contact-wa span { color: #15803D; }

/* Titre FAQ */
.support-faq-title {
  font-size: 13px; font-weight: 700; color: #374151;
  text-transform: uppercase; letter-spacing: .05em;
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 10px;
}
.support-faq-title i { color: #2563EB; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.faq-item { border-radius: 12px; border: 1.5px solid #E5E7EB; overflow: hidden; background: #fff; }
.faq-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: none; border: none; cursor: pointer;
  text-align: left; gap: 10px;
}
.faq-header span { font-size: 14px; font-weight: 600; color: #111827; flex: 1; line-height: 1.35; }
.faq-ico {
  font-size: 14px; color: #9CA3AF; flex-shrink: 0;
  transition: transform .25s ease, color .2s;
}
.faq-item.open .faq-header { background: #EFF6FF; }
.faq-item.open .faq-header span { color: #1D4ED8; }
.faq-item.open .faq-ico { color: #2563EB; }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-body p {
  padding: 0 16px 14px; font-size: 13px; color: #374151; line-height: 1.65; margin: 0;
}

/* Signaler un bug */
.support-report-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: #FEF2F2; border: 1px solid #FECACA;
  margin-bottom: 20px;
}
.support-report-box > i { font-size: 22px; color: #DC2626; flex-shrink: 0; }
.support-report-box div { flex: 1; }
.support-report-box strong { font-size: 13px; color: #DC2626; display: block; margin-bottom: 3px; }
.support-report-box p { font-size: 12px; color: #6B7280; margin: 0; line-height: 1.5; }
.support-report-btn {
  flex-shrink: 0; padding: 8px 16px; border-radius: 10px;
  background: #DC2626; color: #fff; font-size: 13px; font-weight: 700;
  border: none; outline: none; cursor: pointer;
  text-decoration: none; transition: opacity .15s;
  -webkit-appearance: none; appearance: none;
  position: relative; z-index: 1;
}
.support-report-btn:active { opacity: .8; }

/* Version */
.support-version { text-align: center; font-size: 11px; color: #D1D5DB; margin: 0; }

/* ── Supprimer / Désactiver compte modals ── */
.delete-acct-card {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 401;
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 430px;
  padding: 0 0 var(--gw-sab, env(safe-area-inset-bottom, 16px));
  display: flex; flex-direction: column; gap: 0;
  max-height: 88vh; overflow-y: auto;
  animation: slideUp 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* En-tête modal */
.acct-modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid #F3F4F6;
  background: #FEF2F2; border-radius: 24px 24px 0 0;
}
.acct-modal-header-warn { background: #FFF7ED; }
.acct-modal-ico-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  background: #DC2626;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 10px rgba(220,38,38,.25);
}
.acct-modal-ico-warn { background: #EA580C; box-shadow: 0 4px 10px rgba(234,88,12,.25); }
.acct-modal-ico-wrap i { color: #fff; font-size: 20px; }
.acct-modal-title { font-size: 17px; font-weight: 800; color: #DC2626; margin: 0 0 2px; }
.acct-modal-title-warn { color: #EA580C; }
.acct-modal-sub { font-size: 12px; color: #9CA3AF; margin: 0; }

/* Section motif */
.acct-motif-section {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #F3F4F6;
}
.acct-motif-label {
  font-size: 13px; font-weight: 700; color: #374151;
  margin: 0 0 12px; display: flex; align-items: center; gap: 6px;
}
.acct-motif-label i { color: #2563EB; }
.acct-motif-opt { font-weight: 400; color: #9CA3AF; font-size: 12px; margin-left: 2px; }
.acct-motif-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.acct-motif-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid #E5E7EB; background: #F9FAFB;
  font-size: 12.5px; font-weight: 500; color: #374151;
  cursor: pointer; text-align: left;
  transition: all .15s;
}
.acct-motif-pill i { font-size: 13px; color: #9CA3AF; flex-shrink: 0; }
.acct-motif-pill:active { transform: scale(.97); }
.acct-motif-pill.selected {
  border-color: #2563EB; background: #EFF6FF; color: #1D4ED8; font-weight: 600;
}
.acct-motif-pill.selected i { color: #2563EB; }

/* Boîte d'avertissement */
.acct-warn-box {
  margin: 14px 20px 0;
  padding: 12px 14px; border-radius: 12px;
  background: #FEF2F2; border: 1px solid #FECACA;
  display: flex; gap: 10px; align-items: flex-start;
}
.acct-warn-box-danger > i { color: #DC2626; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.acct-warn-box div { font-size: 13px; color: #374151; line-height: 1.5; }
.acct-warn-box strong { color: #DC2626; }
.acct-warn-box p { margin: 4px 0 0; color: #6B7280; }

/* Section confirmation email */
.acct-confirm-section { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.acct-confirm-label { font-size: 13px; color: #374151; font-weight: 600; margin: 0; }

/* Boîte effets (désactivation) */
.acct-effects-box {
  margin: 14px 20px 0;
  padding: 12px 14px; border-radius: 12px;
  background: #FFF7ED; border: 1px solid #FED7AA;
}
.acct-effects-title { font-size: 12px; font-weight: 700; color: #EA580C; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.acct-effects-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.acct-effects-list li {
  font-size: 13px; color: #374151;
  display: flex; align-items: center; gap: 8px;
}
.acct-effects-list li i { color: #EA580C; font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }

/* Inputs et boutons (inchangés mais avec nouveau padding) */
.delete-acct-title { font-size: 17px; font-weight: 700; color: #DC2626; margin: 0; }
.delete-acct-warn  { font-size: 13px; color: #6B7280; line-height: 1.55; margin: 0; }
.delete-acct-input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid #FECACA; font-size: 14px; outline: none;
  box-sizing: border-box; background: #FFF5F5;
}
.delete-acct-input:focus { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
.delete-acct-btns { display: flex; gap: 10px; margin: 16px 20px 0; }
.delete-acct-btns button { flex: 1; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.delete-acct-cancel  { background: #F3F4F6; border: none; color: #374151; }
.delete-acct-confirm { background: #DC2626; border: none; color: #fff; }

/* ── Sélecteur de langue ── */
.settings-lang-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; background: none; border: none; cursor: pointer;
  border-bottom: 1px solid #F3F4F6; text-align: left;
}
.settings-lang-row:last-child { border-bottom: none; }
.settings-lang-row:active { background: #F9FAFB; }
.settings-lang-row.lang-active { background: #EFF6FF; border-radius: 10px; }
.settings-lang-flag { font-size: 22px; flex-shrink: 0; }
.settings-lang-name { flex: 1; font-size: 15px; font-weight: 600; color: #111827; }
.settings-lang-check { color: #2563EB; font-size: 16px; }

/* ══════════════════════════════════════════
   SERVICES & PRODUITS — FORMULAIRE
══════════════════════════════════════════ */

/* Toggle Service / Produit en haut du formulaire */
.svc-type-toggle {
  display: flex; gap: 0; padding: 12px 16px 0;
}
.svc-type-btn {
  flex: 1; padding: 10px 8px; border: 1.5px solid #E5E7EB;
  background: #F9FAFB; font-size: 13px; font-weight: 700;
  color: #6B7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
}
.svc-type-btn:first-child { border-radius: 10px 0 0 10px; }
.svc-type-btn:last-child  { border-radius: 0 10px 10px 0; border-left: none; }
.svc-type-btn.active[data-type="service"] {
  background: #EFF6FF; border-color: #2563EB; color: #2563EB;
}
.svc-type-btn.active[data-type="produit"] {
  background: #FFF7ED; border-color: #EA580C; color: #EA580C;
}

/* Sous-label d'avertissement produit */
.svc-mk-sub-warn {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #D97706; margin-top: 2px; font-weight: 600;
}

.add-service-card { max-height: 92vh; overflow-y: auto; }
.svc-form { padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.svc-field { display: flex; flex-direction: column; gap: 6px; }
.svc-label { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .04em; }
.svc-req   { color: #EF4444; }
.svc-input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #E5E7EB; font-size: 14px; outline: none;
  box-sizing: border-box; background: #F9FAFB; color: #111827;
}
.svc-input:focus   { border-color: #2563EB; background: #fff; }
.svc-select        { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.svc-textarea      { resize: vertical; min-height: 80px; }
.svc-price-chips   { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-price-chip {
  padding: 7px 14px; border-radius: 20px; border: 1.5px solid #E5E7EB;
  background: #F9FAFB; font-size: 13px; font-weight: 600; color: #6B7280; cursor: pointer;
}
.svc-price-chip.active { background: #EFF6FF; border-color: #2563EB; color: #2563EB; }
.svc-price-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.svc-price-input { flex: 1; }
.svc-currency { font-size: 16px; font-weight: 700; color: #374151; }

/* Toggle switch Marketplace */
.svc-mk-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 12px;
}
.svc-mk-sub { display: block; font-size: 12px; color: #9CA3AF; margin-top: 2px; }
.svc-toggle-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.svc-toggle-switch input { opacity: 0; width: 0; height: 0; }
.svc-toggle-slider {
  position: absolute; inset: 0; background: #D1D5DB; border-radius: 28px;
  cursor: pointer; transition: background .2s;
}
.svc-toggle-slider::before {
  content: ''; position: absolute; width: 22px; height: 22px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.svc-toggle-switch input:checked + .svc-toggle-slider { background: #2563EB; }
.svc-toggle-switch input:checked + .svc-toggle-slider::before { transform: translateX(20px); }

.svc-form-btns {
  display: flex; gap: 10px; padding: 16px 16px 24px;
}
.svc-cancel-btn {
  flex: 1; padding: 13px; border-radius: 10px; background: #F3F4F6;
  border: none; color: #374151; font-size: 15px; font-weight: 600; cursor: pointer;
}
.svc-submit-btn {
  flex: 2; padding: 13px; border-radius: 10px; background: #2563EB;
  border: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ── Carte service dans le profil (compact) ── */
.profil-svc-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #F3F4F6;
}
.profil-svc-card:last-child { border-bottom: none; }
.profil-svc-thumb {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 10px;
  overflow: hidden; background: linear-gradient(135deg,#6366F1,#8B5CF6);
  display: flex; align-items: center; justify-content: center;
}
.profil-svc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profil-svc-thumb-ico { color: #fff; font-size: 20px; }
.profil-svc-body { flex: 1; min-width: 0; }
.profil-svc-cat-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  background: #EEF2FF; color: #6366F1; font-size: 10px; font-weight: 700;
  margin-bottom: 3px;
}
.profil-svc-title { font-size: 13.5px; font-weight: 700; color: #111827; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profil-svc-desc  { font-size: 13px; color: #6B7280; margin: 0 0 8px; line-height: 1.4; }
.profil-svc-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profil-svc-price  { font-size: 12.5px; font-weight: 700; color: #6366F1; }
.profil-svc-mk-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
}
.profil-svc-mk-off { color: #9CA3AF; background: #F9FAFB; }
.profil-svc-menu {
  background: none; border: none; color: #9CA3AF; font-size: 15px;
  padding: 6px 8px; cursor: pointer; border-radius: 8px; flex-shrink: 0;
}
.profil-svc-menu:active { background: #F3F4F6; }

/* ── Carte service dans le profil visité ── */
.upv-svc-card { padding: 0; overflow: hidden; }
.upv-svc-card .profil-svc-body { padding: 14px 14px 0; }
.upv-svc-card .profil-svc-top { display: flex; align-items: center; justify-content: space-between; }
.upv-svc-contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px;
  padding: 12px 0;
  background: #2563EB; color: #fff;
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  border-radius: 0 0 14px 14px;
  transition: background .15s;
}
.upv-svc-contact-btn:active { background: #1D4ED8; }

/* ── Photo picker dans le formulaire ── */
.svc-photos-preview {
  display: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.svc-photo-thumb {
  position: relative; width: calc(25% - 6px); aspect-ratio: 1;
  border-radius: 10px; overflow: hidden; background: #F3F4F6;
}
.svc-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-photo-rm {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: none; color: #fff;
  font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.svc-add-photo-btn {
  width: 100%; padding: 11px; border-radius: 10px;
  border: 1.5px dashed #D1D5DB; background: #F9FAFB;
  color: #6B7280; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.svc-add-photo-btn:active { background: #F3F4F6; }

/* ── Slideshow service ── */
.svc-ss { position: relative; width: 100%; overflow: hidden; background: #000; }
.svc-ss-single { border-radius: 0; }
.svc-ss-img-single { width: 100%; height: 180px; object-fit: cover; display: block; }

.svc-ss-slides { position: relative; width: 100%; height: 180px; }
.svc-ss-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
}
.svc-ss-slide.active { opacity: 1; pointer-events: auto; }
.svc-ss-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svc-ss-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: none; color: #fff;
  font-size: 12px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.svc-ss-prev { left: 8px; }
.svc-ss-next { right: 8px; }
.svc-ss-btn:active { background: rgba(0,0,0,.7); }

.svc-ss-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.svc-ss-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s;
}
.svc-ss-dot.active { background: #fff; width: 18px; border-radius: 3px; }

.profil-svc-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px;
}

/* ── Cartes services membres dans la Marketplace ── */
.mk-user-svc-img {
  position: relative; height: 150px; overflow: hidden;
}
.mk-user-svc-img .svc-ss,
.mk-user-svc-img .svc-ss-single { border-radius: 0; }
.mk-user-svc-img .svc-ss-slides,
.mk-user-svc-img .svc-ss-img-single { height: 150px; }
.mk-user-svc-img .svc-ss-slide img { height: 150px; }
.mk-svc-cat-placeholder {
  width: 100%; height: 150px; display: flex; align-items: center; justify-content: center;
}
.mk-user-svc-img .mk-service-badge { position: absolute; top: 10px; left: 10px; z-index: 3; }
.mk-user-svc-img .mk-wish-btn      { position: absolute; top: 8px; right: 8px; z-index: 3; }
/* Badge "Produit" sur les cartes de la marketplace principale */
.mk-item-type-badge {
  position: absolute; bottom: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; border-radius: 20px; padding: 3px 7px;
}
.mk-item-type-prod { background: rgba(234,88,12,.85); color: #fff; }

.mk-user-svc-card .mk-service-img.mk-svc-cat-bg {
  display: flex; align-items: center; justify-content: center;
  height: 120px;
}
.mk-svc-cat-dev     { background: linear-gradient(135deg,#1D4ED8,#3B82F6); }
.mk-svc-cat-design  { background: linear-gradient(135deg,#7C3AED,#A78BFA); }
.mk-svc-cat-redac   { background: linear-gradient(135deg,#0F766E,#2DD4BF); }
.mk-svc-cat-mkt     { background: linear-gradient(135deg,#B45309,#F59E0B); }
.mk-svc-cat-video   { background: linear-gradient(135deg,#BE185D,#F472B6); }
.mk-svc-cat-conseil { background: linear-gradient(135deg,#1E3A5F,#3B82F6); }
.mk-svc-cat-autre   { background: linear-gradient(135deg,#374151,#9CA3AF); }

/* ══════════════════════════════════════════════════════
   SUPER ADMIN — STYLES DESKTOP COMPLETS
════════════════════════════════════════════════════════ */

/* Bouton accès admin discret */
.adm-access-hint {
  display: block; margin: 20px auto 0;
  background: none; border: none;
  color: transparent; font-size: 10px; letter-spacing: 4px;
  cursor: default; user-select: none; -webkit-user-select: none;
}
.adm-access-hint:hover { color: transparent; }

/* ─────────────────────────────────────
   ÉCRANS ADMIN = PLEIN ÉCRAN (desktop)
───────────────────────────────────── */
.adm-desktop-screen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw !important; max-width: 100vw !important;
  background: #0F172A;
  overflow: hidden;
}
/* Masque le phone-frame quand on est sur un écran admin */
.adm-desktop-screen .phone-frame { display: none; }

/* ── LOGIN DESKTOP ── */
.adm-login-desktop {
  display: flex; width: 100%; height: 100vh;
}

/* Panneau gauche (60%) */
.adm-login-left {
  flex: 0 0 55%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #0F172A 0%, #1E3A5F 50%, #1D4ED8 100%);
  position: relative; overflow: hidden;
}
.adm-login-left::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(124,58,237,.25) 0%, transparent 60%);
}
.adm-login-left-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 20px;
  max-width: 420px; padding: 40px;
}
.adm-login-shield-lg {
  width: 80px; height: 80px; border-radius: 24px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #60A5FA;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 32px rgba(37,99,235,.4);
}
.adm-login-brand {
  font-size: 36px; font-weight: 900; color: #fff;
  letter-spacing: -1px; margin: 0;
}
.adm-login-brand-sub {
  font-size: 15px; color: #93C5FD; margin-top: -12px;
}
.adm-login-features {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 16px;
}
.adm-login-feat {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,.8);
}
.adm-login-feat i {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #60A5FA; flex-shrink: 0;
}

/* Panneau droit (40%) */
.adm-login-right {
  flex: 0 0 45%; display: flex; align-items: center; justify-content: center;
  background: #F8FAFC; padding: 40px 32px; overflow-y: auto;
}
.adm-login-card {
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 20px;
  padding: 32px 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid #E2E8F0;
}
.adm-login-card.hidden { display: none; }
.adm-login-card-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.adm-login-shield-sm {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg,#1D4ED8,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.adm-login-card-title { font-size: 18px; font-weight: 800; color: #0F172A; }
.adm-login-card-sub   { font-size: 12px; color: #64748B; margin-top: 2px; }
.adm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-field label { font-size: 12px; color: #374151; font-weight: 700; }
.adm-field input {
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid #E2E8F0; background: #F8FAFC;
  color: #0F172A; font-size: 14px; outline: none;
  transition: border-color .2s;
}
.adm-field input:focus { border-color: #2563EB; background: #fff; }
.adm-btn-primary {
  padding: 13px 20px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .1s;
}
.adm-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.adm-btn-ghost {
  background: none; border: 1.5px solid #E2E8F0; border-radius: 10px;
  color: #64748B; font-size: 13px; cursor: pointer; padding: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .2s, color .2s;
}
.adm-btn-ghost:hover { border-color: #2563EB; color: #2563EB; }

/* ─────────────────────────────────────
   PANNEAU ADMIN DESKTOP (layout complet)
───────────────────────────────────── */
.adm-desktop-layout {
  display: flex; width: 100vw; height: 100vh; overflow: hidden;
}

/* ── SIDEBAR GAUCHE ── */
.adm-sidebar {
  width: 240px; flex-shrink: 0;
  background: linear-gradient(180deg, #0F172A 0%, #1E3A5F 100%);
  display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.06);
}
.adm-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.adm-sidebar-logo-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
}
.adm-sidebar-brand     { font-size: 15px; font-weight: 800; color: #fff; }
.adm-sidebar-brand-sub { font-size: 10px; color: #64748B; }

/* Nav items sidebar */
.adm-sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.adm-sidebar-nav-label {
  font-size: 10px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 8px 4px;
}
.adm-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: none; cursor: pointer;
  color: #94A3B8; font-size: 13px; font-weight: 600;
  background: none; text-align: left; width: 100%;
  transition: background .15s, color .15s;
  position: relative;
}
.adm-sidebar-item i { font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }
.adm-sidebar-item span:first-of-type { flex: 1; }
.adm-sidebar-item:hover { background: rgba(255,255,255,.06); color: #CBD5E1; }
.adm-sidebar-item.active {
  background: linear-gradient(135deg, rgba(37,99,235,.35), rgba(124,58,237,.2));
  color: #fff;
  box-shadow: inset 3px 0 0 #3B82F6;
}
.adm-sidebar-badge {
  background: #EF4444; color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; line-height: 18px; text-align: center;
  flex-shrink: 0;
}
.adm-sidebar-badge.hidden { display: none; }

/* Footer sidebar */
.adm-sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 10px;
}
.adm-sidebar-user { display: flex; align-items: center; gap: 10px; }
.adm-panel-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.adm-panel-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
}
.adm-avatar-clickable {
  cursor: pointer;
  transition: filter 0.2s;
}
.adm-avatar-clickable:hover { filter: brightness(0.75); }
.adm-avatar-clickable:hover .adm-avatar-edit-hint { opacity: 1; }
.adm-avatar-edit-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  font-size: 13px; color: #fff;
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.adm-sidebar-user-info { flex: 1; min-width: 0; }
.adm-panel-name { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-panel-role { font-size: 10px; color: #64748B; }
.adm-sidebar-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 9px; border-radius: 10px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.2);
  color: #FCA5A5; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.adm-sidebar-logout:hover { background: rgba(239,68,68,.25); }

/* ── ZONE PRINCIPALE ── */
.adm-main {
  flex: 1; display: flex; flex-direction: column;
  height: 100vh; overflow: hidden; background: #F1F5F9;
}

/* Top bar */
.adm-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--gw-sat, env(safe-area-inset-top, 0px))) 28px 14px;
  background: #fff; border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.adm-topbar-left { display: flex; align-items: baseline; gap: 14px; }
.adm-topbar-title { font-size: 20px; font-weight: 800; color: #0F172A; margin: 0; }
.adm-topbar-date  { font-size: 12px; color: #94A3B8; }
.adm-topbar-right { display: flex; align-items: center; gap: 12px; }
.adm-topbar-stat  { font-size: 12px; color: #64748B; display: flex; align-items: center; gap: 6px; }

/* Content scrollable */
.adm-main-content {
  flex: 1; overflow-y: auto; padding: 0;
}

/* ── DASHBOARD (desktop : grille large) ── */
.adm-dash {
  padding: 24px 28px; display: flex; flex-direction: column; gap: 24px;
}
.adm-dash-title { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 4px; letter-spacing: .5px; text-transform: uppercase; }
.adm-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.adm-stat-card {
  background: #fff; border-radius: 14px;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.adm-stat-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.adm-stat-val { font-size: 22px; font-weight: 800; color: #0F172A; }
.adm-stat-lbl { font-size: 11px; color: #64748B; font-weight: 500; }

.adm-recent-title {
  font-size: 13px; font-weight: 700; color: #475569; margin: 0;
}
.adm-recent-list { display: flex; flex-direction: column; gap: 8px; }
.adm-recent-item {
  background: #fff; border-radius: 12px; padding: 11px 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.adm-recent-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.adm-recent-text { font-size: 12px; color: #374151; flex: 1; }
.adm-recent-time { font-size: 10px; color: #9CA3AF; }
.adm-empty {
  text-align: center; padding: 32px 16px; color: #94A3B8; font-size: 13px;
}
.adm-empty i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .5; }

/* ── SIGNALEMENTS ── */
.adm-list-wrap { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.adm-report-card {
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-left: 4px solid #EF4444;
}
.adm-report-card.resolved { border-left-color: #22C55E; opacity: .7; }
.adm-report-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.adm-report-target { font-size: 13px; font-weight: 700; color: #0F172A; }
.adm-report-date { font-size: 10px; color: #9CA3AF; }
.adm-report-reason {
  font-size: 12px; color: #64748B;
  background: #F1F5F9; border-radius: 6px; padding: 5px 8px;
  margin-bottom: 8px;
}
.adm-report-by { font-size: 11px; color: #9CA3AF; margin-bottom: 10px; }
.adm-report-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-btn-sm {
  padding: 6px 12px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 11px; font-weight: 700; transition: opacity .2s;
}
.adm-btn-sm:hover { opacity: .8; }
.adm-btn-dismiss { background: #F1F5F9; color: #64748B; }
.adm-btn-warn    { background: #FFF7ED; color: #EA580C; }
.adm-btn-ban     { background: #FEE2E2; color: #DC2626; }
.adm-btn-del     { background: #FEE2E2; color: #DC2626; }
.adm-btn-approve { background: #DCFCE7; color: #16A34A; }
.adm-btn-reject  { background: #FEE2E2; color: #DC2626; }
.adm-btn-unban   { background: #DCFCE7; color: #16A34A; }
.adm-btn-view    { background: #EFF6FF; color: #2563EB; }
.adm-btn-task    { background: #F0FDF4; color: #16A34A; }
.adm-btn-done    { background: #DCFCE7; color: #15803D; }
.adm-btn-promote { background: #F5F3FF; color: #7C3AED; }
.adm-btn-revoke  { background: #FEE2E2; color: #DC2626; }
.adm-btn-add     {
  width: 100%; padding: 13px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px;
}

/* ── UTILISATEURS ── */
.adm-search-bar {
  padding: 12px 14px 4px;
}
.adm-search-input {
  width: 100%; padding: 10px 14px 10px 36px;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  font-size: 13px; outline: none; background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center;
  background-size: 16px;
  transition: border-color .2s;
}
.adm-search-input:focus { border-color: #2563EB; }
.adm-user-card {
  background: #fff; border-radius: 14px; padding: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 8px;
}
.adm-user-card.banned { border-left: 4px solid #EF4444; }
.adm-user-top { display: flex; align-items: center; gap: 10px; }
.adm-user-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.adm-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adm-user-info { flex: 1; }
.adm-user-name { font-size: 14px; font-weight: 700; color: #0F172A; }
.adm-user-email { font-size: 11px; color: #64748B; }
.adm-user-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.adm-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.adm-tag-active  { background: #DCFCE7; color: #16A34A; }
.adm-tag-banned  { background: #FEE2E2; color: #DC2626; }
.adm-tag-admin   { background: #F5F3FF; color: #7C3AED; }
.adm-tag-super   { background: linear-gradient(135deg,#1D4ED8,#7C3AED); color: #fff; }
.adm-tag-google  { background: #FEF9C3; color: #92400E; }
.adm-tag-pending { background: #FFF7ED; color: #C2410C; }
.adm-user-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── BADGES ── */
.adm-badge-card {
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-left: 4px solid #3B82F6;
}
.adm-badge-card.premium { border-left-color: #F59E0B; }
.adm-badge-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.adm-badge-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.adm-badge-ico-blue { background: #EFF6FF; color: #2563EB; }
.adm-badge-ico-gold { background: #FFFBEB; color: #D97706; }
.adm-badge-name { font-size: 14px; font-weight: 700; color: #0F172A; }
.adm-badge-email { font-size: 11px; color: #64748B; }
.adm-badge-date { font-size: 10px; color: #9CA3AF; margin-bottom: 10px; }
.adm-badge-actions { display: flex; gap: 8px; }

/* ── ÉQUIPE ── */
.adm-team-section { margin-bottom: 16px; }
.adm-team-section-title {
  font-size: 12px; font-weight: 700; color: #64748B;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 0 0 8px;
}
.adm-member-card {
  background: #fff; border-radius: 14px; padding: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 8px;
}
.adm-member-top { display: flex; align-items: center; gap: 10px; }
.adm-member-info { flex: 1; }
.adm-member-name { font-size: 14px; font-weight: 700; color: #0F172A; }
.adm-member-role { font-size: 11px; color: #64748B; }
.adm-member-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Tasks */
.adm-task-card {
  background: #fff; border-radius: 14px; padding: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 8px;
}
.adm-task-card.done { opacity: .6; }
.adm-task-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.adm-task-title { font-size: 13px; font-weight: 700; color: #0F172A; }
.adm-task-priority {
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.adm-task-priority.high   { background: #FEE2E2; color: #DC2626; }
.adm-task-priority.medium { background: #FFF7ED; color: #EA580C; }
.adm-task-priority.low    { background: #DCFCE7; color: #16A34A; }
.adm-task-desc { font-size: 12px; color: #64748B; margin-bottom: 6px; line-height: 1.5; }
.adm-task-meta { font-size: 11px; color: #94A3B8; margin-bottom: 8px; }
.adm-task-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Modal admin */
.adm-modal-bg {
  position: fixed; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(0,0,0,.55); z-index: 800;
}
.adm-modal-card {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 24px 24px 0 0;
  z-index: 801; padding: 20px 20px calc(28px + var(--gw-sab, env(safe-area-inset-bottom,0)));
  animation: slideUp .26s cubic-bezier(.4,0,.2,1);
  max-height: 80vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.adm-modal-title {
  font-size: 16px; font-weight: 800; color: #0F172A;
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.adm-modal-field { display: flex; flex-direction: column; gap: 5px; }
.adm-modal-field label { font-size: 12px; font-weight: 700; color: #374151; }
.adm-modal-field input,
.adm-modal-field select,
.adm-modal-field textarea {
  padding: 10px 13px; border-radius: 10px;
  border: 1.5px solid #E2E8F0; font-size: 13px; outline: none;
  background: #F8FAFC; color: #0F172A;
  transition: border-color .2s;
}
.adm-modal-field input:focus,
.adm-modal-field select:focus,
.adm-modal-field textarea:focus { border-color: #2563EB; }
.adm-modal-field textarea { resize: vertical; min-height: 70px; }
.adm-modal-btns { display: flex; gap: 10px; }
.adm-modal-btns button { flex: 1; padding: 12px; border-radius: 12px; border: none; cursor: pointer; font-size: 14px; font-weight: 700; }
.adm-modal-cancel { background: #F1F5F9; color: #64748B; }
.adm-modal-save   { background: linear-gradient(135deg,#2563EB,#1D4ED8); color: #fff; }
.adm-modal-danger { background: #EF4444; color: #fff; }

/* Section header pour chaque onglet */
.adm-tab-header {
  padding: 14px 14px 8px;
  background: #fff; border-bottom: 1px solid #F1F5F9;
  position: sticky; top: 0; z-index: 10;
}
.adm-tab-header h2 { font-size: 16px; font-weight: 800; color: #0F172A; }
.adm-tab-header p  { font-size: 12px; color: #64748B; margin-top: 2px; }

/* ── 6 onglets admin (taille réduite) ── */
.adm-panel-nav .adm-nav-item { font-size: 8px; }
.adm-panel-nav .adm-nav-item i { font-size: 16px; }

/* ═══════════════════════════════════════════════
   GENIWORK OFFICIAL — POST CARD + PUBLISHER
════════════════════════════════════════════════ */

/* Post officiel dans le feed */
.post-card.post-official {
  border: none;
  background: linear-gradient(160deg, #EFF6FF 0%, #F5F3FF 100%);
  position: relative;
  overflow: hidden;
}
.post-card.post-official::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563EB, #7C3AED, #2563EB);
  background-size: 200% 100%;
  animation: gradientShift 3s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.post-official-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.post-official-avatar {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #1D4ED8, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.post-official-name {
  font-size: 14px; font-weight: 800; color: #1E3A5F;
  display: flex; align-items: center; gap: 5px;
}
.post-official-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 20px; letter-spacing: .3px;
}
.post-official-sub { font-size: 11px; color: #3B82F6; font-weight: 500; }
.post-official-time { font-size: 10px; color: #9CA3AF; margin-left: auto; }

/* Bouton Suivre directement sur la card officielle */
.off-card-follow-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #6366F1;
  background: transparent;
  color: #6366F1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.off-card-follow-btn:hover { background: rgba(99,102,241,.12); }
.off-card-follow-btn.following {
  border-color: #334155;
  color: #64748B;
  background: transparent;
}
.post-official-text {
  font-size: 14px; color: #1E293B; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}

/* Image dans un post officiel */
.off-post-img {
  width: 100%; border-radius: 12px;
  max-height: 280px; object-fit: cover;
  margin: 8px 0; display: block;
}

/* Vidéo dans un post officiel — hérite du style post-video-wrap */
.off-post-video-wrap {
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.off-post-video {
  width: 100%; display: block;
  max-height: 320px;
  object-fit: cover;
  background: #000;
  pointer-events: none;  /* le clic est capté par le wrap */
}

.post-official-footer {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(37,99,235,.12);
  display: flex; align-items: center; justify-content: space-between;
}
.post-official-actions { display: flex; gap: 8px; }
.post-official-action-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #64748B; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; transition: background .15s;
}
.post-official-action-btn:hover { background: rgba(37,99,235,.08); color: #2563EB; }
.post-official-powered {
  font-size: 10px; color: #94A3B8;
  display: flex; align-items: center; gap: 4px;
}

/* Composer officiel (modal) */
.official-composer-bg {
  position: fixed; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(0,0,0,.55); z-index: 600;
}
.official-composer-card {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 24px 24px 0 0;
  z-index: 601; max-height: 92vh; overflow-y: auto;
  animation: slideUp .28s cubic-bezier(.4,0,.2,1);
  padding: 0 0 calc(24px + var(--gw-sab, env(safe-area-inset-bottom,0)));
}
.official-composer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #F1F5F9;
}
.official-composer-title {
  font-size: 15px; font-weight: 800; color: #1E3A5F;
  display: flex; align-items: center; gap: 8px;
}
.official-composer-title i { color: #2563EB; }
.official-composer-close {
  background: #F1F5F9; border: none; width: 32px; height: 32px;
  border-radius: 10px; font-size: 14px; cursor: pointer; color: #64748B;
}
.official-composer-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.official-composer-preview {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  border-radius: 12px; padding: 10px 12px;
  border: 1px solid rgba(37,99,235,.15);
}
.official-composer-preview-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg,#1D4ED8,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
}
.official-composer-preview-name { font-size: 13px; font-weight: 800; color: #1E3A5F; }
.official-composer-preview-sub  { font-size: 11px; color: #3B82F6; }
.official-composer-textarea {
  width: 100%; min-height: 100px; padding: 12px 14px;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  font-size: 14px; color: #0F172A; line-height: 1.6;
  resize: none; outline: none; font-family: inherit;
  background: #F8FAFC; transition: border-color .2s;
}
.official-composer-textarea:focus { border-color: #2563EB; background: #fff; }
.official-composer-imgbar {
  display: flex; align-items: center; gap: 10px;
}
.official-composer-img-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  border: 1.5px dashed #CBD5E1; background: none; cursor: pointer;
  font-size: 12px; color: #64748B; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.official-composer-img-btn:hover { border-color: #2563EB; color: #2563EB; }
.official-composer-img-preview {
  display: none; width: 48px; height: 48px; object-fit: cover;
  border-radius: 10px; border: 2px solid #2563EB;
}
.official-composer-send-btn {
  width: 100%; padding: 14px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #1D4ED8, #7C3AED);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s;
}
.official-composer-send-btn:hover { opacity: .9; }
.official-composer-type-tabs {
  display: flex; gap: 6px;
}
.off-type-btn {
  flex: 1; padding: 8px; border-radius: 10px; border: 1.5px solid #E2E8F0;
  background: #F8FAFC; font-size: 11px; font-weight: 700; cursor: pointer;
  color: #64748B; transition: all .2s;
}
.off-type-btn.active { background: #EFF6FF; border-color: #2563EB; color: #1D4ED8; }

/* Publisher button in sidebar */
.gw-publisher-btn { border: none; }
.gw-official-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  margin-left: 4px; flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.8); }
}
@keyframes pulse-green {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%      { opacity: .8; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* Admin publications tab */
.adm-publi-wrap { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.adm-publi-composer {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  border: 1.5px solid rgba(37,99,235,.15);
}
.adm-publi-composer-head {
  background: linear-gradient(135deg,#1D4ED8,#7C3AED);
  padding: 12px 14px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: #fff;
}
.adm-publi-composer-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.adm-publi-textarea {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1.5px solid #E2E8F0; border-radius: 10px;
  font-size: 13px; resize: none; outline: none; font-family: inherit;
  background: #F8FAFC; color: #0F172A; transition: border-color .2s;
}
.adm-publi-textarea:focus { border-color: #2563EB; background: #fff; }
.adm-publi-composer-footer { display: flex; gap: 8px; align-items: center; }
.adm-publi-send-btn {
  flex: 1; padding: 10px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg,#1D4ED8,#7C3AED);
  color: #fff; font-size: 13px; font-weight: 700;
}
.adm-publi-img-btn {
  padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid #E2E8F0; background: none; cursor: pointer;
  font-size: 13px; color: #64748B;
  transition: border-color .15s, color .15s;
}
.adm-publi-img-btn:active { background: #F1F5F9; }

/* Bouton vidéo — accent violet */
.adm-publi-vid-btn {
  border-color: rgba(99,102,241,.35);
  color: #6366F1;
}
.adm-publi-vid-btn:active { background: #EEF2FF; }

.adm-notif-composer {
  background: #fff; border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  border: 1.5px solid rgba(245,158,11,.2);
  overflow: hidden;
}
.adm-notif-composer-head {
  background: linear-gradient(135deg,#F59E0B,#D97706);
  padding: 12px 14px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: #fff;
}
.adm-notif-composer-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.adm-publi-hist-item {
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-left: 3px solid #2563EB;
}
.adm-publi-hist-text { font-size: 13px; color: #374151; margin-bottom: 6px; line-height: 1.5; }
.adm-publi-hist-meta { font-size: 11px; color: #9CA3AF; display: flex; justify-content: space-between; }

.adm-publisher-card {
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 10px;
}
.adm-publisher-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg,#1D4ED8,#7C3AED);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
}

/* ══════════════════════════════════════════
   PULL-TO-REFRESH
══════════════════════════════════════════ */
.ptr-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #6366F1;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.ptr-indicator i {
  font-size: 15px;
  color: #6366F1;
}
@keyframes ptr-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.ptr-spin.spinning {
  animation: ptr-rotate 0.7s linear infinite;
}

/* ══════════════════════════════════════════
   BANNIÈRE POST OFFICIEL GENIWORK
══════════════════════════════════════════ */
.gw-official-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(400px, 92vw);
  background: linear-gradient(135deg, #1D4ED8 0%, #7C3AED 100%);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(99,102,241,.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: bannerSlideIn 0.4s cubic-bezier(.34,1.56,.64,1) forwards;
}
.gw-official-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.gw-official-banner-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.gw-official-banner-title {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gw-official-banner-text {
  font-size: 11px;
  opacity: .85;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gw-official-banner-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.gw-official-banner-close:hover {
  background: rgba(255,255,255,.35);
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bannerSlideOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* ══════════════════════════════════════════
   PHOTO PROFIL ADMIN + LOGO OFFICIEL
══════════════════════════════════════════ */
.adm-photo-section {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.adm-photo-preview {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg,#1D4ED8,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  overflow: hidden; position: relative;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
}
.adm-photo-preview img { width:100%; height:100%; object-fit:cover; }
.adm-photo-info { flex: 1; min-width: 0; }
.adm-photo-label {
  font-size: 13px; font-weight: 700; color: #1E293B; margin-bottom: 4px;
}
.adm-photo-sub {
  font-size: 11px; color: #64748B; margin-bottom: 10px; line-height: 1.4;
}
.adm-photo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.adm-photo-btn:hover { opacity: .85; }
.adm-photo-remove {
  display: inline-flex; align-items: center; gap: 5px;
  background: #FEE2E2; color: #EF4444; border: none;
  border-radius: 8px; padding: 7px 12px; font-size: 11px;
  font-weight: 600; cursor: pointer; margin-left: 6px;
  transition: opacity .2s;
}
.adm-photo-remove:hover { opacity: .8; }

/* ══════════════════════════════════════════
   MODAL UPLOAD DOCUMENTS BADGE
══════════════════════════════════════════ */
.bdm-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}
.bdm-overlay.hidden { display: none; }
.bdm-sheet {
  width: min(480px, 100vw);
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: bdmSlideUp .32s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bdmSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.bdm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.bdm-title {
  font-size: 15px; font-weight: 800; color: #1E293B;
  display: flex; align-items: center; gap: 8px;
}
.bdm-title i { color: #2563EB; }
.bdm-close-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: #F1F5F9; color: #64748B; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.bdm-body {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.bdm-intro {
  font-size: 12.5px; color: #475569; line-height: 1.5; margin: 0;
}
.bdm-intro strong { color: #1E293B; }
.bdm-upload-zone {
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  background: #F8FAFC;
  transition: border-color .2s, background .2s;
}
.bdm-upload-zone:hover, .bdm-upload-zone:active {
  border-color: #2563EB; background: #EFF6FF;
}
.bdm-upload-ico { font-size: 28px; color: #2563EB; }
.bdm-upload-label { font-size: 13px; font-weight: 700; color: #1E293B; }
.bdm-upload-hint  { font-size: 11px; color: #94A3B8; }
.bdm-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.bdm-file-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
}
.bdm-preview-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.bdm-preview-pdf {
  width: 100%; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 10px; color: #EF4444; padding: 8px; word-break: break-all;
  text-align: center;
}
.bdm-preview-pdf i { font-size: 26px; }
.bdm-file-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff;
  border: none; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bdm-file-name {
  font-size: 9px; color: #64748B;
  padding: 2px 6px 5px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bdm-file-count {
  font-size: 11px; color: #2563EB; font-weight: 600; text-align: center;
}
.bdm-file-count.hidden { display: none; }
.bdm-textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; resize: none; min-height: 70px;
  font-family: inherit; color: #1E293B; outline: none;
}
.bdm-textarea:focus { border-color: #2563EB; }
.bdm-footer {
  display: flex; gap: 10px; padding: 12px 18px 20px;
  border-top: 1px solid #F1F5F9; flex-shrink: 0;
}
.bdm-cancel-btn {
  flex: 1; padding: 13px; border: 1.5px solid #E2E8F0;
  border-radius: 12px; background: #fff; color: #64748B;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.bdm-submit-btn {
  flex: 2; padding: 13px;
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  color: #fff; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s;
}
.bdm-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.bdm-submit-btn:hover:not(:disabled) { opacity: .88; }

/* ══════════════════════════════════════════
   VISIONNEUSE DOCUMENTS ADMIN
══════════════════════════════════════════ */
.adm-dv-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.adm-dv-overlay.hidden { display: none; }
.adm-dv-panel {
  width: min(640px, 95vw);
  max-height: 85vh;
  background: #fff;
  border-radius: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.adm-dv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg,#1E3A5F,#2563EB);
  flex-shrink: 0;
}
.adm-dv-title { font-size: 15px; font-weight: 800; color: #fff; }
.adm-dv-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none;
  color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.adm-dv-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.adm-dv-message {
  background: #F0F9FF; border-left: 3px solid #2563EB;
  padding: 10px 14px; border-radius: 0 10px 10px 0;
  font-size: 13px; color: #1E293B; line-height: 1.5;
}
.adm-dv-doc-item {
  border-radius: 14px; overflow: hidden;
  border: 1.5px solid #E2E8F0;
}
.adm-dv-doc-img {
  width: 100%; max-height: 360px; object-fit: contain;
  background: #F8FAFC; display: block;
}
.adm-dv-doc-pdf {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #FFF7F7;
}
.adm-dv-doc-pdf i { font-size: 36px; color: #EF4444; flex-shrink: 0; }
.adm-dv-doc-name { font-size: 13px; font-weight: 600; color: #1E293B; margin-bottom: 6px; }
.adm-dv-doc-download {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EF4444; color: #fff; border-radius: 8px;
  padding: 5px 12px; font-size: 11px; font-weight: 700;
  text-decoration: none;
}
.adm-dv-doc-caption {
  font-size: 10px; color: #94A3B8; padding: 4px 10px 8px;
  text-align: center;
}

/* ══════════════════════════════════════════
   COMMENTAIRES POSTS OFFICIELS
══════════════════════════════════════════ */
.off-cmt-section {
  border-top: 1px solid rgba(99,102,241,.12);
  margin-top: 10px;
  padding-top: 10px;
}
.off-cmt-section.hidden { display: none; }

.off-cmt-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 240px; overflow-y: auto;
  padding-bottom: 8px;
}
.off-cmt-empty {
  font-size: 12px; color: #94A3B8; text-align: center;
  padding: 10px 0; font-style: italic;
}
.off-cmt-item {
  display: flex; gap: 8px; align-items: flex-start;
}
.off-cmt-item-av {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
}
.off-cmt-item-body {
  background: #F8FAFC; border-radius: 0 10px 10px 10px;
  padding: 7px 10px; flex: 1; min-width: 0;
}
.off-cmt-item-nom  { font-size: 11px; font-weight: 700; color: #1E293B; }
.off-cmt-item-text { font-size: 12px; color: #374151; margin-top: 2px; line-height: 1.4; word-break: break-word; }
.off-cmt-item-time { font-size: 10px; color: #94A3B8; margin-top: 3px; }

.off-cmt-input-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
}
.off-cmt-av {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
}
.off-cmt-input {
  flex: 1; border: 1.5px solid #E2E8F0; border-radius: 20px;
  padding: 7px 14px; font-size: 12px; outline: none;
  font-family: inherit; color: #1E293B; background: #F8FAFC;
  transition: border-color .2s;
}
.off-cmt-input:focus { border-color: #6366F1; background: #fff; }
.off-cmt-send {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  color: #fff; font-size: 12px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.off-cmt-send:hover { opacity: .85; }

/* ══════════════════════════════════════════
   DASHBOARD ADMIN — MEMBRES PREMIUM
══════════════════════════════════════════ */
.adm-premium-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#F59E0B,#D97706);
  color: #fff; font-size: 11px; font-weight: 800;
  width: 22px; height: 22px; border-radius: 50%;
  margin-left: 6px; vertical-align: middle;
}
.adm-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.adm-premium-card {
  background: linear-gradient(135deg,#FFFBEB,#FEF3C7);
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(245,158,11,.12);
}
.adm-premium-av {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg,#F59E0B,#D97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  box-shadow: 0 3px 10px rgba(217,119,6,.3);
}
.adm-premium-info { flex: 1; min-width: 0; }
.adm-premium-nom {
  font-size: 13px; font-weight: 800; color: #1E293B;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-premium-crown {
  color: #D97706; font-size: 11px; margin-left: 4px;
}
.adm-premium-email {
  font-size: 10px; color: #92400E; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-premium-domain {
  display: inline-block; margin-top: 4px;
  background: rgba(245,158,11,.15); color: #D97706;
  font-size: 9px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px;
}
.adm-dv-empty {
  text-align: center; padding: 30px; color: #94A3B8; font-size: 13px;
}
.adm-dv-user-info {
  background: #F8FAFC; border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.adm-dv-user-email { font-size: 12px; color: #64748B; }
.adm-dv-user-nom   { font-size: 15px; font-weight: 800; color: #1E293B; }

/* ══════════════════════════════════════════
   BADGE PREMIUM — MISE EN AVANT FEED
══════════════════════════════════════════ */
/* Card collaboration dans le feed */
.post-card.post-card-collab {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}
.post-card.post-card-collab::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #6366F1, #8B5CF6, #A78BFA);
  z-index: -1;
  border-radius: 20px;
}

.post-card.post-card-premium {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.post-card.post-card-premium::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #F59E0B, #D97706, #FBBF24);
  z-index: -1;
  border-radius: 20px;
}
.post-premium-label {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg,#F59E0B,#D97706);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  margin-left: 6px; vertical-align: middle;
}
/* Admin badge card améliorée */
.adm-badge-docs-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EFF6FF; color: #2563EB; border: none;
  border-radius: 8px; padding: 6px 12px; font-size: 11px;
  font-weight: 700; cursor: pointer; transition: background .2s;
}
.adm-badge-docs-btn:hover { background: #DBEAFE; }
.adm-badge-profile-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F0FDF4; color: #059669; border: none;
  border-radius: 8px; padding: 6px 12px; font-size: 11px;
  font-weight: 700; cursor: pointer; transition: background .2s;
}
.adm-badge-profile-btn:hover { background: #DCFCE7; }
.adm-badge-msg {
  background: #F0F9FF; border-radius: 8px; padding: 8px 10px;
  font-size: 11px; color: #1E293B; line-height: 1.4;
  border-left: 3px solid #2563EB; margin: 6px 0;
}
.adm-badge-doc-count {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #64748B; margin: 4px 0 8px;
}
.adm-badge-doc-count i { color: #2563EB; }

/* Bouton retrait badge */
.adm-btn-revoke-badge {
  background: #FFF7ED !important;
  color: #EA580C !important;
  border: 1.5px solid #FED7AA !important;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px; cursor: pointer;
  transition: background .2s;
}
.adm-btn-revoke-badge:hover { background: #FFEDD5 !important; }

/* Tags badge dans la liste utilisateurs */
.adm-tag-gold {
  background: linear-gradient(135deg,#F59E0B,#D97706);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 3px;
}
.adm-tag-blue {
  background: linear-gradient(135deg,#2563EB,#7C3AED);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 3px;
}
.adm-tag-green {
  background: linear-gradient(135deg,#16A34A,#15803D);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 3px;
}
.adm-btn-certify {
  background: linear-gradient(135deg,#16A34A,#15803D) !important;
  color: #fff !important;
  border: none !important;
}

/* ── Restriction banner ── */
#restriction-banner { display: none; }
#restriction-banner.active { display: flex !important; }

/* ── Restriction appeal modal ── */
.restriction-appeal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  z-index: 2000; display: flex; align-items: flex-end;
  justify-content: center;
}
.restriction-appeal-sheet {
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 20px 32px; width: 100%; max-height: 80%;
  overflow-y: auto; box-sizing: border-box;
}
.adm-tag-restricted {
  background: linear-gradient(135deg,#EA580C,#C2410C);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 3px;
}
.adm-btn-lift {
  background: linear-gradient(135deg,#16A34A,#15803D) !important;
  color: #fff !important; border: none !important;
}
.restriction-card {
  background: #FFF7ED; border: 1.5px solid #FED7AA;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.restriction-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.restriction-card-title {
  font-size: 13px; font-weight: 800; color: #EA580C;
}
.restriction-card-reason {
  font-size: 12px; color: #374151; line-height: 1.5;
  margin-bottom: 8px;
}
.restriction-card-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}

/* ══════════════════════════════════════════
   PAGE ABONNEMENTS  (contenu dans le cadre téléphone)
══════════════════════════════════════════ */
.sub-screen {
  position: absolute;   /* relatif au phone-frame, pas au viewport */
  inset: 0;
  z-index: 700;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.sub-screen.hidden  { display: none; }
.sub-screen.open    { transform: translateX(0); }
.sub-screen.show    { display: flex; }

/* Topbar */
.sub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--gw-sat, env(safe-area-inset-top, 0px))) 16px 14px;
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.sub-back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #F1F5F9; border: none; color: #1E293B;
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sub-topbar-title {
  font-size: 16px; font-weight: 800; color: #1E293B;
}

/* Scroll */
.sub-scroll {
  flex: 1; overflow-y: auto;
  padding: 0 16px 40px;
}

/* Hero */
.sub-hero {
  text-align: center;
  padding: 28px 16px 20px;
}
.sub-hero-icon {
  width: 60px; height: 60px; border-radius: 20px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  box-shadow: 0 8px 24px rgba(245,158,11,.35);
}
.sub-hero-title {
  font-size: 22px; font-weight: 900; color: #1E293B; margin-bottom: 6px;
}
.sub-hero-sub {
  font-size: 13px; color: #64748B;
}

/* Toggle mensuel / annuel */
.sub-billing-toggle {
  display: flex;
  background: #E2E8F0;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin: 0 auto 20px;
  width: fit-content;
}
.sub-bill-btn {
  flex: 1;
  padding: 8px 20px;
  border: none;
  border-radius: 9px;
  font-size: 13px; font-weight: 700;
  color: #64748B;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.sub-bill-btn.active {
  background: #fff;
  color: #1E293B;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.sub-save-badge {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 20px;
}

/* Plan cards */
.sub-plan-card {
  border-radius: 20px;
  padding: 0 0 20px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  position: relative;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  transition: transform .2s, box-shadow .2s;
}
.sub-plan-card:active { transform: scale(.98); }

/* Gratuit */
.sub-plan-free { border-color: #CBD5E1; }

/* Premium */
.sub-plan-premium {
  border: 2px solid #7C3AED;
  box-shadow: 0 8px 32px rgba(124,58,237,.18);
}
.sub-plan-popular {
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: .3px;
}

/* Business */
.sub-plan-business {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
  border-color: #334155;
}
.sub-plan-business .sub-plan-name   { color: #F1F5F9; }
.sub-plan-business .sub-plan-price  { color: #fff; }
.sub-plan-business .sub-plan-period { color: #94A3B8; }
.sub-plan-business .sub-feat        { color: #CBD5E1; }
.sub-plan-business .sub-feat-ok i   { color: #34D399; }
.sub-plan-business .sub-plan-annual-note { color: #94A3B8; }

/* Header de chaque card */
.sub-plan-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px 14px;
}
.sub-plan-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.sub-icon-free     { background: linear-gradient(135deg, #64748B, #475569); }
.sub-icon-premium  { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.sub-icon-business { background: linear-gradient(135deg, #3B82F6, #2563EB); box-shadow: 0 4px 12px rgba(37,99,235,.3); }

.sub-plan-name {
  font-size: 17px; font-weight: 900; color: #1E293B;
}
.sub-plan-price-row {
  display: flex; align-items: baseline; gap: 3px; margin-top: 2px;
}
.sub-plan-price {
  font-size: 26px; font-weight: 900; color: #1E293B;
  line-height: 1;
}
.sub-plan-period {
  font-size: 13px; color: #64748B; font-weight: 600;
}
.sub-plan-annual-note {
  font-size: 10px; color: #7C3AED; font-weight: 700; margin-top: 2px;
}
.sub-plan-badge-current {
  margin-left: auto;
  background: #F0FDF4; color: #16A34A;
  font-size: 10px; font-weight: 800;
  padding: 4px 10px; border-radius: 20px;
  border: 1.5px solid #BBF7D0;
  white-space: nowrap;
}
.sub-plan-badge-current.hidden { display: none; }

/* Features */
.sub-features {
  list-style: none; padding: 0 18px; margin: 0 0 4px;
  display: flex; flex-direction: column; gap: 9px;
}
.sub-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #374151;
}
.sub-feat i {
  width: 16px; flex-shrink: 0; text-align: center;
}
.sub-feat-ok i { color: #22C55E; }
.sub-feat-no   { opacity: .5; }
.sub-feat-no i { color: #EF4444; }

/* CTA buttons */
.sub-cta-btn {
  display: block;
  width: calc(100% - 36px);
  margin: 16px 18px 0;
  padding: 14px;
  border: none; border-radius: 14px;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sub-cta-btn:active { transform: scale(.97); }
.sub-cta-btn:disabled {
  opacity: .5; cursor: not-allowed;
}

.sub-cta-free {
  background: #F1F5F9; color: #64748B;
  cursor: default;
}
.sub-cta-premium {
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.sub-cta-premium:hover { opacity: .88; }
.sub-cta-business {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.sub-cta-business:hover { opacity: .88; }
.sub-cta-current {
  background: #F0FDF4; color: #16A34A;
  border: 2px solid #BBF7D0;
}

/* Garantie */
.sub-guarantee {
  text-align: center;
  font-size: 11px; color: #94A3B8;
  padding: 16px 0 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sub-guarantee i { color: #22C55E; }

/* Chip sidebar */
.sdb-plan-chip {
  font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 20px;
  margin-left: auto; white-space: nowrap;
}
.sdb-plan-chip.chip-free     { background: #F1F5F9; color: #64748B; }
.sdb-plan-chip.chip-premium  { background: linear-gradient(135deg,#F59E0B,#D97706); color: #fff; }
.sdb-plan-chip.chip-business { background: linear-gradient(135deg,#3B82F6,#1D4ED8); color: #fff; }

/* Modal paiement — dans le cadre téléphone */
.sub-pay-overlay {
  position: absolute; inset: 0; z-index: 4500;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
}
.sub-pay-overlay.hidden { display: none; }
.sub-pay-sheet {
  width: min(480px, 100vw);
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 36px;
  animation: bdmSlideUp .32s cubic-bezier(.34,1.56,.64,1);
}
.sub-pay-title {
  font-size: 18px; font-weight: 900; color: #1E293B;
  margin-bottom: 6px;
}
.sub-pay-sub {
  font-size: 13px; color: #64748B; margin-bottom: 20px;
}
.sub-pay-amount {
  background: #F8FAFC; border-radius: 14px; padding: 16px;
  text-align: center; margin-bottom: 20px;
}
.sub-pay-amount-val {
  font-size: 32px; font-weight: 900; color: #1E293B;
}
.sub-pay-amount-lbl {
  font-size: 12px; color: #64748B; margin-top: 2px;
}
.sub-pay-notice {
  font-size: 11px; color: #94A3B8; text-align: center;
  margin-top: 14px; line-height: 1.5;
}
.sub-pay-cta {
  width: 100%; padding: 15px; border: none; border-radius: 14px;
  background: linear-gradient(135deg,#7C3AED,#2563EB);
  color: #fff; font-size: 16px; font-weight: 800;
  cursor: pointer; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sub-pay-cta.business-cta {
  background: linear-gradient(135deg,#3B82F6,#1D4ED8);
}
.sub-pay-cancel {
  width: 100%; padding: 12px; border: none; border-radius: 14px;
  background: #F1F5F9; color: #64748B; font-size: 14px;
  font-weight: 700; cursor: pointer; margin-top: 8px;
}
#sub-paypal-wrap { margin-bottom: 4px; min-height: 52px; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ══════════════════════════════════════════
   TABLEAU DE BORD UTILISATEUR
   (contenu dans le cadre téléphone — position:absolute)
══════════════════════════════════════════ */

.dash-screen {
  position: absolute;
  inset: 0;
  z-index: 710;
  background: #F1F5F9;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.dash-screen.hidden { display: none; }
.dash-screen.open   { transform: translateX(0); }
.dash-screen.show   { display: flex; }

/* ── Topbar ── */
.dash-topbar {
  flex-shrink: 0;
  height: calc(54px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  background: #fff;
  display: flex;
  align-items: center;
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 14px 0;
  gap: 12px;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.dash-back-btn {
  width: 36px; height: 36px;
  border: none; background: #F1F5F9;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #374151; font-size: 15px;
  flex-shrink: 0;
}
.dash-title {
  flex: 1;
  font-size: 16px; font-weight: 800; color: #1E293B;
  margin: 0;
}
.dash-plan-chip {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  flex-shrink: 0;
}
.dash-plan-chip.free     { background:#F1F5F9; color:#64748B; }
.dash-plan-chip.premium  { background:linear-gradient(135deg,#7C3AED,#A855F7); color:#fff; }
.dash-plan-chip.business { background:linear-gradient(135deg,#1D4ED8,#3B82F6); color:#fff; }

/* ── Zone de défilement ── */
.dash-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 40px;   /* horizontal padding removed — elements control their own 16px margins */
  -webkit-overflow-scrolling: touch;
}

/* ── Hero utilisateur ── */
.dash-hero {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px;
  padding: 14px 16px; margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.dash-hero-info { flex: 1; }
.dash-hero-nom  { font-size: 15px; font-weight: 800; color: #1E293B; }
.dash-hero-since { font-size: 12px; color: #94A3B8; margin-top: 2px; }

/* ── Labels de section ── */
.dash-section-label {
  font-size: 11px; font-weight: 700; color: #94A3B8;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 16px 0 0;
  padding: 0 16px 8px;
  display: block;
}

/* ── Carte générique ── */
.dash-card {
  background: #fff; border-radius: 16px;
  padding: 14px 16px; margin: 0 16px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.dash-card-label {
  font-size: 11px; font-weight: 700; color: #94A3B8;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 10px;
}

/* ── Complétion du profil ── */
.dash-completion-card { }
.dash-completion-bar {
  height: 8px; background: #E2E8F0; border-radius: 99px; overflow: hidden;
}
.dash-completion-fill {
  height: 100%; background: linear-gradient(90deg,#6366F1,#8B5CF6);
  border-radius: 99px; transition: width .6s ease;
}
.dash-completion-pct {
  font-size: 13px; font-weight: 700; color: #6366F1;
  margin-top: 6px;
}
.dash-completion-cta {
  border: none; background: none; color: #6366F1;
  font-size: 12px; font-weight: 700; cursor: pointer;
  padding: 4px 0 0; display: block;
}

/* ── Grille de stats ── */
.dash-stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-bottom: 10px;
}
.dash-stat-card {
  background: #fff; border-radius: 14px;
  padding: 12px 8px; text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,.07);
}
.dash-stat-icon { font-size: 18px; margin-bottom: 4px; }
.dash-stat-val  { font-size: 18px; font-weight: 900; color: #1E293B; line-height: 1; }
.dash-stat-label { font-size: 10px; color: #94A3B8; margin-top: 3px; font-weight: 600; }

/* ── Sections verrouillées (plan gratuit) ── */
.dash-locked-section {
  background: #fff; border-radius: 16px;
  margin-bottom: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  opacity: 0.7;
}
.dash-locked-header {
  font-size: 12px; font-weight: 700; color: #94A3B8;
  padding: 12px 16px 8px;
  display: flex; align-items: center; gap: 6px;
}
.dash-locked-header i { font-size: 13px; color: #CBD5E1; }
.dash-locked-preview {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: #F1F5F9; border-top: 1px solid #F1F5F9;
}
.dash-locked-stat {
  background: #fff; padding: 10px 8px; text-align: center;
}
.dash-locked-val  { font-size: 16px; font-weight: 800; color: #CBD5E1; }
.dash-locked-lbl  { font-size: 9px; color: #CBD5E1; margin-top: 2px; font-weight: 600; }
.dash-locked-desc { font-size: 12px; color: #CBD5E1; margin: 0; text-align: center; }
.dash-locked-bars {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 8px 16px 14px; height: 70px; box-sizing: content-box;
}

/* ── Graphe en barres (engagement) ── */
.dash-engage-row {
  display: flex; align-items: center; gap: 14px;
}
.dash-engage-pct {
  font-size: 28px; font-weight: 900; color: #1E293B;
  flex-shrink: 0; line-height: 1;
}
.dash-engage-bars {
  flex: 1; display: flex; align-items: flex-end; gap: 4px; height: 60px;
}
.dash-bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 3px;
}
.dash-bar-fill {
  width: 100%; border-radius: 4px 4px 0 0; min-height: 4px;
}
.dash-bar-fill.premium  { background: linear-gradient(180deg,#A855F7,#7C3AED); }
.dash-bar-fill.business { background: linear-gradient(180deg,#3B82F6,#1D4ED8); }
.dash-bar-fill.locked-fill { background: #E2E8F0; }
.dash-bar-day { font-size: 9px; color: #94A3B8; font-weight: 600; }

/* ── Badge dans le tableau de bord ── */
.dash-badge-card { }
.dash-badge-row  { display: flex; align-items: center; gap: 12px; }
.dash-badge-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.dash-badge-icon.premium  { background:linear-gradient(135deg,#7C3AED,#A855F7); color:#fff; }
.dash-badge-icon.verified { background:linear-gradient(135deg,#2563EB,#3B82F6); color:#fff; }
.dash-badge-icon.pending  { background:#F1F5F9; color:#94A3B8; }
.dash-badge-name   { font-size: 14px; font-weight: 700; color: #1E293B; }
.dash-badge-status { font-size: 11px; font-weight: 600; margin-top: 2px; }
.dash-badge-status.ok      { color: #10B981; }
.dash-badge-status.pending { color: #F59E0B; }

/* ── Bannière d'upgrade ── */
.dash-upgrade-banner {
  background: linear-gradient(135deg,#6D28D9,#7C3AED,#8B5CF6);
  border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px; margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(109,40,217,.35);
}
.dash-upgrade-banner.business {
  background: linear-gradient(135deg,#1E3A8A,#1D4ED8,#2563EB);
  box-shadow: 0 4px 16px rgba(29,78,216,.35);
}
.dash-upgrade-icon { font-size: 26px; }
.dash-upgrade-text { }
.dash-upgrade-title { font-size: 17px; font-weight: 900; color: #fff; }
.dash-upgrade-sub   { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 3px; line-height: 1.4; }
.dash-upgrade-btn {
  border: none; background: rgba(255,255,255,.2);
  color: #fff; font-size: 13px; font-weight: 800;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  align-self: flex-start; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
}
.dash-upgrade-btn:hover { background: rgba(255,255,255,.3); }

/* ── Pied de page ── */
.dash-footer {
  text-align: center; font-size: 10px; color: #CBD5E1;
  margin-top: 12px; padding: 0 16px 8px;
}

/* ══════════════════════════════════════════
   ADMIN — TOGGLES ON/OFF PLANS
══════════════════════════════════════════ */
.adm-plan-toggles {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 4px;
}
.adm-plan-toggle-card {
  flex: 1; min-width: 220px;
  background: #fff; border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
}
.adm-plan-toggle-card.adm-plan-toggle-on  { border-color: #22C55E; }
.adm-plan-toggle-card.adm-plan-toggle-off { border-color: #E2E8F0; opacity: 0.7; }

.adm-plan-toggle-left { display: flex; align-items: center; gap: 12px; }
.adm-plan-toggle-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #F1F5F9;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #475569;
}
.adm-plan-toggle-card.adm-plan-toggle-on .adm-plan-toggle-icon { background: #ECFDF5; color: #059669; }

.adm-plan-toggle-name  { font-size: 14px; font-weight: 700; color: #1E293B; }
.adm-plan-toggle-state {
  font-size: 11px; font-weight: 700;
  margin-top: 2px;
}
.adm-plan-toggle-card.adm-plan-toggle-on  .adm-plan-toggle-state { color: #22C55E; }
.adm-plan-toggle-card.adm-plan-toggle-off .adm-plan-toggle-state { color: #94A3B8; }

/* Toggle switch button */
.adm-toggle-btn {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 13px; border: none;
  cursor: pointer; flex-shrink: 0;
  transition: background .25s;
  padding: 0;
}
.adm-toggle-btn.on  { background: #22C55E; }
.adm-toggle-btn.off { background: #CBD5E1; }
.adm-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: left .25s;
}
.adm-toggle-btn.on  .adm-toggle-knob { left: calc(100% - 23px); }
.adm-toggle-btn.off .adm-toggle-knob { left: 3px; }

/* ══════════════════════════════════════════
   ADMIN — TABLEAU DE BORD : Revenus & Distribution
══════════════════════════════════════════ */
.adm-revenue-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.adm-rev-card {
  flex: 1; min-width: 140px;
  background: #fff; border-radius: 14px;
  padding: 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,.07);
}
.adm-rev-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.adm-rev-val { font-size: 18px; font-weight: 900; color: #1E293B; line-height: 1; }
.adm-rev-lbl { font-size: 11px; color: #94A3B8; margin-top: 3px; font-weight: 600; }

/* Barre répartition des plans */
.adm-plan-distrib {
  background: #fff; border-radius: 14px;
  padding: 16px; box-shadow: 0 1px 5px rgba(0,0,0,.07);
}
.adm-distrib-bar {
  display: flex; height: 14px; border-radius: 99px;
  overflow: hidden; background: #F1F5F9; margin-bottom: 10px;
}
.adm-distrib-seg { height: 100%; transition: width .5s; min-width: 0; }
.adm-distrib-seg.free     { background: #94A3B8; }
.adm-distrib-seg.premium  { background: #F59E0B; }
.adm-distrib-seg.business { background: #6366F1; }
.adm-distrib-legend {
  font-size: 12px; color: #64748B;
  display: flex; align-items: center; gap: 0; flex-wrap: wrap; gap: 4px;
}
.adm-distrib-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%; margin-right: 4px;
}
.adm-distrib-dot.free     { background: #94A3B8; }
.adm-distrib-dot.premium  { background: #F59E0B; }
.adm-distrib-dot.business { background: #6366F1; }

/* Plan badge inline */
.adm-plan-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; margin-top: 4px;
}

/* ══════════════════════════════════════════
   ADMIN — ONGLET PAIEMENTS
══════════════════════════════════════════ */
.adm-pay-overview {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 4px;
}
@media (max-width: 1100px) { .adm-pay-overview { grid-template-columns: repeat(2, 1fr); } }

.adm-pay-card {
  background: #fff; border-radius: 16px;
  padding: 16px; text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  border-top: 3px solid transparent;
}
.adm-pay-card.total    { border-color: #10B981; }
.adm-pay-card.month    { border-color: #3B82F6; }
.adm-pay-card.premium  { border-color: #F59E0B; }
.adm-pay-card.business { border-color: #6366F1; }

.adm-pay-card-icon { font-size: 20px; margin-bottom: 6px; }
.adm-pay-card.total    .adm-pay-card-icon { color: #10B981; }
.adm-pay-card.month    .adm-pay-card-icon { color: #3B82F6; }
.adm-pay-card.premium  .adm-pay-card-icon { color: #F59E0B; }
.adm-pay-card.business .adm-pay-card-icon { color: #6366F1; }

.adm-pay-card-val {
  font-size: 22px; font-weight: 900; color: #1E293B; line-height: 1;
}
.adm-pay-card-lbl {
  font-size: 11px; color: #94A3B8; margin-top: 4px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.adm-pay-cnt {
  background: #EEF2FF; color: #4F46E5;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}

/* Tableau des transactions */
.adm-pay-table-wrap {
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  overflow: hidden; overflow-x: auto;
}
.adm-pay-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.adm-pay-table thead { background: #F8FAFC; }
.adm-pay-table th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; color: #94A3B8;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid #E2E8F0;
}
.adm-pay-table td {
  padding: 10px 14px; border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.adm-pay-table tr:last-child td { border-bottom: none; }
.adm-pay-table tr:hover td { background: #F8FAFC; }

.adm-pay-user { display: flex; align-items: center; gap: 8px; }
.adm-pay-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.adm-pay-nom   { font-weight: 700; color: #1E293B; font-size: 13px; }
.adm-pay-email { font-size: 11px; color: #94A3B8; }
.adm-pay-date  { font-size: 11px; color: #94A3B8; white-space: nowrap; }

.adm-pay-plan {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.adm-pay-plan.premium  { background: #FEF3C7; color: #D97706; }
.adm-pay-plan.business { background: #EEF2FF; color: #4F46E5; }

.adm-pay-status-ok   { color: #22C55E; font-weight: 700; font-size: 12px; }
.adm-pay-status-pend { color: #F59E0B; font-weight: 700; font-size: 12px; }

/* ══════════════════════════════════════════
   ABONNEMENTS — plan désactivé (côté user)
══════════════════════════════════════════ */
.sub-plan-disabled {
  opacity: 0.55;
  filter: grayscale(60%);
  pointer-events: auto;
  position: relative;
}
.sub-unavail-banner {
  background: #FEE2E2; color: #DC2626;
  font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
  text-align: center; justify-content: center;
}

/* ══════════════════════════════════════════
   MODAL LIMITE DE PLAN
══════════════════════════════════════════ */
.plm-overlay {
  position: absolute; inset: 0; z-index: 9000;
  background: rgba(15,23,42,.65);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
  animation: plmFadeIn .2s ease;
}
@keyframes plmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.plm-sheet {
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 22px 36px;
  text-align: center;
  animation: plmSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes plmSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.plm-icon-wrap {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg,#FEF3C7,#FDE68A);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.plm-lock-icon { font-size: 24px; color: #D97706; }
.plm-title {
  font-size: 18px; font-weight: 900; color: #1E293B;
  margin-bottom: 8px;
}
.plm-desc {
  font-size: 13px; color: #64748B; line-height: 1.55;
  margin-bottom: 14px;
}
.plm-current-plan {
  font-size: 12px; color: #94A3B8; margin-bottom: 20px;
}
.plm-upgrade-btn {
  width: 100%; padding: 15px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg,#7C3AED,#2563EB);
  color: #fff; font-size: 15px; font-weight: 800;
  cursor: pointer; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.plm-close-btn {
  width: 100%; padding: 12px;
  border: none; border-radius: 14px;
  background: #F1F5F9; color: #64748B;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
/* ── Cartes d'options dans le modal limite de plan ── */
.plm-option-card {
  border-radius: 14px; padding: 16px; margin-bottom: 12px; text-align: left;
}
.plm-option-upgrade {
  background: linear-gradient(135deg,#F5F3FF,#EEF2FF);
  border: 1.5px solid #C4B5FD;
}
.plm-option-wait {
  background: #F0F9FF;
  border: 1.5px solid #BAE6FD;
}
.plm-option-header {
  font-size: 13px; font-weight: 800; color: #1E293B;
  margin-bottom: 6px; display: flex; align-items: center;
}
.plm-option-sub {
  font-size: 12px; color: #64748B; margin: 0 0 10px; line-height: 1.5;
}
.plm-benefits {
  list-style: none; padding: 0; margin: 0 0 12px; font-size: 12px; color: #374151;
}
.plm-benefits li { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.plm-benefits li i { color: #7C3AED; font-size: 11px; flex-shrink: 0; }
.plm-sheet { max-height: 88vh; overflow-y: auto; }

/* ══════════════════════════════════════════
   BANNIÈRE D'USAGE DU PLAN (profil utilisateur)
══════════════════════════════════════════ */
.ppu-card {
  border-radius: 16px; border: 1.5px solid;
  padding: 14px 16px;
  background: #F1F5F9;
}
.ppu-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.ppu-plan-chip {
  font-size: 13px; font-weight: 800;
}
.ppu-upgrade-btn {
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg,#7C3AED,#2563EB);
  color: #fff;
}
.ppu-max-badge {
  font-size: 11px; font-weight: 700; color: #4F46E5;
  background: #EEF2FF; padding: 4px 10px; border-radius: 20px;
}
.ppu-rows { display: flex; flex-direction: column; gap: 8px; }
.ppu-row  { display: flex; align-items: center; gap: 8px; }
.ppu-row-label {
  font-size: 12px; color: #475569; font-weight: 600;
  width: 130px; flex-shrink: 0;
}
.ppu-row-right {
  flex: 1; display: flex; align-items: center; gap: 8px;
}
.ppu-bar-wrap {
  flex: 1; height: 6px; background: rgba(0,0,0,.1);
  border-radius: 99px; overflow: hidden;
}
.ppu-bar-fill {
  height: 100%; border-radius: 99px; transition: width .5s;
}
.ppu-count {
  font-size: 11px; font-weight: 700; color: #64748B;
  min-width: 40px; text-align: right; flex-shrink: 0;
}
.ppu-count.warn { color: #EF4444; }

/* ══════════════════════════════════════════
   BANDEAU RENOUVELLEMENT / ANNULATION (sub-screen)
══════════════════════════════════════════ */
.sub-renewal-band {
  margin: 0 16px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sub-renewal-band.cancelled {
  background: #FFF7ED;
  border-color: #FED7AA;
}
.sub-ren-icon {
  font-size: 18px; margin-top: 2px; flex-shrink: 0;
}
.sub-renewal-band:not(.cancelled) .sub-ren-icon { color: #2563EB; }
.sub-renewal-band.cancelled       .sub-ren-icon { color: #D97706; }

.sub-ren-text {
  flex: 1; font-size: 12px; color: #374151; line-height: 1.5;
}
.sub-ren-days {
  font-size: 11px; color: #6B7280; display: block; margin-top: 2px;
}
.sub-ren-resume-btn {
  flex-shrink: 0;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg,#D97706,#F59E0B);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 6px 12px; cursor: pointer; align-self: center;
  white-space: nowrap;
}

/* Lien résiliation sous la carte du plan payant actif */
.sub-cancel-link {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}
.sub-cancel-link-btn {
  border: none; background: none;
  color: #EF4444; font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: underline;
  padding: 0;
}
.sub-cancel-link-btn.resume {
  color: #D97706;
}

/* Comptdown annulation dans le modal */
.sub-cancel-countdown {
  background: #FFF7ED; border: 1px solid #FED7AA;
  border-radius: 10px; padding: 10px 14px;
  font-size: 12px; color: #92400E;
  margin-bottom: 16px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ═══════════════════════════════════════════
   ADMIN — ANALYTICS TAB
═══════════════════════════════════════════ */
.adm-analytics-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 140px; padding: 0 4px; margin-top: 8px;
}
.adm-chart-bar-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.adm-chart-bar-val {
  font-size: 9px; font-weight: 700; color: #6B7280;
  min-height: 14px; text-align: center;
}
.adm-chart-bar-outer {
  width: 100%; flex: 1; display: flex; align-items: flex-end;
  background: #F3F4F6; border-radius: 6px; overflow: hidden;
}
.adm-chart-bar-inner {
  width: 100%; background: linear-gradient(180deg,#818CF8,#6366F1);
  border-radius: 6px 6px 0 0; transition: height .3s;
  min-height: 4px;
}
.adm-chart-bar-inner.current {
  background: linear-gradient(180deg,#34D399,#10B981);
}
.adm-chart-bar-lbl {
  font-size: 9px; color: #9CA3AF; text-align: center;
  white-space: nowrap;
}
.adm-analytics-plans {
  display: flex; flex-direction: column; gap: 10px; margin-top: 8px;
}
.adm-analytics-plan-row {
  display: flex; align-items: center; gap: 10px;
}
.adm-analytics-plan-info {
  display: flex; align-items: center; gap: 6px; min-width: 130px;
}
.adm-analytics-plan-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.adm-analytics-plan-lbl {
  font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap;
}
.adm-analytics-plan-cnt {
  font-size: 11px; color: #9CA3AF;
}
.adm-analytics-plan-bar-wrap {
  flex: 1; background: #F3F4F6; border-radius: 20px; height: 8px; overflow: hidden;
}
.adm-analytics-plan-bar {
  height: 100%; border-radius: 20px; transition: width .4s;
  min-width: 4px;
}
.adm-analytics-plan-pct {
  font-size: 11px; font-weight: 700; color: #374151; min-width: 32px; text-align: right;
}
.adm-analytics-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px;
}
.adm-analytics-metric {
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px;
  padding: 14px 12px; text-align: center;
}
.adm-analytics-metric-val {
  font-size: 22px; font-weight: 800; line-height: 1;
}
.adm-analytics-metric-lbl {
  font-size: 11px; color: #6B7280; margin-top: 4px; line-height: 1.4;
}
.adm-analytics-user-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
}
.adm-analytics-user-row {
  display: flex; align-items: center; gap: 10px;
  background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 10px; padding: 10px 12px;
}

/* ── Analytics — Répartition géographique ── */
.adm-country-podium {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px;
}
.adm-country-podium-card {
  background: #F8FAFC; border: 1.5px solid #E2E8F0; border-radius: 12px;
  padding: 12px 8px; text-align: center;
}
.adm-country-podium-rank { font-size: 20px; line-height: 1; }
.adm-country-podium-flag { font-size: 24px; margin: 4px 0; }
.adm-country-podium-name { font-size: 11px; font-weight: 700; color: #0F172A; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-country-podium-cnt { font-size: 10px; color: #6B7280; }
.adm-country-podium-pct { font-size: 14px; font-weight: 800; color: #3B82F6; margin-top: 4px; }
.adm-country-list { display: flex; flex-direction: column; gap: 7px; }
.adm-country-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px;
}
.adm-country-rank { font-size: 10px; font-weight: 700; color: #9CA3AF; min-width: 16px; text-align: center; }
.adm-country-flag-name { display: flex; align-items: center; gap: 6px; min-width: 110px; }
.adm-country-name { font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-country-bar-wrap { flex: 1; background: #F3F4F6; border-radius: 20px; height: 7px; overflow: hidden; }
.adm-country-bar { height: 100%; border-radius: 20px; transition: width .5s ease; min-width: 4px; }
.adm-country-stats { display: flex; flex-direction: column; align-items: flex-end; min-width: 46px; }
.adm-country-cnt { font-size: 11px; font-weight: 700; color: #1E293B; }
.adm-country-pct { font-size: 10px; color: #9CA3AF; }
.adm-country-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 10px;
  margin-top: 10px; font-size: 11px; color: #0369A1; flex-wrap: wrap;
}
@keyframes adm-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}

/* ═══════════════════════════════════════════
   ADMIN — MARKETPLACE TAB
═══════════════════════════════════════════ */
.adm-mkt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 12px; margin-top: 8px;
}
.adm-mkt-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.adm-mkt-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.adm-mkt-img {
  width: 100%; height: 110px; overflow: hidden; background: #F3F4F6;
}
.adm-mkt-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.adm-mkt-body {
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.adm-mkt-title {
  font-size: 13px; font-weight: 700; color: #0F172A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-mkt-desc {
  font-size: 11px; color: #6B7280; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.adm-mkt-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.adm-mkt-cat {
  font-size: 10px; background: #EEF2FF; color: #4F46E5;
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.adm-mkt-price {
  font-size: 12px; color: #16A34A;
}
.adm-mkt-footer {
  margin-top: auto; padding-top: 6px;
  border-top: 1px solid #F3F4F6;
  display: flex; align-items: center; justify-content: space-between;
}

/* ═══════════════════════════════════════════
   ADMIN — NOTIFICATIONS TAB
═══════════════════════════════════════════ */
.adm-notif-type-row {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}

/* ═══════════════════════════════════════════
   ADMIN — SETTINGS TAB
═══════════════════════════════════════════ */
.adm-settings-section {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 14px;
  margin-top: 8px;
}
.adm-settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #F3F4F6;
}
.adm-settings-toggle-row:last-child { border-bottom: none; }
.adm-settings-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid #F3F4F6;
}
.adm-settings-info-row:last-child { border-bottom: none; }
.adm-settings-danger {
  border-color: #FCA5A5; background: #FFF5F5;
}
.adm-settings-danger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* ═══════════════════════════════════════════
   SYSTÈME DE BAN — MODAL ADMIN
═══════════════════════════════════════════ */
.adm-ban-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.adm-ban-modal-card {
  background: #fff; border-radius: 20px 20px 0 0;
  width: 100%; max-width: 460px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
  max-height: 90vh; overflow-y: auto;
}
.adm-ban-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 18px 12px; border-bottom: 1px solid #F3F4F6;
}
.adm-ban-modal-body { padding: 16px 18px 24px; }
.adm-ban-field { margin-bottom: 14px; }
.adm-ban-field label {
  display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px;
}
.adm-ban-type-row { display: flex; gap: 8px; }
.adm-ban-type-btn {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 2px solid #E5E7EB;
  background: #F9FAFB; color: #6B7280; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.adm-ban-type-btn.active {
  border-color: #EF4444; background: #FEF2F2; color: #DC2626;
}
.adm-ban-select, .adm-ban-input {
  width: 100%; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 9px 12px; font-size: 13px; color: #374151; background: #fff;
  box-sizing: border-box;
}
.adm-ban-textarea {
  width: 100%; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 9px 12px; font-size: 13px; color: #374151;
  min-height: 70px; resize: vertical; box-sizing: border-box;
}
.adm-ban-confirm-btn {
  flex: 1; padding: 12px 0; background: linear-gradient(135deg,#EF4444,#DC2626);
  color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.adm-ban-cancel-btn {
  padding: 12px 18px; background: #F1F5F9; color: #64748B;
  border: none; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ═══════════════════════════════════════════
   ÉCRAN BAN — INTÉGRÉ DANS LE FORMULAIRE LOGIN
   Remplace le formulaire, pas une popup
═══════════════════════════════════════════ */
.ban-screen-full {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 20px 32px; overflow-y: auto;
  height: 100%; box-sizing: border-box;
  background: #fff;
}
.ban-screen-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding-top: 8px;
}
.ban-screen-badge {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg,#EF4444,#991B1B);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff;
  box-shadow: 0 8px 24px rgba(239,68,68,.35);
}
.ban-screen-status {
  font-size: 15px; font-weight: 800; padding: 6px 16px;
  border-radius: 20px; text-align: center;
}
.ban-screen-status.perm {
  background: #FEE2E2; color: #991B1B;
}
.ban-screen-status.temp {
  background: #FFF7ED; color: #92400E;
}
.ban-screen-user {
  font-size: 13px; color: #9CA3AF; font-weight: 500;
}
.ban-screen-info-block {
  background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 14px; overflow: hidden;
}
.ban-screen-info-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; border-bottom: 1px solid #F1F5F9;
}
.ban-screen-info-row:last-child { border-bottom: none; }
.ban-info-label {
  font-size: 10px; font-weight: 700; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
}
.ban-info-value {
  font-size: 13px; color: #0F172A; font-weight: 600;
}
.ban-info-msg .ban-info-value {
  font-weight: 400; color: #374151;
}
.ban-screen-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px;
  padding: 12px 14px;
}
.ban-screen-notice i {
  color: #D97706; margin-top: 1px; flex-shrink: 0; font-size: 14px;
}
.ban-screen-notice span {
  font-size: 12px; color: #92400E; line-height: 1.5;
}
.ban-screen-appeal-block {
  background: #FAF5FF; border: 1px solid #DDD6FE;
  border-radius: 14px; padding: 16px 14px;
}
.ban-screen-appeal-title {
  font-size: 14px; font-weight: 800; color: #7C3AED; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.ban-screen-appeal-desc {
  font-size: 12px; color: #6B7280; margin: 0 0 10px; line-height: 1.5;
}
.ban-screen-textarea {
  width: 100%; border: 1px solid #DDD6FE; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: #374151;
  resize: vertical; box-sizing: border-box; margin-bottom: 10px;
  background: #fff; min-height: 70px;
}
.ban-screen-submit-btn {
  width: 100%; padding: 12px; background: linear-gradient(135deg,#7C3AED,#6D28D9);
  color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ban-screen-appeal-sent {
  background: #F0FDF4; border: 1px solid #A7F3D0; border-radius: 12px;
  padding: 14px; font-size: 13px; color: #065F46; font-weight: 600;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.ban-screen-other-btn {
  background: none; border: 1px solid #E2E8F0; border-radius: 12px;
  padding: 11px; color: #9CA3AF; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   OVERLAY BAN SUR PROFIL UTILISATEUR (UPV)
═══════════════════════════════════════════ */
.upv-ban-overlay {
  position: absolute; inset: 0; z-index: 300;
  background: rgba(15,23,42,.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.upv-ban-content {
  background: #fff; border-radius: 20px; padding: 28px 22px;
  width: 100%; max-width: 320px; text-align: center;
}

/* ═══════════════════════════════════════════
   POST D'UN COMPTE BANNI
═══════════════════════════════════════════ */
.post-card-banned {
  border: 1px solid #FCA5A5 !important;
  background: #FFF5F5 !important;
}
.post-banned-placeholder {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
}
.post-banned-placeholder i {
  font-size: 22px; color: #FCA5A5; flex-shrink: 0;
}
.post-banned-placeholder span {
  font-size: 13px; color: #9CA3AF; line-height: 1.5;
}
.post-banned-placeholder small {
  font-size: 11px; color: #D1D5DB;
}

/* ═══════════════════════════════════════════
   ADMIN — CARTES RECOURS
═══════════════════════════════════════════ */
.adm-appeal-card {
  background: #fff; border: 1px solid #EDE9FE; border-left: 4px solid #7C3AED;
  border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.adm-appeal-head {
  display: flex; align-items: center; justify-content: space-between;
}
.adm-appeal-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,#7C3AED,#6D28D9);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.adm-appeal-nom {
  font-size: 13px; font-weight: 700; color: #0F172A;
}
.adm-appeal-email {
  font-size: 11px; color: #9CA3AF;
}
.adm-appeal-date {
  font-size: 10px; color: #9CA3AF; text-align: right; white-space: nowrap;
}
.adm-appeal-ban-reason {
  font-size: 12px; color: #92400E; background: #FFF7ED;
  border-radius: 8px; padding: 7px 10px;
}
.adm-appeal-msg {
  font-size: 13px; color: #374151; background: #F8FAFC;
  border-radius: 10px; padding: 10px 12px; line-height: 1.5;
  border-left: 3px solid #7C3AED;
}
.adm-appeal-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   CHAT — NOTICE COMPTE BANNI
═══════════════════════════════════════════ */
.chat-loading-msgs {
  display: flex; align-items: center; justify-content: center;
  height: 120px; color: #94A3B8; font-size: 22px;
}

.chat-banned-notice {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; min-height: 200px;
  padding: 32px 24px; text-align: center; gap: 12px;
}
.chat-banned-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg,#FEE2E2,#FECACA);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #EF4444;
}
.chat-banned-title {
  font-size: 16px; font-weight: 800; color: #0F172A;
}
.chat-banned-desc {
  font-size: 13px; color: #9CA3AF; line-height: 1.6; margin: 0;
}

/* ═══════════════════════════════════════════
   PROFIL INTROUVABLE (compte banni / supprimé)
═══════════════════════════════════════════ */
.unavail-profile-overlay {
  position: absolute; inset: 0; z-index: 900;
  background: rgba(15,23,42,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.unavail-profile-card {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  width: 100%; max-width: 300px; text-align: center;
}
.unavail-profile-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg,#F1F5F9,#E2E8F0);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 30px; color: #94A3B8;
}
.unavail-profile-title {
  font-size: 17px; font-weight: 800; color: #0F172A; margin: 0 0 8px;
}
.unavail-profile-desc {
  font-size: 13px; color: #6B7280; line-height: 1.6; margin: 0 0 20px;
}
.unavail-profile-back {
  background: #F1F5F9; color: #64748B; border: none; border-radius: 12px;
  padding: 10px 24px; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ═══════════════════════════════════════════
   NOTIFICATIONS — AVATAR GENIWORK OFFICIEL
═══════════════════════════════════════════ */

/* Avatar rond Geniwork dans la liste de notifications */
.notif-gw-av {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid #6366F1;
  box-shadow: 0 0 0 2px rgba(99,102,241,.18);
  position: relative;
}
.notif-gw-av img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Avatar étoile par défaut quand pas de logo */
.notif-gw-av-default {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  border: 2px solid #6366F1;
}

/* Badge vérifié bleu en bas à droite de l'avatar */
.notif-gw-av-wrap {
  position: relative; flex-shrink: 0;
}
.notif-gw-av-check {
  position: absolute; bottom: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #3B82F6; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff;
}

/* Ligne expéditeur "Geniwork ✓" */
.notif-gw-sender {
  display: flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 800; color: #0F172A;
  line-height: 1;
}
.notif-gw-verified {
  font-size: 12px; color: #3B82F6;
  display: inline-flex; align-items: center;
}

/* "Lire la suite" sous le résumé de notif */
.notif-read-more {
  font-size: 12px; color: #6366F1; font-weight: 600;
  margin-top: 2px; display: block;
}

/* ═══════════════════════════════════════════
   NOTIFICATION DETAIL — BOTTOM SHEET
═══════════════════════════════════════════ */

/* Fond semi-transparent derrière la feuille */
.notif-detail-bg {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s;
}
.notif-detail-bg.open { opacity: 1; }

/* Carte bottom sheet — indépendante, n'hérite pas de cam-sheet-card */
.notif-detail-card {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(102%);
  z-index: 3001;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 0 0 var(--gw-sab, env(safe-area-inset-bottom, 16px));
  width: 100%; max-width: 430px;
  transition: transform .32s cubic-bezier(.32,0,.67,0);
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  will-change: transform;
}
.notif-detail-card.open {
  transform: translateX(-50%) translateY(0);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
}

/* Poignée de drag */
.ndd-drag {
  width: 36px; height: 4px; border-radius: 2px;
  background: #E2E8F0; margin: 12px auto 0;
  flex-shrink: 0;
}

/* En-tête avec avatar + identité + heure */
.ndd-header {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.ndd-av-wrap {
  position: relative;
}
.ndd-gw-av {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; border: 3px solid #6366F1;
  box-shadow: 0 4px 20px rgba(99,102,241,.25);
}
.ndd-gw-av img {
  width: 100%; height: 100%; object-fit: cover;
}
.ndd-gw-av-default {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  border: 3px solid #6366F1;
  box-shadow: 0 4px 20px rgba(99,102,241,.25);
}
.ndd-gw-check {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: #3B82F6; border: 2.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
}

/* Informations expéditeur */
.ndd-sender-info {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  text-align: center;
}
.ndd-sender-name {
  font-size: 16px; font-weight: 800; color: #0F172A;
  display: flex; align-items: center; gap: 5px;
}
.ndd-verified-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg,#EEF2FF,#E0E7FF);
  color: #4F46E5; border-radius: 20px;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
}
.ndd-verified-chip i { font-size: 10px; }
.ndd-sender-sub {
  font-size: 12px; color: #6B7280; font-weight: 500;
}
.ndd-time {
  font-size: 11.5px; color: #9CA3AF;
  margin-top: 2px;
}

/* Séparateur fin */
.ndd-divider {
  height: 1px; background: #F1F5F9;
  margin: 16px 0 0; flex-shrink: 0;
}

/* Corps scrollable */
.ndd-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px 20px 20px;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

/* Texte complet de la notification */
.ndd-msg {
  font-size: 14.5px; color: #1E293B;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0 0 16px;
}

/* Bloc preview de post (si lié à un post) */
.ndd-preview-block {
  background: #F8FAFC; border-radius: 14px;
  padding: 12px 14px; margin: 0 0 16px;
  border-left: 3px solid #6366F1;
}
.ndd-quote {
  font-size: 13px; color: #64748B;
  line-height: 1.6; font-style: italic;
}

/* Boutons d'action */
.ndd-actions {
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0; padding: 0 20px 16px;
}
.ndd-btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff; border: none; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
  transition: opacity .15s;
}
.ndd-btn-primary:active { opacity: .85; }
.ndd-btn-secondary {
  width: 100%; padding: 12px;
  background: #F1F5F9; color: #64748B;
  border: none; border-radius: 14px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.ndd-btn-secondary:active { background: #E2E8F0; }

/* ═══════════════════════════════════════════
   ADMIN LOGIN — RÔLE + INSCRIPTION
═══════════════════════════════════════════ */

/* Sélecteur de rôle */
.adm-role-select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #E2E8F0; border-radius: 10px;
  font-size: 13.5px; color: #0F172A; background: #F8FAFC;
  cursor: pointer; outline: none;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236366F1' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.adm-role-select:focus { border-color: #6366F1; background-color: #fff; }

/* Message d'erreur login/register */
.adm-login-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #EF4444; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.adm-login-error::before { content: '⚠️'; }

/* Séparateur "Pas encore de compte ?" */
.adm-login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0;
}
.adm-login-divider::before,
.adm-login-divider::after {
  content: ''; flex: 1; height: 1px; background: #E2E8F0;
}
.adm-login-divider span {
  font-size: 11.5px; color: #9CA3AF; white-space: nowrap;
}

/* Bouton "Faire une demande d'accès" */
.adm-btn-register {
  width: 100%; padding: 11px;
  background: #F0FDF4; color: #059669;
  border: 1.5px solid #A7F3D0; border-radius: 12px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
}
.adm-btn-register:hover { background: #DCFCE7; }

/* Carte demande d'accès en attente */
.adm-request-card {
  background: #FFFBEB; border-radius: 14px;
  border: 1.5px solid #FDE68A;
  padding: 14px; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Badge rôle dans demande */
.adm-request-role-badge {
  display: inline-block; padding: 2px 10px;
  background: linear-gradient(135deg,#F59E0B,#D97706);
  color: #fff; border-radius: 20px;
  font-size: 10px; font-weight: 700;
}

/* ── Feed : badge nouveaux posts ── */
@keyframes feedBadgePop {
  from { opacity:0; transform:translateX(-50%) translateY(-10px) scale(.85); }
  to   { opacity:1; transform:translateX(-50%) translateY(0)     scale(1);   }
}

/* ── Caméra directe ── */
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0; }
}

/* ══════════════════════════════════════════
   MARKETPLACE — STYLES NOUVEAUX
══════════════════════════════════════════ */

/* Annonce sponsorisée dans le feed */
.mk-feed-ad {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  cursor: pointer;
  border: 1.5px solid #E0E7FF;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mk-feed-ad:active {
  transform: scale(.98);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* Carte annonce du système marketplace */
.mk-listing-card {
  position: relative;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mk-listing-card:active {
  transform: scale(.97);
}
.mk-listing-card .mk-service-img {
  position: relative;
}

/* FAB Vendre — marketplace */
#mk-sell-fab {
  transition: transform .15s ease, box-shadow .15s ease;
}
#mk-sell-fab:active {
  transform: scale(.92);
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

/* ── FAB marketplace — position absolute fonctionne car .app-page est déjà position:absolute ── */
/* Pas besoin de position:relative sur #p-marketplace — cela casserait inset:0 et le scroll */

/* ══════════════════════════════════════════
   FIN MARKETPLACE STYLES
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   COLLABORATION STYLES
══════════════════════════════════════════ */

/* Bannière "Chercher un collaborateur" */
.collab-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 16px 4px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.collab-banner:active {
  transform: scale(.98);
  box-shadow: 0 2px 8px rgba(99,102,241,.25);
}
.collab-banner-left { display: flex; align-items: center; gap: 12px; }
.collab-banner-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.collab-banner-text { display: flex; flex-direction: column; gap: 2px; }
.collab-banner-text strong { font-size: 14px; font-weight: 800; color: #fff; }
.collab-banner-text span  { font-size: 11.5px; color: rgba(255,255,255,.8); }
.collab-banner-arrow      { font-size: 14px; color: rgba(255,255,255,.7); }

/* Carte de collaboration */
.collab-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .1s ease;
}
.collab-card:active {
  transform: scale(.99);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.collab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.collab-card-domain { font-size: 12px; font-weight: 700; color: #6366F1; }
.collab-card-meta   { display: flex; align-items: center; gap: 8px; }
.collab-card-ago    { font-size: 11px; color: #94A3B8; }
.collab-card-title  { font-size: 14px; font-weight: 800; color: #0F172A; margin-bottom: 5px; }
.collab-card-desc   { font-size: 12.5px; color: #64748B; line-height: 1.5; margin-bottom: 8px; }

.collab-skills-row  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.collab-skill-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: #F1F5F9;
  color: #475569;
}

.collab-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}
.collab-card-poster  { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #374151; font-weight: 600; }
.collab-poster-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.collab-card-right   { display: flex; align-items: center; gap: 6px; }
.collab-card-dur     { font-size: 11px; color: #94A3B8; }
.collab-card-applicants { font-size: 11px; color: #94A3B8; margin-top: 6px; }

/* Badges état */
.collab-badge-remote {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  background: #ECFDF5; color: #059669;
}
.collab-badge-mine {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  background: #FFF7ED; color: #EA580C;
}
.collab-badge-applied {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  background: #F0FDF4; color: #16A34A;
}
.collab-badge-cta {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  color: #fff;
}
.collab-detail-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #374151; margin-bottom: 10px;
}
.collab-detail-row i { color: #6366F1; width: 16px; text-align: center; }

/* ══════════════════════════════════════════
   FIN COLLABORATION STYLES
══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   DASHBOARD v2 — KPI Cards + Charts + Plans
   ═══════════════════════════════════════════ */

/* ── Header ── */
.dash-header2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 4px;
}
.dash-header2-left { flex: 1; }
.dash-title2 {
  font-size: 18px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.2;
}
.dash-sub2 {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 2px;
}
.dash-export-btn {
  background: #F1F5F9;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.dash-export-btn:active { background: #E2E8F0; }

/* ── Completion card v2 ── */
.dash-compl-card2 {
  margin: 12px 16px 0;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
/* override child label/bar/cta colors inside this gradient card */
.dash-compl-card2 .dash-card-label {
  color: rgba(255,255,255,.85);
  text-transform: none;
  font-size: 13px;
}
.dash-compl-pct {
  font-size: 14px; font-weight: 900; color: #fff;
}
.dash-compl-card2 .dash-completion-bar {
  background: rgba(255,255,255,.25);
}
.dash-compl-card2 .dash-completion-fill {
  background: #fff;
}
.dash-compl-card2 .dash-completion-cta {
  align-self: flex-start;
  margin-top: 10px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* ── KPI Row ── */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 16px 0;
}

/* ── KPI Card v2 ── */
.dash-kpi-card2 {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.dash-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dash-kpi-ico2 {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.dash-kpi-spark {
  /* sparkline container — SVG injected inline */
  line-height: 0;
}
.dash-kpi-num {
  font-size: 22px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.1;
}
.dash-kpi-lbl {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 1px;
}
.dash-kpi-trend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.dash-kpi-trend {
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}
.dash-kpi-trend.up   { color: #10B981; }
.dash-kpi-trend.down { color: #EF4444; }
.dash-kpi-trend.neu  { color: #94A3B8; }
.dash-kpi-vs {
  font-size: 10px;
  color: #CBD5E1;
  font-weight: 600;
}

/* ── Lock badge (inline, after section label) ── */
.dash-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg,#7C3AED,#A855F7);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}
.dash-lock-badge.biz {
  background: linear-gradient(135deg,#1D4ED8,#3B82F6);
}

/* ── Locked card v2 ── */
.dash-locked-card2 {
  margin: 12px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.dash-locked-blur {
  padding: 14px 16px;
  background: #fff;
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
.dash-locked-overlay2 {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(1px);
}
.dash-locked-ico {
  width: 44px; height: 44px;
  background: rgba(100,116,139,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #94A3B8;
}
.dash-locked-title {
  font-size: 14px;
  font-weight: 800;
  color: #1E293B;
  text-align: center;
}
.dash-locked-desc2 {
  font-size: 12px;
  color: #64748B;
  text-align: center;
  line-height: 1.4;
  padding: 0 12px;
}
.dash-upgrade-btn2 {
  margin-top: 4px;
  padding: 9px 22px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  white-space: nowrap;
}
.dash-upgrade-btn2.biz {
  background: linear-gradient(135deg,#1D4ED8,#3B82F6);
  box-shadow: 0 4px 14px rgba(29,78,216,.35);
}
.dash-upgrade-btn2:active { opacity: .85; }

/* ── Chart card ── */
.dash-chart-card {
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.dash-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dash-chart-title {
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
}
.dash-chart-period {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  background: #F1F5F9;
  padding: 3px 9px;
  border-radius: 99px;
}
.dash-chart-svg-wrap {
  width: 100%;
  overflow: hidden;
}

/* ── Donut row ── */
.dash-donut-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dash-donut-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}
.dash-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-legend-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-legend-lbl {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  flex: 1;
}
.dash-legend-pct {
  font-size: 12px;
  font-weight: 800;
  color: #1E293B;
}

/* ── Engagement pct v2 ── */
.dash-engage-pct2 {
  font-size: 28px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1;
  margin-bottom: 4px;
}

/* ── Two-column layout (Business) ── */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px 0;
}
/* chart cards inside two-col: no side margins, they're handled by the grid */
.dash-two-col .dash-chart-card {
  margin: 0;
}

/* ── Service rows ── */
.dash-svc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dash-svc-rank {
  font-size: 11px;
  font-weight: 800;
  color: #CBD5E1;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.dash-svc-thumb {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #F1F5F9;
  flex-shrink: 0;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #94A3B8;
}
.dash-svc-info { flex: 1; min-width: 0; }
.dash-svc-name {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-svc-bar-wrap {
  height: 4px;
  background: #F1F5F9;
  border-radius: 99px;
  margin-top: 4px;
  overflow: hidden;
}
.dash-svc-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg,#6366F1,#8B5CF6);
}
.dash-svc-views {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-svc-all {
  font-size: 11px;
  font-weight: 700;
  color: #6366F1;
  text-align: center;
  margin-top: 4px;
  cursor: pointer;
}

/* ── Country rows ── */
.dash-pays-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.dash-pays-flag {
  font-size: 16px;
  flex-shrink: 0;
}
.dash-pays-name {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  flex: 1;
}
.dash-pays-bar-wrap {
  width: 52px;
  height: 5px;
  background: #F1F5F9;
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}
.dash-pays-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg,#3B82F6,#1D4ED8);
}
.dash-pays-pct {
  font-size: 11px;
  font-weight: 800;
  color: #1E293B;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Activity rows v2 ── */
.dash-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.dash-activity-row:last-child { border-bottom: none; }
.dash-activity-ico2 {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.dash-activity-body { flex: 1; min-width: 0; }
.dash-activity-txt {
  font-size: 12px;
  color: #374151;
  font-weight: 600;
  line-height: 1.4;
}
.dash-activity-tm {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 2px;
  font-weight: 600;
}
.dash-activity-arrow {
  font-size: 11px;
  color: #CBD5E1;
  align-self: center;
}

/* ── Empty services state ── */
.dash-empty-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.dash-empty-services i { font-size: 26px; }

/* ── Boost card (Business) ── */
.dash-boost-card {
  margin: 12px 16px 16px;
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(59,130,246,.35);
}
.dash-boost-ico {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  flex-shrink: 0;
}
.dash-boost-body { flex: 1; min-width: 0; }
.dash-boost-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.dash-boost-sub {
  font-size: 11px;
  color: rgba(255,255,255,.8);
  margin-top: 3px;
  line-height: 1.4;
}
.dash-boost-btn {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-boost-btn:active { background: rgba(255,255,255,.35); }

/* ── Upgrade banner v3 (Free/Premium CTA) ── */
.dash-upgrade-banner3 {
  margin: 12px 16px 0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  box-shadow: 0 4px 20px rgba(124,58,237,.3);
}
.dash-upgrade-banner3.biz {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  box-shadow: 0 4px 20px rgba(29,78,216,.3);
}
/* inner row: icon + text side by side */
.dash-upgrade-banner3 > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dash-upgrade-ico2 {
  font-size: 26px; color: #fff; flex-shrink: 0;
  margin-top: 2px;
}
.dash-upgrade-ico2.biz { color: #fff; }
.dash-upgrade-body2 { flex: 1; min-width: 0; }
.dash-upgrade-title2 {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.dash-upgrade-sub2 {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Section label v2 override ── */
.dash-section-label2 {
  font-size: 12px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 14px 16px 4px;
}

/* ── Premium badge card ── */
.dash-premium-badge-card {
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-premium-badge-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dash-premium-badge-ico.premium  { background: linear-gradient(135deg,#7C3AED,#A855F7); color: #fff; }
.dash-premium-badge-ico.business { background: linear-gradient(135deg,#1D4ED8,#3B82F6); color: #fff; }
.dash-premium-badge-body { flex: 1; }
.dash-premium-badge-name {
  font-size: 14px;
  font-weight: 800;
  color: #1E293B;
}
.dash-premium-badge-status {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Chart SVG responsive fix ── */
.dash-chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}
.dash-chart-card .dash-donut-wrap svg {
  width: auto;
  height: auto;
}

/* ── Badge info (inside dash-card / dash-badge-row) ── */
.dash-badge-info { flex: 1; min-width: 0; }

/* ── Service thumb icon variant ── */
.dash-svc-thumb-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Bottom spacing for dash scroll ── */
.dash-scroll .dash-chart-card:last-child,
.dash-scroll .dash-boost-card:last-child,
.dash-scroll .dash-locked-card2:last-child,
.dash-scroll .dash-upgrade-banner3:last-child {
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   FIN DASHBOARD v2 STYLES
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   ADMIN DASHBOARD v2 — KPI + Charts
   ═══════════════════════════════════════════ */

/* ── En-tête admin dashboard ── */
.adm-db2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px;
  border-bottom: 1.5px solid #F1F5F9;
  margin-bottom: 16px;
}
.adm-db2-title {
  font-size: 19px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
}
.adm-db2-date {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: capitalize;
}
.adm-db2-export-btn {
  background: #F1F5F9;
  border: none;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-db2-export-btn:active { background: #E2E8F0; }

/* ── Alertes rapides ── */
.adm-db2-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.adm-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  cursor: pointer;
  transition: opacity .15s;
}
.adm-alert-pill:active { opacity: .75; }

/* ── Section label admin ── */
.adm-db2-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Section wrapper (role welcome) ── */
.adm-db2-section {
  margin-bottom: 4px;
}

/* ── KPI Row (admin) ── */
.adm-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

/* ── KPI Card (admin) ── */
.adm-kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 13px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  overflow: hidden;
}
.adm-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
}
.adm-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 7px;
}
.adm-kpi-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.adm-kpi-spark { line-height: 0; }
.adm-kpi-num {
  font-size: 21px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
}
.adm-kpi-lbl {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 2px;
}
.adm-kpi-trend-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.adm-kpi-trend {
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}
.adm-kpi-trend.up   { color: #10B981; }
.adm-kpi-trend.down { color: #EF4444; }
.adm-kpi-vs {
  font-size: 10px;
  color: #CBD5E1;
  font-weight: 600;
}

/* ── Charts row (2 colonnes) ── */
.adm-db2-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

/* ── Chart card admin ── */
.adm-chart-card {
  background: #fff;
  border-radius: 14px;
  padding: 13px 13px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
}
.adm-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.adm-chart-title {
  font-size: 12px;
  font-weight: 800;
  color: #1E293B;
}
.adm-chart-period {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.adm-chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Donut (admin) ── */
.adm-donut-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.adm-donut-wrap {
  flex-shrink: 0;
}
.adm-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 6px;
}
.adm-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.adm-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adm-legend-lbl {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  flex: 1;
}
.adm-legend-pct {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
}
.adm-legend-pct small { font-weight: 500; color: #94A3B8; }

/* ── Taux de conversion ── */
.adm-conv-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.adm-conv-card {
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.adm-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.adm-conv-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.adm-conv-pct {
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
}
.adm-conv-bar-wrap {
  height: 6px;
  background: #F1F5F9;
  border-radius: 99px;
  overflow: hidden;
}
.adm-conv-bar-fill {
  height: 100%;
  border-radius: 99px;
  min-width: 4px;
  transition: width .6s ease;
}

/* ── Journal d'actions v2 ── */
.adm-db2-log {
  background: #fff;
  border-radius: 14px;
  padding: 6px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 8px;
  overflow: hidden;
}
.adm-db2-log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #F8FAFC;
  transition: background .12s;
}
.adm-db2-log-item:last-child { border-bottom: none; }
.adm-db2-log-item:hover { background: #F8FAFC; }
.adm-db2-log-ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.adm-db2-log-body { flex: 1; min-width: 0; }
.adm-db2-log-action {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-db2-log-target {
  font-weight: 500;
  color: #64748B;
}
.adm-db2-log-meta {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.adm-db2-log-time {
  font-size: 10px;
  color: #CBD5E1;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   FIN ADMIN DASHBOARD v2
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   MILESTONES — Badge & Toast félicitations
══════════════════════════════════════════ */

/* Badge dans la liste des notifications */
.nb-milestone {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #D97706;
}

/* Toast flottant félicitations */
.milestone-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 99999;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
  padding: 0;
  min-width: 280px;
  max-width: 340px;
  overflow: hidden;
  opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
  border-top: 4px solid #F59E0B;
}
.milestone-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.mile-t-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.mile-t-emoji {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.mile-t-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mile-t-title {
  font-size: 13px;
  font-weight: 800;
  color: #D97706;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mile-t-msg {
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════
   FIN MILESTONES
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   REPUBLIER (REPOST)
══════════════════════════════════════════ */

/* Bouton Republier dans la barre d'actions */
.repost-act-btn { color: #64748B; }
.repost-act-btn i { font-size: 16px; }
.repost-act-btn.reposted { color: #16A34A; }
.repost-act-btn.reposted i { color: #16A34A; }

/* Bannière "X a republié" au-dessus de la card */
.post-repost-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  padding: 8px 14px 0;
  letter-spacing: .1px;
}
.post-repost-banner i { color: #16A34A; font-size: 13px; }

/* Carte du post original à l'intérieur du repost */
.post-repost-orig {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  margin: 6px 0 0;
  background: #F8FAFC;
  cursor: pointer;
}
.rp-orig-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rp-orig-meta { display: flex; flex-direction: column; }
.rp-orig-meta strong { font-size: 13px; color: #0F172A; line-height: 1.2; }
.rp-orig-meta small  { font-size: 11px; color: #94A3B8; }
.rp-orig-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  margin: 0 0 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
/* Conteneur images de repost */
.rp-orig-imgs {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.rp-orig-img {
  flex: 1;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: opacity .15s;
}
.rp-orig-img:active { opacity: .8; }
.rp-orig-img-multi {
  max-height: 130px;
  border-radius: 6px;
}

/* Conteneur vidéo de repost — cliquable */
.rp-orig-vid-wrap {
  position: relative;
  margin-top: 6px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.rp-orig-vid-wrap:active .rp-vid-play-btn { transform: translate(-50%,-50%) scale(.9); }
.rp-vid-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  transition: transform .15s, background .15s;
  padding-left: 4px; /* optique play */
}
.rp-orig-vid-wrap:hover .rp-vid-play-btn { background: rgba(99,102,241,.75); }

.rp-orig-vid-ico {
  width: 100%;
  height: 80px;
  background: #1E293B;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-top: 4px;
}
.rp-orig-video {
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  display: block;
  background: #000;
  object-fit: contain;
  pointer-events: none; /* le clic va au wrapper */
}
.rp-orig-doc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  background: #EFF6FF;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 4px;
}
.rp-orig-doc i { color: #2563EB; }

/* Sheet de choix Republier */
.repost-sheet-card {
  border-radius: 20px 20px 0 0;
  padding: 0 0 24px;
  background: #fff;
}
.repost-sheet-handle {
  width: 36px; height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin: 12px auto 0;
}
.repost-sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.repost-sheet-title i { color: #16A34A; }
.repost-already-done {
  font-size: 12px;
  color: #16A34A;
  background: #DCFCE7;
  border-radius: 8px;
  margin: 0 16px 8px;
  padding: 8px 12px;
  font-weight: 600;
}
.repost-opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: 6px 16px 0;
  padding: 12px 14px;
  border: 1.5px solid #F1F5F9;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.repost-opt-btn:active { background: #F8FAFC; }
.repost-opt-btn.disabled { opacity: .5; pointer-events: none; }
.repost-opt-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.repost-opt-info { display: flex; flex-direction: column; gap: 2px; }
.repost-opt-info strong { font-size: 14px; color: #0F172A; font-weight: 700; }
.repost-opt-info small  { font-size: 12px; color: #94A3B8; }
.repost-cancel-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: #F1F5F9;
  color: #64748B;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.repost-cancel-btn:active { background: #E2E8F0; }

/* Aperçu du post cité dans le compositeur */
.pub-quote-preview {
  position: relative;
  border: 1.5px solid #6366F1;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 0;
  background: #F5F3FF;
}
.pub-quote-close {
  position: absolute;
  top: 8px; right: 8px;
  border: none; background: #E0E7FF; color: #6366F1;
  border-radius: 50%; width: 22px; height: 22px;
  font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pub-quote-author {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.pub-quote-author strong { font-size: 12.5px; color: #3730A3; }
.pub-quote-text {
  font-size: 12.5px; color: #3730A3;
  margin: 0 0 6px; line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-quote-img {
  width: 100%; max-height: 120px;
  object-fit: cover; border-radius: 8px;
}
.pub-quote-vid-thumb {
  width: 100%; height: 60px;
  background: #1E293B; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}

/* ═══════════════════════════════════════════
   FIN REPUBLIER
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   CHAT PROFILE PANEL (cpp)
══════════════════════════════════════════ */

/* Overlay sombre derrière le panel */
.cpp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 200;
  opacity: 0;
  transition: opacity .28s ease;
}
.cpp-overlay.visible { opacity: 1; }

/* Panel principal — glisse depuis la droite */
.chat-profile-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 92%;
  max-width: 360px;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  box-shadow: -6px 0 32px rgba(0,0,0,.16);
}
.chat-profile-panel.open { transform: translateX(0); }

/* Header */
.cpp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.cpp-close-btn, .cpp-more-btn {
  width: 36px; height: 36px;
  border: none; background: #F8FAFC;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #475569;
  cursor: pointer;
}
.cpp-close-btn:active, .cpp-more-btn:active { background: #E2E8F0; }
.cpp-header-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
}

/* Scroll body */
.cpp-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Avatar + point online */
.cpp-av-wrap {
  position: relative;
  margin-bottom: 12px;
}
.cpp-av-wrap .av-lg {
  width: 82px; height: 82px;
  border-radius: 50%;
  font-size: 28px;
}
.cpp-online-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #94A3B8;
  border: 2.5px solid #fff;
}
.cpp-online-dot.online { background: #22C55E; }

/* Nom */
.cpp-name {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cpp-verified-ico { color: #2563EB; font-size: 16px; }

/* Rôle */
.cpp-role {
  font-size: 13px;
  color: #64748B;
  margin-top: 3px;
  text-align: center;
  padding: 0 20px;
}

/* Rating */
.cpp-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 8px;
}
.cpp-rating i { color: #F59E0B; }
.cpp-rating span { font-size: 12px; color: #94A3B8; font-weight: 500; }

/* Bouton Voir le profil */
.cpp-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #6366F1;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  transition: background .15s;
}
.cpp-profile-btn:active { background: #4F46E5; }
.cpp-profile-btn i { font-size: 15px; }

/* Section title */
.cpp-section-title {
  width: 100%;
  padding: 16px 18px 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #94A3B8;
}

/* Bio */
.cpp-bio {
  width: 100%;
  padding: 0 18px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* Info card */
.cpp-info-card {
  width: calc(100% - 36px);
  background: #F8FAFC;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #F1F5F9;
}
.cpp-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #F1F5F9;
}
.cpp-info-row:last-child { border-bottom: none; }
.cpp-info-ico {
  width: 32px; height: 32px;
  background: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.cpp-info-txt {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

/* Links */
.cpp-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cpp-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: transparent;
  border-bottom: 1px solid #F8FAFC;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  transition: background .12s;
}
.cpp-link-btn:active { background: #F8FAFC; }
.cpp-link-btn.cpp-link-danger { color: #EF4444; }
.cpp-link-ico {
  width: 36px; height: 36px;
  background: #F8FAFC;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cpp-link-arr {
  margin-left: auto;
  font-size: 12px;
  color: #CBD5E1;
}
.cpp-links-sep {
  width: calc(100% - 36px);
  margin: 4px 18px;
  border: none;
  border-top: 1px solid #F1F5F9;
}

/* ═══════════════════════════════════════════
   FIN CHAT PROFILE PANEL
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   EMOJI PICKER — Chat
══════════════════════════════════════════ */

/* Bouton smiley dans la barre */
.chat-emoji-btn {
  width: 36px; height: 36px;
  border: none; background: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #94A3B8;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.chat-emoji-btn:active,
.chat-emoji-btn.active { color: #6366F1; background: #EEF2FF; }

/* Picker container — s'insère juste au-dessus de la barre input */
.emoji-picker {
  flex-shrink: 0;
  height: 0;
  overflow: hidden;
  background: #fff;
  border-top: 1.5px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  transition: height .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.emoji-picker.open {
  height: 262px;
}

/* Onglets catégories */
.ep-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #F1F5F9;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tab {
  min-width: 36px; height: 36px;
  border: none; background: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
  flex-shrink: 0;
  opacity: .6;
}
.ep-tab:active  { background: #F1F5F9; }
.ep-tab.active  { background: #EEF2FF; opacity: 1; }

/* Grille emojis */
.ep-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 6px 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: #E2E8F0 transparent;
}
.ep-grid::-webkit-scrollbar { width: 4px; }
.ep-grid::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 4px; }

/* Bouton emoji individuel */
.ep-emoji-btn {
  width: 100%; aspect-ratio: 1;
  border: none; background: none;
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, transform .1s;
  line-height: 1;
}
.ep-emoji-btn:active {
  background: #F1F5F9;
  transform: scale(1.25);
}

/* ═══════════════════════════════════════════
   FIN EMOJI PICKER
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   CHAT REPLY (citation de message)
══════════════════════════════════════════ */

/* Wrapper chaque bulle + bouton reply */
.bubble-reply-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.chat-msg-row.mine    .bubble-reply-wrap { flex-direction: row-reverse; }
.chat-msg-row.theirs  .bubble-reply-wrap { flex-direction: row; }

/* Bouton Répondre — caché par défaut, visible au survol/tap */
.bubble-reply-btn {
  width: 30px; height: 30px;
  border: none; background: #F1F5F9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #64748B;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .18s ease, transform .18s ease;
}
.bubble-reply-wrap:hover .bubble-reply-btn,
.bubble-reply-wrap:focus-within .bubble-reply-btn {
  opacity: 1;
  transform: scale(1);
}
/* Sur mobile (touch) : toujours visible */
@media (hover: none) {
  .bubble-reply-btn { opacity: 1; transform: scale(1); }
}
.bubble-reply-btn:active { background: #E2E8F0; transform: scale(0.92); }

/* Citation dans la bulle */
.bubble-reply-quote {
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.brq-author {
  font-size: 11px;
  font-weight: 800;
  display: block;
}
.brq-text {
  font-size: 12px;
  opacity: .85;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Bandeau de réponse au-dessus de l'input */
.chat-reply-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}
.chat-reply-bar.hidden { display: none; }
.crb-accent {
  width: 3px; min-height: 36px;
  background: #6366F1;
  border-radius: 3px;
  flex-shrink: 0;
}
.crb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.crb-author {
  font-size: 11.5px;
  font-weight: 800;
  color: #6366F1;
}
.crb-text {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crb-close {
  width: 28px; height: 28px;
  border: none; background: #E2E8F0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #64748B;
  cursor: pointer; flex-shrink: 0;
}
.crb-close:active { background: #CBD5E1; }

/* ═══════════════════════════════════════════
   FIN CHAT REPLY
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   VIDEOS DISCOVER PAGE (YouTube-style)
══════════════════════════════════════════ */
#vd-modal { color: #F1F5F9; }

.vd-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: calc(12px + var(--gw-sat, env(safe-area-inset-top, 0px))) 16px 12px;
  background: #0F172A;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.vd-topbar-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.vd-topbar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.vd-topbar-btn:active { background: rgba(255,255,255,.18); }

.vd-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 8px;
  background: #0F172A;
  flex-shrink: 0;
}
.vd-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1E293B;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.vd-search-bar i { color: #64748B; font-size: 14px; }
.vd-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F1F5F9;
  font-size: 13px;
  pointer-events: auto;
  caret-color: #7C3AED;
}
.vd-search-bar:focus-within {
  border-color: rgba(124,58,237,.5);
}
.vd-search-bar input::placeholder { color: #64748B; }
.vd-filter-icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: #1E293B;
  color: #94A3B8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.vd-filter-icon-btn:active { background: rgba(255,255,255,.12); }

.vd-chips-wrap {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 16px 12px;
  background: #0F172A;
  flex-shrink: 0;
  scrollbar-width: none;
}
.vd-chips-wrap::-webkit-scrollbar { display: none; }
.vd-chip {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.vd-chip.active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
  font-weight: 700;
}

.vd-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0F172A;
  padding-top: 16px;
}
.vd-scroll::-webkit-scrollbar { display: none; }

/* Featured banner */
.vd-featured-card {
  position: relative;
  margin: 0 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #1E293B;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vd-featured-card:active { opacity: .9; }
.vd-featured-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0D1B2E;
  overflow: hidden;
}
.vd-featured-thumb video,
.vd-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.8) 100%);
}
.vd-featured-play-wrap {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.vd-featured-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(124,58,237,.88);
  border: none;
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,.5);
}
.vd-featured-meta {
  padding: 12px 14px 16px;
}
.vd-featured-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: #7C3AED;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.vd-featured-title {
  font-size: 16px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 5px;
  line-height: 1.3;
}
.vd-featured-desc {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 12px;
}
.vd-featured-discover-btn {
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vd-featured-discover-btn:active { background: #6D28D9; }

/* Section header */
.vd-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px;
}
.vd-section-hdr-title {
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
}
.vd-voir-tout {
  font-size: 12px;
  color: #7C3AED;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Categories */
.vd-cats-wrap {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 0 16px 20px;
  scrollbar-width: none;
}
.vd-cats-wrap::-webkit-scrollbar { display: none; }
.vd-cat-item {
  flex-shrink: 0;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vd-cat-item:active .vd-cat-icon { opacity: .7; }
.vd-cat-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: opacity .15s;
}
.vd-cat-label {
  font-size: 10px;
  color: #94A3B8;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
  word-break: break-word;
}

/* Video list items */
.vd-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.vd-list-item:active { background: rgba(255,255,255,.04); }
.vd-list-thumb {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #1E293B;
}
.vd-list-thumb video,
.vd-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-list-dur {
  position: absolute;
  bottom: 5px; right: 6px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: .2px;
}
.vd-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.vd-list-title {
  font-size: 13px;
  font-weight: 700;
  color: #F1F5F9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.vd-list-author {
  font-size: 11px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-verified { color: #3B82F6; font-size: 10px; }
.vd-list-stats { font-size: 11px; color: #64748B; }
.vd-list-menu {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  border-radius: 50%;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
}
.vd-list-menu:active { background: rgba(255,255,255,.08); color: #fff; }
.vd-empty-state {
  text-align: center;
  color: #475569;
  padding: 60px 20px;
}
.vd-empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: .4; }
.vd-empty-state p { font-size: 14px; margin: 0; }
/* ══════════════════════════════════════════
   FIN VIDEOS DISCOVER
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   VIDEO DETAIL PLAYER (YouTube dark style)
══════════════════════════════════════════ */
.vpd-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: calc(48px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  padding: var(--gw-sat, env(safe-area-inset-top, 0px)) 6px 0;
  background: #0F172A;
}
.vpd-topbar-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.vpd-topbar-btn:active { background: rgba(255,255,255,.12); }

/* Video area */
.vpd-video-area {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.vpd-video-area video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 55vh; /* empêche la vidéo de remplir tout l'écran sur desktop (colonne large) et de masquer like/dislike/partage/commentaires */
  object-fit: cover; /* applique le même recadrage format YouTube que dans l'éditeur (au lieu de "contain" qui l'ignorait) */
  background: #000;
}
/* ── Plein écran natif : garde le format paysage 16:9 (style YouTube), avec
     des bandes noires haut/bas sur un écran portrait au lieu d'étirer la
     vidéo pour remplir tout l'écran (ce qui donnait un effet "format TikTok") */
.vpd-video-area:fullscreen,
.vpd-video-area:-webkit-full-screen {
  max-height: none !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vpd-video-area:fullscreen video,
.vpd-video-area:-webkit-full-screen video {
  max-height: 100% !important;
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16/9;
}

/* Back button always visible on video (top-left) */
.vpd-video-back-btn {
  position: absolute;
  top: calc(10px + var(--gw-sat, env(safe-area-inset-top, 0px)));
  left: 10px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}
.vpd-video-back-btn:active { background: rgba(0,0,0,.8); }

/* Vidéo précédente / suivante — boutons fixes gauche/droite */
.vpd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  transition: background .15s ease, opacity .15s ease;
}
.vpd-nav-btn:hover  { background: rgba(0,0,0,.7); }
.vpd-nav-btn:active { background: rgba(0,0,0,.85); }
.vpd-nav-prev { left: 10px; }
.vpd-nav-next { right: 10px; }

/* Controls overlay — hidden by default, tap to reveal */
.vpd-ctrl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, transparent 28%, transparent 55%, rgba(0,0,0,.65) 100%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.vpd-ctrl-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
/* Speed pills inside overlay (top bar — also visible in fullscreen) */
.vpd-ctrl-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px 0;
  flex-shrink: 0;
}
.vpd-ctrl-top .vp-speed {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}
.vpd-ctrl-top .vp-speed.active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
}

.vpd-ctrl-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.vpd-skip-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.vpd-skip-btn:active { opacity: .65; }
.vpd-skip-lbl {
  position: absolute;
  font-size: 9px;
  font-weight: 800;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
}
.vpd-playpause-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 2.5px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding-left: 3px; /* optical center for play icon */
}
.vpd-playpause-btn:active { background: rgba(0,0,0,.8); }

/* Progress row inside overlay */
.vpd-prog-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 10px;
}
.vpd-ptime {
  font-size: 11px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 32px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.vpd-fs-btn {
  width: 28px; height: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Auto-next overlay (shown when video ends) */
.vpd-autonext {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(0,0,0,.82);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.vpd-autonext-thumb {
  width: 130px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #1E293B;
  flex-shrink: 0;
}
.vpd-autonext-info {
  text-align: center;
}
.vpd-autonext-label {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 4px;
}
.vpd-autonext-countdown {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vpd-autonext-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 220px;
}
.vpd-autonext-play-btn {
  padding: 12px 20px;
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vpd-autonext-play-btn:active { background: #6D28D9; }
.vpd-autonext-cancel-btn {
  padding: 11px 20px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vpd-autonext-cancel-btn:active { background: rgba(255,255,255,.22); }

/* Speed bar */
.vpd-speed-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #1E293B;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.vpd-speed-bar .vp-speed {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vpd-speed-bar .vp-speed.active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
}

/* Scrollable content */
.vpd-scroll {
  flex: 1;
  min-height: 0; /* sans ça, flexbox refuse parfois de réduire cette zone → boutons poussés hors écran */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0F172A;
  scrollbar-width: none;
}
.vpd-scroll::-webkit-scrollbar { display: none; }

/* Title */
.vpd-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 4px;
}
.vpd-title {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  color: #F1F5F9;
  margin: 0;
  line-height: 1.4;
}
.vpd-suivre-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #7C3AED;
  background: transparent;
  color: #7C3AED;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vpd-suivre-btn.following {
  background: #7C3AED;
  color: #fff;
}
.vpd-stats {
  padding: 0 16px 10px;
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

/* Actions row */
.vpd-actions-row {
  display: flex;
  align-items: center;
  padding: 4px 8px 12px;
}
.vpd-act-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 11px;
  cursor: pointer;
  padding: 6px 2px;
  -webkit-tap-highlight-color: transparent;
}
.vpd-act-btn i { font-size: 20px; }
.vpd-act-btn.active { color: #7C3AED; }
.vpd-act-btn.active i { color: #7C3AED; }
.vpd-act-btn:active { opacity: .65; }
.vpd-act-sep {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}

/* Separator */
.vpd-sep {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 2px 0;
}

/* Author */
.vpd-author-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 16px;
}
.vpd-author-clickable {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vpd-author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #1E293B;
  flex-shrink: 0;
}
.vpd-author-initials {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg,#7C3AED,#2563EB);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vpd-author-info { flex: 1; min-width: 0; overflow: hidden; }
.vpd-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.vpd-author-verified { color: #3B82F6; font-size: 12px; }
.vpd-author-subs { font-size: 12px; color: #64748B; margin-top: 2px; }
.vpd-subscribe-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 20px;
  background: #7C3AED;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vpd-subscribe-btn.following {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  color: #94A3B8;
}
.vpd-subscribe-btn:active { opacity: .8; }

/* Description */
.vpd-desc-wrap { padding: 12px 16px; }
.vpd-desc-title {
  font-size: 14px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 8px;
}
.vpd-desc-text {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}
.vpd-desc-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.vpd-voir-plus {
  background: none;
  border: none;
  color: #7C3AED;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
  -webkit-tap-highlight-color: transparent;
}

/* Comments */
.vpd-comments-wrap { padding: 0 0 4px; }
.vpd-comments-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
}
.vpd-comments-title { font-size: 14px; font-weight: 700; color: #F1F5F9; }
.vpd-voir-tout-btn {
  background: none;
  border: none;
  color: #7C3AED;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Cycling comment preview */
.vpd-comment-preview {
  padding: 0 16px 10px;
  transition: opacity 0.3s ease;
  min-height: 58px;
}
.vpd-no-comments {
  padding: 4px 16px 14px;
  font-size: 13px;
  color: #64748B;
  font-style: italic;
}
/* Add comment bar */
.vpd-add-comment {
  padding: 6px 16px 14px;
  cursor: pointer;
}
.vpd-add-comment-placeholder {
  background: rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 13px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vpd-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.vpd-comment-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #1E293B;
  flex-shrink: 0;
  object-fit: cover;
}
.vpd-comment-avatar-initials {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vpd-comment-author {
  font-size: 12px;
  font-weight: 700;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.vpd-comment-time { font-size: 10px; color: #64748B; font-weight: 400; }
.vpd-comment-text { font-size: 13px; color: #94A3B8; line-height: 1.4; }

/* Section title (À suivre) */
.vpd-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
}
/* ══════════════════════════════════════════
   FIN VIDEO DETAIL PLAYER
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   VIDEO META SHEET (type + catégorie)
══════════════════════════════════════════ */
.vm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  -webkit-tap-highlight-color: transparent;
}
.vm-sheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px max(var(--gw-sab, env(safe-area-inset-bottom,0px))+24px,24px);
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.vm-sheet::-webkit-scrollbar { display: none; }
.vm-handle {
  width: 40px; height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin: 0 auto 16px;
}
.vm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.vm-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
}
.vm-close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.vm-subtitle {
  font-size: 12px;
  color: #94A3B8;
  margin: 0 0 20px;
  line-height: 1.5;
}
.vm-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}
.vm-required { color: #EF4444; }
.vm-type-chips {
  display: flex;
  gap: 8px;
}
.vm-type-chip {
  flex: 1;
  padding: 10px 8px;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.vm-type-chip.active {
  border-color: #7C3AED;
  background: #EDE9FE;
  color: #7C3AED;
  font-weight: 700;
}
.vm-type-chip:active { opacity: .8; }
.vm-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.vm-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.vm-cat-btn.active {
  border-color: #7C3AED;
  background: #EDE9FE;
}
.vm-cat-btn:active { opacity: .75; }
.vm-cat-icon { font-size: 22px; line-height: 1; }
.vm-cat-name {
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}
.vm-cat-btn.active .vm-cat-name { color: #7C3AED; font-weight: 700; }
.vm-custom-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.vm-custom-input:focus { border-color: #7C3AED; background: #fff; }
.vm-confirm-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.vm-confirm-btn:active { background: #6D28D9; }
.vm-confirm-btn:disabled {
  background: #CBD5E1;
  color: #94A3B8;
  cursor: default;
}

/* Meta tags below video preview */
.pub-vid-meta-tag {
  display: flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 8px 12px;
  background: #EDE9FE;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #7C3AED;
  gap: 2px;
}
.pub-vid-meta-missing {
  display: flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 8px 12px;
  background: #FEF2F2;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
}
/* ══════════════════════════════════════════
   FIN VIDEO META SHEET
══════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   MODE CLAIR — Overrides pour les pages vidéo (Discover + Player)
   Par défaut les pages vidéo sont sombres.
   Quand dark-mode est OFF, on applique les couleurs claires.
══════════════════════════════════════════════════════════════ */

/* ── Videos Discover ── */
body:not(.dark-mode) #vd-modal { background: #F1F5F9 !important; }

body:not(.dark-mode) .vd-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
}
body:not(.dark-mode) .vd-topbar-title { color: #0F172A; }
body:not(.dark-mode) .vd-topbar-btn   { color: #0F172A; }
body:not(.dark-mode) .vd-topbar-btn:active { background: rgba(0,0,0,.06); }

body:not(.dark-mode) .vd-search-wrap  { background: #FFFFFF; border-bottom: 1px solid #E2E8F0; }
body:not(.dark-mode) .vd-search-bar   { background: #F1F5F9; border-color: rgba(0,0,0,.08); }
body:not(.dark-mode) .vd-search-bar i { color: #94A3B8; }
body:not(.dark-mode) .vd-search-bar input { color: #0F172A; }
body:not(.dark-mode) .vd-search-bar input::placeholder { color: #94A3B8; }
body:not(.dark-mode) .vd-search-bar:focus-within { border-color: #7C3AED; }
body:not(.dark-mode) .vd-filter-icon-btn { background: #F1F5F9; color: #475569; }
body:not(.dark-mode) .vd-filter-icon-btn:active { background: rgba(0,0,0,.08); }

body:not(.dark-mode) .vd-chips-wrap   { background: #FFFFFF; border-bottom: 1px solid #E2E8F0; }
body:not(.dark-mode) .vd-chip         { color: #475569; border-color: rgba(0,0,0,.12); background: #F8FAFC; }
body:not(.dark-mode) .vd-chip.active  { background: #7C3AED; color: #fff; border-color: #7C3AED; }

body:not(.dark-mode) .vd-scroll       { background: #F1F5F9; }
body:not(.dark-mode) .vd-section-hdr  { border-bottom: none; }
body:not(.dark-mode) .vd-section-hdr-title { color: #0F172A; }

/* Featured card stays mostly dark (video thumb) */
body:not(.dark-mode) .vd-featured-card { background: #FFFFFF; border: 1px solid #E2E8F0; }
body:not(.dark-mode) .vd-featured-title { color: #0F172A; }
body:not(.dark-mode) .vd-featured-desc  { color: #475569; }

/* Category items */
body:not(.dark-mode) .vd-cat-label { color: #0F172A; }

/* List items */
body:not(.dark-mode) .vd-list-item   { border-bottom-color: #E2E8F0; }
body:not(.dark-mode) .vd-list-item:active { background: rgba(0,0,0,.04); }
body:not(.dark-mode) .vd-list-title  { color: #0F172A; }
body:not(.dark-mode) .vd-list-author { color: #475569; }
body:not(.dark-mode) .vd-list-stats  { color: #94A3B8; }
body:not(.dark-mode) .vd-list-menu   { color: #94A3B8; }
body:not(.dark-mode) .vd-list-menu:active { background: rgba(0,0,0,.06); color: #0F172A; }
body:not(.dark-mode) .vd-empty-state { color: #475569; }

/* ── Video Player ── */
body:not(.dark-mode) #video-player-modal { background: #FFFFFF !important; }

body:not(.dark-mode) .vpd-topbar {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
body:not(.dark-mode) .vpd-topbar-btn { color: #0F172A; }
body:not(.dark-mode) .vpd-topbar-btn:active { background: rgba(0,0,0,.06); }

/* Speed bar below video */
body:not(.dark-mode) .vpd-speed-bar { background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
body:not(.dark-mode) .vp-speed      { color: #475569; border-color: #CBD5E1; background: #F1F5F9; }
body:not(.dark-mode) .vp-speed.active { background: #7C3AED; color: #fff; border-color: #7C3AED; }

/* Scrollable detail area */
body:not(.dark-mode) .vpd-scroll    { background: #FFFFFF; }
body:not(.dark-mode) .vpd-title     { color: #0F172A; }
body:not(.dark-mode) .vpd-stats     { color: #64748B; }

/* Action buttons */
body:not(.dark-mode) .vpd-act-btn   { color: #475569; }
body:not(.dark-mode) .vpd-act-btn.active { color: #7C3AED; }
body:not(.dark-mode) .vpd-act-btn:active { background: rgba(0,0,0,.05); }
body:not(.dark-mode) .vpd-act-label { color: #475569; }

/* Separator */
body:not(.dark-mode) .vpd-sep       { background: #E2E8F0; }

/* Author row */
body:not(.dark-mode) .vpd-author-row { background: #FFFFFF; }
body:not(.dark-mode) .vpd-author-initials { background: #7C3AED; }
body:not(.dark-mode) .vpd-author-name { color: #0F172A; }
body:not(.dark-mode) .vpd-author-subs { color: #64748B; }

/* Description */
body:not(.dark-mode) .vpd-desc-wrap  { background: #FFFFFF; }
body:not(.dark-mode) .vpd-desc-title { color: #0F172A; }
body:not(.dark-mode) .vpd-desc-text  { color: #475569; }
body:not(.dark-mode) .vpd-voir-plus  { color: #7C3AED; }

/* Comments */
body:not(.dark-mode) .vpd-comments-wrap  { background: #FFFFFF; }
body:not(.dark-mode) .vpd-comments-title { color: #0F172A; }
body:not(.dark-mode) .vpd-comment-author { color: #0F172A; }
body:not(.dark-mode) .vpd-comment-text   { color: #475569; }
body:not(.dark-mode) .vpd-comment-time   { color: #94A3B8; }
body:not(.dark-mode) .vpd-comment-avatar-initials { background: #7C3AED; }
body:not(.dark-mode) .vpd-no-comments    { color: #94A3B8; }
body:not(.dark-mode) .vpd-add-comment-placeholder { background: #F1F5F9; color: #94A3B8; }

/* Related (À suivre) */
body:not(.dark-mode) .vpd-section-title  { color: #0F172A; }
body:not(.dark-mode) .vd-list-dur        { background: rgba(0,0,0,.55); }

/* Video meta sheet — light mode */
body:not(.dark-mode) .vm-overlay  { background: rgba(0,0,0,.4); }
body:not(.dark-mode) .vm-sheet    { background: #FFFFFF; }
body:not(.dark-mode) .vm-handle   { background: #CBD5E1; }
body:not(.dark-mode) .vm-title    { color: #0F172A; }
body:not(.dark-mode) .vm-subtitle { color: #94A3B8; }
body:not(.dark-mode) .vm-section-label { color: #475569; }
body:not(.dark-mode) .vm-type-chip {
  background: #F1F5F9; border-color: #E2E8F0; color: #475569;
}
body:not(.dark-mode) .vm-type-chip.active {
  background: rgba(124,58,237,.1); border-color: #7C3AED; color: #7C3AED;
}
body:not(.dark-mode) .vm-cat-btn {
  background: #F8FAFC; border-color: #E2E8F0; color: #475569;
}
body:not(.dark-mode) .vm-cat-btn.active {
  background: rgba(124,58,237,.08); border-color: #7C3AED;
}
body:not(.dark-mode) .vm-cat-name  { color: #475569; }
body:not(.dark-mode) .vm-cat-btn.active .vm-cat-name { color: #7C3AED; }
body:not(.dark-mode) .vm-custom-input {
  background: #F1F5F9; border-color: #E2E8F0; color: #0F172A;
}
body:not(.dark-mode) .vm-close-btn { background: #F1F5F9; color: #475569; }

/* ══════════════════════════════════════════
   FIN MODE CLAIR VIDÉO
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   MODULE SÉCURITÉ — Panel Admin
══════════════════════════════════════════ */
.sec-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.sec-stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 8px;
  background: #F8FAFC; border-radius: 10px;
}
.sec-stat-num {
  font-size: 22px; font-weight: 800; color: #0F172A; line-height: 1;
}
.sec-stat-lab {
  font-size: 10px; color: #64748B; font-weight: 600; margin-top: 3px;
  text-align: center;
}
.sec-event-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border-radius: 10px; margin-bottom: 6px;
}
.sec-event-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.06); flex-shrink: 0; font-size: 13px;
}
.sec-event-body { flex: 1; min-width: 0; }
.sec-event-title {
  font-size: 12px; font-weight: 700; color: #0F172A;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sec-sev-badge {
  font-size: 9px; font-weight: 800; color: #fff;
  padding: 1px 6px; border-radius: 20px; letter-spacing: .3px;
}
.sec-event-detail {
  font-size: 11px; color: #475569; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sec-event-meta {
  font-size: 10px; color: #94A3B8; margin-top: 2px;
}
.sec-event-time {
  font-size: 10px; color: #94A3B8; white-space: nowrap; flex-shrink: 0;
}
/* ══════════════════════════════════════════
   FIN MODULE SÉCURITÉ
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   DESKTOP SIDEBAR NAV — éléments desktop only (cachés sur mobile)
══════════════════════════════════════════ */
.sdb-desktop-header,
.sdb-desktop-mainnav,
.sdb-desktop-divider { display: none; }

.sdb-desktop-header {
  align-items: center;
  gap: 10px;
  padding: 22px 18px 16px;
  flex-shrink: 0;
}
.sdb-desk-logo { width: 32px; height: 32px; object-fit: contain; }
.sdb-desk-brand {
  font-size: 20px;
  color: #0F172A;
  letter-spacing: -0.3px;
}
.sdb-desk-brand strong { color: #2563EB; }

.sdb-desktop-mainnav {
  flex-direction: column;
  gap: 2px;
  padding: 4px 10px;
}

.sdb-main-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background .15s, color .15s;
  position: relative;
}
.sdb-main-item:hover { background: #F1F5F9; color: #1E293B; }
.sdb-main-item.active {
  background: #EFF6FF;
  color: #2563EB;
}
.sdb-main-item.active .sdb-main-icon { color: #2563EB; }
.sdb-main-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.sdb-main-item.active .sdb-main-icon { background: #DBEAFE; }
.sdb-main-label { flex: 1; }

.sdb-publish-btn .sdb-main-icon {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
}
.sdb-publish-btn { color: #2563EB; }
.sdb-publish-btn:hover { background: #EFF6FF; }

/* ══════════════════════════════════════════
   RESPONSIVE DESKTOP (≥ 768 px)
══════════════════════════════════════════ */
@media (min-width: 768px) {

  /* ── Corps : fond propre ── */
  body {
    background: #EEF2F7;
    align-items: stretch;
  }

  /* ── Screens : pleine largeur ── */
  .screen { justify-content: flex-start; }

  /* ── Auth / Landing : restent centrés, style carte ── */
  #screen-landing,
  #screen-login,
  #screen-register,
  #screen-verify,
  #screen-forgot,
  #screen-reset-verify,
  #screen-new-pwd,
  #screen-cgu {
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  }
  #screen-landing .phone-frame,
  #screen-login .phone-frame,
  #screen-register .phone-frame,
  #screen-verify .phone-frame,
  #screen-forgot .phone-frame,
  #screen-reset-verify .phone-frame,
  #screen-new-pwd .phone-frame,
  #screen-cgu .phone-frame {
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    margin: auto;
    height: 90vh;
    max-height: 820px;
  }

  /* ── App screen : pleine largeur ── */
  #screen-app .phone-frame {
    max-width: none;
  }

  /* ── App frame : contenu décalé à droite de la sidebar ── */
  .app-frame {
    padding-left: 260px;
    background: #EEF2F7;
    overflow: hidden;
  }

  /* ── SIDEBAR PERMANENTE ── */
  #app-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    transform: translateX(0) !important;
    border-radius: 0;
    border-right: 1px solid #E2E8F0;
    box-shadow: none;
    background: #fff;
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }
  #app-sidebar::-webkit-scrollbar { display: none; }
  #sidebar-overlay { display: none !important; }

  /* ── TOPBAR desktop : minimaliste ── */
  .app-topbar {
    padding: 0 20px;
    height: 60px;
  }
  /* Cache hamburger (déjà dans sidebar) + brand (logo dans sidebar) */
  .topbar-menu-btn,
  .app-brand { display: none; }
  /* Pousse les icônes à droite */
  .topbar-right { margin-left: auto; }
  .app-topbar-btn {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
  }
  .app-topbar-btn:hover { background: rgba(255,255,255,0.15); }

  /* ── BOTTOM NAV : caché sur desktop ── */
  .app-bottom-nav { display: none !important; }

  /* ── Sidebar user header ── */
  .sidebar-user-header { padding-top: 12px; }

  /* ── Éléments desktop-only ── */
  .sdb-desktop-header { display: flex; }
  .sdb-desktop-mainnav { display: flex; }
  .sdb-desktop-divider { display: block; }

  /* ── CONTENU : max-width centré, meilleure lisibilité ── */
  #feed-scroll {
    max-width: 700px;
    margin: 0 auto;
    padding: 12px 16px 24px;
  }

  /* ── Post cards sur desktop ── */
  .post-card {
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    border: 1px solid #E9EDF3;
  }

  /* ── Page Messages ── */
  .msg-topbar { padding: 16px 20px 8px; }
  .msg-search-row { margin: 0 12px; }
  #conv-list { padding: 0 8px; }
  .conv-item { border-radius: 14px; margin-bottom: 4px; }

  /* ── Page Profil ── */
  #profil-scroll {
    max-width: 700px;
    margin: 0 auto;
  }

  /* ── Page Notifications ── */
  #p-notifs .page-scroll {
    max-width: 700px;
    margin: 0 auto;
    padding: 12px 16px;
  }

  /* ── Page Marketplace ── */
  #p-marketplace .page-scroll {
    padding: 12px 16px;
  }

  /* ── Marketplace desktop : 3 cartes visibles par ligne ── */
  .mk-cards-row .mk-service-card {
    width: calc(33.33% - 16px);
    max-width: none;
  }

  /* ── Page Publier ── */
  #p-publish .page-scroll {
    max-width: 620px;
    margin: 0 auto;
    padding: 16px;
  }

  /* ── Scrollbars desktop discrètes ── */
  .page-scroll::-webkit-scrollbar { width: 5px; }
  .page-scroll::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
  .page-scroll::-webkit-scrollbar-track { background: transparent; }
  .page-scroll { scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }

  /* ── Shorts / vidéo scroll : pleine hauteur ── */
  .vs-item { height: 100vh; }

  /* ── Overlays : décalés de la sidebar ── */
  .comments-overlay { left: 260px; }
  .sheet-overlay    { left: 260px; }

  /* Sheets bottom : partent du bord droit de la sidebar */
  .generic-sheet,
  .post-detail-sheet,
  .pub-sheet {
    left: 260px !important;
    border-radius: 20px 20px 0 0;
  }

  /* Player vidéo plein écran : décalé de la sidebar */
  #video-player-modal { left: 260px; }

  /* ═══════════════════════════════════════════════════════════
     SHORTS — Layout desktop : vidéo portrait centrée + panneau info
  ═══════════════════════════════════════════════════════════ */

  /* Modal full-screen, deux colonnes : vidéo | infos */
  #vs-modal {
    display: none;             /* géré par JS */
    left: 260px !important;    /* décalé de la sidebar */
    background: #0A0A0A !important;
  }
  #vs-modal[style*="block"] {
    display: flex !important;
    align-items: stretch;
  }

  /* Zone vidéo — portrait 420px, centré */
  #vs-feed {
    flex-shrink: 0;
    width: 390px !important;
    min-width: 320px !important;
    max-width: 420px !important;
    height: 100% !important;
    margin: 0 auto !important;
    box-shadow: 0 0 80px rgba(0,0,0,.9);
    position: relative;
    align-self: stretch;
  }

  .vs-item {
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }

  /* Panneau info à droite de la vidéo */
  #vs-info-panel {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.06);
    background: #111;
  }

  /* Flèches de navigation desktop */
  .vs-nav-arrow {
    position: fixed;
    right: calc(50% - 195px - 260px - 52px);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background .15s, transform .1s;
    backdrop-filter: blur(8px);
    font-size: 18px;
  }
  .vs-nav-arrow:hover    { background: rgba(255,255,255,.25); transform: scale(1.08); }
  .vs-nav-arrow:active   { transform: scale(.92); }
  .vs-nav-arrow.vs-nav-up   { top: calc(50% - 54px); }
  .vs-nav-arrow.vs-nav-down { top: calc(50% + 10px); }
  .vs-nav-arrow:disabled { opacity: .2; cursor: not-allowed; }

  /* Raccourci clavier tooltip */
  .vs-kbd-hint {
    position: fixed;
    bottom: 20px;
    left: calc(260px + 50%);
    transform: translateX(-50%);
    color: rgba(255,255,255,.35);
    font-size: 11px;
    letter-spacing: .5px;
    pointer-events: none;
    z-index: 5;
  }

  /* ── Chat : occupe toute la zone contenu (après sidebar) ── */
  .chat-screen,
  .chat-screen.hidden,
  .chat-screen.open {
    left: 260px !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
  /* Off-screen → glisse vers la droite */
  .chat-screen         { transform: translateX(100%) !important; }
  .chat-screen.hidden  { display: none !important; transform: translateX(100%) !important; }
  /* On-screen → aucun décalage (pas de translateX(-50%) du mobile) */
  .chat-screen.open    { transform: translateX(0) !important; display: flex !important; }

  /* ── Panneau profil : limiter la largeur pour rester visible ── */
  .chat-profile-panel {
    max-width: 340px;
    width: 320px;
  }
}

/* ══════════════════════════════════════════
   ÉDITEUR VIDÉO — keyframes zoom / intro / outro
   ══════════════════════════════════════════ */
@keyframes gwZoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.25); }
}
@keyframes gwZoomOut {
  from { transform: scale(1.25); }
  to   { transform: scale(1); }
}
@keyframes gwZoomEnter {
  from { transform: scale(1.5); opacity: .6; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes gwIntroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gwIntroSlide {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes gwIntroPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
@keyframes gwOutroFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes gwOutroSlide {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-40px); opacity: 0; }
}
@keyframes gwOutroBlur {
  from { filter: blur(0px);  opacity: 1; }
  to   { filter: blur(12px); opacity: 0; }
}

/* ═══════════════════════════════════════════
   ARTISTE / STREAMING — Thème clair
   ═══════════════════════════════════════════ */

/* Barre de recherche artiste en mode clair */
body:not(.dark-mode) #artiste-search-input {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}
body:not(.dark-mode) #artiste-search-input::placeholder { color: #94A3B8; }

/* Mini player en mode clair */
body:not(.dark-mode) #artiste-mini-player {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
}
body:not(.dark-mode) #artiste-mini-player #artiste-pl-bar-wrap { background: #E2E8F0 !important; }
body:not(.dark-mode) #artiste-mini-player #artiste-pl-cur,
body:not(.dark-mode) #artiste-mini-player #artiste-pl-dur { color: #64748B !important; }

@keyframes artShareUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Bannière contenu partagé (login / register) ── */
.gw-share-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(219,39,119,.1));
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  animation: gwBannerIn .35s ease;
  cursor: pointer;
  transition: opacity .2s;
}
.gw-share-banner:hover { opacity: .85; }
.gw-share-banner.hidden { display: none !important; }

.gw-share-banner-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED, #DB2777);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.gw-share-banner-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.gw-share-banner-text { min-width: 0; }
.gw-share-banner-title {
  font-size: 12.5px; font-weight: 700; color: #A78BFA;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.gw-share-banner-sub { font-size: 11px; color: #94A3B8; }

@keyframes gwBannerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   HASHTAGS
══════════════════════════════════════════ */
.gw-hashtag {
  color: #6366F1;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, opacity .15s;
  border-radius: 4px;
  padding: 0 1px;
}
.gw-hashtag:hover {
  color: #4F46E5;
  text-decoration: underline;
  opacity: .85;
}
/* Dans le video scroll (fond sombre) */
.vs-caption .gw-hashtag {
  color: #A5B4FC;
}
.vs-caption .gw-hashtag:hover {
  color: #C7D2FE;
}

/* ══ BANDEAU COOKIES RGPD ══ */
.gw-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: #1E293B;
  border: 1px solid rgba(129,140,248,.3);
  border-radius: 16px;
  padding: 16px;
  z-index: 99999;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .4s ease;
}
.gw-cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.gw-cookie-icon { font-size: 22px; flex-shrink: 0; }
.gw-cookie-content p {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0;
}
.gw-cookie-content a { color: #818CF8; text-decoration: none; }
.gw-cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.gw-cookie-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.gw-cookie-refuse {
  background: transparent;
  border: 1.5px solid rgba(129,140,248,.4);
  color: #94A3B8;
}
.gw-cookie-accept {
  background: linear-gradient(135deg, #6366F1, #818CF8);
  color: #fff;
}

/* ══ CHECKBOX 18+ ══ */
.gw-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
}
.gw-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #818CF8;
  cursor: pointer;
}
.gw-check-label strong { color: #E2E8F0; }
