/* Thème sombre commun, chargé en dernier et activé exclusivement par l'app Capacitor. */
html.qjd-capacitor-app[data-qjd-theme="dark"] {
  --settings-ink: #eef7ff;
  --settings-text: #d8e8f5;
  --settings-muted: #9db3c6;
  --settings-line: rgba(93, 139, 174, .42);
  --settings-soft: #102437;
  --settings-card: rgba(14, 31, 47, .96);
  --ink: #eef7ff;
  --text: #d8e8f5;
  --muted: #9db3c6;
  --line: rgba(93, 139, 174, .42);
  --soft: #102437;
  --card: rgba(14, 31, 47, .96);
}

html.qjd-capacitor-app[data-qjd-theme="dark"] body,
html.qjd-capacitor-app[data-qjd-theme="dark"] main,
html.qjd-capacitor-app[data-qjd-theme="dark"] [class$="-page"],
html.qjd-capacitor-app[data-qjd-theme="dark"] [class*="-page "] {
  background-color: #07131f !important;
  color: #d8e8f5;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-info-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .media-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qa-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .card-qjd,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .message-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .chat-intro-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .chat-empty-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-dashboard-panel,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-preview-card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] main h1,
html.qjd-capacitor-app[data-qjd-theme="dark"] main h2,
html.qjd-capacitor-app[data-qjd-theme="dark"] main h3,
html.qjd-capacitor-app[data-qjd-theme="dark"] main h4,
html.qjd-capacitor-app[data-qjd-theme="dark"] main label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-info-value {
  color: #eef7ff;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] main p,
html.qjd-capacitor-app[data-qjd-theme="dark"] main li,
html.qjd-capacitor-app[data-qjd-theme="dark"] .field-help,
html.qjd-capacitor-app[data-qjd-theme="dark"] .section-copy,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-info-label {
  color: #aac0d2;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg-white,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-control,
html.qjd-capacitor-app[data-qjd-theme="dark"] input,
html.qjd-capacitor-app[data-qjd-theme="dark"] textarea,
html.qjd-capacitor-app[data-qjd-theme="dark"] select {
  background-color: #112538 !important;
  border-color: #2c465d !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] input::placeholder,
html.qjd-capacitor-app[data-qjd-theme="dark"] textarea::placeholder { color: #7890a4; }
html.qjd-capacitor-app[data-qjd-theme="dark"] hr,
html.qjd-capacitor-app[data-qjd-theme="dark"] .dropdown-divider { border-color: #294158; }
html.qjd-capacitor-app[data-qjd-theme="dark"] img { color-scheme: only light; }

/* Surfaces applicatives : aucune grande zone claire ne subsiste en thème sombre. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper,
html.qjd-capacitor-app[data-qjd-theme="dark"] .inbox-shell,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-feed-page,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-wall-page {
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-shell-inner,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-core,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-actions,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-tabs-nav,
html.qjd-capacitor-app[data-qjd-theme="dark"] .pane-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-wall-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-card-mini,
html.qjd-capacitor-app[data-qjd-theme="dark"] .badge-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .friend-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .favorites-helper-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-form-shell,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-section-button,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-save-bar,
html.qjd-capacitor-app[data-qjd-theme="dark"] .inbox,
html.qjd-capacitor-app[data-qjd-theme="dark"] .topbar,
html.qjd-capacitor-app[data-qjd-theme="dark"] .list,
html.qjd-capacitor-app[data-qjd-theme="dark"] .row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty,
html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer,
html.qjd-capacitor-app[data-qjd-theme="dark"] .friend,
html.qjd-capacitor-app[data-qjd-theme="dark"] .delete-modal {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-shell-inner,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-header,
html.qjd-capacitor-app[data-qjd-theme="dark"] .inbox,
html.qjd-capacitor-app[data-qjd-theme="dark"] .list {
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-username-row h1,
html.qjd-capacitor-app[data-qjd-theme="dark"] .pane-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-tab-btn,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-section-button,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-preview-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .meta .name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .fname {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-meta-line,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-bio-preview,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-secondary-links,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-stat-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-preview-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .meta .preview,
html.qjd-capacitor-app[data-qjd-theme="dark"] .thread-time,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .friend-sub {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-stat-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-tab-btn:not(.active),
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-actions-main .btn-outline-secondary,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-actions-main .btn-outline-primary,
html.qjd-capacitor-app[data-qjd-theme="dark"] .search,
html.qjd-capacitor-app[data-qjd-theme="dark"] .appearance-choice-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-crop-panel {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-section-button.active,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-tab-btn.active {
  background: linear-gradient(135deg, #067ed5, #05c7f2) !important;
  border-color: transparent !important;
  color: #fff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-section-button.active i,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-section-button.active span {
  color: #fff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .validation-list li,
html.qjd-capacitor-app[data-qjd-theme="dark"] .badge-preview,
html.qjd-capacitor-app[data-qjd-theme="dark"] .temporary-zone,
html.qjd-capacitor-app[data-qjd-theme="dark"] .danger-zone {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-back-link {
  background: #112538;
  border-color: #2c465d;
  color: #7ddcff;
  box-shadow: none;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-preview-identity {
  background: rgba(7, 19, 31, .86) !important;
  border-color: rgba(125, 220, 255, .30) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .row.unread-row {
  background: linear-gradient(90deg, rgba(5, 199, 242, .15), #0e2031 70%) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-page-wrapper,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-shell,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notifications-page,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notifications-wrap {
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-city-summary,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-filter-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-empty,
html.qjd-capacitor-app[data-qjd-theme="dark"] .composer,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post,
html.qjd-capacitor-app[data-qjd-theme="dark"] .comments,
html.qjd-capacitor-app[data-qjd-theme="dark"] .infeed-activity-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-item,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-group,
html.qjd-capacitor-app[data-qjd-theme="dark"] .member-search-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .community-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .feature-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .spotlight-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .desktop-wall-panel,
html.qjd-capacitor-app[data-qjd-theme="dark"] .desktop-upcoming-card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .20) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall main > .card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .wall-header {
  background: #0e2031 !important;
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .wall-hero-badge {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-city-value,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-list-heading,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-author,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-message,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-group-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .member-search-heading,
html.qjd-capacitor-app[data-qjd-theme="dark"] .wall-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .composer-intro,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-wall-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-organizer-line,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-time,
html.qjd-capacitor-app[data-qjd-theme="dark"] .composer-hint {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .wall-sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-wall-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .file-meta {
  color: #aac0d2 !important;
}

/* Navigation retour : même capsule QJD soignée dans les deux thèmes. */
html.qjd-capacitor-app[data-qjd-theme="light"] .qjd-back-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="light"] .qjd-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-height: 46px !important;
  padding: 7px 18px 7px 8px !important;
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(14, 165, 233, .30) !important;
  border-radius: 999px !important;
  color: #0b6fae !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(14, 122, 181, .14) !important;
}

html.qjd-capacitor-app[data-qjd-theme="light"] .qjd-back-arrow {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0e96df, #08c5e8) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="light"] .qjd-back-btn:hover,
html.qjd-capacitor-app[data-qjd-theme="light"] .qjd-back-btn:focus-visible {
  border-color: rgba(14, 165, 233, .55) !important;
  box-shadow: 0 16px 34px rgba(14, 122, 181, .18), 0 0 0 3px rgba(14, 165, 233, .10) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-back-wrapper {
  background: linear-gradient(180deg, rgba(7, 19, 31, .96), rgba(7, 19, 31, .72) 76%, transparent) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 7px 18px 7px 8px !important;
  background: #10283b !important;
  border-color: rgba(78, 184, 238, .30) !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-radius: 999px !important;
  color: #7ddcff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-back-arrow {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0e96df, #08c5e8) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-back-btn:hover,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-back-btn:focus-visible {
  border-color: rgba(125, 220, 255, .58) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28), 0 0 0 3px rgba(5, 199, 242, .10) !important;
}

/* Notifications : liste, état vide et notification réelle restent entièrement sombres. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .notifications-page {
  --qjd-card: #0e2031;
  --qjd-text: #eef7ff;
  --qjd-muted: #aac0d2;
  --qjd-border: #294158;
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-group-title {
  background: #10283b !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-item,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-item.unread,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-state {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-item.unread {
  background: linear-gradient(90deg, rgba(5, 199, 242, .13), #0e2031 48%) !important;
  border-color: rgba(69, 174, 226, .48) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-message,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notif-action-link,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notif-user-link,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .notif-action-link:hover,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notif-user-link:hover {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-time {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-icon,
html.qjd-capacitor-app[data-qjd-theme="dark"] .notification-avatar {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

/* QJD Talents : suppression de toutes les grandes surfaces blanches. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-page {
  --talent-bg: #07131f;
  --talent-card: #0e2031;
  --talent-border: #294158;
  --talent-dark: #eef7ff;
  --talent-soft: #aac0d2;
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-hero,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-filters,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-empty,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-hero::after {
  background: conic-gradient(from 210deg, rgba(5,199,242,.20), rgba(14,126,213,.06), rgba(5,199,242,.12), rgba(5,199,242,.20)) !important;
  box-shadow: inset 0 0 0 22px rgba(7, 19, 31, .34) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-hero-left small,
html.qjd-capacitor-app[data-qjd-theme="dark"] .filter-label {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-hero-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-price,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-empty-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-hero-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-city,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-empty-text {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .talent-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .talents-empty-icon,
html.qjd-capacitor-app[data-qjd-theme="dark"] .btn-talent-fav {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

/* Salons : cartes, entrées, champs et pastilles utilisent la même profondeur sombre. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg {
  --q-bg: #07131f;
  --q-card: #0e2031;
  --q-dark: #eef7ff;
  --q-soft: #aac0d2;
  --q-border: #294158;
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .head,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .section,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .room,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .entry {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .20) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .head::after {
  background: conic-gradient(from 210deg, rgba(5,199,242,.18), rgba(14,126,213,.05), rgba(5,199,242,.12), rgba(5,199,242,.18)) !important;
  box-shadow: inset 0 0 0 20px rgba(7, 19, 31, .36) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .r-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .entry .big,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .entry .kicker {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .hint,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .r-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .entry .desc {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .pill-count {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .chev {
  background: linear-gradient(135deg, #087fd4, #06c3e8) !important;
  border-color: transparent !important;
  color: #fff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .bg .btn:not(.btn-primary):not(.btn-success):not(.btn-danger) {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

/* Accueil : le fond reste sombre jusqu'à la navigation basse. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-home,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-home-shell {
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .home-footer-note {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .home-footer-note strong {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .spotlight-link {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .spotlight-link:hover {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .community-icon {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

/* Boussole et Connexions : même système de surfaces que le reste de l'app. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-page {
  --b-dark: #eef7ff;
  --b-soft: #aac0d2;
  --b-border: #294158;
  --b-card: #0e2031;
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-tab:not(.active) {
  background: #11283b !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-tab:not(.active):hover {
  color: #7ddcff !important;
  border-color: rgba(125, 220, 255, .48) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .b-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .connection-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .request-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-page .settings-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-box,
html.qjd-capacitor-app[data-qjd-theme="dark"] .connection-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .request-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-profile-panel,
html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-empty-box {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .connection-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .request-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-box,
html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-profile-vibe {
  background: #112538 !important;
  border-color: #2c465d !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .connection-main h4,
html.qjd-capacitor-app[data-qjd-theme="dark"] .request-main h4,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-box h4,
html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-profile-main h3 {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .section-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .connection-sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .request-sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-box p,
html.qjd-capacitor-app[data-qjd-theme="dark"] .settings-helper-line,
html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-profile-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-action-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .empty-inline-note,
html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-empty-box {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-profile-vibe,
html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-info-box {
  background: #102b40 !important;
  border-color: #31506a !important;
  color: #bfe9ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .boussole-status-chip,
html.qjd-capacitor-app[data-qjd-theme="dark"] .status-help-btn {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .compass-stage {
  background:
    radial-gradient(circle at 50% 48%, rgba(5, 199, 242, .10), transparent 31%),
    radial-gradient(circle at 76% 18%, rgba(14, 126, 213, .10), transparent 26%),
    #0b1d2d !important;
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .compass-board {
  background: radial-gradient(circle at center, #153047 0%, #102538 62%, #0b1b2a 100%) !important;
  border-color: rgba(44, 135, 187, .52) !important;
  box-shadow: inset 0 0 0 2px rgba(125, 220, 255, .08), 0 24px 48px rgba(0, 0, 0, .28) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .compass-inner-ring,
html.qjd-capacitor-app[data-qjd-theme="dark"] .compass-halo {
  border-color: rgba(125, 220, 255, .28) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .compass-letter,
html.qjd-capacitor-app[data-qjd-theme="dark"] .candidate-name {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .candidate-orbit {
  background: #112b40 !important;
  border-color: #31506a !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .candidate-avatar,
html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-profile-avatar,
html.qjd-capacitor-app[data-qjd-theme="dark"] .connection-avatar,
html.qjd-capacitor-app[data-qjd-theme="dark"] .request-avatar {
  background: #102538 !important;
  border-color: #31506a !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .btn-boussole-profile {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .needle-center-dot {
  background: #7ddcff !important;
}

/* Correctif sombre 2026-09-04 : Mur, activités, Talent et espace QJD+. */

/* Mur : liens, menus et outils ne doivent jamais retomber sur les couleurs claires. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-author a,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-author a:visited,
html.qjd-capacitor-app[data-qjd-theme="dark"] .post-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .counts,
html.qjd-capacitor-app[data-qjd-theme="dark"] .counts a {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .post-menu,
html.qjd-capacitor-app[data-qjd-theme="dark"] .file-btn,
html.qjd-capacitor-app[data-qjd-theme="dark"] .act {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #aac0d2 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .act i {
  color: currentColor !important;
  font-size: 1.08rem;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .act.liked {
  background: rgba(5, 199, 242, .13) !important;
  color: #38c8f2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .post-menu:hover,
html.qjd-capacitor-app[data-qjd-theme="dark"] .file-btn:hover,
html.qjd-capacitor-app[data-qjd-theme="dark"] .act:hover {
  background: #173249 !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .post-badge.activity {
  background: rgba(245, 158, 11, .12) !important;
  border-color: rgba(245, 158, 11, .38) !important;
  color: #ffd37d !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .post-actions,
html.qjd-capacitor-app[data-qjd-theme="dark"] .counts,
html.qjd-capacitor-app[data-qjd-theme="dark"] .comments {
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .comments,
html.qjd-capacitor-app[data-qjd-theme="dark"] .c-bubble,
html.qjd-capacitor-app[data-qjd-theme="dark"] .reply-form,
html.qjd-capacitor-app[data-qjd-theme="dark"] .selected-photo-item,
html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-sheet {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .comment-input,
html.qjd-capacitor-app[data-qjd-theme="dark"] .reply-form input[type="text"],
html.qjd-capacitor-app[data-qjd-theme="dark"] #reportDetails {
  background: #0b1d2d !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .comment-input:focus,
html.qjd-capacitor-app[data-qjd-theme="dark"] .reply-form input[type="text"]:focus,
html.qjd-capacitor-app[data-qjd-theme="dark"] #reportDetails:focus {
  background: #10283b !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .composer textarea,
html.qjd-capacitor-app[data-qjd-theme="dark"] .composer input[type="text"] {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall-target-loader {
  background: #07131f !important;
  color: #eef7ff !important;
}

/* Activités : la carte et son pied forment une seule surface sombre. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-card.boosted {
  background: #0e2031 !important;
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-card.boosted {
  border-color: rgba(249, 115, 22, .62) !important;
  box-shadow: 0 24px 58px rgba(249, 115, 22, .12) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-card-body,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-footer {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-spots-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-footer .spots {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-open-hint {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-view-toggle {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

/* Activités : harmonisation sombre des outils de découverte, sans toucher aux cartes. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-city-count {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-city-label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .distance-helper,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-list-helper {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .discovery-tool {
  background: #112538 !important;
  border-color: #31506a !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .discovery-tool summary {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .discovery-tool[open] summary {
  border-bottom-color: #31506a !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .zone-search-form input {
  background: #0b1d2d !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .zone-search-form input::placeholder {
  color: #8199ad !important;
  opacity: 1;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .category-chip:not(.active),
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-filter-chip:not(.active),
html.qjd-capacitor-app[data-qjd-theme="dark"] .radius-filter-chip:not(.active) {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-view-switch {
  background: #112538 !important;
  border-color: #31506a !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-view-button:not(.active) {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-grid.view-list .activity-list-chips .activity-chip {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activities-grid.view-list .activity-open-hint {
  color: #fff !important;
}

/* Fiche Talent : profondeur sombre continue et formulaire entièrement dessiné. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-wrapper {
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-title-block,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-card {
  background: #0e2031 !important;
  border: 1px solid #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-form-row label {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-city,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-owner,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-description,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-form-help,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-card > p {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review-summary span {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-owner a,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review-meta {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-back-btn,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-fav-btn {
  min-height: 46px !important;
  background: #10283b !important;
  border: 1px solid rgba(78, 184, 238, .30) !important;
  color: #7ddcff !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-back-btn {
  border-radius: 999px !important;
  padding: 10px 17px !important;
  font-weight: 800 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-fav-btn {
  width: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-price-box,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-tag,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-price-label {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-price-value,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-tag,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review-stars {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-form-row input,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-form-row textarea,
html.qjd-capacitor-app[data-qjd-theme="dark"] .td-form-row select {
  background: #112b40 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .td-review-submit {
  background: linear-gradient(135deg, #087fd4, #06c3e8) !important;
  color: #fff !important;
  border: 0 !important;
}

/* Pages éditoriales : mêmes cartes sombres que l'application. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-page,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-shell {
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .info-hero.premium-hero {
  background:
    radial-gradient(circle at 84% 8%, rgba(168, 85, 247, .20), transparent 30%),
    linear-gradient(135deg, #111d3b, #15284a 55%, #10344d) !important;
  border: 1px solid rgba(155, 92, 255, .28) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .info-hero.premium-hero::after {
  background: rgba(155, 92, 255, .12) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .info-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-card.highlight,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-step {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .info-section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-card-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .info-card-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-section-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-list {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .info-section-label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .info-btn-soft {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #7ddcff !important;
}

/* Espace premium : le violet reste l'accent, jamais la grande surface. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page {
  --p-bg: #07131f;
  --p-card: #0e2031;
  --p-text: #eef7ff;
  --p-soft: #aac0d2;
  --p-line: #294158;
  --p-purple: #9b5cff;
  --p-purple-2: #bd63ff;
  --p-purple-deep: #c89bff;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, .13), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, .07), transparent 28%),
    #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-top,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .identity-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-support-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .civic-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .challenge-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .weekly-bonus-card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-top::after,
html.qjd-capacitor-app[data-qjd-theme="dark"] .identity-card::after {
  opacity: .26 !important;
  box-shadow: inset 0 0 0 20px rgba(7, 19, 31, .42) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-support-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .identity-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .stat-value,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .person-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .timeline-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .alert-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .boost-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-support-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .identity-city,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .section-note,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .stat-label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .person-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .empty-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .alert-desc,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .boost-meta {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .section-kicker,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-support-signature,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .form-label-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .challenge-reward {
  color: #b785ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .stat,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .person-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .timeline-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .recent-person-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .empty-state,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .boost-item,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .boost-item.active,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .weekly-category-option {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #eef7ff !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .alert-item,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .alert-item.active {
  background: #111d3b !important;
  border-color: rgba(155, 92, 255, .34) !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .stat-icon,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .timeline-dot,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .premium-kicker,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .pill:not(.success):not(.muted) {
  background: rgba(155, 92, 255, .13) !important;
  border-color: rgba(155, 92, 255, .32) !important;
  color: #c89bff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .btn-soft {
  background: #171f42 !important;
  border-color: rgba(155, 92, 255, .34) !important;
  color: #c89bff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .weekly-bonus-summary {
  background: rgba(245, 158, 11, .10) !important;
  border-color: rgba(245, 158, 11, .32) !important;
  color: #ffd37d !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .challenge-progress-shell {
  background: #1b2f43 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .check-grid label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .inline-check {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page .time-row select {
  background: #112538 !important;
  border-color: #2c465d !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page input[type="checkbox"],
html.qjd-capacitor-app[data-qjd-theme="dark"] .premium-page input[type="radio"] {
  accent-color: #9b5cff;
}

/* Le bouton retour reste visible sans former un large panneau gris au défilement. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-back-wrapper {
  padding-block: 8px 10px !important;
  background: rgba(7, 19, 31, .92) !important;
  border-bottom: 1px solid rgba(41, 65, 88, .70);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

/* Correctif sombre 2026-09-06 : création et détail d'activité. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page {
  --qjd-text: #eef7ff;
  --qjd-soft: #aac0d2;
  --qjd-border: #294158;
  --qjd-bg: #07131f;
  --qjd-card: #0e2031;
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .form-section {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-header h1,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .form-group label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .join-mode-option-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .category-help-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .form-section-title {
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-header p,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .small-note,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .join-mode-option-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .category-help-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .category-help-list {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .city-readonly,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .category-help-box,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .join-mode-box,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .current-image-box {
  background: #0b1d2d !important;
  border-color: #2c465d !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .join-mode-option {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page input[type="radio"] {
  accent-color: #16bde0;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page input[type="file"] {
  padding: 8px !important;
  background: #112538 !important;
  border-color: #31506a !important;
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #087fd4, #06c3e8);
  color: #fff;
  font-weight: 900;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .form-error-box {
  background: rgba(127, 29, 29, .24) !important;
  border-color: rgba(248, 113, 113, .42) !important;
  color: #fecaca !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .form-error-box strong,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-form-page .field-error {
  color: #fca5a5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .card-qjd,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .organizer-box,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .message-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .empty-state-soft,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .side-card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .organizer-box {
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #294158 !important;
  border-radius: 16px !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .organizer-meta-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .activity-summary-item {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .activity-summary-item.important {
  background: rgba(34, 197, 94, .12) !important;
  border-color: rgba(74, 222, 128, .34) !important;
  color: #9af0b7 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .closure-badge {
  background: rgba(245, 158, 11, .12) !important;
  border-color: rgba(251, 191, 36, .36) !important;
  color: #ffd37d !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .activity-summary-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .section-title {
  margin: 0 0 10px !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .description-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .muted,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .message-timestamp,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .organizer-meta-pill {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .organizer-box a,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .message-card a {
  color: #55ccff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .message-card p {
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .empty-state-soft {
  border-style: dashed !important;
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .participant-avatar {
  border-color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .share-btn,
html.qjd-capacitor-app[data-qjd-theme="dark"] .activity-detail-page .action-outline {
  background: #112538 !important;
  border: 1px solid #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .mobile-cta-card {
  background: rgba(14, 32, 49, .98) !important;
  border-color: #294158 !important;
  box-shadow: 0 -16px 38px rgba(0, 0, 0, .28) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .mobile-cta-meta {
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .late-cancel-modal {
  background: #0e2031 !important;
  border-color: rgba(248, 113, 113, .36) !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .late-cancel-modal h3 {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .late-cancel-modal p {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .late-cancel-warning {
  background: rgba(245, 158, 11, .10) !important;
  border-color: rgba(251, 191, 36, .34) !important;
  color: #ffd37d !important;
}

/* Correctif sombre 2026-09-06 : gestion et clôture d'activité. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-page-background {
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .section-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .participant-list,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .participant-item,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .closure-modal,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .finished-card {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .section-card.soft,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .participant-list {
  background: #0b1d2d !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card h1,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card h2,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card h3,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .participant-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card label {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .text-secondary,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .helper-text {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .page-kicker,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .section-badge {
  background: rgba(14, 165, 233, .12) !important;
  border-color: rgba(56, 189, 248, .28) !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .section-card.warning,
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .photo-box {
  background: rgba(245, 158, 11, .08) !important;
  border-color: rgba(251, 191, 36, .30) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card .closure-summary-item {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card input[type="checkbox"],
html.qjd-capacitor-app[data-qjd-theme="dark"] .form-container-card input[type="radio"] {
  accent-color: #16bde0;
}

/* Accueil public de l'app : aucune section claire derrière les cartes. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home {
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .section-head h2,
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .public-story h2,
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .feature-card h3 {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .section-head p,
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .public-story p,
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .feature-card p {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .feature-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .public-story,
html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .story-pill {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .public-home .feature-icon {
  background: #112538 !important;
  border-color: #31506a !important;
}

/* Salons : pages de listes et conversation complète. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page {
  --q-dark: #eef7ff;
  --q-soft: #aac0d2;
  --q-border: #294158;
  --q-bg: #07131f;
  --q-card: #0e2031;
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .hero,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .section,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .search-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .room,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .top,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .section,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .search-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .room {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .hero::before {
  opacity: .34 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page h1,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .r-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .r-name {
  color: #eef7ff !important;
  text-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .hint,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .r-desc,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .desc,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .hint,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .r-desc {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .city-rooms-page .btn-ghost,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .theme-rooms-page .btn-ghost {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page {
  --q-soft: #aac0d2;
  --q-dark: #eef7ff;
  --q-border: #294158;
  --q-card: #0e2031;
  --q-panel: rgba(14, 32, 49, .97);
  --q-line: rgba(49, 80, 106, .78);
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .room-header,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .top-meta-strip,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .composer-wrap {
  background: rgba(14, 32, 49, .97) !important;
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .bubble,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .composer,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .gifbox,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .msg-menu {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .bubble.mine,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .reply-chip,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .replybox {
  background: #112b40 !important;
  border-color: #31506a !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .room-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .author,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .content,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .replyline,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .reply-chip .rtop,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .gif-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .room-sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .time,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .replytext,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .reply-chip .rtext,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .status {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .icon-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .msg-more-btn,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .tool,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .btn-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .scroll-bottom {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .msg-menu a,
html.qjd-capacitor-app[data-qjd-theme="dark"] .room-page .msg-menu button {
  color: #d8e8f5 !important;
}

/* Ligue civique : l'or reste un accent, les grandes surfaces deviennent sombres. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page {
  --ligue-dark: #eef7ff;
  --ligue-muted: #aac0d2;
  --ligue-card: #0e2031;
  background: #07131f !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-hero,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-user-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-mini-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-card-head,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-user-stat,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-empty {
  background: #0e2031 !important;
  border-color: rgba(245, 158, 11, .28) !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-user-stat,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-row,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-empty {
  background: #112538 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-user-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-card-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-name {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-card-sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-mini-card span,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-user-stat span,
html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-empty {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .league-page .league-rules-link {
  background: #112538 !important;
  border-color: rgba(245, 158, 11, .34) !important;
  color: #ffd37d !important;
}

/* Contact : formulaire sombre et contrasté. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form {
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .form-container {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .form-container h1 {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .form-container p {
  color: #aac0d2 !important;
}

/* Profil : galerie, passeport et commentaires. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .photo-empty-state,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .photo-empty-icon,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .badge-detail {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .photo-empty-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .badge-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .profile-wall-author a,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .c-author {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .photo-empty-copy,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .badge-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .profile-wall-meta,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .profile-wall-counts {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .badge-pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .profile-wall-badge,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .post-action-button {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .c-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .c-text {
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .c-author {
  color: #eef7ff !important;
}

/* Menu d'options des publications : boutons sombres, actions bleues. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .menu-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .menu-handle {
  background: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .menu-x,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .menu-item {
  background: #0b1d2d !important;
  border-color: #31506a !important;
  color: #55ccff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .menu-item:hover {
  background: #173249 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .menu-item.danger {
  background: rgba(239, 68, 68, .10) !important;
  border-color: rgba(248, 113, 113, .34) !important;
  color: #fca5a5 !important;
}

/* Correctif sombre 2026-09-06 : contact, menus, talents et messageries. */

/* Contact : empêcher tout débordement horizontal sur les petits écrans. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form {
  overflow-x: hidden !important;
  padding-inline: 12px !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .container,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .container > div,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .form-container,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .form-container * {
  box-sizing: border-box !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .container,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .container > div {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-inline: 0 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form .form-container {
  width: min(100%, 550px) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: clamp(20px, 5vw, 32px) !important;
  overflow: hidden !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form form,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form form p {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form input,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form textarea,
html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .main-form textarea {
  resize: vertical !important;
}

/* Le menu du mur vit hors du conteneur .qjd-wall dans le DOM. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-overlay .menu-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-overlay .menu-handle {
  background: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-overlay .menu-x,
html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-overlay .menu-item {
  background: #0b1d2d !important;
  border-color: #31506a !important;
  color: #55ccff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-overlay .menu-item:hover {
  background: #173249 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .menu-overlay .menu-item.danger {
  background: rgba(239, 68, 68, .10) !important;
  border-color: rgba(248, 113, 113, .34) !important;
  color: #fca5a5 !important;
}

/* Profil : l'état vide de l'onglet Talents rejoint les autres panneaux sombres. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .talent-empty-state,
html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .talent-empty-icon {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .talent-empty-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .profile-page-wrapper .talent-empty-copy {
  color: #aac0d2 !important;
}

/* Création d'un salon local. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page {
  --q-dark: #eef7ff;
  --q-soft: #aac0d2;
  --q-border: #31506a;
  --q-bg: #07131f;
  --q-card: #0e2031;
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .card {
  background: #0e2031 !important;
  border-color: #31506a !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24) !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .card::before {
  opacity: .32 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page h1,
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .tip b {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .sub,
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .helper,
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .tip {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .pill,
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .btn-ghost,
html.qjd-capacitor-app[data-qjd-theme="dark"] .create-city-room-page .tip {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

/* Conversation privée : en-tête, messages reçus et saisie réellement sombres. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page {
  --bg: #07131f;
  --panel: #0e2031;
  --line: #294158;
  --text: #eef7ff;
  --muted: #aac0d2;
  --received: #112538;
  --received-border: #31506a;
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-header,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-form-wrap {
  background: rgba(14, 32, 49, .97) !important;
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .back-btn,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .message-bubble.received,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-empty-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-form,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .input-shell,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .scroll-bottom {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .header-name,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .message-bubble.received {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-form textarea,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-form input {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-form textarea::placeholder,
html.qjd-capacitor-app[data-qjd-theme="dark"] .conversation-page .chat-form input::placeholder {
  color: #7890a4 !important;
  opacity: 1 !important;
}

/* Mur : bloc des activités à venir entièrement harmonisé en sombre. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .infeed-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .infeed-activity-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .desktop-upcoming-title {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .infeed-subtitle {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .infeed-icon {
  background: #123149 !important;
  border: 1px solid #31506a !important;
  color: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .infeed-mini-chip,
html.qjd-capacitor-app[data-qjd-theme="dark"] .qjd-wall .desktop-upcoming-chip {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
}

/* Messagerie : corps du tiroir de sélection des contacts. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .drawer-search,
html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .friends {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #d8e8f5 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .drawer-section + .drawer-section {
  border-color: #294158 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .drawer-section-title,
html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .drawer-helper {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .drawer-handle {
  background: #7ddcff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .drawer .close-btn {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #55ccff !important;
}

/* Barème de la Ligue Civique : cartes et lignes de tableau sombres. */
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table-card,
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table,
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table tbody,
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table tr,
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-note {
  background: #0e2031 !important;
  border-color: #31506a !important;
  color: #d8e8f5 !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table th {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table td {
  background: #0e2031 !important;
  border-color: #294158 !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table td strong,
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-note strong {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-table .info-card-text,
html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-note {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-points {
  color: #5eead4 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .civic-league-rules-page .info-points.bad {
  color: #fca5a5 !important;
}

/* Signalement : mise en page mobile et contraste cohérents avec le thème sombre. */
html.qjd-capacitor-app[data-qjd-theme="dark"] body:has(.report-user-page) {
  background: #07131f !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page {
  background: #0e2031 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
  box-shadow: none !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page h2,
html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .form-group label,
html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .reason-text strong {
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .subtitle,
html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .reason-text small {
  color: #aac0d2 !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .reason-card {
  background: #112538 !important;
  border-color: #31506a !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .reason-card:hover,
html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .reason-card.selected {
  background: #123149 !important;
  border-color: #18b9ef !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page textarea {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #eef7ff !important;
}

html.qjd-capacitor-app[data-qjd-theme="dark"] .report-user-page .btn-light {
  background: #112538 !important;
  border-color: #31506a !important;
  color: #7ddcff !important;
}

@media (max-width: 768px) {
  html.qjd-capacitor-app .report-user-page {
    box-sizing: border-box;
    margin: 18px 12px 110px !important;
    max-width: none;
    padding: 22px 16px !important;
    width: auto;
  }
}
