/**
 * Kapela — Style : Structure de l'application : cadre, barre latérale, barre du haut
 * Auteur : Jacks Ngalangala
 */

/* ───────── Structure de l'application ───────── */
.app {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.app.nav-top {
  flex-direction: column;
}
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.page {
  padding: 32px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1480px;
  width: 100%;
}
.page.full {
  max-width: none;
}
.page.flush {
  padding: 0;
}

/* Barre latérale */
.side {
  flex: 0 0 236px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surf);
  border-right: 1px solid var(--line);
  padding: 24px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side .est {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: none;
  border-left: 0;
  border-right: 0;
  text-align: left;
  cursor: pointer;
}
.side .est .n {
  font-family: var(--f-disp);
  font-weight: var(--disp-w);
  font-style: var(--disp-it);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: var(--disp-ls);
}
.t-terre .side .est .n {
  font-size: 17px;
}
.side .est .s {
  font-size: 12px;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--r-ui);
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.sn:hover {
  background: var(--line2);
  color: var(--ink);
}
.sn.on {
  background: var(--dark);
  color: var(--dark-t);
  font-weight: 600;
}
.sn .badge {
  margin-left: auto;
}
.side .foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--r-ui);
}
.me:hover {
  background: var(--line2);
}
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--dark-t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.me .n {
  font-size: 13px;
  font-weight: 700;
}
.me .r {
  font-size: 12px;
  color: var(--muted);
}

/* Barre du haut */
.top {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: var(--surf);
  border-bottom: 1px solid var(--line);
}
.top .est {
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 2px 0 2px 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.top .est .n {
  font-family: var(--f-disp);
  font-style: var(--disp-it);
  font-weight: var(--disp-w);
  font-size: 17px;
  letter-spacing: var(--disp-ls);
  white-space: nowrap;
}
.top .est .s {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.tnav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  height: 44px;
  overflow: hidden;
}
.tn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-ui);
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 0;
  background: none;
  cursor: pointer;
}
.tn:hover {
  color: var(--ink);
  background: var(--line2);
}
.tn.on {
  background: var(--dark);
  color: var(--dark-t);
  font-weight: 600;
}
.tn.hide {
  visibility: hidden;
}
.iconbtn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-ui);
  border: 1px solid var(--line);
  background: var(--surf);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.t-terre .iconbtn {
  border-radius: 50%;
}
.iconbtn:hover {
  border-color: var(--ink);
}
.iconbtn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
}
