/* ════════════════════════════════════════════════════════════════
   MY MENTOR · Espace personnel — Design system unifié
   Palette : bleu + orange uniquement, soft, premium
   Cohérence totale : V1 parcours · V2 dashboard · mail · formulaires
   Responsive : mobile (≤480) · tablette (481-768) · desktop (769+)
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  /* ── BRAND ── bleu et orange uniquement ───────────────────── */
  --blue: #1B5FBE;
  --blue-deep: #0B2A5E;
  --blue-strong: #133E7D;
  --blue-mid: #4D8AE8;
  --blue-soft: #E8F0FB;
  --blue-tint: #F4F8FD;
  --blue-border: #D5E2F5;

  --orange: #F39200;
  --orange-deep: #C97400;
  --orange-strong: #B85F00;
  --orange-mid: #FFB347;
  --orange-soft: #FFF1DC;
  --orange-tint: #FFF8EC;
  --orange-border: #F5DCB2;

  /* ── NEUTRES ── ton chaleureux crème ──────────────────────── */
  --bg: #FAF7F2;
  --bg-alt: #F4EFE5;
  --surface: #FFFFFF;
  --surface-alt: #FAF7F2;
  --ink-900: #0A1628;
  --ink-800: #1A2744;
  --ink-700: #3D4858;
  --ink-600: #5A6577;
  --ink-500: #7A8499;
  --ink-400: #A8B0BF;
  --ink-300: #CDD2DB;
  --ink-200: #E8E4D8;
  --ink-100: #F1ECDF;

  /* ── SÉMANTIQUES (gardés sobres) ──────────────────────────── */
  --ok-bg: #E8F5EE; --ok-fg: #1A6A3D; --ok-border: #C4E5D3;
  --warn-bg: #FFF1DC; --warn-fg: #B85F00; --warn-border: #F5DCB2;
  --danger-bg: #FCE8E8; --danger-fg: #A8261F; --danger-border: #F2C3BF;

  /* ── OMBRES ── multi-couches douces ───────────────────────── */
  --sh-xs: 0 1px 2px rgba(11, 42, 94, 0.04);
  --sh-sm: 0 1px 2px rgba(11, 42, 94, 0.05), 0 4px 12px rgba(11, 42, 94, 0.05);
  --sh-md: 0 4px 6px rgba(11, 42, 94, 0.06), 0 12px 24px rgba(11, 42, 94, 0.08);
  --sh-lg: 0 10px 20px rgba(11, 42, 94, 0.08), 0 24px 48px rgba(11, 42, 94, 0.10);
  --sh-xl: 0 20px 40px rgba(11, 42, 94, 0.10), 0 40px 80px rgba(11, 42, 94, 0.14);
  --sh-glow-blue: 0 12px 32px -8px rgba(27, 95, 190, 0.32);
  --sh-glow-orange: 0 12px 32px -8px rgba(243, 146, 0, 0.32);
  --sh-inner: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* ── TYPO ─────────────────────────────────────────────────── */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* ── RAYONS ───────────────────────────────────────────────── */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ── SPACING ──────────────────────────────────────────────── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* ── LAYOUT ───────────────────────────────────────────────── */
  --nav-w: 264px;
  --topbar-h: 72px;
  --content-max: 1280px;

  /* ── EASING ───────────────────────────────────────────────── */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ════════════════════════════════════════════════════════════════
   RESET
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(11, 42, 94, 0.14); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(11, 42, 94, 0.25); }

html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-deep); }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.024em;
  margin: 0 0 var(--s-4);
  color: var(--ink-900);
  line-height: 1.12;
}
h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; }
h2 { font-size: clamp(20px, 2.6vw, 24px); }
h3 { font-size: clamp(16px, 2vw, 18px); letter-spacing: -0.018em; }
h4 { font-size: 14px; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); color: var(--ink-700); }

/* ── ACCENTS TYPO ── */
.italic-accent { font-style: italic; font-weight: 700; color: var(--orange); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; font-size: 11px; color: var(--ink-500); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-deep);
  font-weight: 600;
  border: 1px solid var(--blue-border);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(243, 146, 0, 0.6);
}
.eyebrow-orange {
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-color: var(--orange-border);
}
.eyebrow-orange::before { background: var(--blue); box-shadow: 0 0 10px rgba(27, 95, 190, 0.6); }

/* ════════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "nav topbar"
    "nav main";
  min-height: 100vh;
}
.layout-nav { grid-area: nav; }
.layout-topbar { grid-area: topbar; }
.layout-main {
  grid-area: main;
  padding: var(--s-8) var(--s-10);
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1080px) {
  :root { --nav-w: 220px; --topbar-h: 64px; }
  .layout-main { padding: var(--s-6) var(--s-5); }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-h) 1fr;
    grid-template-areas: "topbar" "main";
  }
  /* Double classe (.layout-nav.nav) pour l'emporter sur `.nav { position: sticky }`
     défini plus bas dans le fichier. Sinon la nav casse la mise en page sur mobile. */
  .layout-nav.nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: min(300px, 86vw);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
  .layout-nav.nav.is-open { transform: translateX(0); }
  .layout-main { padding: var(--s-5) var(--s-4); }
}

@media (max-width: 480px) {
  .layout-main { padding: var(--s-4) var(--s-3); }
  h1 { font-size: 24px; }
}

/* ════════════════════════════════════════════════════════════════
   NAV LATÉRALE
   ════════════════════════════════════════════════════════════════ */
/* Voile derrière la nav mobile : cliquer dessus ferme le menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav {
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--ink-200);
  padding: var(--s-6) var(--s-3);
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-2) var(--s-6);
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: var(--s-4);
}
.nav-brand-logo {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--sh-md);
}
.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.nav-brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-500);
  margin-top: 3px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-5);
}
.nav-user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}
.nav-user-info { flex: 1; min-width: 0; }
.nav-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.nav-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-400);
  padding: var(--s-4) var(--s-3) var(--s-2);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-3);
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.nav-item:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
  text-decoration: none;
}
.nav-item.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: white;
  font-weight: 600;
  box-shadow: var(--sh-glow-blue);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--orange);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgba(243, 146, 0, 0.6);
}
.nav-item-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.nav-item-badge {
  margin-left: auto;
  background: var(--orange);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: var(--r-pill);
}

/* ════════════════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-10);
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--ink-200);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
}
.topbar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.topbar-btn {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-700);
  transition: all 0.2s var(--ease);
}
.topbar-btn:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
  background: var(--orange-tint);
  transform: translateY(-1px);
}
.topbar-hamburger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink-900);
}

@media (max-width: 1080px) {
  .topbar { padding: 0 var(--s-5); }
}
@media (max-width: 768px) {
  .topbar-hamburger { display: inline-flex; }
  .topbar-title { font-size: 17px; }
}

/* ════════════════════════════════════════════════════════════════
   CARDS — Cœur du design Web 3.0 sobre
   ════════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s-6);
  transition: all 0.3s var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--sh-md);
}
.card-clickable { cursor: pointer; }
.card-clickable:hover {
  border-color: var(--orange-border);
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  line-height: 1.25;
}
.card-subtitle {
  color: var(--ink-500);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ── HERO CARD ── bento style avec accents bleu+orange ── */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 60%, var(--blue-tint) 100%);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  margin-bottom: var(--s-6);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-md);
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(243, 146, 0, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(27, 95, 190, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.028em;
  color: var(--ink-900);
  margin: 0 0 8px;
  line-height: 1.1;
}
.hero-subtitle {
  color: var(--ink-600);
  font-size: 15px;
  margin: 0;
  max-width: 480px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .hero-card { padding: var(--s-6); border-radius: var(--r-md); }
}

/* ════════════════════════════════════════════════════════════════
   GRID HELPERS
   ════════════════════════════════════════════════════════════════ */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-5);
}

@media (max-width: 1080px) {
  .grid-dashboard { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   STAT CARDS — KPIs sobres, bleu+orange seulement
   ════════════════════════════════════════════════════════════════ */
.stat {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.stat:hover {
  border-color: var(--orange-border);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0;
  transition: opacity 0.3s;
}
.stat:hover::before { opacity: 1; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-value .stat-suffix {
  font-size: 0.55em;
  color: var(--ink-500);
  font-weight: 600;
  margin-left: 4px;
  background: none;
  -webkit-text-fill-color: var(--ink-500);
}
.stat-delta {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: var(--s-3);
}
.stat-icon {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 15px;
  border: 1px solid var(--orange-border);
}

/* ════════════════════════════════════════════════════════════════
   BUTTONS — pill style
   ════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 1px solid var(--ink-200);
  background: var(--surface);
  color: var(--ink-900);
  letter-spacing: -0.003em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh-xs);
}
.btn:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: white;
  border-color: var(--blue);
  box-shadow: var(--sh-glow-blue);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-strong) 0%, var(--blue-deep) 100%);
  color: white;
  border-color: var(--blue-deep);
  box-shadow: 0 16px 40px -8px rgba(27, 95, 190, 0.45);
}
.btn-accent {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-mid) 100%);
  color: white;
  border-color: var(--orange);
  box-shadow: var(--sh-glow-orange);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--orange-deep) 0%, var(--orange) 100%);
  color: white;
  border-color: var(--orange-deep);
  box-shadow: 0 16px 40px -8px rgba(243, 146, 0, 0.45);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink-300);
}
.btn-soft {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-color: var(--blue-border);
}
.btn-soft:hover {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--blue-deep);
}
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.btn-ghost .ico { background: var(--orange-soft); color: var(--orange-deep); }

/* ════════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: var(--s-5); }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-600);
  margin-bottom: var(--s-2);
  font-weight: 600;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: all 0.2s var(--ease);
  box-shadow: var(--sh-xs);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-400); }
.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: var(--ink-300); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(27, 95, 190, 0.15), var(--sh-xs);
}
.form-select { cursor: pointer; }
.form-help { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }

/* ════════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-gratuit {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-color: var(--ok-border);
}
.badge-payant {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-color: var(--warn-border);
}
.badge-bourse {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-color: var(--blue-border);
}
.badge-urgent {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: var(--danger-border);
}
.badge-new {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-mid) 100%);
  color: white;
}
.badge-meta {
  background: var(--bg-alt);
  color: var(--ink-600);
  border-color: var(--ink-200);
}

/* ════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ════════════════════════════════════════════════════════════════ */
.progress {
  width: 100%;
  height: 6px;
  background: var(--ink-100);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: var(--r-pill);
  transition: width 0.6s var(--ease-out);
}

/* ════════════════════════════════════════════════════════════════
   TÂCHES
   ════════════════════════════════════════════════════════════════ */
.tache {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}
.tache:hover {
  background: var(--blue-tint);
  border-color: var(--blue-border);
}
.tache-check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink-300);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  transition: all 0.25s var(--ease-spring);
  margin-top: 2px;
}
.tache-check:hover { border-color: var(--orange); transform: scale(1.06); }
.tache-check.done {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-color: transparent;
  color: white;
}
.tache-check.done::after { content: '✓'; font-weight: 800; font-size: 13px; }
.tache-info { flex: 1; min-width: 0; }
.tache-titre {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.4;
}
.tache.done .tache-titre {
  text-decoration: line-through;
  color: var(--ink-400);
}
.tache-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════
   ITEM CARD (ressources/lieux/opportunités) — vraiment responsive
   ════════════════════════════════════════════════════════════════ */
.item-card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.item-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0;
  transition: opacity 0.3s;
}
.item-card:hover::before { opacity: 1; }

.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.item-card-icon {
  font-size: 24px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--orange-tint) 100%);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.item-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.014em;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.3;
}
.item-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-top: 4px;
}
.item-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-600);
  flex: 1;
  margin: 0;
}
.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink-200);
  flex-wrap: wrap;
}
.item-card-tags {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════
   CHAT COACH
   ════════════════════════════════════════════════════════════════ */
.chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h) - var(--s-8) * 2);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-200);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-6) var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  .chat-messages { padding: var(--s-5) var(--s-4); }
}

.chat-bubble {
  max-width: 78%;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.6;
  word-wrap: break-word;
  animation: bubbleIn 0.32s var(--ease-out);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: white;
  border-bottom-right-radius: 6px;
  font-weight: 500;
  box-shadow: var(--sh-md);
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  border-bottom-left-radius: 6px;
}

/* Markdown */
.chat-bubble strong { font-weight: 700; color: inherit; }
.chat-bubble em { font-style: italic; }
.chat-bubble code {
  background: rgba(11, 42, 94, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.chat-bubble.user code { background: rgba(255, 255, 255, 0.2); }
.chat-bubble pre {
  background: rgba(11, 42, 94, 0.06);
  padding: var(--s-3);
  border-radius: var(--r-xs);
  overflow-x: auto;
  margin: var(--s-3) 0;
  font-size: 12.5px;
  border: 1px solid var(--ink-200);
}
.chat-bubble.user pre { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.chat-bubble ul, .chat-bubble ol {
  margin: var(--s-3) 0;
  padding-left: var(--s-5);
}
.chat-bubble li { margin-bottom: var(--s-2); }
.chat-bubble.assistant ul li::marker { color: var(--orange); font-weight: 800; }
.chat-bubble blockquote {
  border-left: 2px solid var(--orange);
  padding-left: var(--s-3);
  margin: var(--s-3) 0;
  color: var(--ink-600);
  font-style: italic;
}
.chat-bubble h1, .chat-bubble h2, .chat-bubble h3, .chat-bubble h4 {
  margin: var(--s-3) 0 var(--s-2);
  font-size: 15px;
  color: inherit;
}
.chat-bubble.assistant h2 { color: var(--blue-deep); }
.chat-bubble a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--orange);
}
.chat-bubble p { margin: 0; color: inherit; }
.chat-bubble p + p { margin-top: var(--s-3); }
.chat-bubble hr {
  border: none;
  height: 1px;
  background: var(--ink-200);
  margin: var(--s-3) 0;
}

.chat-input-area {
  padding: var(--s-4) var(--s-6);
  background: var(--bg);
  border-top: 1px solid var(--ink-200);
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
@media (max-width: 768px) {
  .chat-input-area { padding: var(--s-3) var(--s-4); }
}
.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-size: 14px;
  background: var(--surface);
  color: var(--ink-900);
  transition: all 0.2s var(--ease);
  box-shadow: var(--sh-xs);
}
.chat-input::placeholder { color: var(--ink-400); }
.chat-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 95, 190, 0.15);
}
.chat-mic-btn,
.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
  background: var(--surface);
  color: var(--ink-700);
  box-shadow: var(--sh-xs);
}
.chat-mic-btn:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
  background: var(--orange-tint);
}
.chat-send-btn {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: white;
  border-color: var(--blue);
  box-shadow: var(--sh-glow-blue);
}
.chat-send-btn:hover {
  background: linear-gradient(135deg, var(--blue-strong) 0%, var(--blue-deep) 100%);
}
.chat-mic-btn.recording {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  border-color: #DC2626;
  color: white;
  animation: pulse 1.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
}

.typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
}
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: typing 1.3s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  position: relative;
  background:
    radial-gradient(ellipse 600px 400px at 18% 22%, rgba(27, 95, 190, 0.10), transparent 65%),
    radial-gradient(ellipse 600px 400px at 82% 78%, rgba(243, 146, 0, 0.10), transparent 65%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  position: relative;
  z-index: 2;
  box-shadow: var(--sh-xl);
}
@media (max-width: 480px) {
  .auth-card { padding: var(--s-6); }
}
.auth-brand {
  text-align: center;
  margin-bottom: var(--s-8);
}
.auth-brand-logo {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: var(--s-4);
  box-shadow: var(--sh-glow-blue);
}
.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.auth-brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-500);
  margin-top: var(--s-3);
}

.auth-tabs {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: var(--s-6);
}
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink-500);
  transition: all 0.25s var(--ease);
  border: none;
  background: transparent;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: white;
  box-shadow: var(--sh-sm);
}

/* ════════════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin-bottom: var(--s-4);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.alert-error { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-border); }
.alert-success { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-border); }
.alert-info { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue-border); }

/* ════════════════════════════════════════════════════════════════
   SKELETON
   ════════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--ink-100), var(--bg-alt), var(--ink-100));
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  color: transparent;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════════════════════
   EMPTY STATES
   ════════════════════════════════════════════════════════════════ */
.empty {
  text-align: center;
  padding: var(--s-12) var(--s-6);
  background: var(--surface);
  border: 1px dashed var(--ink-300);
  border-radius: var(--r-md);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: var(--s-4);
  opacity: 0.5;
}
.empty h3 {
  font-family: var(--font-display);
  margin-bottom: var(--s-2);
}
.empty p { color: var(--ink-600); max-width: 460px; margin: 0 auto var(--s-5); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.text-soft { color: var(--ink-500); }
.text-mute { color: var(--ink-400); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-center { text-align: center; }
.text-strong { color: var(--ink-900); font-weight: 600; }
.text-orange { color: var(--orange-deep); }
.text-blue { color: var(--blue-deep); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Legacy aliases for older pages */
.mt-sm { margin-top: var(--s-2); }
.mt-md { margin-top: var(--s-4); }
.mt-lg { margin-top: var(--s-6); }
.mb-md { margin-bottom: var(--s-4); }
.mb-lg { margin-bottom: var(--s-6); }
.gap-sm { gap: var(--s-2); }
.gap-md { gap: var(--s-4); }
.gap-lg { gap: var(--s-6); }

/* ════════════════════════════════════════════════════════════════
   BASCULE THÈME SOMBRE PREMIUM — cohérence avec l'accueil V2.
   On ne réécrit rien : on redéfinit les tokens (le fichier est
   entièrement piloté par var()), et on rattrape les quelques
   couleurs codées en dur. Aucun changement de HTML ni de JS.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* soft / tint / border deviennent des voiles translucides sur fond sombre */
  --blue-soft: rgba(27, 95, 190, 0.16);
  --blue-tint: rgba(27, 95, 190, 0.09);
  --blue-border: rgba(27, 95, 190, 0.34);
  --orange-soft: rgba(243, 146, 0, 0.16);
  --orange-tint: rgba(243, 146, 0, 0.09);
  --orange-border: rgba(243, 146, 0, 0.38);

  /* fonds sombres — la surface devient un VERRE translucide foncé pour
     laisser passer le halo (effet accueil). --surface-solid reste opaque
     pour les cas qui l'exigent (options de select, etc.) */
  --bg: #05070C;
  --bg-alt: #0A1220;
  --surface: rgba(13, 22, 40, 0.55);
  --surface-solid: #0C1526;
  --surface-alt: rgba(10, 18, 32, 0.5);

  /* échelle d'encre INVERSÉE : ink-900 = texte principal (crème),
     ink-100/200 = voiles clairs pour bordures et fonds subtils */
  --ink-900: #F5F3EE;
  --ink-800: #E7E4DD;
  --ink-700: #C7C4BC;
  --ink-600: #9DA2AD;
  --ink-500: #767C8A;
  --ink-400: #565C68;
  --ink-300: #3C424E;
  --ink-200: rgba(245, 243, 238, 0.12);
  --ink-100: rgba(245, 243, 238, 0.06);

  /* sémantiques adaptées au sombre */
  --ok-bg: rgba(34, 197, 94, 0.14);   --ok-fg: #6EE7A0;   --ok-border: rgba(34, 197, 94, 0.30);
  --warn-bg: rgba(243, 146, 0, 0.14); --warn-fg: #FFB347; --warn-border: rgba(243, 146, 0, 0.34);
  --danger-bg: rgba(226, 80, 80, 0.14); --danger-fg: #F0A0A0; --danger-border: rgba(226, 80, 80, 0.34);

  /* ombres sur fond noir : noir + halos de marque */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.30), 0 4px 12px rgba(0, 0, 0, 0.34);
  --sh-md: 0 4px 6px rgba(0, 0, 0, 0.34), 0 12px 24px rgba(0, 0, 0, 0.40);
  --sh-lg: 0 10px 20px rgba(0, 0, 0, 0.40), 0 24px 48px rgba(0, 0, 0, 0.50);
  --sh-xl: 0 20px 40px rgba(0, 0, 0, 0.46), 0 40px 80px rgba(0, 0, 0, 0.60);
  --sh-glow-blue: 0 14px 36px -8px rgba(27, 95, 190, 0.50);
  --sh-glow-orange: 0 14px 36px -8px rgba(243, 146, 0, 0.45);
  --sh-inner: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* titres en Jost, comme l'accueil ; corps en Manrope pour la lisibilité UI */
  --font-display: 'Jost', system-ui, sans-serif;
}

/* atmosphère : le même halo que l'accueil, bien visible derrière tout l'espace */
body { background: var(--bg); }
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 60vh at 50% 22%, rgba(120, 60, 200, 0.18) 0%, rgba(27, 95, 190, 0.10) 42%, transparent 68%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(243, 146, 0, 0.10), transparent 62%),
    radial-gradient(ellipse 55% 45% at 0% 90%, rgba(27, 95, 190, 0.10), transparent 60%);
}
/* grain très discret, comme l'accueil, pour la matière */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image:
    repeating-linear-gradient(60deg, #F5F3EE 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-60deg, #F5F3EE 0 1px, transparent 1px 28px);
}
/* le contenu passe AU-DESSUS du halo */
.layout, .auth-page { position: relative; z-index: 1; }

/* ── VERRE : les panneaux deviennent translucides et floutent le halo ──
   C'est ce qui donnait l'effet premium de l'accueil et qui manquait ici. */
.card, .stat, .auth-card, .hero-card,
.nav, .layout-nav, .topbar, .layout-topbar,
.topbar-btn, .topbar-hamburger,
.chat-input-bar, .modal, .dropdown, .popover {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* un liseré clair en haut des cartes = reflet de verre */
.card, .stat, .auth-card, .hero-card {
  border-color: rgba(245, 243, 238, 0.10);
  box-shadow: var(--sh-md), inset 0 1px 0 rgba(245, 243, 238, 0.06);
}
.card:hover, .stat:hover {
  border-color: rgba(245, 243, 238, 0.18);
}
/* les menus déroulants ont besoin d'un fond OPAQUE, pas de verre */
.form-select option { background: var(--surface-solid); color: var(--ink-900); }

/* titres : Jost plus fin et plus aéré que le 700 d'origine */
h1, h2, h3, h4, h5 { font-weight: 500; letter-spacing: -0.012em; }

/* barre de défilement claire sur fond sombre */
*::-webkit-scrollbar-thumb { background: rgba(245, 243, 238, 0.16); }
*::-webkit-scrollbar-thumb:hover { background: rgba(245, 243, 238, 0.28); }

/* bulle du coach (assistant) : surface claire lisible sur fond sombre */
.chat-bubble.assistant,
.chat-bubble:not(.user) { background: rgba(245, 243, 238, 0.05); border: 1px solid var(--ink-200); }
.chat-bubble:not(.user) code { background: rgba(245, 243, 238, 0.10); }
.chat-bubble:not(.user) pre { background: rgba(245, 243, 238, 0.06); border-color: var(--ink-200); }

/* skeleton : miroitement clair discret sur sombre */
.skeleton { background: linear-gradient(90deg, rgba(245,243,238,0.04), rgba(245,243,238,0.10), rgba(245,243,238,0.04)); }

/* champs de formulaire : fond sombre, pas blanc */
.form-input, .form-select, .form-textarea, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  background: rgba(245, 243, 238, 0.04);
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.form-input::placeholder, .form-textarea::placeholder, textarea::placeholder { color: var(--ink-500); }
.form-input:focus, .form-select:focus, .form-textarea:focus, textarea:focus {
  border-color: var(--orange); background: rgba(245, 243, 238, 0.06);
}
.form-select option { background: var(--surface); color: var(--ink-900); }

/* En-tête des pages d'authentification séparées (connexion / création) */
.auth-head { text-align: center; margin-bottom: var(--s-6); }
.auth-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 5vw, 28px); letter-spacing: -0.012em; margin: 0 0 var(--s-2); color: var(--ink-900); }
.auth-sub { font-size: 14px; line-height: 1.6; color: var(--ink-500); margin: 0; }

/* ════════════════════════════════════════════════════════════════
   TABLEAU DE BORD — version épurée et professionnelle
   (suppression des pilules "eyebrow" et des badges superflus)
   ════════════════════════════════════════════════════════════════ */

/* petite ligne d'identité sous le nom, sobre — remplace la pilule */
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-3);
}

/* carte coach : dégradé bleu profond, lueur orange, pro */
.card-coach {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--blue-strong) 0%, var(--blue-deep) 100%);
  border: 1px solid rgba(77, 138, 232, 0.3);
  color: #fff;
}
.card-coach-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 146, 0, 0.35), transparent 70%);
  pointer-events: none;
}
.card-coach-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 var(--s-2);
}
.card-coach-text {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 var(--s-5);
}
.card-coach .btn-accent { position: relative; }

/* items ressources — épurés, sans badge */
.tache-ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
}
.tache-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-600);
  margin-top: 3px;
}
.tache-meta {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 7px;
  letter-spacing: 0.02em;
}
.tache-link {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  color: var(--ink-500);
  font-size: 15px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.tache-link:hover { border-color: var(--orange); color: var(--orange); }

/* items opportunités — liste sobre, sans badge */
.opp-item {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--ink-200);
}
.opp-item:first-child { border-top: 0; padding-top: var(--s-2); }
.opp-titre {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-900);
  margin-bottom: 4px;
  line-height: 1.35;
}
.opp-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-600);
}
.opp-deadline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 8px;
}
