/* ============================================================
 * Sidebar membre — parcours investisseur (5 étapes)
 * Généré par sidebar-membre.js
 * ============================================================ */

.sidebar-membre {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  z-index: 1001;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  overflow: hidden;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Menu : contenu principal de la sidebar */
.sidebar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 60px 0 14px;
  margin-top: 0;
  box-sizing: border-box;
}

.sidebar-membre,
.sidebar-membre * {
  box-sizing: border-box;
}

.sidebar-page-content {
  margin-left: 260px;
}

.app-main {
  overflow-y: scroll;
  background: #ffffff;
}

.sidebar-logo-mark {
  color: var(--color-text, #1d1d1f);
}

.sidebar-logo-accent {
  color: #2563eb;
}

.sidebar-section-title {
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  background: #fff;
  z-index: 1002;
  box-sizing: border-box;
}

.sidebar-top-tools {
  margin: 12px 0 0;
  padding: 0 10px 28px;
  border-bottom: none;
}

.sidebar-parcours-steps {
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-top-tools .sidebar-tool-link {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  padding: 8px 12px;
}

.sidebar-top-tools .sidebar-tool-link:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.sidebar-top-tools .sidebar-tool-link.is-active {
  background: transparent;
  color: #2563eb;
}

.sidebar-top-tools .sidebar-tool-link.is-active:hover {
  background: #f1f5f9;
  color: #2563eb;
  transform: none;
}

/* Parcours — étapes */
.sidebar-parcours {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px;
  min-height: 0;
}

.sidebar-parcours-step {
  padding: 18px 8px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sidebar-parcours-step:last-of-type {
  border-bottom: none;
}

.sidebar-parcours-addon {
  padding: 12px 8px 16px;
}

.sidebar-inline-separator {
  height: 1px;
  margin: 8px 4px 14px;
  background: rgba(15, 23, 42, 0.08);
}

.sidebar-step-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.sidebar-step-num {
  display: inline;
  color: #2563eb;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sidebar-step-sep {
  color: #94a3b8;
  font-weight: 600;
}

.sidebar-step-question {
  display: inline;
  text-transform: uppercase;
  color: #374151;
}

.sidebar-step-tools {
  list-style: none;
  margin: 0;
  padding: 2px 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1e40af;
  text-decoration: none;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.sidebar-tool-icon {
  flex-shrink: 0;
  width: 1.35em;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.sidebar-tool-label {
  flex: 1;
  min-width: 0;
}

.sidebar-tool-link:hover {
  background: #f1f5f9;
  color: #2563eb;
  transform: translateX(3px);
}

.sidebar-tool-link.is-active {
  background: #f1f5f9;
  color: #2563eb;
  font-weight: 600;
}

.sidebar-tool-link.is-active:hover {
  background: #e2e8f0;
  color: #2563eb;
  transform: translateX(3px);
}

/* Navbar app — logo + auth */
.app-top-nav {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  width: auto;
  height: 60px;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
  overflow: visible;
}

@media (max-width: 900px) {
  .app-top-nav {
    left: 0;
  }
}

.app-nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text, #1d1d1f);
  flex-shrink: 0;
}

.nav-container--app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 16px;
  height: 60px;
  width: 100%;
  box-sizing: border-box;
}

.nav-container--app .app-nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-container--app .nav-auth {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .app-top-nav .nav-container--app {
    padding-left: 16px;
  }
}

/* Footer */
.sidebar-footer {
  flex-shrink: 0;
  padding: 12px 16px 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.sidebar-back {
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.18s ease;
}

.sidebar-back:hover {
  color: #2563eb;
}

.sidebar-email {
  color: #9ca3af;
  font-size: 12px;
  word-break: break-word;
}

/* Backdrop mobile */
.sidebar-backdrop {
  display: none;
}

.sidebar-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  color: #111827;
  border-radius: 8px;
}

.sidebar-mobile-toggle:hover {
  background: #f3f4f6;
}

@media (max-width: 900px) {
  .sidebar-membre {
    top: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  }

  .sidebar-membre.is-open {
    transform: translateX(0);
  }

  .sidebar-page-content {
    margin-left: 0;
  }

  .sidebar-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-top-nav .nav-container--app {
    padding-left: 0;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 99;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 480px) {
  .sidebar-membre {
    width: 88vw;
    max-width: 320px;
  }
}
