.app-layout {
  display: flex;
  height: 100dvh;
}

/* ── Bande d'icônes (icon-rail) ── */
.icon-rail {
  width: var(--icon-rail-width);
  flex-shrink: 0;
  background: #0f1117;
  border-right: 1px solid #2a2f3e;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  height: 100dvh;
}

.icon-rail-logo {
  margin-bottom: 12px;
}

.logo-img-rail {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid #cffe61;
  border-radius: 8px;
}

/* Colonne de droite : header + main empilés */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* centre le titre */
  padding: 12px 20px;
  background: #284fbb;
  border-bottom: 1px solid #2a2f3e;
  flex-shrink: 0;
  z-index: 1000;

  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#text-title span {
  color: #cffe61;
}

.btn-devenir-membre-vertical {
  position: fixed;
  top: 50%;
  left: var(--icon-rail-width);
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 50px 8px;
  background: #cffe61;
  color: #3959b0;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1500;
}
.btn-devenir-membre-vertical:hover { opacity: 0.85; }

/* Quand la sidebar est ouverte, le bouton se décale à droite d'elle */
.btn-devenir-membre-vertical.panel-ouvert {
  left: calc(var(--icon-rail-width) + 270px);
}

/* ── Layout principal ── */
.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Panel sidebar ── */
.sidebar {
  width: 270px;
  flex-shrink: 0;
  background: #171b26;
  border-right: 1px solid #2a2f3e;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 14px;
}
.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a2f3e;
}

.sidebar-description {
  font-size: 13px;
  color: #e8e6e0;
  margin-bottom: 12px;
  line-height: 1.6;
  border-bottom: 1px solid #2a2f3e;
  padding-bottom: 12px;
  font-weight: 300;
  text-align: justify;
}

.sidebar-description ul {
  margin-top: 15px;
  padding-left: 16px;
}

.sidebar-description li {
  margin-bottom: 6px;
  position: relative;
}

.sidebar-description strong {
  color: #cffe61;
}