/* ─────────────────────────────────────────────
   PAGE D'ACCUEIL (landing) — thème clair
   Couvre tout l'écran par-dessus l'application.
   La classe .is-hidden déclenche le fondu sortant.
───────────────────────────────────────────────── */
.landing {
  position: fixed;
  inset: 0;
  background: #F0F1FA;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.6s ease;
  overflow: hidden;
}
.landing.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Blobs décoratifs subtils */
.landing__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 14s ease-in-out infinite;
}
.landing__blob--1 {
  width: 520px; height: 520px;
  background: rgba(108, 99, 255, 0.13);
  top: -180px; right: -120px;
  animation-delay: 0s;
}
.landing__blob--2 {
  width: 380px; height: 380px;
  background: rgba(59, 130, 246, 0.09);
  bottom: -120px; left: -60px;
  animation-delay: -7s;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}

/* Contenu centré */
.landing__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  animation: fadeIn 0.6s ease both;
}

/* Zone logo sur fond violet */
.landing__hero {
  background: linear-gradient(135deg, #5A52E8 0%, #6C63FF 55%, #7C73FF 100%);
  border-radius: 24px;
  padding: 28px 40px;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.30);
}

/* Logo */
.landing__logo {
  height: 52px;
  width: auto;
}

/* Titre principal */
.landing__title {
  font-size: 26px;
  font-weight: 700;
  color: #0E0E24;
  line-height: 1.3;
  margin-bottom: 10px;
  animation: fadeIn 0.8s ease 0.1s both;
}

/* Sous-titre */
.landing__tagline {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 32px;
  animation: fadeIn 0.8s ease 0.2s both;
}

/* CTA */
.landing__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  background: #6C63FF;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
  animation: fadeIn 0.8s ease 0.3s both;
  font-family: inherit;
}
.landing__cta:hover {
  background: #5A52E8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.45);
}

/* Mention */
.landing__mention {
  color: #B0B5D0;
  font-size: 10px;
  letter-spacing: 0.05em;
  margin-top: 20px;
  animation: fadeIn 0.8s ease 0.4s both;
}

/* ─────────────────────────────────────────────
   FILTRES RÉGION — NEWS & CAPITAL FLOW
   Petits boutons emoji alignés dans le header.
───────────────────────────────────────────────── */
.news-filters {
  display: flex;
  gap: 4px;
}
.news-filter {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 14px;
  cursor: pointer;
  color: #3E3E6E;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}
.news-filter:hover {
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.2);
}
.news-filter.is-active {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.35);
}

/* ─────────────────────────────────────────────
   POLICE MONO — chiffres et symboles
───────────────────────────────────────────────── */
.bias-card__change, .bias-card__price, .bias-card__sym, .flow-row__pct, .flow-row__sym, .cal-row__vals, .cal-row__time, .session-card__time, #search-dropdown .sri__sym {
  font-family: "JetBrains Mono", monospace;
}

/* ─────────────────────────────────────────────
   CARTES — surface de base de tous les modules
───────────────────────────────────────────────── */
.card, .session-card {
  background: #FFFFFF;
  border: 1px solid #E8EDFB;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(100, 110, 200, 0.07);
}

.card__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9499C0;
  margin-bottom: 12px;
}

/* ─────────────────────────────────────────────
   BOUTONS GÉNÉRIQUES
───────────────────────────────────────────────── */
.btn-ic, .tabs__btn {
  background: #F0F2FC;
  border: 1px solid #DDE2F2;
  color: #7070A0;
  border-radius: 7px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ic:hover, .tabs__btn:hover {
  border-color: #6C63FF;
  color: #6C63FF;
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(108, 99, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 18px rgba(108, 99, 255, 0.5);
  }
}

/* ─────────────────────────────────────────────
   BASE — html, body, reset
───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #F4F6FF;
  font-family: "Inter", sans-serif;
  color: #0E0E24;
  height: 100vh;
  overflow: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100vh;
}

.app-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   BARRE DU HAUT (topbar)
   Logo, recherche, horloge.
───────────────────────────────────────────────── */
.topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  background: #FFFFFF;
  border-bottom: 1px solid #E8EDFB;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(100, 110, 200, 0.06);
}
.topbar__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.topbar__logo {
  height: 22px;   /* SVG texte ratio ~4:1, height fixe → largeur auto */
  width: auto;
  display: block;
  /* Le SVG est blanc → filtre pour l'adapter au fond clair */
  filter: brightness(0) saturate(100%) invert(15%) sepia(40%) saturate(800%) hue-rotate(220deg) brightness(90%) contrast(105%);
}
.topbar__dot {
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}
.topbar__search {
  position: relative;
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
}
.topbar__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9499C0;
  font-size: 13px;
  pointer-events: none;
}
.topbar__input {
  width: 100%;
  background: rgba(108, 99, 255, 0.05);
  border: 1.5px solid rgba(108, 99, 255, 0.2);
  color: #0E0E24;
  font-size: 13px;
  padding: 9px 16px 9px 38px;
  border-radius: 24px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.topbar__input::-moz-placeholder {
  color: rgba(100, 100, 160, 0.5);
}
.topbar__input::placeholder {
  color: rgba(100, 100, 160, 0.5);
}
.topbar__input:focus {
  border-color: #6C63FF;
  background: rgba(108, 99, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}
.topbar__right {
  font-size: 11px;
  color: #9499C0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   DROPDOWN RECHERCHE — résultats de symboles
───────────────────────────────────────────────── */
#search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #DDE2F2;
  border-radius: 12px;
  z-index: 999;
  overflow: hidden;
  display: none;
  box-shadow: 0 8px 32px rgba(80, 90, 180, 0.12);
  animation: fadeIn 0.15s ease;
}
#search-dropdown.show {
  display: block;
}
#search-dropdown .sri {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F0F2FC;
  transition: background 0.1s;
}
#search-dropdown .sri:last-child {
  border-bottom: none;
}
#search-dropdown .sri:hover {
  background: #F4F6FF;
}
#search-dropdown .sri__sym {
  font-size: 11px;
  font-weight: 600;
  color: #6C63FF;
  width: 85px;
  flex-shrink: 0;
}
#search-dropdown .sri__desc {
  font-size: 11px;
  color: #0E0E24;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#search-dropdown .sri__type {
  font-size: 9px;
  color: #7070A0;
  background: #ECEEF8;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
#search-dropdown .sri-section {
  font-size: 9px;
  font-weight: 600;
  color: #9499C0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px 4px;
}

/* ─────────────────────────────────────────────
   BARRE LATÉRALE (sidebar)
   Navigation principale.
───────────────────────────────────────────────── */
.sidebar {
  width: 190px;
  background: #FFFFFF;
  border-right: 1px solid #E8EDFB;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-shrink: 0;
}
.sidebar__nav {
  padding: 12px 8px;
  flex: 1;
}
.sidebar__foot {
  padding: 12px 16px;
  border-top: 1px solid #E8EDFB;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  font-size: 10px;
  color: #9499C0;
}

/* ─────────────────────────────────────────────
   ÉLÉMENTS DE NAVIGATION
───────────────────────────────────────────────── */
.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #7070A0;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.nav-item i {
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}
.nav-item__badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  background: rgba(108, 99, 255, 0.12);
  color: #6C63FF;
  padding: 2px 6px;
  border-radius: 20px;
}
.nav-item:hover {
  background: #F0F2FC;
  color: #0E0E24;
}
.nav-item.active {
  background: rgba(108, 99, 255, 0.1);
  color: #6C63FF;
}

/* ─────────────────────────────────────────────
   ZONE DE CONTENU PRINCIPALE
───────────────────────────────────────────────── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 32px;
  min-width: 0;
}
.content::-webkit-scrollbar {
  width: 3px;
}
.content::-webkit-scrollbar-thumb {
  background: #C8CDE6;
  border-radius: 3px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
}

/* ─────────────────────────────────────────────
   EN-TÊTE DE BIENVENUE
───────────────────────────────────────────────── */
.welcome {
  margin-bottom: 16px;
  animation: fadeIn 0.4s ease;
}
.welcome__title {
  font-size: 20px;
  font-weight: 600;
}
.welcome__sub {
  font-size: 12px;
  color: #9499C0;
  margin-top: 3px;
}

/* ─────────────────────────────────────────────
   SESSIONS DE MARCHÉ — grille de 4 cartes
───────────────────────────────────────────────── */
.sessions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.session-card {
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.4s ease;
}
.session-card__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.session-card__name {
  font-size: 11px;
  font-weight: 500;
  color: #9499C0;
}
.session-card__time {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.session-card__hours {
  font-size: 9px;
  color: #B0B5D0;
  margin-top: 3px;
}
.session-card__badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px; /* pill parfait */
  white-space: nowrap;
}
.session-card__badge--open {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.session-card__badge--closed {
  background: rgba(148, 153, 192, 0.1);
  color: #9499C0;
  border: 1px solid rgba(148, 153, 192, 0.2);
}
.session-card.is-open {
  border-color: rgba(108, 99, 255, 0.35);
  background: rgba(108, 99, 255, 0.03);
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.08);
}

/* ─────────────────────────────────────────────
   GRILLES PRINCIPALES DE MISE EN PAGE
───────────────────────────────────────────────── */
.grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.grid-bottom {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 12px;
}
/* Desktop : Analyse de biais (2e dans le HTML) s'affiche à gauche,
   Favoris (1er dans le HTML) s'affiche à droite.
   On inverse les colonnes (1fr | 3fr) pour que la largeur reste cohérente. */
@media (min-width: 961px) {
  .grid-bottom {
    grid-template-columns: 1fr 3fr;
  }
  .grid-bottom > .card:nth-child(1) { order: 2; } /* Favoris → droite */
  .grid-bottom > .card:nth-child(2) { order: 1; } /* Analyse → gauche */
}

/* ─────────────────────────────────────────────
   CARTE (card) — header, footer, animation
───────────────────────────────────────────────── */
.card {
  animation: fadeIn 0.35s ease;
}
.card__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card__label {
  margin-bottom: 0;
}
.card__footer {
  font-size: 9px;
  color: #B0B5D0;
  margin-top: 10px;
  text-align: right;
}

/* ─────────────────────────────────────────────
   ONGLETS (tabs)
───────────────────────────────────────────────── */
.tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  background: #ECEEF8;
  border-radius: 7px;
  padding: 3px;
}
.tabs__btn {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  border: none;
  background: none;
}
.tabs__btn.active {
  background: rgba(108, 99, 255, 0.18);
  color: #5A52E0;
}

/* ─────────────────────────────────────────────
   LISTE CALENDRIER ÉCONOMIQUE
───────────────────────────────────────────────── */
.cal-list {
  max-height: 240px;
  overflow-y: auto;
}
.cal-list::-webkit-scrollbar {
  width: 3px;
}
.cal-list::-webkit-scrollbar-thumb {
  background: #C8CDE6;
  border-radius: 3px;
}
.cal-list::-webkit-scrollbar-track {
  background: transparent;
}

.cal-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(180, 185, 225, 0.4);
  font-size: 11px;
}
.cal-row:last-child {
  border-bottom: none;
}
.cal-row__time {
  font-size: 10px;
  color: #9499C0;
  width: 44px;
  flex-shrink: 0;
}
.cal-row__flag {
  font-size: 12px;
  width: 18px;
  flex-shrink: 0;
}
.cal-row__event {
  flex: 1;
  line-height: 1.3;
}
.cal-row__vals {
  font-size: 9px;
  color: #9499C0;
  white-space: nowrap;
  text-align: right;
}
.cal-row__impact {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-row__impact--high {
  background: #F43F5E;
  box-shadow: 0 0 5px rgba(244, 63, 94, 0.4);
}
.cal-row__impact--med {
  background: #F59E0B;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
}
.cal-row__impact--low {
  background: #22C55E;
}

/* ─────────────────────────────────────────────
   LISTE DES ACTUALITÉS
───────────────────────────────────────────────── */
.news-list {
  max-height: 240px;
  overflow-y: auto;
}
.news-list::-webkit-scrollbar {
  width: 3px;
}
.news-list::-webkit-scrollbar-thumb {
  background: #C8CDE6;
  border-radius: 3px;
}
.news-list::-webkit-scrollbar-track {
  background: transparent;
}

.news-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(180, 185, 225, 0.4);
  cursor: pointer;
  transition: opacity 0.15s;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  opacity: 0.7;
}
.news-item__img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  background: #ECEEF8;
}
.news-item__body {
  flex: 1;
  min-width: 0;
}
.news-item__hl {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item__meta {
  font-size: 9px;
  color: #9499C0;
  margin-top: 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
.news-item__src {
  color: #6C63FF;
}

/* ─────────────────────────────────────────────
   CAPITAL FLOW — barre de flux de capitaux
───────────────────────────────────────────────── */
.flow-scale {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #B0B5D0;
  padding-bottom: 6px;
  padding-left: 112px;
  padding-right: 44px;
}

.flow-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(180, 185, 225, 0.35);
}
.flow-row:last-child {
  border-bottom: none;
}
.flow-row__icon {
  font-size: 12px;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}
.flow-row__label {
  width: 88px;
  flex-shrink: 0;
}
.flow-row__name {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}
.flow-row__sym {
  font-size: 8px;
  color: #9499C0;
}
.flow-row__chart {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.flow-row__neg {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}
.flow-row__pos {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.flow-row__mid {
  width: 1px;
  height: 10px;
  background: #C8CDE6;
  flex-shrink: 0;
}
.flow-row__bar-n {
  height: 5px;
  background: #F43F5E;
  border-radius: 2px 0 0 2px;
  transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.flow-row__bar-p {
  height: 5px;
  background: #22C55E;
  border-radius: 0 2px 2px 0;
  transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.flow-row__pct {
  width: 44px;
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.flow-row__star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #C8CDE6;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.15s;
  line-height: 1;
}
.flow-row__star:hover {
  color: #6C63FF;
  transform: scale(1.2);
}
.flow-row__star.is-fav {
  color: #6C63FF;
}
.flow-row__star:disabled {
  opacity: 0.2;
  cursor: default;
}

/* ─────────────────────────────────────────────
   PASTILLES DE BIAIS — indicateurs directionnels
───────────────────────────────────────────────── */
.bias-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}

.bias-dot--up {
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.bias-dot--flat {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.bias-dot--down {
  background: #F43F5E;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.5);
}

/* ─────────────────────────────────────────────
   ANALYSE DE BIAIS — grille de mini-cartes
───────────────────────────────────────────────── */
.bias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.bias-card {
  background: #F8F9FF;
  border: 1px solid #E8EDFB;
  border-radius: 7px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.bias-card:hover {
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.08);
}
.bias-card__sym {
  font-size: 12px;
  font-weight: 600;
}
.bias-card__name {
  font-size: 10px;
  color: #9499C0;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bias-card__price {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -0.5px;
}
.bias-card__change {
  font-size: 10px;
  margin-top: 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
}
.bias-card__label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  display: inline-block;
}
.bias-card--up {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.04);
}
.bias-card--up .bias-card__label {
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
}
.bias-card--flat {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.03);
}
.bias-card--flat .bias-card__label {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}
.bias-card--down {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.03);
}
.bias-card--down .bias-card__label {
  background: rgba(244, 63, 94, 0.12);
  color: #E11D48;
}
.bias-card--empty {
  border-style: dashed;
  opacity: 0.4;
  cursor: default;
  text-align: center;
  padding: 20px 12px;
  color: #9499C0;
  font-size: 11px;
}

/* ─────────────────────────────────────────────
   CARTE IA / RÉSUMÉ
───────────────────────────────────────────────── */
.ai-card__text {
  font-size: 12px;
  line-height: 1.8;
  color: #0E0E24;
}
.ai-card__err {
  font-size: 11px;
  color: #F43F5E;
  line-height: 1.6;
}
.ai-card__foot {
  font-size: 9px;
  color: #9499C0;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* ─────────────────────────────────────────────
   BADGES / ÉTIQUETTES
───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.tag--riskon {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}
.tag--riskoff {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  background: rgba(244, 63, 94, 0.1);
  color: #E11D48;
}
.tag--neutral {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  background: rgba(148, 153, 192, 0.12);
  color: #7070A0;
}
.tag--ai {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  background: rgba(108, 99, 255, 0.1);
  color: #6C63FF;
}

/* ─────────────────────────────────────────────
   COULEURS SÉMANTIQUES — positif / négatif
───────────────────────────────────────────────── */
.positive {
  color: #16A34A;
}

.negative {
  color: #E11D48;
}

/* ─────────────────────────────────────────────
   BOUTON ICÔNE COMPACT
───────────────────────────────────────────────── */
.btn-ic {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 9px;
}

/* ─────────────────────────────────────────────
   BOUTON AJOUT FAVORIS
───────────────────────────────────────────────── */
.btn-add-fav {
  width: 100%;
  margin-top: 10px;
  background: rgba(108, 99, 255, 0.06);
  border: 1px dashed rgba(108, 99, 255, 0.3);
  color: #6C63FF;
  font-size: 10px;
  padding: 7px;
  border-radius: 7px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.15s;
}
.btn-add-fav:hover {
  background: rgba(108, 99, 255, 0.12);
}

/* ─────────────────────────────────────────────
   INDICATEUR DE CHARGEMENT
───────────────────────────────────────────────── */
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #DDE2F2;
  border-top-color: #6C63FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #9499C0;
  padding: 12px 0;
}

/* ─────────────────────────────────────────────
   ÉTAT VIDE — placeholder sans données
───────────────────────────────────────────────── */
.empty-state {
  font-size: 11px;
  color: #9499C0;
  text-align: center;
  padding: 20px 10px;
  line-height: 1.7;
}

/* État vide avec bouton d'action (chargement intentionnel) */
.empty-state--action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
}
.empty-state--action p {
  margin: 0;
  font-size: 12px;
  color: #9499C0;
}

/* ─────────────────────────────────────────────
   BOUTON DE CHARGEMENT ON-DEMAND
   Évite les appels API automatiques au démarrage.
───────────────────────────────────────────────── */
.btn-load {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.06);
  color: #6C63FF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-load:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.5);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLETTE (≤ 1300 px)
───────────────────────────────────────────────── */
@media (max-width: 1300px) {
  /* 2 colonnes : Calendrier | Capital Flow — News passe en pleine largeur */
  .grid-main {
    grid-template-columns: 1fr 1fr;
  }
  /* Le 3e enfant direct (News) occupe toute la largeur pour éviter le trou */
  .grid-main > .card:nth-child(3) {
    grid-column: 1 / -1;
  }
  .grid-bottom {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 960 px)
───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sidebar {
    display: none;
  }
  .sessions {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .bias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar__search {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   NOUVELLES COMPOSANTES — SaaS System
   ═══════════════════════════════════════════════════════════ */

/* ─── Auth Overlay ────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B0B12;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.auth-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.auth-overlay__inner img {
  filter: brightness(1);
}
.auth-overlay.is-hidden {
  display: none;
}
.spinner--lg {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

/* ─── Topbar Right — cloche notifications ─────────────────── */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.topbar__date {
  font-size: 11px;
  color: #9499C0;
  white-space: nowrap;
}
.topbar__notif-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #7070A0;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.topbar__notif-btn:hover { color: #6C63FF; }
.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #E11D48;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── Notifications dropdown ──────────────────────────────── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #FFFFFF;
  border: 1px solid #E8EDFB;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(80, 90, 180, 0.15);
  z-index: 500;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}
.notif-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #E8EDFB;
  font-size: 12px;
  font-weight: 600;
  color: #0E0E24;
}
.notif-dropdown__head button {
  background: none;
  border: none;
  cursor: pointer;
  color: #9499C0;
  font-size: 14px;
  transition: color 0.15s;
}
.notif-dropdown__head button:hover { color: #6C63FF; }
.notif-dropdown__list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-dropdown__list::-webkit-scrollbar { width: 3px; }
.notif-dropdown__list::-webkit-scrollbar-thumb { background: #C8CDE6; border-radius: 3px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #F0F2FC;
  transition: background 0.1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #F8F9FF; }
.notif-item--unread { background: rgba(108, 99, 255, 0.03); }
.notif-item__icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title { font-size: 11px; font-weight: 600; color: #0E0E24; }
.notif-item__text  { font-size: 11px; color: #7070A0; margin-top: 2px; line-height: 1.4; }
.notif-item__time  { font-size: 9px; color: #B0B5D0; margin-top: 4px; }
.notif-item__del {
  background: none;
  border: none;
  cursor: pointer;
  color: #C8CDE6;
  font-size: 14px;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
  align-self: center;
}
.notif-item__del:hover { color: #E11D48; }

/* ─── Hamburger (tablet/mobile) ───────────────────────────── */
.topbar__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: #7070A0;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}
.topbar__hamburger:hover { color: #6C63FF; }

/* ─── Sidebar overlay (tablet/mobile) ────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 199;
}
.sidebar-overlay.is-visible { display: block; }

/* Sidebar slide-in on mobile/tablet */
@media (max-width: 960px) {
  .topbar__hamburger { display: flex; align-items: center; }
  .topbar__brand { display: none; }

  .sidebar {
    display: flex !important;
    position: fixed;
    top: 58px;
    left: 0;
    bottom: 0;
    width: 220px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(80,90,180,.1);
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  /* Padding bottom for bottom nav */
  .content {
    padding-bottom: 80px;
  }
}

/* ─── Sidebar footer user info ────────────────────────────── */
.sidebar__foot {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
}
.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.sidebar__user-avatar {
  width: 30px;
  height: 30px;
  background: rgba(108,99,255,.12);
  color: #6C63FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-name {
  font-size: 12px;
  font-weight: 600;
  color: #0E0E24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-plan {
  font-size: 9px;
  color: #9499C0;
  margin-top: 1px;
}
.sidebar__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9499C0;
}
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid #E8EDFB;
  border-radius: 7px;
  color: #9499C0;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.sidebar__logout:hover { background: #F8F9FF; color: #E11D48; border-color: rgba(225,29,72,.2); }

/* ─── Admin nav item ──────────────────────────────────────── */
.nav-item--admin {
  text-decoration: none;
  color: #9499C0;
  margin-top: 4px;
  border-top: 1px solid #E8EDFB;
  padding-top: 10px;
}
.nav-item--admin:hover { background: rgba(108,99,255,.06); color: #6C63FF; }

/* ─── Section wrapper ─────────────────────────────────────── */
.section { animation: fadeIn 0.3s ease; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-hint {
  font-size: 12px;
  color: #9499C0;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ─── Bouton primaire ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #6C63FF;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { background: #7C73FF; transform: translateY(-1px); }

/* ─── Bouton ghost ────────────────────────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #F0F2FC;
  border: 1px solid #DDE2F2;
  border-radius: 8px;
  color: #7070A0;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: #E8EDFB; }

/* ─── Bouton icône petit ──────────────────────────────────── */
.btn-ic-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #F0F2FC;
  border: 1px solid #DDE2F2;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #7070A0;
  transition: background 0.15s, color 0.15s;
}
.btn-ic-sm:hover { background: rgba(108,99,255,.1); color: #6C63FF; }
.btn-ic-sm--del:hover { background: rgba(225,29,72,.08); color: #E11D48; border-color: rgba(225,29,72,.2); }

/* ─── Journal ─────────────────────────────────────────────── */
.journal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.jstat-card {
  background: #FFFFFF;
  border: 1px solid #E8EDFB;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.jstat-card__val {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #0E0E24;
  line-height: 1;
}
.jstat-card__lbl {
  font-size: 10px;
  color: #9499C0;
  margin-top: 5px;
}

.journal-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.journal-filter {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #DDE2F2;
  background: #F0F2FC;
  color: #7070A0;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.journal-filter.active,
.journal-filter:hover {
  background: rgba(108,99,255,.1);
  color: #6C63FF;
  border-color: rgba(108,99,255,.3);
}

.journal-table-wrap { overflow-x: auto; }
.journal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.journal-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 600;
  color: #9499C0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #E8EDFB;
  white-space: nowrap;
}
.journal-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #F4F6FF;
  vertical-align: middle;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journal-table tr:last-child td { border-bottom: none; }
.journal-table tr:hover td { background: #F8F9FF; }
.j-symbol { font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.j-long   { color: #16A34A; font-weight: 600; }
.j-short  { color: #E11D48; font-weight: 600; }
.j-setup  { font-size: 10px; color: #9499C0; }
.mono     { font-family: 'JetBrains Mono', monospace; }
.j-status {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.j-status--open      { background: rgba(245,158,11,.1); color: #D97706; }
.j-status--closed    { background: rgba(22,163,74,.1); color: #16A34A; }
.j-status--cancelled { background: rgba(148,153,192,.1); color: #9499C0; }

/* ─── Alertes ─────────────────────────────────────────────── */
.alerts-list { padding: 4px 0; }
.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F4F6FF;
}
.alert-row:last-child { border-bottom: none; }
.alert-row__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.alert-row__sym {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #0E0E24;
}
.alert-row__cond { font-size: 11px; color: #7070A0; }
.alert-row__actions { display: flex; gap: 6px; flex-shrink: 0; }
.alert-status {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.alert-status--active    { background: rgba(34,197,94,.1); color: #16A34A; }
.alert-status--inactive  { background: rgba(148,153,192,.1); color: #9499C0; }
.alert-status--triggered { background: rgba(108,99,255,.1); color: #6C63FF; }

/* ─── Profil ──────────────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-info { padding: 4px 0; }
.profile-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F4F6FF;
  gap: 12px;
}
.profile-info__row:last-child { border-bottom: none; }
.profile-info__key { font-size: 11px; color: #9499C0; flex-shrink: 0; }
.profile-info__val { font-size: 12px; font-weight: 500; color: #0E0E24; text-align: right; }

.plan-limits { padding: 4px 0; }
.plan-limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F4F6FF;
  font-size: 11px;
  gap: 12px;
}
.plan-limit-row:last-child { border-bottom: none; }
.plan-limit-row span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7070A0;
}
.plan-limit-row span:last-child {
  font-weight: 600;
  color: #0E0E24;
  font-family: 'JetBrains Mono', monospace;
}

/* Plan badge */
.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.plan-badge--trial    { background: rgba(108,99,255,.12); color: #6C63FF; }
.plan-badge--free     { background: rgba(148,153,192,.12); color: #7070A0; }
.plan-badge--essential{ background: rgba(59,130,246,.12); color: #3B82F6; }
.plan-badge--pro      { background: rgba(217,119,6,.12); color: #D97706; }
.plan-badge--lifetime { background: rgba(22,163,74,.12); color: #16A34A; }
.plan-badge--friend   { background: rgba(236,72,153,.12); color: #EC4899; }

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.profile-form__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-form__field label {
  font-size: 11px;
  color: #9499C0;
  font-weight: 500;
}
.profile-form__field label small { font-weight: 400; opacity: 0.7; }
.profile-input {
  background: rgba(108,99,255,.04);
  border: 1px solid #E8EDFB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: inherit;
  color: #0E0E24;
  outline: none;
  transition: border-color 0.15s;
}
.profile-input:focus { border-color: #6C63FF; }
.profile-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-form__msg { font-size: 11px; }

/* ─── Modals ──────────────────────────────────────────────── */
/* IMPORTANT: display:flex ici ne doit pas overrider l'attribut hidden */
.modal-backdrop[hidden] { display: none !important; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(14, 14, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: #FFFFFF;
  border: 1px solid #E8EDFB;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(80, 90, 180, 0.18);
  overflow: hidden;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E8EDFB;
  font-weight: 600;
  font-size: 14px;
}
.modal__close {
  background: none;
  border: none;
  color: #B0B5D0;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.15s;
}
.modal__close:hover { color: #0E0E24; }
.modal__body { padding: 20px; }
.modal__footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 16px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.modal-field label { font-size: 11px; color: #9499C0; font-weight: 500; }
.modal-field--full { grid-column: 1 / -1; }
.modal-input {
  background: rgba(108,99,255,.04);
  border: 1px solid #E8EDFB;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  color: #0E0E24;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.modal-input:focus { border-color: #6C63FF; }
select.modal-input { cursor: pointer; }
.modal-textarea { min-height: 70px; resize: vertical; }

.modal-close-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #DDE2F2;
}
.modal-close-section__title {
  font-size: 11px;
  font-weight: 600;
  color: #9499C0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Navigation basse (mobile) ───────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid #E8EDFB;
  z-index: 300;
  padding: 0 4px;
  box-shadow: 0 -2px 10px rgba(80,90,180,.07);
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  border: none;
  background: transparent;
  color: #9499C0;
  font-size: 9px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  padding: 8px 4px;
}
.bottom-nav__item i { font-size: 18px; }
.bottom-nav__item.active { color: #6C63FF; }
.bottom-nav__item:hover:not(.active) { color: #0E0E24; }

@media (max-width: 640px) {
  .bottom-nav { display: flex; }
}

/* ─── Responsive journal stats ────────────────────────────── */
@media (max-width: 960px) {
  .journal-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .journal-stats { grid-template-columns: repeat(2, 1fr); }
  .modal-grid    { grid-template-columns: 1fr; }
  .topbar__date  { display: none; }
}
@media (max-width: 480px) {
  .sessions { grid-template-columns: 1fr 1fr; }
  .bias-grid { grid-template-columns: 1fr 1fr; }
  .content { padding: 12px 12px 80px; }
}
