/**
 * Amitié — design system global (Plus Jakarta Sans, layout mobile-first, composants UI).
 * Chargé en premier sur toutes les pages app.
 */

/* ── Typographie ── */
*,
*::before,
*::after {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.titre-page {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.2;
}

.titre-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Scrollbar masquée partout — le scroll reste possible (tactile / molette). */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

.texte-corps {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.texte-secondaire {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.label-champ {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

.badge-texte {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ── Layout global ── */
:root {
  --app-shell-bg: #09090b;
  --app-shell-max: 430px;
  --app-auth-inner-max: 420px;
  --app-web-content-pad: 20px;
  --app-web-shell-gap: 12px;
  --tchumy-violet: #8b5cf6;
  --tchumy-violet-light: #a78bfa;
  --tchumy-rose: #ec4899;
  --tchumy-gradient-brand: linear-gradient(135deg, #7c3aed 0%, #a855f7 42%, #ec4899 100%);
  --tchumy-shadow-brand: 0 4px 20px rgba(124, 58, 237, 0.28);
  --app-web-shell-w: 80vw;
  --app-frame-gradient: #09090b;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--app-shell-bg);
}

/* Dégradé uniquement dans la section Découvrir (pas le viewport entier). */
.decouvrirRoot {
  background: var(--app-frame-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

body.app-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

.app-container,
.appShell.app-container {
  width: 100%;
  max-width: var(--app-shell-max);
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Mobile : plein écran natif (comme un téléphone) */
@media (max-width: 767.98px) {
  body.app-layout {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
  }

  .app-container,
  .appShell.app-container {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .msgs-inbox,
  .matches-page,
  .my-profile-page,
  .meProfile,
  .notifs-page,
  .notifsPage,
  .profile-edit-page,
  .decouvrirSoul,
  .auth-page,
  .home-root,
  .wiz,
  .mainContent.page-content {
    background: transparent !important;
  }
}

/* Web : app centrée au milieu, 80% de largeur, 10% de marge colorée de chaque côté */
@media (min-width: 768px) {
  html,
  body {
    background: var(--app-shell-bg);
  }

  /* Pages internes : fond plat dans le shell (le dégradé reste sur .decouvrirRoot). */
  .msgs-inbox,
  .matches-page,
  .my-profile-page,
  .meProfile,
  .notifs-page,
  .notifsPage,
  .profile-edit-page,
  .decouvrirSoul,
  .auth-page,
  .home-root,
  .wiz,
  .mainContent.page-content {
    background: transparent !important;
  }

  body.app-layout {
    align-items: center;
    justify-content: center;
    background: transparent;
    padding:
      max(var(--app-web-shell-gap), env(safe-area-inset-top, 0px))
      0
      max(var(--app-web-shell-gap), env(safe-area-inset-bottom, 0px))
      0;
  }

  .app-container,
  .appShell.app-container {
    width: var(--app-web-shell-w);
    max-width: var(--app-web-shell-w);
    height: calc(100dvh - (var(--app-web-shell-gap) * 2));
    min-height: 0;
    max-height: calc(100dvh - (var(--app-web-shell-gap) * 2));
    border-radius: 28px;
    overflow: hidden;
    /* Même image de fond que les marges (fixed, ancrée au viewport) — pas d'encadré noir. */
    background: transparent;
    box-shadow: none;
  }

  .page-content,
  .mainContent.page-content {
    padding-left: var(--app-web-content-pad);
    padding-right: var(--app-web-content-pad);
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }

  .appShell:has(.bottomNav) .mainContent.page-content {
    padding-top: max(12px, calc(8px + env(safe-area-inset-top, 0px)));
    padding-bottom: calc(var(--bottom-nav-reserve, 68px) + 8px);
  }
}

.page-content,
.mainContent.page-content {
  flex: 1;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  padding-bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767.98px) {
  .mainContent.page-content {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }

  .appShell:has(.bottomNav) .mainContent.page-content {
    padding-bottom: calc(var(--bottom-nav-reserve, 72px) + env(safe-area-inset-bottom, 0px));
  }
}

.section {
  padding: 20px 0;
  width: 100%;
}

/* ── Header de page ── */
.header-page {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
}

.header-page__title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.2px;
}

.header-page__back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header-page__spacer {
  width: 36px;
  flex-shrink: 0;
}

/* ── Landing & auth (style épuré, centré) ── */
.landing-page,
.auth-page {
  flex: 0 1 auto;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-page--compact .auth-page__brand {
  margin-bottom: 28px;
}

/* ── Centrage parfait des écrans login / inscription / landing / accueil ── */
body.app-layout:has(.auth-page),
body.app-layout:has(.landing-page),
body.app-layout:has(.home-root),
body.app-layout:has(.wiz),
body.page-home {
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
}

html:has(.home-root) {
  overflow: hidden;
  height: 100%;
}

.appShell.app-container:has(.auth-page),
.appShell.app-container:has(.landing-page),
.appShell.app-container:has(.home-root),
.appShell.app-container:has(.wiz) {
  justify-content: center;
  min-height: 0;
}

.mainContent.page-content:has(.auth-page),
.mainContent.page-content:has(.landing-page),
.mainContent.page-content:has(.home-root),
.mainContent.page-content:has(.wiz) {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.mainContent.page-content:has(.home-root) {
  padding: 0 !important;
}

@media (max-width: 767.98px) {
  body.page-home .appShell.app-container,
  .appShell.app-container:has(.home-root) {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
}

.mainContent.page-content:has(.auth-page) > .auth-page,
.mainContent.page-content:has(.landing-page) > .landing-page,
.mainContent.page-content:has(.wiz) > .auth-page {
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.auth-page .card,
.auth-page #passkeyLoginWrap,
.auth-page .auth-page__passkey,
.auth-page .auth-page__form {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.landing-page--signed-in {
  justify-content: space-between;
  padding-bottom: 0;
}

.landing-page__hero,
.auth-page__brand {
  margin-bottom: 44px;
  text-align: center;
}

.landing-page__logo,
.auth-page__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 16px 40px rgba(124, 58, 237, 0.35));
}
.landing-page__logo svg,
.auth-page__logo svg,
.landing-page__logo img,
.auth-page__logo img {
  width: 100%;
  height: 100%;
}

.landing-page__title,
.auth-page__title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.landing-page__tagline,
.auth-page__subtitle {
  font-size: 17px;
  color: rgba(244, 180, 210, 0.55);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.landing-page__actions {
  width: 100%;
  max-width: 340px;
  display: grid;
  gap: 12px;
}

.landing-page__actions .btn-primary,
.landing-page__actions .btn-secondary {
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.landing-page__actions .btn-primary {
  background: var(--tchumy-gradient-brand);
  color: #fff;
  box-shadow: var(--tchumy-shadow-brand);
}

.landing-page__actions .btn-primary:active {
  opacity: 0.9;
}

.landing-page__actions .btn-secondary {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.32);
  color: rgba(229, 220, 255, 0.92);
  font-weight: 500;
}

.landing-page__actions .btn-secondary:active {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(167, 139, 250, 0.48);
  transform: scale(0.98);
}

.landing-page__legal {
  margin: 28px 0 0;
  max-width: 280px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: -0.01em;
}

.landing-page__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.landing-page__nav {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
}

.auth-page__form {
  width: 100%;
  max-width: 360px;
}

.auth-page__form .btn-primary {
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--tchumy-gradient-brand);
  color: #fff;
  padding: 16px 24px;
  box-shadow: var(--tchumy-shadow-brand);
}

.auth-page__form .btn-primary:active {
  opacity: 0.92;
}

.auth-page__footer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 40px;
  text-align: center;
}

.auth-page__footer a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
}

.auth-page__footer a:hover {
  text-decoration: underline;
}

/* ── Wizard inscription / onboarding (partagé signup + profil) ── */
.wiz {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: min(680px, 88vh);
}

.wizTop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.wizBack {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ece8f4;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.wizBack:active {
  transform: scale(0.92);
}

.wizBack[hidden] {
  display: none;
}

.wizProgress {
  flex: 1;
  display: flex;
  gap: 6px;
}

.wizProgress span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.wizProgress span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #7c5cff, #ec4899);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizProgress span.is-done::after {
  width: 100%;
}

.wizProgress span.is-active::after {
  width: 60%;
}

.wizViewport {
  position: relative;
  flex: 1;
}

.wizStep {
  display: none;
  animation: wizIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wizStep.is-active {
  display: block;
}

.wizStep.is-leaving {
  animation: wizOut 0.28s ease both;
}

@keyframes wizIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizStep,
  .wizStep.is-leaving {
    animation: none;
  }
}

.wizEyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 10px;
}

.wizTitle {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}

.wizSub {
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 24px;
}

.wizField {
  margin-top: 4px;
}

.wiz .input-field {
  font-size: 17px;
  padding: 15px 16px;
}

.wizHint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  display: block;
}

.wizErr {
  display: none;
  font-size: 13px;
  color: #fca5a5;
  margin-top: 10px;
}

.wizErr.is-visible {
  display: block;
}

.wizFoot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wiz .btn-primary {
  font-size: 16px;
  padding: 15px;
  width: 100%;
}

.wiz .btn-primary[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.wizModeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wizModeCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(124, 92, 255, 0.22);
  background: rgba(124, 92, 255, 0.06);
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.wizModeCard:active {
  transform: scale(0.97);
}

.wizModeCard.is-selected {
  border-color: rgba(124, 92, 255, 0.9);
  background: rgba(124, 92, 255, 0.18);
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.22);
}

.wizModeEmoji {
  font-size: 24px;
}

.wizModeTitle {
  font-size: 15px;
  font-weight: 700;
}

.wizModeBlurb {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}

.wizRecap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.wizRecapRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
}

.wizRecapRow + .wizRecapRow {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wizRecapKey {
  color: rgba(255, 255, 255, 0.45);
}

.wizRecapVal {
  color: #fff;
  font-weight: 600;
  max-width: 60%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizCheck {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
}

.wizCheck.is-checked {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.1);
}

.wizCheck.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
}

.wizCheckBox {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.wizCheck.is-checked .wizCheckBox {
  background: linear-gradient(135deg, #7c5cff, #ec4899);
  border-color: transparent;
}

.wizCheckBox svg {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.wizCheck.is-checked .wizCheckBox svg {
  opacity: 1;
  transform: scale(1);
}

.wizCheckTxt {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.wizCheckTxt a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wizCheck input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.wizLegal {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
}

.wizLoginLink {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.wizLoginLink a {
  color: #a78bfa;
  font-weight: 600;
}

/* ── Boutons ── */
.btn-primary,
.btn.btn-primary,
a.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  background: var(--tchumy-gradient-brand);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: opacity 150ms, transform 100ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: var(--tchumy-shadow-brand);
}

.btn-primary:active,
.btn.btn-primary:active {
  opacity: 0.88;
  transform: scale(0.98);
}

.btn-secondary,
.btn.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-secondary:active,
.btn.btn-secondary:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.btn-neutral,
.btn.btn-neutral {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  touch-action: manipulation;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Champs ── */
.input-field,
input.input-field,
textarea.input-field,
select.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 15px 18px;
  color: #f0f0f0 !important;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color 200ms, background 200ms;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.input-field:focus {
  border-color: rgba(124, 58, 237, 0.6) !important;
  background: rgba(124, 58, 237, 0.05) !important;
  box-shadow: none !important;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .input-field {
  width: 100%;
  padding-right: 48px;
}

.password-field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.password-field__toggle:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.password-field__toggle:active {
  transform: translateY(-50%) scale(0.94);
}

.password-field__toggle svg {
  display: block;
  pointer-events: none;
}

.password-field__toggle .icon-eye-off {
  display: none;
}

.password-field__toggle.is-visible .icon-eye {
  display: none;
}

.password-field__toggle.is-visible .icon-eye-off {
  display: block;
}

/* ── Cards ── */
.card {
  background: #161625;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.card-padded {
  padding: 18px 20px;
}

.card + .card {
  margin-top: 10px;
}

/* ── Pills ── */
.pill-accent {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
  white-space: nowrap;
}

.pill-success {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #86efac;
  white-space: nowrap;
}

/* ── Séparateurs ── */
.divider,
hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0;
  border: none;
}

/* ── Navbar : barre mobile pleine largeur · navigation web en haut ── */
:root {
  --bottom-nav-reserve: 72px;
}

.navbar,
nav.navbar.bottomNav {
  position: fixed;
  z-index: 100;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Mobile — même barre que le web, icônes fines */
@media (max-width: 767.98px) {
  :root {
    --bottom-nav-reserve: 72px;
  }

  nav.navbar.bottomNav {
    left: 50%;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 16px);
    min-width: 0;
    padding: 0 4px;
    min-height: 44px;
    border-radius: 22px;
    background: rgba(14, 14, 26, 0.90);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
    justify-content: center;
    gap: 0;
  }

  nav.navbar.bottomNav.bottomNav--decouvrir,
  body.page-decouvrir nav.navbar.bottomNav {
    background: rgba(12, 12, 22, 0.88);
    border-color: rgba(255, 255, 255, 0.07);
  }

  body.nav-loading-immersive nav.navbar.bottomNav {
    background: rgba(8, 8, 14, 0.75);
  }

  nav.navbar.bottomNav .navbar-item,
  nav.navbar.bottomNav .navItem {
    flex-direction: column;
    gap: 0;
    padding: 13px 14px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  nav.navbar.bottomNav .navbar-item span.label,
  nav.navbar.bottomNav .navItem .label {
    display: none;
  }

  nav.navbar.bottomNav .navIcon,
  nav.navbar.bottomNav .navbar-item svg,
  nav.navbar.bottomNav .navItem svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
  }

  nav.navbar.bottomNav .navBadge,
  nav.navbar.bottomNav .navbar-item .navBadge {
    top: 8px;
    right: 10px;
    min-width: 14px;
    height: 14px;
    font-size: 8px;
  }

  nav.navbar.bottomNav .navDot {
    top: 10px;
    right: 12px;
    width: 6px;
    height: 6px;
  }

  nav.navbar.bottomNav .navBadgeDot {
    width: 5px;
    height: 5px;
  }
}

/* Web — pill compacte centrée en bas */
@media (min-width: 768px) {
  :root {
    --bottom-nav-reserve: 68px;
  }

  nav.navbar.bottomNav {
    top: auto;
    bottom: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(560px, calc(100vw - 24px));
    min-width: 0;
    padding: 5px 6px;
    min-height: 0;
    border-radius: 999px;
    background: rgba(14, 14, 26, 0.82);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  nav.navbar.bottomNav.bottomNav--decouvrir,
  body.page-decouvrir nav.navbar.bottomNav {
    background: rgba(12, 12, 22, 0.78);
  }

  .navbar-item,
  .navbar .navItem {
    flex-direction: row;
    gap: 6px;
    padding: 7px 12px;
    min-height: 0;
    border-radius: 999px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .navbar-item span,
  .navbar .navItem .label {
    font-size: 12px;
    margin-top: 0;
    white-space: nowrap;
    overflow: visible;
  }

  .navbar-item svg,
  .navbar .navItem svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .navbar .navBadge,
  .navbar-item .navBadge {
    top: 4px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .navbar .navDot {
    top: 6px;
    right: 8px;
    width: 7px;
    height: 7px;
  }

  .navbar-spacer {
    display: none !important;
    height: 0 !important;
  }
}

.navbar-item,
.navbar .navItem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  transition: opacity 150ms, transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  position: relative;
}

.navbar-item.active,
.navbar .navItemActive {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-item:active,
.navbar .navItem:active {
  transform: scale(0.97);
}

.navbar-item span,
.navbar .navItem .label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  nav.navbar.bottomNav .navItem .label,
  nav.navbar.bottomNav .navbar-item .label {
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    flex-shrink: 0;
  }

  nav.navbar.bottomNav {
    max-width: min(560px, calc(100vw - 24px));
  }

  nav.navbar.bottomNav .navbar-item,
  nav.navbar.bottomNav .navItem {
    flex: 0 0 auto;
    min-width: auto;
  }
}

.navbar-item.active span,
.navbar .navItemActive .label {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.navbar-item svg,
.navbar .navItem svg,
.navbar .navIcon {
  flex-shrink: 0;
  opacity: 0.42;
  transition: opacity 150ms ease;
  color: rgba(255, 255, 255, 0.92);
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.navbar-item.active svg,
.navbar .navItemActive svg {
  opacity: 1;
}

.navbar-item.active .navIcon--heart path,
.navbar .navItemActive .navIcon--heart path {
  fill: currentColor;
}

/* Badges navigation */
.navbar .navBadge,
.navbar-item .navBadge {
  position: absolute;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  padding: 0 4px;
}

.navbar .navBadge--matches {
  background: rgba(255, 77, 125, 0.92);
  color: #fff;
}

.navbar .navBadge--messages {
  background: rgba(124, 92, 255, 0.92);
  color: #fff;
}

.navbar .navBadge--notifs {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}

.navbar .navDot {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 77, 125, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.navbar .navBadgeDot {
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

.navbar-spacer {
  height: calc(var(--bottom-nav-reserve) + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

/* Messages : masquer la barre du bas pendant une conversation ouverte */
body.chat-conversation-open {
  overflow: hidden;
}

body.chat-conversation-open .bottomNav,
body.chat-conversation-open .navbar-spacer {
  display: none !important;
  pointer-events: none !important;
}

body.chat-conversation-open .navbar-spacer {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.chat-conversation-open #toast-container {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body.chat-conversation-open .mainContent.page-content {
  padding-bottom: 0 !important;
  overflow: hidden;
  min-height: 0;
}

body.chat-conversation-open .msgs-page {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Galerie médias partagés (messages + thread) */
.msgMediaGallery {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 6, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  max-width: 430px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 430px) {
  .msgMediaGallery {
    max-width: 100%;
    left: 0;
    transform: none;
  }
}

@media (min-width: 768px) {
  .msgMediaGallery {
    max-width: 1140px;
  }
}

.msgMediaGallery__head {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 20, 0.98);
}

.msgMediaGallery__back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.msgMediaGallery__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msgMediaGallery__count {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.msgMediaGallery__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-content: start;
  padding: 3px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.msgMediaGallery__cell {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #161625;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.msgMediaGallery__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msgMediaGallery__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.msgMediaGallery__ph--video {
  background: #1e1e35;
  color: #fff;
}

.msgMediaGallery__ph--audio {
  background: #1e1e35;
  color: #a78bfa;
}

.msgMediaGallery__date {
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 1;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  padding: 2px 5px;
  pointer-events: none;
}

.msgMediaLightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.msgMediaLightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

body.msg-media-gallery-open {
  overflow: hidden;
}

/* ── Menu « + » du chat (bottom sheet + mascotte) ── */
.attachMenuBackdrop {
  position: fixed;
  inset: 0;
  z-index: 159;
  background: rgba(4, 6, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.attachMenuBackdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.attachMenu {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 160;
  width: min(430px, 100vw);
  max-height: min(85dvh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(32, 28, 52, 0.98) 0%, rgba(12, 10, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.5);
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
}

.attachMenu.open {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.attachMenu__handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.attachMenuHead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.attachMenuHead__mascot {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.35));
}

.attachMenuHead__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attachMenuHead__text strong {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}

.attachMenuHead__text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.35;
}

.attachMenuBody {
  padding: 14px 14px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.attachRowThree {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attachOpt {
  min-height: 0;
  padding: 12px 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  color: rgba(236, 232, 244, 0.95);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.attachOpt:hover,
.attachOpt:focus-visible {
  background: rgba(124, 92, 237, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

.attachOpt:active {
  transform: scale(0.96);
}

.attachOpt__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(124, 58, 237, 0.18);
}

.attachOpt__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  line-height: 1.2;
}

.attachQuestionPanel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.attachQuestionPanel.open {
  display: block;
}

.attachQuestionTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.attachQuestionTitle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  flex-shrink: 0;
}

.attachQuestionList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.attachQuestionChip {
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 232, 244, 0.96);
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.attachQuestionChip:hover {
  background: rgba(124, 92, 237, 0.14);
  border-color: rgba(168, 140, 255, 0.3);
}

.attachQuestionChip:active {
  transform: scale(0.98);
}

.attachQuestionLabel {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.attachQuestionCustom {
  width: 100%;
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.attachQuestionInsert {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.attachQuestionInsert:active {
  transform: scale(0.98);
}

body.attach-menu-open {
  overflow: hidden;
}

#plusBtn.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25)) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #fff !important;
}

/* ── Menu ⋮ options conversation (bottom sheet) ── */
.convOptsBackdrop {
  position: fixed;
  inset: 0;
  z-index: 161;
  background: rgba(4, 6, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.convOptsBackdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.convOptsSheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 162;
  width: min(430px, 100vw);
  max-height: min(88dvh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
}

.convOptsSheet.is-open {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.convOptsSheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.convOptsHead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.convOptsHead__avatar,
.convOptsHead__mascot {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
}

.convOptsHead__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.convOptsHead__text strong {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.convOptsHead__text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.convOptsBody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px 12px;
}

.convOptsSection {
  margin: 10px 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.convOptsSection--warn {
  color: rgba(252, 165, 165, 0.55);
}

.convOptsList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.convOptsBtn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #1f1f23;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.convOptsBtn:hover,
.convOptsBtn:focus-visible {
  background: rgba(124, 92, 237, 0.1);
  border-color: rgba(167, 139, 250, 0.28);
}

.convOptsBtn:active {
  transform: scale(0.98);
}

.convOptsBtn--danger .convOptsBtn__label {
  color: rgba(252, 165, 165, 0.95);
}

.convOptsBtn--danger:hover,
.convOptsBtn--danger:focus-visible {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
}

.convOptsBtn__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #ddd6fe;
}

.convOptsBtn__icon--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}

.convOptsBtn__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
}

.convOptsBtn--link {
  text-decoration: none;
  box-sizing: border-box;
}

body.me-settings-open {
  overflow: hidden;
}

#meSettingsBtn.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25)) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #fff !important;
}

/* ── Page Paramètres (/me/profile/edit) ── */
.pe-settings {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.pe-settings__top.card-padded {
  padding: 12px 14px;
  margin-bottom: 10px;
}

.pe-settings__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #fff;
  line-height: 1.2;
}

.pe-settings__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  line-height: 1.35;
}

.pe-settings .peBack {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pe-settings .peBack:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pe-settings .peHeaderAvatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.pe-settings .peTip {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
}

.pe-settings .peTip a {
  color: #a78bfa;
  font-weight: 500;
  text-decoration: none;
}

.pe-settings .surface,
.pe-settings .heroCard {
  background: rgba(14, 14, 22, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pe-settings .surface-strong {
  background: rgba(8, 8, 14, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
}

.pe-settings input[type="text"],
.pe-settings input[type="date"],
.pe-settings input[type="number"],
.pe-settings input[type="email"],
.pe-settings input[type="password"],
.pe-settings input[type="search"],
.pe-settings select,
.pe-settings textarea {
  background: rgba(8, 8, 14, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.pe-settings input::placeholder,
.pe-settings textarea::placeholder {
  color: rgba(255, 255, 255, 0.28) !important;
}

.pe-settings label > span.text-sm,
.pe-settings .peFieldHint,
.pe-settings .peBlockSub {
  color: rgba(255, 255, 255, 0.55) !important;
}

.pe-settings .chip {
  background: rgba(8, 8, 14, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.pe-settings .modernCheck {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(8, 8, 14, 0.72) !important;
  box-shadow: none !important;
}

.pe-settings #modeDecouvrirCard {
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  background: rgba(8, 8, 14, 0.72) !important;
}

.pe-settings .surface {
  padding: 14px !important;
}

.pe-settings #meProfileEditForm {
  margin-top: 10px;
  gap: 10px !important;
}

.pe-settings #meProfileEditForm > .surface,
.pe-settings #meProfileEditForm > div > .surface {
  margin-top: 0;
}

.pe-settings .chip {
  padding: 7px 10px 7px 8px;
  font-size: 13px;
  gap: 6px;
  box-shadow: none;
}

.pe-settings .chipMark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 10px;
}

.pe-settings .modernCheck {
  padding: 10px 12px;
  border-radius: 14px;
}

.pe-settings .text-sm.font-semibold,
.pe-settings .surface > .text-sm.font-semibold {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.pe-settings .muted,
.pe-settings .text-xs.muted {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.pe-settings .peBlocked {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 14, 22, 0.78);
  overflow: hidden;
}

.pe-settings .peBlocked__head {
  padding: 11px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pe-settings .peBlocked__title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.pe-settings .peBlocked__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 3px;
  line-height: 1.35;
}

.pe-settings .peBlocked__row {
  padding: 9px 14px;
  gap: 10px;
}

.pe-settings .peBlocked__av {
  width: 36px;
  height: 36px;
}

.pe-settings .peBlocked__name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.pe-settings .peBlocked__unblock {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
}

.pe-settings .peBlocked__empty {
  padding: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

.pe-settings .btn-primary {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 12px;
  width: auto;
  flex: 1;
}

.pe-settings .btn-neutral {
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 12px;
  flex: 1;
}

.pe-settings .flex.items-center.gap-3:has(.btn-primary) {
  gap: 8px !important;
  margin-top: 4px;
}

.pe-settings > div > [style*="padding-bottom"] {
  padding-bottom: calc(var(--bottom-nav-reserve) + env(safe-area-inset-bottom, 0px)) !important;
}

.pe-settings .mt-8.px-1 > div {
  border-radius: 16px !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: #161625 !important;
  padding: 14px 16px !important;
}

.pe-settings .mt-8.px-1 .text-sm.font-semibold {
  font-size: 13px !important;
}

.pe-settings #btn-deconnexion {
  padding: 12px 16px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  margin-top: 16px !important;
}

/* Réglages profil : 1 bloc (2 lignes) + 1 bloc séparé (bloqués) */
.meSettingsGroups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meSettingsGroup {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.meSettingsGroup__label {
  padding: 10px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.meSettingsRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.meSettingsRow + .meSettingsRow {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meSettingsRow:hover,
.meSettingsRow:focus-visible {
  background: rgba(124, 92, 237, 0.1);
}

.meSettingsRow:active {
  background: rgba(124, 92, 237, 0.14);
}

.meSettingsRow--danger .meSettingsRow__label {
  color: rgba(252, 165, 165, 0.95);
}

.meSettingsRow__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.1));
}

.meSettingsRow__icon--danger {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
}

.meSettingsRow__label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.meSettingsRow__chev {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1;
}

body.conv-opts-open {
  overflow: hidden;
}

#chatMore.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25)) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #fff !important;
}

/* ── Toasts ── */
#toast-container {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: min(340px, 90vw);
}

.toast,
#toast-container .toast-item {
  background: #1e1e35;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  z-index: 99999;
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
  pointer-events: auto;
  max-width: min(340px, 90vw);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  transform: translateY(8px);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  box-sizing: border-box;
}

.toast {
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

#toast-container .toast-item {
  white-space: normal;
  text-align: left;
}

.toast.visible,
#toast-container .toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.succes,
.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.toast.erreur,
.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.toast.info {
  border-color: rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
}

#toast-container .toast-item.hide {
  opacity: 0;
  transform: translateY(8px);
}

#toast-container .toast-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 13px;
}

#toast-container .toast-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

#toast-container .toast-msg {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}

/* ── Animations ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-up {
  animation: fade-up 300ms ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 200ms ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 250ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-stagger > * {
  opacity: 0;
  animation: fade-up 300ms ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0ms; }
.animate-stagger > *:nth-child(2) { animation-delay: 60ms; }
.animate-stagger > *:nth-child(3) { animation-delay: 120ms; }
.animate-stagger > *:nth-child(4) { animation-delay: 180ms; }
.animate-stagger > *:nth-child(5) { animation-delay: 240ms; }

.page-section {
  transition: opacity 200ms ease, transform 200ms ease;
}

.page-section.entrant {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in,
  .animate-scale-in,
  .animate-stagger > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── État vide Découvrir (mascotte) — identique pour tous les comptes ── */
.discover-empty {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 40px;
  width: 100%;
  max-width: 320px;
  position: relative;
  box-sizing: border-box;
}

body.page-decouvrir .decouvrirEmpty {
  flex: 1;
  min-height: min(72vh, calc(100dvh - 112px));
}

body.page-decouvrir #globalDiscoverEmpty:not(.hidden) {
  flex: 1 1 auto;
  min-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discover-empty__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
  pointer-events: none;
  animation: discoverGlow 4s ease-in-out infinite alternate;
}

@keyframes discoverGlow {
  from { transform: scale(0.95); opacity: 0.7; }
  to { transform: scale(1.08); opacity: 1; }
}

.discover-empty__mascot {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  animation: discoverBounce 2.8s ease-in-out infinite;
}

@keyframes discoverBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.discover-empty__eyes {
  transform-origin: 70px 72px;
  animation: discoverLook 3.5s ease-in-out infinite;
}

@keyframes discoverLook {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.discover-empty__title {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
}

.discover-empty__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 280px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

.discover-empty__reset {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(236, 72, 153, 0.28));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.discover-empty__reset.hidden {
  display: none;
}

.discover-empty__intl {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 14, 32, 0.72);
  text-align: left;
}

.discover-empty__intl.hidden {
  display: none;
}

.discover-empty__intl-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discover-empty__intl-copy {
  flex: 1;
  min-width: 0;
}

.discover-empty__intl-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
}

.discover-empty__intl-desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.discover-empty__intl-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 52px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.discover-empty__intl-toggle.is-on {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.discover-empty__intl-toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

.discover-empty__intl-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.discover-empty__reset--after-intl {
  margin-top: 14px;
}

@media (min-width: 768px) {
  body.page-decouvrir .mainContent.page-content {
    overflow: hidden;
  }

  body.page-home .mainContent.page-content,
  .mainContent.page-content:has(.home-root) {
    overflow: hidden;
  }

  body.page-my-profile .mainContent.page-content,
  .mainContent.page-content:has(.my-profile-page) {
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.discover-empty--compact {
  padding: 32px 24px 40px;
}

@media (prefers-reduced-motion: reduce) {
  .discover-empty__mascot,
  .discover-empty__glow,
  .discover-empty__eyes {
    animation: none !important;
  }
}

/* ── Profil : thème sombre unifié ── */
.meProfile {
  --me-bg: transparent;
  --me-soft: rgba(16, 16, 28, 0.35);
  --me-card: rgba(22, 22, 37, 0.42);
  --me-card-hover: rgba(28, 28, 48, 0.52);
  --me-border: rgba(124, 92, 200, 0.16);
  --me-ink: #F5F0FF;
  --me-muted: #B8B0D9;
  --me-accent: #A791F3;
  --me-glow1: rgba(124, 58, 237, 0.45);
  --me-glow2: rgba(236, 72, 153, 0.35);
  --me-glow3: rgba(99, 102, 241, 0.35);
  color: var(--me-ink);
}

.meProfile .meHero {
  border-color: var(--me-border);
  background: var(--me-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.meProfile .meHeroAmbient {
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(124, 58, 237, 0.18), transparent 72%),
    radial-gradient(420px 200px at 15% 100%, rgba(236, 72, 153, 0.1), transparent 68%),
    linear-gradient(180deg, rgba(18, 18, 31, 0.55) 0%, rgba(10, 10, 20, 0.25) 100%);
}

.meProfile .meBody {
  background: linear-gradient(180deg, rgba(16, 16, 28, 0.35) 0%, rgba(10, 10, 20, 0.12) 100%);
}

.meProfile .meIconBtn {
  background: var(--me-card);
  border-color: var(--me-border);
  color: var(--me-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.meProfile .meFacet {
  background: rgba(14, 14, 22, 0.72);
  border-color: var(--me-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.meProfile .meFacet:hover {
  background: rgba(18, 18, 28, 0.82);
  box-shadow: none;
}

.meProfile .meFacet.violet,
.meProfile .meFacet.rose,
.meProfile .meFacet.sage {
  background: rgba(14, 14, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.07);
}

.meProfile .meFacet.violet:hover,
.meProfile .meFacet.rose:hover,
.meProfile .meFacet.sage:hover {
  background: rgba(18, 18, 28, 0.82);
}

.meProfile .meFacetHead {
  color: var(--me-muted);
  letter-spacing: 1.2px;
}

.meProfile .meChip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.meProfile .meVibePill {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(167, 139, 250, 0.25);
  color: #e9d5ff;
}

.meProfile .meExplore {
  background: rgba(14, 14, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.07);
}

.meProfile .meExploreTextarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--me-ink);
}

.meProfile .evoStageLabel {
  color: var(--me-muted);
}

.meProfile .evoStageTitle {
  color: #fff;
}

.meProfile .evoStageBlurb {
  color: var(--me-muted);
}

/* ── Footer aide profil (support, CGU, version) — web + mobile ── */
.appHelpFooter {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 0 2px;
}

.appHelpFooter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.appHelpFooter__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(236, 232, 248, 0.82);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.appHelpFooter__link:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(167, 139, 250, 0.24);
}

.appHelpFooter__link:active {
  transform: scale(0.98);
}

.appHelpFooter__ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.18);
  color: rgba(237, 233, 254, 0.92);
}

.appHelpFooter__ico svg {
  width: 10px;
  height: 10px;
  display: block;
}

.appHelpFooter__version {
  margin: 2px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 380px) {
  .appHelpFooter__grid {
    grid-template-columns: 1fr;
  }
}
