@font-face {
  font-family: Manrope;
  src: url(manrope.ttf) format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --pine: #10213b;
  --pine-dark: #0b172b;
  --green: #028ac7;
  --lime: #cceefe;
  --paper: #f5f8fc;
  --ink: #14263f;
  --muted: #5b6d8c;
  --line: #e3eaf4;
  --white: #fff;
  --danger: #d1483a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button svg {
  pointer-events: none;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button .icon {
  vertical-align: middle;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--pine);
  color: #dae2e7;
  padding: 34px 22px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -1.3px;
  font-size: 31px;
  font-weight: 700;
  color: white;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3.1px;
  color: #abc0ca;
  font-weight: 500;
  margin-top: -7px;
}
.workspace-label {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8c9cac;
  margin: 48px 12px 17px;
}
.nav-item {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  border-radius: 9px;
  padding: 13px 15px;
  margin: 6px 0;
  text-align: left;
  color: #b1c4cd;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-item:hover {
  background: #28384b;
}
.nav-item.active {
  background: var(--lime);
  color: var(--pine);
}
.nav-item b {
  margin-left: auto;
  font-size: 10px;
  min-width: 21px;
  text-align: center;
  background: #71b8d9;
  border-radius: 5px;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}
.world-card {
  background: #213246;
  border: 1px solid #364453;
  border-radius: 12px;
  padding: 20px 17px;
  font-size: 10px;
  position: relative;
}
.world-card > .icon {
  color: #88c6e3;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}
.world-card b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #e9f0f5;
}
.world-card p {
  font-size: 11px;
  margin: 8px 0 17px;
  color: #a4c1ce;
}
.small-dot,
.green-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #79bfdf;
  border-radius: 50%;
  margin-right: 7px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 23px 0 3px;
}
.profile b {
  display: block;
  font-size: 11px;
}
.profile small {
  color: #98a6b5;
  font-size: 10px;
}
.profile > .icon {
  margin-left: auto;
  width: 16px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e4e9ed;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}
.avatar.small {
  width: 32px;
  height: 32px;
  background: #e0e8ee;
  font-size: 10px;
}
.main {
  width: calc(100% - 235px);
  margin-left: 235px;
}
.topbar {
  height: 83px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8596a7;
}
.breadcrumbs b {
  color: var(--ink);
  font-weight: 600;
}
.breadcrumbs .icon {
  width: 12px;
  height: 12px;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.demo-switch,
.lang-interface {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #5a6b7d;
}
.demo-switch .icon,
.lang-interface .icon {
  width: 15px;
  height: 15px;
}
.page-content {
  padding: 22px 42px 40px;
  max-width: 1700px;
  margin: auto;
}
.demo-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  background: #f2f1e8;
  border: 1px solid #d6e2e8;
  border-radius: 8px;
  font-size: 9px;
  color: #827b5c;
  margin-bottom: 24px;
}
.demo-notice > span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-notice .icon {
  width: 13px;
  height: 13px;
}
.demo-notice button {
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  gap: 5px;
  align-items: center;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 25px;
  gap: 40px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #557685;
  display: flex;
  align-items: center;
  gap: 7px;
}
.eyebrow > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
h1 {
  font-size: 37px;
  letter-spacing: -1.6px;
  line-height: 1.25;
  font-weight: 700;
}
.welcome h1 {
  font-size: 43px;
  margin: 12px 0 15px;
  letter-spacing: -1.9px;
}
.welcome h1 em {
  font-style: normal;
  color: #4a6775;
}
.welcome p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.welcome-visual {
  position: relative;
  width: 350px;
  min-height: 208px;
  margin-right: 22px;
}
.language-bubble {
  position: absolute;
  padding: 18px 24px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 8px 28px #1b442309;
  font-weight: 600;
}
.language-bubble small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 8px;
  font-weight: 500;
}
.language-bubble.fr {
  background: #dce6ed;
  top: 16px;
  left: 4px;
  transform: rotate(-5deg);
}
.language-bubble.en {
  background: var(--pine);
  color: #dceeff;
  top: 102px;
  right: 0;
  transform: rotate(4deg);
}
.translation-bridge {
  position: absolute;
  top: 80px;
  left: 130px;
  width: 49px;
  height: 49px;
  background: var(--lime);
  border: 5px solid var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.translation-bridge .icon {
  width: 22px;
  height: 22px;
}
.translation-bridge span {
  display: none;
}
.visual-caption {
  position: absolute;
  bottom: 0;
  left: 44px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #8b9cb4;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 10px 0 35px;
}
.stat-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  position: relative;
}
.stat-card > .icon {
  width: 34px;
  height: 34px;
  background: #e9eff4;
  border-radius: 10px;
  padding: 8px;
  color: #0f7fb8;
}
.stat-card strong {
  font-size: 24px;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.stat-card small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.green-chip {
  margin-left: auto;
  background: #e4f2fd;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 7px;
  color: #0a5c88;
  font-weight: 800;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}
.section-title h2 {
  font-size: 22px;
  letter-spacing: -0.8px;
}
.section-title h2 > span {
  font-size: 10px;
  vertical-align: middle;
  background: #e4f0fb;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 7px;
  color: #0a5c88;
}
.section-title p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.section-title h1 {
  margin-top: 12px;
}
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 700;
  transition:
    transform 0.1s,
    background 0.15s;
  white-space: nowrap;
}
.primary-button {
  background: var(--pine);
  color: #fff;
}
.primary-button:hover {
  background: #0b6b9e;
}
.primary-button .icon,
.secondary-button .icon {
  width: 16px;
  height: 16px;
}
.secondary-button {
  background: white;
  border: 1px solid #d4e0e5;
  color: #2c4a6e;
}
.secondary-button:hover {
  background: #eaf3fc;
}
.danger-button {
  background: #fdeceb;
  color: var(--danger);
}
.full {
  width: 100%;
}
.class-filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.filter-tabs {
  display: flex;
  gap: 5px;
}
.filter-tabs button {
  border-radius: 6px;
  padding: 8px 11px;
  color: #6b7c99;
  font-size: 10px;
  white-space: nowrap;
}
.filter-tabs button.selected {
  background: #e2f2fd;
  color: #0a5c88;
  font-weight: 700;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 11px;
}
.search-box .icon {
  width: 15px;
  height: 15px;
  color: #8b9cb4;
}
.search-box input {
  border: 0;
  width: 146px;
  font-size: 10px;
  padding: 2px;
  outline: none;
  background: none;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #2640250b;
}
.course-art {
  height: 163px;
  position: relative;
  overflow: hidden;
  background: #e6f1fb;
  color: var(--pine);
}
.course-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 35%;
  filter: brightness(0.75);
}
.course-art:has(img):after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,26,47,.42), transparent 65%);
  pointer-events: none;
}
.course-subject {
  position: absolute;
  top: 13px;
  left: 12px;
  font-size: 8px;
  font-weight: 600;
  padding: 4px 7px;
  background: #ffffffdc;
  color: #1e3a5f;
  border-radius: 4px;
  z-index: 1;
}
.course-status {
  position: absolute;
  top: 13px;
  right: 12px;
  font-size: 7px;
  padding: 4px 7px;
  background: #ffffffea;
  color: #55698a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}
.course-status i {
  width: 4px;
  height: 4px;
  background: #94a8c2;
  border-radius: 50%;
}
.course-status.live {
  background: #dcf5e7;
  color: #2b7a52;
}
.course-status.live i {
  background: #33a06a;
}
.art-bottom {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  z-index: 1;
}
.art-0 .art-bottom {
  color: white;
}
.art-bottom .icon {
  width: 13px;
  height: 13px;
}
.art-bottom span {
  opacity: 0.7;
}
.illustration-label {
  font-size: 6px;
  position: absolute;
  bottom: 12px;
  right: 11px;
  color: #ffffffc7;
  z-index: 1;
}
.art-1 {
  background: #e8f3fd;
  background-image: radial-gradient(
    ellipse at 80% 20%,
    #cfe4f7 0,
    transparent 50%
  );
}
.art-2 {
  background: #eef2f8;
  background-image: linear-gradient(140deg, transparent 50%, #dde7f3 50%);
}
.art-drawing {
  position: absolute;
  right: 25px;
  top: 24px;
}
.art-drawing .icon {
  width: 111px;
  height: 111px;
  stroke-width: 0.6;
  color: #3f6d9c;
  transform: rotate(-13deg);
}
.art-2 .art-drawing .icon {
  color: #7d8ea6;
  transform: rotate(12deg);
}
.course-body {
  padding: 18px 17px 12px;
}
.course-body h3 {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.35px;
  min-height: 45px;
}
.course-body > p {
  color: #5b6d8c;
  font-size: 10px;
  line-height: 1.6;
  min-height: 35px;
  margin: 5px 0 15px;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 8px;
  color: #7d8ea6;
}
.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.course-meta .icon {
  width: 12px;
  height: 12px;
}
.course-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #e9eff7;
  margin-top: 15px;
  padding-top: 12px;
  font-size: 8px;
  color: #7d8ea6;
}
.mini-avatar {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f1fb;
  border-radius: 50%;
  color: #3f6d9c;
  font-size: 7px;
  font-weight: 700;
}
.enter-button {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #0a5c88;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  padding: 5px 0;
}
.enter-button .icon {
  width: 13px;
  height: 13px;
}
.bottom-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8b9cb4;
  margin-top: 28px;
}
.bottom-note .icon {
  width: 13px;
  height: 13px;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  background: white;
  border: 1px dashed #dde7f3;
  border-radius: 15px;
  padding: 70px 25px;
}
.empty-state > .icon {
  width: 37px;
  height: 37px;
  color: #7da7cc;
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 18px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.loading-screen,
.failure-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.brand-symbol {
  background: var(--pine);
  color: var(--lime);
  font-size: 40px;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.failure-page img {
  width: 70px;
}
.failure-page p {
  max-width: 600px;
  text-align: center;
  color: var(--muted);
}
form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #3d5372;
  margin: 16px 0 5px;
}
form input,
form select,
form textarea,
.modal > label input {
  display: block;
  width: 100%;
  border: 1px solid #d4e0e5;
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink);
}
form input:focus,
form textarea:focus {
  outline: 2px solid rgba(18,135,196,.42);
  border-color: #86c8e6;
}
form .primary-button {
  margin-top: 20px;
  width: 100%;
}
.text-button {
  color: #4d7588;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-info {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #55698a;
  background: #eef4fb;
  border-radius: 7px;
  padding: 10px;
  margin-top: 20px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,19,37,.62);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  backdrop-filter: blur(4px);
}
.modal {
  width: 460px;
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  padding: 32px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 20px 90px #0002;
}
.modal h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 12px 0 7px;
  line-height: 1.3;
}
.modal > p {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.modal-close {
  position: absolute;
  top: 17px;
  right: 16px;
  color: #7d8ea6;
}
.modal-close .icon {
  width: 18px;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.invite-code {
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  padding: 25px;
  background: #e8f4fd;
  border: 1px dashed #bfe3f8;
  border-radius: 10px;
  margin: 22px 0;
  color: #0a5c88;
}
.modal > label {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.modal > label input {
  margin: 6px 0 20px;
}
.room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.room-heading h1 {
  font-size: 25px;
  margin: 10px 0 8px;
  letter-spacing: -0.8px;
}
.back-link {
  font-size: 9px;
  color: #6b7c99;
  padding: 0;
}
.room-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7d8ea6;
  font-size: 9px;
}
.room-meta .icon {
  width: 12px;
  height: 12px;
}
.badge {
  font-size: 8px;
  font-weight: 700;
  border-radius: 5px;
  padding: 4px 8px;
  background: #eef3fa;
  color: #55698a;
}
.badge.live {
  background: #dcf5e7;
  color: #2b7a52;
}
.room-heading-actions {
  display: flex;
  gap: 10px;
}
.classroom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.room-main {
  min-width: 0;
}
.video-stage {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--pine-dark);
  border-radius: 13px;
  color: white;
}
.demo-teacher {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: brightness(0.8);
}
.video-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6,18,34,.62), transparent 35%),
    linear-gradient(90deg, rgba(9,22,40,.6), transparent 75%);
  pointer-events: none;
}
.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: var(--pine-dark);
}
#local-video {
  inset: auto 14px 64px auto;
  width: 145px;
  height: 85px;
  border-radius: 8px;
  z-index: 5;
  box-shadow: 0 3px 12px #0004;
}
.video-top,
.video-bottom {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}
.video-top {
  top: 17px;
}
.stage-badge {
  font-size: 7px;
  letter-spacing: 1px;
  background: #ffffff22;
  padding: 5px 9px;
  border: 1px solid #ffffff33;
  border-radius: 4px;
}
.stage-encryption {
  font-size: 8px;
  color: #d7e4f5;
  display: flex;
  gap: 4px;
  align-items: center;
}
.stage-encryption .icon {
  width: 12px;
  height: 12px;
}
.video-bottom {
  bottom: 18px;
}
.video-bottom b {
  font-size: 11px;
  display: block;
}
.video-bottom small {
  font-size: 7px;
  color: #c3d4e8;
}
.mic-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #dff0ff;
  background: rgba(10,26,47,.86);
  padding: 6px 9px;
  border-radius: 5px;
}
.mic-indicator .icon {
  width: 12px;
  height: 12px;
}
.lesson-title {
  position: absolute;
  left: 25px;
  top: 35%;
  z-index: 2;
}
.lesson-title > span {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #cfe9ff;
}
.lesson-title h2 {
  font-size: 29px;
  line-height: 1.3;
  margin-top: 9px;
  font-weight: 500;
  letter-spacing: -1px;
}
.floating-caption {
  position: absolute;
  bottom: 75px;
  left: 30px;
  right: 30px;
  text-align: center;
  z-index: 7;
  color: white;
  background: rgba(7,19,37,.8);
  border-radius: 7px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.media-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.control-group {
  display: flex;
  gap: 10px;
}
.media-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8px;
  background: white;
  min-width: 67px;
  color: #567787;
}
.media-button .icon {
  width: 19px;
  height: 19px;
}
.media-button[aria-pressed="true"] {
  background: #e2f2fd;
  border-color: #bfe3f8;
  color: #0a5c88;
}
.leave-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fdeceb;
  color: #c0473a;
  border: 1px solid #f6d5d1;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 9px;
}
.leave-button .icon {
  width: 14px;
}
.language-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dde7f3;
  border-radius: 9px;
  background: #e9eff4;
}
.language-icon {
  width: 34px;
  height: 34px;
  background: #e2f2fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a5c88;
}
.language-strip b {
  display: block;
  font-size: 10px;
}
.language-strip small {
  display: block;
  font-size: 8px;
  color: #7d8ea6;
  max-width: 350px;
}
.language-strip small.bad {
  color: var(--danger);
}
.language-strip select {
  margin-left: auto;
  background: white;
  border: 1px solid #dde7f3;
  border-radius: 6px;
  color: #2c4a6e;
  padding: 8px;
  font-size: 10px;
  max-width: 140px;
}
.participants-section {
  margin-top: 20px;
}
.participants-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.participants-title h3 {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.participants-title h3 .icon {
  width: 15px;
}
.participant-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.participant-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  position: relative;
}
.participant-card.speaking {
  border-color: #9dd0ee;
  background: #f5fbff;
}
.participant-card .avatar {
  width: 29px;
  height: 29px;
  font-size: 8px;
}
.tone-1 {
  background: #e7eefb;
  color: #4b6a9b;
}
.tone-2 {
  background: #eef2f8;
  color: #7d8ea6;
}
.participant-card b {
  display: block;
  font-size: 9px;
}
.participant-card small {
  font-size: 8px;
  color: #8b9cb4;
  display: block;
}
.participant-card button {
  margin-left: auto;
  color: #0a5c88;
}
.participant-card button .icon {
  width: 14px;
}
.hand-indicator {
  color: #d08a2a;
  margin-left: auto;
}
.hand-indicator .icon {
  width: 15px;
}
.speaker-dot {
  width: 5px;
  height: 5px;
  background: #34a06a;
  border-radius: 50%;
  position: absolute;
  right: 8px;
  top: 7px;
}
.room-panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  max-height: 740px;
}
/* --- panneau Discussion repliable + scène duo 40/60 --- */
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 10px 13px 16px; border-bottom: 1px solid var(--line); }
.panel-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #0a5c88; }
.panel-head h3 .icon { width: 15px; height: 15px; }
.panel-collapse { background: none; border: 0; cursor: pointer; color: #6b7c99; display: flex; padding: 7px; border-radius: 8px; }
.panel-collapse:hover { background: #eef4fa; color: #0a5c88; }
.panel-collapse .icon { width: 16px; height: 16px; }
.classroom-layout.panel-collapsed { grid-template-columns: minmax(0, 1fr); }
.classroom-layout.panel-collapsed .room-panel { display: none; }
#panel-expand { position: relative; }
#panel-expand .tab-badge { position: absolute; top: -6px; right: -6px; }
.video-stage.duo #stage-video { inset: 0 0 0 40%; width: 60%; height: 100%; }
.video-stage.duo #local-video { inset: 0 auto 0 0; width: 40%; height: 100%; border-radius: 0; box-shadow: none; border-right: 2px solid rgba(255, 255, 255, .22); z-index: 2; }
.video-stage.duo .video-bottom { left: calc(40% + 18px); }
.duo-local-label { position: absolute; left: 14px; bottom: 18px; z-index: 6; background: rgba(8, 19, 38, .74); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; }
@media (max-width: 900px) { .video-stage.duo #local-video { width: 38%; } .video-stage.duo #stage-video { inset: 0 0 0 38%; width: 62%; } .video-stage.duo .video-bottom { left: calc(38% + 12px); } }
.room-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.room-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 17px 4px;
  font-size: 10px;
  color: #6b7c99;
  border-bottom: 2px solid transparent;
}
.room-tabs button.selected {
  border-color: #86c8e6;
  color: #0a5c88;
}
.room-tabs .icon {
  width: 15px;
}
.caption-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.caption-info {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #0a5c88;
  padding: 14px 15px;
  background: #f1f7fd;
}
.caption-list {
  padding: 13px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.panel-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 35px 20px;
  color: #8b9cb4;
  font-size: 11px;
}
.panel-empty > .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1;
  color: #a9c6de;
}
.panel-empty b {
  color: #3f6d9c;
  font-size: 13px;
}
.panel-empty p {
  font-size: 9px;
  line-height: 1.8;
}
.caption-item {
  border: 1px solid #e9eff7;
  border-radius: 8px;
  padding: 13px 11px;
  background: #fbfdff;
  margin-bottom: 10px;
}
.caption-item.translated {
  background: #eaf4fd;
  border-color: #cfe4f7;
}
.caption-item > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.tiny-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f1fb;
  font-size: 6px;
  color: #3f6d9c;
}
.caption-item b {
  font-size: 8px;
}
.caption-item small {
  margin-left: auto;
  font-size: 7px;
  color: #8b9cb4;
}
.caption-item p {
  font-size: 11px;
  line-height: 1.8;
  color: #24384f;
}
.caption-tag {
  font-size: 6px;
  letter-spacing: 0.8px;
  color: #8b9cb4;
  margin-top: 8px;
  display: block;
}
.caption-footer {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  font-size: 7px;
  color: #8b9cb4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.caption-footer .icon {
  width: 12px;
}
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-list {
  padding: 15px;
  overflow: auto;
  flex: 1;
}
.chat-message {
  padding: 10px;
  background: #f4f8fc;
  border-radius: 8px;
  margin: 9px 0;
}
.chat-message.own {
  background: #e8f3fd;
}
.chat-message b {
  font-size: 9px;
}
.chat-message p {
  font-size: 11px;
  margin: 4px 0;
  word-break: break-word;
}
.chat-message small {
  font-size: 7px;
  color: #8b9cb4;
}
.chat-panel form {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--line);
  gap: 7px;
}
.chat-panel input {
  margin: 0;
  padding: 10px;
  font-size: 10px;
  min-width: 0;
}
.chat-panel form button {
  background: var(--pine);
  color: white;
  border-radius: 6px;
  padding: 9px;
}
.chat-panel button .icon {
  width: 15px;
}
.demo-tools {
  margin-top: 17px;
  padding: 13px 14px;
  background: #eef4fb;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.demo-tools b {
  font-size: 9px;
}
.demo-tools p {
  font-size: 8px;
  color: #6b7c99;
}
.demo-tools button {
  font-size: 9px;
  padding: 9px;
}
.resource-list {
  display: grid;
  gap: 14px;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 12px;
}
.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 60px;
  background: #e8f3fd;
  color: #0f7fb8;
  border-radius: 7px;
}
.resource-icon .icon {
  width: 27px;
  height: 27px;
}
.resource-card h3 {
  font-size: 15px;
  margin-top: 5px;
}
.resource-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.resource-card a {
  margin-left: auto;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 27px;
}
.settings-card > .icon {
  width: 30px;
  height: 30px;
  color: #0f7fb8;
  margin-bottom: 14px;
}
.settings-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.settings-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.8;
}
.deployment-note {
  background: #eef4fb;
  border: 1px solid #d6e4f2;
  border-radius: 13px;
  padding: 25px;
  margin-top: 22px;
}
.deployment-note h3 {
  font-size: 16px;
}
.deployment-note ol {
  padding-left: 20px;
  font-size: 12px;
  line-height: 2.3;
  color: #567787;
}
.deployment-note p {
  font-size: 10px;
  color: #6b7c99;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: 650px;
  background: var(--pine);
  color: white;
  padding: 15px 23px;
  border-radius: 9px;
  box-shadow: 0 6px 25px #0002;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.bad {
  background: #c0473a;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .page-content {
    padding-left: 55px;
    padding-right: 55px;
  }
  .course-art {
    height: 195px;
  }
  .classroom-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .welcome-visual {
    margin-right: 60px;
  }
  .welcome h1 {
    font-size: 49px;
  }
  .course-body h3 {
    font-size: 17px;
  }
  .course-body > p {
    font-size: 11px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 30px 17px 18px;
  }
  .main {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .topbar {
    padding: 0 26px;
  }
  .page-content {
    padding: 20px 26px;
  }
  .welcome-visual {
    width: 290px;
    margin: 0;
  }
  .welcome h1 {
    font-size: 36px;
  }
  .language-bubble {
    font-size: 12px;
    padding: 15px 19px;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat-card {
    padding: 15px 10px;
    gap: 8px;
  }
  .green-chip {
    display: none;
  }
  .class-grid {
    gap: 12px;
  }
  .course-body {
    padding: 14px 12px;
  }
  .course-footer > span {
    display: none;
  }
  .classroom-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 12px;
  }
  .room-heading-actions .secondary-button {
    font-size: 0;
    padding: 12px;
  }
  .lesson-title h2 {
    font-size: 23px;
  }
  .language-strip small {
    font-size: 7px;
  }
  .video-stage {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 80px;
    padding: 25px 12px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span,
  .workspace-label,
  .nav-item span,
  .nav-item b,
  .sidebar-bottom .world-card,
  .profile > span:nth-child(2),
  .profile > .icon {
    display: none;
  }
  .brand img {
    width: 38px;
  }
  .sidebar nav {
    margin-top: 45px;
  }
  .nav-item {
    justify-content: center;
    padding: 14px 0;
  }
  .nav-item .icon {
    width: 22px;
    height: 22px;
  }
  .profile {
    justify-content: center;
  }
  .main {
    margin-left: 80px;
    width: calc(100% - 80px);
  }
  .class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-visual {
    width: 245px;
  }
  .classroom-layout {
    grid-template-columns: 1fr;
  }
  .room-panel {
    height: 400px;
    min-height: 350px;
    max-height: 500px;
  }
  .video-stage {
    aspect-ratio: 16/9;
  }
  .welcome h1 {
    font-size: 34px;
  }
  .room-heading h1 {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: 58px;
    padding: 23px 8px;
  }
  .brand img {
    width: 33px;
  }
  .main {
    margin-left: 58px;
    width: calc(100% - 58px);
  }
  .topbar {
    height: 67px;
    padding: 0 16px;
  }
  .breadcrumbs {
    font-size: 9px;
    gap: 5px;
  }
  .breadcrumbs .icon {
    width: 9px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions > .avatar {
    display: none;
  }
  .demo-switch {
    font-size: 8px;
    gap: 3px;
  }
  .demo-switch .icon {
    display: none;
  }
  .lang-interface {
    font-size: 8px;
  }
  .page-content {
    padding: 16px 15px 30px;
  }
  .demo-notice {
    font-size: 7px;
    padding: 8px;
    gap: 3px;
    margin-bottom: 20px;
  }
  .demo-notice > span {
    gap: 3px;
  }
  .demo-notice button {
    display: none;
  }
  .welcome {
    padding-top: 0;
    gap: 10px;
  }
  .welcome h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
  }
  .welcome .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .welcome p {
    font-size: 10px;
  }
  .welcome-visual {
    display: none;
  }
  .stats-grid {
    margin-top: 0;
    margin-bottom: 28px;
    gap: 8px;
  }
  .stat-card {
    padding: 13px 10px;
  }
  .stat-card strong {
    font-size: 20px;
  }
  .stat-card small {
    font-size: 8px;
  }
  .stat-card > .icon {
    width: 29px;
    height: 29px;
    padding: 7px;
  }
  .section-title {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .section-title p {
    font-size: 9px;
  }
  .primary-button {
    padding: 10px 12px;
    font-size: 10px;
  }
  .class-filters {
    flex-wrap: wrap;
    gap: 11px;
  }
  .filter-tabs {
    gap: 0;
    width: 100%;
    justify-content: space-between;
  }
  .filter-tabs button {
    font-size: 8px;
    padding: 7px 6px;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    width: 100%;
  }
  .class-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .course-art {
    height: 170px;
  }
  .course-body {
    padding: 18px;
  }
  .course-body h3 {
    font-size: 17px;
    min-height: 0;
  }
  .course-body > p {
    font-size: 11px;
    min-height: 0;
  }
  .course-meta {
    font-size: 9px;
  }
  .course-footer {
    font-size: 9px;
  }
  .enter-button {
    font-size: 10px;
  }
  .course-footer > span {
    display: block;
  }
  .bottom-note {
    font-size: 8px;
    text-align: center;
  }
  .room-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .room-heading h1 {
    font-size: 22px;
  }
  .room-heading-actions {
    width: 100%;
  }
  .room-heading-actions .secondary-button {
    font-size: 9px;
    padding: 10px 12px;
  }
  .room-meta {
    font-size: 7px;
    gap: 5px;
  }
  .lesson-title h2 {
    font-size: 19px;
  }
  .lesson-title > span {
    font-size: 5px;
  }
  .lesson-title {
    left: 17px;
  }
  .video-stage {
    aspect-ratio: 4/3;
  }
  .video-top,
  .video-bottom {
    left: 11px;
    right: 11px;
  }
  .video-top {
    top: 12px;
  }
  .video-bottom {
    bottom: 12px;
  }
  .stage-badge {
    font-size: 5px;
  }
  .stage-encryption {
    font-size: 6px;
  }
  .video-bottom b {
    font-size: 9px;
  }
  .video-bottom small {
    font-size: 6px;
  }
  .mic-indicator {
    font-size: 6px;
  }
  .media-controls {
    gap: 6px;
  }
  .control-group {
    gap: 5px;
  }
  .media-button {
    padding: 7px;
    min-width: 47px;
    font-size: 6px;
  }
  .media-button .icon {
    width: 17px;
    height: 17px;
  }
  .leave-button {
    font-size: 7px;
    padding: 10px 8px;
  }
  .language-strip {
    padding: 10px;
    gap: 8px;
  }
  .language-strip b {
    font-size: 8px;
  }
  .language-strip small {
    font-size: 7px;
    max-width: 140px;
  }
  .language-strip select {
    font-size: 8px;
    padding: 7px;
    max-width: 100px;
  }
  .language-icon {
    width: 25px;
    height: 25px;
  }
  .language-icon .icon {
    width: 17px;
  }
  .participant-list {
    grid-template-columns: 1fr;
  }
  .participants-title h3 {
    font-size: 11px;
  }
  .participants-title .text-button {
    font-size: 8px;
  }
  .room-panel {
    height: 420px;
  }
  .demo-tools {
    flex-wrap: wrap;
  }
  .modal {
    padding: 26px 22px;
  }
  .modal h2 {
    font-size: 22px;
  }
  .modal-backdrop {
    padding: 16px;
  }
  .resource-card {
    flex-wrap: wrap;
    padding: 20px;
  }
  .resource-card > div {
    flex: 1;
    min-width: 150px;
  }
  .resource-card a {
    width: 100%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-card {
    padding: 22px;
  }
  .deployment-note {
    padding: 20px;
  }
  .modal-buttons {
    flex-wrap: wrap;
  }
  .floating-caption {
    font-size: 10px;
    left: 15px;
    right: 15px;
    bottom: 65px;
  }
}

.video-stage.video-active > .lesson-title {
  display: none;
}
.empty-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: #9fb4d1;
}
.empty-video .icon {
  width: 50px;
  height: 50px;
  stroke-width: 1;
}

.invite-code.long-code {
  font-size: 20px;
  letter-spacing: 2px;
}

/* Official owner-supplied branding: no drawn replacement logo. */
.brand img{object-fit:contain;border-radius:50%;width:46px;height:46px}
.loading-logo{width:100px;height:100px;object-fit:contain;border-radius:50%}
.failure-page>img{width:110px;height:110px;object-fit:contain;border-radius:50%}
.official-wordmark{display:block;width:100%;max-width:310px;height:auto;object-fit:contain;margin:0 auto 24px;border-radius:8px}
.sidebar .nav-item.active{background:#cceefe;color:#10213b}.sidebar .nav-item.active b{background:#a8ddf5}
.sidebar .world-card{background:#183150;border-color:#294561}.sidebar .world-card>.icon{color:#76d5ff}
.sidebar .world-card p{color:#b7cce4}.sidebar .profile small{color:#b3c5db}.sidebar .workspace-label{color:#a1b4cb}
.login-page .brand{color:white}.login-page .brand small{color:#b8c9de}

/* Liens secondaires de l’écran de connexion (accès au site public) */
.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 33, 59, 0.08);
}
.text-link {
  color: #4d7588;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .login-footer { justify-content: center; text-align: center; }
}

/* =====================================================================
   Thème unifié avec le site public : mêmes couleurs, mêmes formes.
   ===================================================================== */
:root {
  --pine: #0a1a2f;
  --pine-dark: #071325;
  --green: #0f80b8;
  --lime: #d9edfb;
  --paper: #f5f8fc;
  --ink: #101f35;
  --muted: #5b6d8c;
  --line: #e3eaf4;
  --danger: #d1483a;
}

/* --- lisibilité : les textes courants ne descendent plus sous 13 px --- */
form label, .modal > label { font-size: 13px; }
.course-body > p { font-size: 13.5px; line-height: 1.65; }
.welcome p { font-size: 15.5px; line-height: 1.7; }
.chat-message p { font-size: 13.5px; }
.caption-item p { font-size: 13.5px; line-height: 1.6; }
.panel-empty { font-size: 13px; }
.resource-card p { font-size: 13px; }
.deployment-note p { font-size: 13px; line-height: 1.7; }
.form-info { font-size: 12.5px; line-height: 1.6; }
.search-box input { font-size: 13px; }
.language-strip select { font-size: 13.5px; }
.chat-panel input { font-size: 13.5px; }
.filter-tabs button { font-size: 12.5px; padding: 8px 14px; }
.room-tabs button { font-size: 12.5px; }
.breadcrumbs { font-size: 12.5px; }
.section-title p { font-size: 14.5px; }
.participants-title h3 { font-size: 14.5px; }
.floating-caption { font-size: 13px; }
.text-button { font-size: 12.5px; }
.text-link { font-size: 12px; }
.enter-button { font-size: 12.5px; }
.stat-card b { font-size: 22px; }
.course-meta { font-size: 12.5px; }
.course-footer { font-size: 12.5px; }
.demo-notice { font-size: 12.5px; }
.bottom-note { font-size: 12.5px; }

/* --- formes et profondeur --- */
.course-card, .stat-card, .settings-card, .resource-card, .modal,
.welcome-visual, .video-stage, .room-panel, .participants-section, .demo-tools {
  border-radius: 16px;
}
.course-card { box-shadow: 0 1px 2px rgba(10, 26, 47, .05), 0 18px 40px -32px rgba(10, 26, 47, .5); }
.course-card:hover { box-shadow: 0 2px 4px rgba(10, 26, 47, .05), 0 26px 50px -30px rgba(10, 26, 47, .55); }
.stat-card { box-shadow: 0 1px 2px rgba(10, 26, 47, .05), 0 14px 30px -26px rgba(10, 26, 47, .5); }
.modal { box-shadow: 0 40px 80px -40px rgba(6, 18, 34, .8); }
.btn-primary, .primary-button, .enter-button {
  background: linear-gradient(165deg, #143152, #0a1a2f 60%, #071325);
  color: #fff; border-radius: 11px;
  box-shadow: 0 2px 4px rgba(10, 26, 47, .12), 0 20px 36px -22px rgba(10, 26, 47, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.primary-button:hover { background: linear-gradient(165deg, #0b6b9e, #0a5c88); }
.secondary-button { background: #fff; border-radius: 11px; box-shadow: 0 1px 2px rgba(10, 26, 47, .05); }
.secondary-button:hover { border-color: #bfe3f8; }
.leave-button { border-radius: 11px; }
.media-button { border-radius: 12px; }
.language-strip { border-radius: 14px; }
.app-subtitles, .caption-panel, .room-tabs { border-radius: 14px; }

/* --- bandeau d’accueil de l’espace --- */
.welcome { border-radius: 18px; }
.welcome h1 em { color: #0b6b9e; }
.eyebrow { color: #0a5c88; letter-spacing: 1.8px; }
.language-bubble.fr { background: #e2f2fd; border-color: #bfe3f8; color: #12405f; }
.language-bubble.en { background: #0e2440; color: #dceeff; }
.translation-bridge { background: linear-gradient(160deg, #0f2745, #0a1a2f); color: #7fd4ff; }


/* --- vignette des cartes de classe : aplat dégradé + initiale en filigrane --- */
.course-art { height: 152px; }
.course-art.art-0 { background: linear-gradient(150deg, #12305a 0%, #0a1a2f 58%, #10294a 100%); }
.course-art.art-1 { background: linear-gradient(150deg, #0f6f9e 0%, #0b5f8c 55%, #0a4f78 100%); }
.course-art.art-2 { background: linear-gradient(150deg, #143152 0%, #0d2740 58%, #0a1d31 100%); }
.course-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .17) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 82% 24%, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle at 82% 24%, #000 0%, transparent 60%);
}
.art-watermark {
  position: absolute; right: 6px; bottom: -34px;
  font-size: 104px; font-weight: 800; letter-spacing: -.07em;
  color: rgba(255, 255, 255, .1); line-height: 1; user-select: none;
}
.course-subject { background: rgba(255, 255, 255, .9); color: #143152; font-weight: 700; letter-spacing: .3px; }
.course-status { background: rgba(255, 255, 255, .92); }
.art-bottom { color: rgba(255, 255, 255, .82) !important; border-color: rgba(255, 255, 255, .25) !important; }
.art-bottom svg { color: #9edcf7; }

/* ---------------------- Écran de connexion / invitation ---------------------- */
.auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #fff;
}
.auth-shell {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  width: 100%; flex: 1; min-height: 100vh; background: #fff;
}
.auth-brand.m { display: none; }
.auth-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; width: fit-content; position: relative; z-index: 1; }
.auth-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-brand span { font-size: 22px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.auth-brand small { display: block; font-size: 7px; letter-spacing: 3px; color: #93a9c6; margin-top: 3px; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 38px 52px 44px;
  background:
    radial-gradient(circle at 78% 12%, rgba(18, 135, 196, .22), rgba(18, 135, 196, 0) 48%),
    linear-gradient(158deg, #123052 0%, #0a1a2f 56%, #081528 100%); }
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 40% 45%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 40% 45%, #000 0%, transparent 62%);
}
.auth-illustration { position: relative; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .95); }
.auth-pitch { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.auth-pitch h2 { color: #fff; font-size: 25px; line-height: 1.24; margin: 0 0 15px; letter-spacing: -.02em; }
.auth-points { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: #b7cce4; }
.auth-points li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(127, 212, 255, .16) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd4ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 6'/%3E%3C/svg%3E") center/11px no-repeat;
}
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 56px 52px; background: #fff; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 0; padding: 0; box-shadow: none; }
.auth-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #0b6b9e; margin: 0 0 14px; }
.auth-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #1287c4; box-shadow: 0 0 0 4px rgba(18, 135, 196, .16); }
.auth-card h1 { font-size: 34px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.03em; }
.auth-sub { font-size: 13.5px; color: #55698a; line-height: 1.6; margin: 0 0 8px; }
.auth-card form label { font-size: 12.5px; font-weight: 700; color: #3d5372; }
.auth-card form input { border: 1px solid #d5e2f0; border-radius: 11px; padding: 13px 14px; font-size: 14.5px; background: #fbfdff; transition: border-color .16s, box-shadow .16s, background .16s; }
.auth-card form input:focus { outline: none; border-color: #1287c4; background: #fff; box-shadow: 0 0 0 4px rgba(18, 135, 196, .13); }
.auth-card .primary-button { border-radius: 11px; padding: 14px 18px; font-size: 14px; }
.auth-card .text-button { color: #0b6b9e; font-size: 12.5px; font-weight: 700; padding: 12px 0 4px; }
/* --- paramètres par onglets : profil, sécurité, journal --- */
[hidden] { display: none !important; }
.tab-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 24px; border-bottom: 1px solid #e4eaf3; }
.tab-bar .tab { border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; color: #5d7392; padding: 10px 16px 12px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tab-bar .tab:hover { color: #0b6b9e; }
.tab-bar .tab.on { color: #0b4e77; border-bottom-color: #1287c4; }
img.avatar-img { object-fit: cover; padding: 0; border: 0; display: inline-block; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 4px; }
.profile-head .avatar.big, .profile-head img.big { width: 76px; height: 76px; font-size: 24px; flex: none; border-radius: 50%; }
.profile-head h2 { margin: 0 0 6px; }
.profile-head p { margin: 8px 0 0; }
.profile-actions { display: flex; gap: 14px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.muted-note { font-size: 11.5px; color: #67809f; margin-top: 10px; line-height: 1.55; }
.badge-on { background: rgba(53, 192, 139, .16) !important; color: #1d7a56 !important; }
.journal-card { max-width: 980px; }
.journal-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 430px; overflow: auto; padding-right: 4px; }
.journal-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; background: #f7fafd; border: 1px solid #e4ecf5; border-radius: 10px; padding: 10px 14px; }
.journal-row b { font-size: 12.5px; color: #16304f; }
.journal-row small { display: block; color: #67809f; font-size: 10.5px; margin-top: 2px; }
.journal-when { text-align: right; flex: none; color: #55698a; font-size: 11.5px; }
@media (max-width: 720px) { .journal-row { flex-direction: column; gap: 4px; } .journal-when { text-align: left; } .profile-head { flex-direction: column; align-items: flex-start; } }
/* --- refonte connexion (proposition A) : icônes, œil, bouton ticket --- */
.auth-card .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.auth-card .label-row .text-button { padding: 0; font-size: 12px; font-weight: 700; color: #0b6b9e; }
.auth-card .label-row .text-button:hover { text-decoration: underline; }
.auth-card .field { position: relative; display: block; }
.auth-card .field .f-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #8aa3c2; pointer-events: none; }
.auth-card .field input { padding-left: 42px; }
.auth-card .field input[name="password"] { padding-right: 46px; }
.auth-card .eye-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; padding: 9px 11px; background: none; border: 0; cursor: pointer; color: #9db4d0; }
.auth-card .eye-button:hover { color: #0b6b9e; }
.auth-card .eye-button .icon { width: 18px; height: 18px; }
.auth-card .eye-button .icon:last-child { display: none; }
.auth-card .field.pw-visible .eye-button .icon:first-child { display: none; }
.auth-card .field.pw-visible .eye-button .icon:last-child { display: block; }
.auth-card form input:-webkit-autofill,
.auth-card form input:-webkit-autofill:hover,
.auth-card form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fbfdff inset; -webkit-text-fill-color: #10243f; }
.auth-card .primary-button { box-shadow: 0 14px 26px -14px rgba(13, 107, 158, .8); }
.auth-card .ghost-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; margin-top: 11px; border: 1.5px dashed #b9cde4; border-radius: 11px; padding: 12px; font-size: 13px; font-weight: 800; font-family: inherit; color: #0b6b9e; background: #f6fafd; cursor: pointer; transition: border-color .16s, background .16s; }
.auth-card .ghost-button:hover { border-color: #1287c4; background: #eef7fc; }
.auth-card .ghost-button .icon { width: 17px; height: 17px; }
.auth-switch { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 16px; border-top: 1px solid #e4eaf3; }
.auth-switch .text-link { color: #55698a; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.auth-switch .text-link:hover { color: #0b6b9e; text-decoration: underline; }
/* --- vignette « classe en direct » posée sur l’illustration de connexion --- */
.auth-art { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.auth-art .auth-illustration { max-width: none; margin: 0; }
.auth-mini {
  position: absolute; right: -34px; bottom: -30px; width: min(322px, 74%);
  background: rgba(8, 19, 38, .93); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px; padding: 13px 15px 12px;
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .95);
  backdrop-filter: blur(10px);
}
.auth-mini-bar { display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 700; color: #9fb4d1; letter-spacing: .2px; }
.auth-mini-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(209, 72, 58, .2); border: 1px solid rgba(209, 72, 58, .42); color: #ff9d8c; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; }
.auth-mini-live i { width: 5px; height: 5px; border-radius: 50%; background: #ff5f45; }
.auth-mini-line { display: flex; align-items: baseline; gap: 9px; margin: 11px 0 0; font-size: 12.5px; line-height: 1.5; color: #eef5ff; }
.auth-mini-line.en { color: #cbe9ff; }
.auth-mini-line b { flex: 0 0 auto; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 5px; background: rgba(127, 212, 255, .26); color: #e2f5ff; }
.auth-mini-line.en b { background: rgba(255, 208, 138, .26); color: #ffe9c9; }
.auth-mini-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .1); }
.auth-mini-chip { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: #cfe2f7; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 980px) {
  .auth-mini { display: none; }
}
@media (max-width: 980px) {
  .auth-page { min-height: 100dvh; padding: 12px 16px; align-items: center; justify-content: center; background: #fff; }
  .auth-visual { display: none; }
  .auth-shell { display: block; width: 100%; max-width: 430px; min-height: 0; flex: none; border-radius: 18px; border: 1px solid #e6edf6; box-shadow: 0 14px 40px rgba(16, 36, 63, .1); }
  .auth-brand.m { display: flex; justify-content: center; margin: 0 auto 12px; color: #10243f; }
  .auth-brand.m img { width: 32px; height: 32px; }
  .auth-brand.m span { font-size: 19px; }
  .auth-brand.m small { color: #0b6b9e; }
  .auth-panel { padding: 20px 20px 16px; }
  .auth-eyebrow { display: none; }
  .auth-card h1 { font-size: 22px; margin: 0 0 7px; }
  .auth-sub { font-size: 12px; line-height: 1.45; margin: 0 0 2px; }
  .auth-card form label { margin: 10px 0 4px; }
  .auth-card form input { padding: 11px 12px; font-size: 14px; }
  .auth-card .field input { padding-left: 40px; }
  .auth-card .field .f-ico { left: 13px; width: 16px; height: 16px; }
  .auth-card form .primary-button { margin-top: 14px; padding: 12px 16px; font-size: 13.5px; }
  .auth-card .ghost-button { margin-top: 8px; padding: 10px; font-size: 12.5px; }
  .auth-switch { justify-content: center; text-align: center; margin-top: 8px; padding-top: 10px; gap: 8px 14px; }
  .auth-switch .text-link { font-size: 12px; }
}

/* double flèche dessinée (la police Manrope ne contient pas le caractère ↔) */
.art-bottom .icon.swap-sm { width: 15px; height: 15px; opacity: .9; }
.translation-bridge .bridge-arrow { display: grid; place-items: center; }
.translation-bridge .icon.swap-lg { width: 26px; height: 26px; }

/* type de séance : cours, réunion, conférence, webinaire, entretien */
.course-meta .course-type { background: #e2f2fd; color: #0a5c88; border-radius: 999px; padding: 3px 9px; font-weight: 700; }
.room-meta .type-badge { background: #e2f2fd; color: #0a5c88; }

/* ------------------- portefeuille de minutes de traduction ------------------- */
.wallet-strip {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
}
.wallet-strip > .icon { width: 26px; height: 26px; color: var(--green); flex: none; }
.wallet-strip > div:first-of-type { flex: 1; min-width: 0; }
.wallet-strip b { display: block; font-size: 15px; color: var(--ink); }
.wallet-strip small { color: var(--muted); font-size: 12.5px; }
.wallet-strip.low { border-color: #f3cdc6; background: #fdf6f4; }
.wallet-strip.low > .icon { color: var(--danger); }
.wallet-strip.unlimited { border-color: #cfe8f9; background: #f4fafe; }
.wallet-actions { display: flex; gap: 10px; flex: none; }
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 4px; }
.pack-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; cursor: pointer; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font: inherit;
}
.pack-card:hover { border-color: var(--green); background: #f2fafe; }
.pack-card b { font-size: 16px; color: var(--ink); }
.pack-card .pack-price { font-size: 12.5px; color: var(--muted); }
.wallet-note { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.wallet-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--green); }
.wallet-history { list-style: none; margin: 10px 0 0; padding: 0; max-height: 300px; overflow: auto; }
.wallet-history li { display: flex; gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wallet-history .wh-date { flex: none; color: var(--muted); font-size: 12px; min-width: 110px; }
.wallet-history .wh-note { flex: 1; min-width: 0; color: var(--ink); }
.wallet-history b.pos { color: #2b7a52; }
.wallet-history b.neg { color: var(--danger); }
@media (max-width: 760px) {
  .wallet-strip { flex-wrap: wrap; }
  .wallet-actions { width: 100%; justify-content: flex-end; }
  .pack-grid { grid-template-columns: 1fr; }
}

/* ------------------- préchargeur de l'application ------------------- */
.loading-screen {
  position: fixed; inset: 0; z-index: 400; gap: 18px;
  background: linear-gradient(155deg, #0f2745 0%, #0a1a2f 52%, #071325 100%);
  color: #eaf3fb;
}
.loading-mark { position: relative; width: 118px; height: 118px; display: flex; align-items: center; justify-content: center; }
.loading-mark::before {
  content: ""; position: absolute; inset: -26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 168, 220, .22), transparent 65%);
  animation: zl-halo 2.4s ease-in-out infinite;
}
.loading-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(127, 212, 255, 0) 0 62%, #30a8dc 88%, #7fd4ff 97%, rgba(127, 212, 255, 0) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: zl-spin 1.1s linear infinite;
}
.loading-screen .loading-logo { width: 86px; height: 86px; object-fit: contain; border-radius: 50%; }
.loading-brand { font-size: 25px; font-weight: 800; letter-spacing: .4px; color: #fff; line-height: 1; text-align: center; }
.loading-brand small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 4.5px; color: #7fd4ff; margin-top: 6px; }
.loading-screen p { margin: 0; color: #a8bed9; font-size: 14.5px; }
.loading-dots i { display: inline-block; width: 4px; height: 4px; margin-left: 4px; border-radius: 50%; background: #7fd4ff; animation: zl-dot 1.2s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .18s; }
.loading-dots i:nth-child(3) { animation-delay: .36s; }
.loading-bar { width: 220px; height: 3px; border-radius: 999px; background: rgba(127, 212, 255, .14); overflow: hidden; }
.loading-bar span { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, #1287c4, #7fd4ff); animation: zl-slide 1.3s ease-in-out infinite; }
@keyframes zl-spin { to { transform: rotate(360deg); } }
@keyframes zl-halo { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes zl-dot { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
@keyframes zl-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }
@media (prefers-reduced-motion: reduce) {
  .loading-ring, .loading-bar span, .loading-dots i, .loading-mark::before { animation: none; }
  .loading-ring { background: conic-gradient(#30a8dc 0 100%); }
}

/* Page Paramètres : choix de la langue de l'interface */
.lang-choice { display: flex; gap: 10px; margin-top: 14px; }
.lang-choice .primary-button, .lang-choice .secondary-button { flex: 1; justify-content: center; }
.settings-card .secondary-button, .settings-card .primary-button { margin-top: 14px; }

/* ── Salle en direct : présence, minuteur, notifications, mode plein écran ── */
.participant-card .avatar { position: relative; overflow: visible; }
.presence-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}
.participant-card.is-away { opacity: 0.55; }
.live-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: #c22424;
  background: rgba(220, 38, 38, 0.09);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 2px 11px;
  border-radius: 999px;
}
.live-timer::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.live-timer.low { background: #dc2626; color: #fff; }
.live-timer.low::before { background: #fff; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.tab-badge {
  margin-left: 6px;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.floor-button {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #0a5c88;
  background: #e3f3fd;
  border: 1px solid #bfe3f8;
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
}
.floor-button:hover { background: #cceefe; }
.floor-button.cut {
  color: #b31f1f;
  background: #fdeaea;
  border-color: #f5c6c6;
}
.floor-button.cut:hover { background: #fbdada; }
body.zen-live .sidebar,
body.zen-live .topbar { display: none; }
body.zen-live .main { width: 100%; margin-left: 0; }
body.zen-live .room-heading .back-link { display: none; }
body.zen-live .room-heading h1 { font-size: 17px; }
body.zen-live .classroom-layout { min-height: calc(100vh - 110px); }

/* ── Grille vidéo des participants : caméra et micro visibles, comme un vrai système ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.grid-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1b2e;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}
.grid-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-tile.speaking { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
.grid-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: #24436b;
  color: #cfe7fb;
}
.grid-tile .grid-avatar { background: #24436b; color: #cfe7fb; }
.grid-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(transparent, rgba(4, 12, 24, 0.85));
  color: #eaf4fd;
  font-size: 9px;
  font-weight: 700;
}
.grid-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-state { display: inline-flex; gap: 5px; flex: none; }
.grid-mic, .grid-cam {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 9px 9px;
}
.grid-mic.on { background-color: #16a34a; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3"/></svg>'); }
.grid-mic.off { background-color: #64748b; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3M4 4l16 16"/></svg>'); }
.grid-cam.on { background-color: #0284c7; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="M16 10l5-3v10l-5-3"/></svg>'); }
.grid-cam.off { background-color: #64748b; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="M16 10l5-3v10l-5-3M4 4l16 16"/></svg>'); }
.floating-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: min(860px, 92%);
}
#voice-pref { margin-left: 8px; }

/* ── Épinglage d'une tuile sur le grand écran ── */
.grid-tile { cursor: pointer; transition: border-color 0.15s ease; }
.grid-tile:hover { border-color: #38bdf8; }
.grid-tile.pinned { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3); }
.grid-tile.pinned::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0ea5e9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M12 17v5M7 4h10l-2 7 3 3H6l3-3-2-7z"/></svg>') center / 9px 9px no-repeat;
}

/* ---------------- Zaloria Connect Pro : revenus de l'hôte ---------------- */
.formula-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:22px;max-width:760px;margin:10px 0 18px}
.formula-card{position:relative;background:#fff;border:1px solid #dbe4f2;border-radius:18px;padding:26px 24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 10px 30px rgba(16,33,59,.07);transition:transform .18s ease,box-shadow .18s ease}
.formula-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(16,33,59,.12)}
.formula-card.best{border:2px solid #0ea5c9;box-shadow:0 18px 44px rgba(14,165,201,.16)}
.formula-tag{position:absolute;top:-12px;right:18px;background:linear-gradient(135deg,#0ea5c9,#22c3e6);color:#fff;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 12px;border-radius:999px}
.formula-name{font-weight:800;color:#10213b;font-size:17px}
.formula-price{font-size:30px;font-weight:800;color:#0b1830}
.formula-price small{font-size:13px;color:#5b6b85;font-weight:600}
.formula-card ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.formula-card ul li{font-size:13.5px;color:#44546d;padding-left:22px;position:relative}
.formula-card ul li::before{content:"✓";position:absolute;left:0;color:#0ea5c9;font-weight:800}
.formula-note{max-width:760px;font-size:13px;color:#5b6b85;display:flex;gap:8px;align-items:flex-start}
.formula-note svg{flex:none;margin-top:2px}
.balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:6px 0 20px}
.balance-card{background:linear-gradient(135deg,#10213b,#1b3a63);color:#fff;border-radius:16px;padding:18px 20px;display:grid;gap:4px;box-shadow:0 12px 30px rgba(16,33,59,.18)}
.balance-card small{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#9fc3e8;font-weight:700}
.balance-card b{font-size:24px}
.balance-card span{font-size:12.5px;color:#c8d9ee}
.balance-card.empty{background:#fff;color:#44546d;border:1px dashed #c3d2e8;box-shadow:none}
.balance-card.empty b{color:#10213b}
.revenue-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pro-badge{background:#e7f8ef;color:#117a46;font-weight:700;font-size:12.5px;padding:7px 12px;border-radius:999px}
.revenue-block{background:#fff;border:1px solid #e3eaf5;border-radius:16px;padding:20px 22px;margin-bottom:20px;box-shadow:0 6px 20px rgba(16,33,59,.05)}
.revenue-block-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.revenue-block-head h2{margin:0;font-size:17px;color:#10213b}
.block-hint{font-size:13px;color:#5b6b85;margin:-4px 0 12px}
.count-chip{background:#eaf6fd;color:#0b7ea6;font-weight:800;font-size:12.5px;padding:5px 12px;border-radius:999px}
.offer-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.offer-card{position:relative;display:flex;flex-direction:column;gap:4px;border:1px solid #e3eaf5;border-radius:14px;padding:16px 18px;box-shadow:0 6px 18px rgba(14,45,77,.05);transition:box-shadow .15s,transform .15s}
.offer-card:hover{box-shadow:0 12px 28px rgba(14,45,77,.1);transform:translateY(-1px)}
.offer-card.off{opacity:.6}
.offer-card b{color:#10213b;font-size:15px;padding-right:22px}
.offer-card small{display:block;color:#5b6b85;margin-top:2px;font-size:12px}
.offer-card p{margin:6px 0 0;font-size:12.5px;color:#70869d;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.offer-dot{position:absolute;top:18px;right:16px;width:10px;height:10px;border-radius:50%;background:#94a9bf}
.offer-dot.on{background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.14)}
.offer-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:auto;padding-top:10px;border-top:1px solid #eef4fa}
.offer-actions .secondary-button{padding:9px 14px;font-size:13px}
.paid-course-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.paid-course{display:flex;flex-direction:column;gap:4px;border:1px solid #e9eff8;border-radius:14px;padding:16px 18px;font-size:14px;color:#2c3c55;box-shadow:0 6px 18px rgba(14,45,77,.05);transition:box-shadow .15s,transform .15s}
.paid-course:hover{box-shadow:0 12px 28px rgba(14,45,77,.1);transform:translateY(-1px)}
.paid-course b{color:#10213b;font-size:15px}
.access-chip{display:inline-block;margin-top:4px;padding:4px 11px;border-radius:999px;font-size:11.5px;font-weight:700;background:#e5f7ec;color:#157347}
.access-chip.locked{background:#fff5df;color:#92610a}
@media (max-width:760px){.offer-list,.paid-course-list{grid-template-columns:1fr}}
.earn-table{width:100%;border-collapse:collapse;font-size:13.5px}
.earn-table th{text-align:left;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#5b6b85;padding:8px 10px;border-bottom:2px solid #e3eaf5}
.earn-table td{padding:10px;border-bottom:1px solid #eef2f9;color:#2c3c55;vertical-align:top}
.earn-table tbody tr:hover{background:#f7fafd}
.table-empty{text-align:center;color:#7a8aa3;padding:22px 10px!important}
.enroll-grid .offer-buy{display:grid;gap:4px;text-align:left}
.enroll-grid .offer-buy span{font-size:12.5px;color:#5b6b85}
.enroll-grid .offer-buy .pack-price{font-weight:800;color:#0b7ea6;font-size:15px}
.empty-state.small{padding:26px}
@media (max-width:720px){.offer-card{flex-direction:column;align-items:flex-start}.earn-table{font-size:12.5px}}

/* Choix du moyen de paiement (carte / Mobile Money) */
.pay-methods { display: grid; gap: 12px; margin-top: 14px; }
.pay-or { text-align: center; color: var(--muted, #64748b); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; position: relative; }
.pay-or::before, .pay-or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: rgba(100, 116, 139, 0.3); }
.pay-or::before { left: 0; }
.pay-or::after { right: 0; }
.pay-mobile { display: grid; gap: 10px; border: 1px solid rgba(100, 116, 139, 0.25); border-radius: 14px; padding: 14px; }
.pay-mobile > b { font-size: 0.95rem; }
.pay-hint { color: var(--muted, #64748b); font-size: 0.85rem; margin: 0; }
.pay-wait { display: block; padding: 18px 6px 8px; text-align: center; }
.pay-wait p { color: var(--muted, #64748b); font-size: 0.92rem; margin: 10px 0 0; }
.pay-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, #0ea5e9); display: inline-block; margin: 0 3px; animation: payPulse 1.2s infinite ease-in-out; }
.pay-wait .pay-dot:nth-child(2) { animation-delay: 0.2s; }
.pay-wait .pay-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes payPulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* Réunions programmées : actions de carte, statut annulé */
.card-actions { display: flex; gap: 14px; padding: 0 22px 10px; flex-wrap: wrap; }
.card-actions .text-button { font-size: 0.86rem; }
.card-danger { color: #c2410c; }
.card-danger-bg { background: #c2410c; border-color: #c2410c; }
.cancelled-chip { margin-left: auto; font-weight: 700; font-size: 0.85rem; color: #c2410c; background: rgba(194, 65, 12, 0.1); padding: 6px 12px; border-radius: 999px; }
.course-status.cancelled { color: #c2410c; }
.course-status.cancelled i { background: #c2410c; }
.form-hint { color: var(--muted, #64748b); font-size: 0.85rem; margin: -4px 0 10px; }

/* ───────────────────────── Zalia — assistante d'accueil ───────────────────────── */
#zalia-fab { position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, #123052, #0b6b9e); color: #fff; box-shadow: 0 14px 34px -10px rgba(11, 58, 99, .55);
  display: flex; align-items: center; justify-content: center; transition: box-shadow .18s, translate .18s; }
#zalia-fab:hover { translate: 0 -2px; box-shadow: 0 20px 40px -12px rgba(11, 58, 99, .6); }
#zalia-fab .z-mono { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
#zalia-fab i { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: #e65b4d; border: 2.5px solid #fff; }
#zalia-panel { position: fixed; right: 22px; bottom: 88px; z-index: 950; width: min(390px, calc(100vw - 28px)); max-height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid #dfe8f3; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(10, 30, 56, .4); }
#zalia-panel header { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: linear-gradient(145deg, #123052, #0e2238); color: #fff; }
#zalia-panel header b { font-size: 14.5px; display: block; }
#zalia-panel header small { font-size: 11px; color: #9fc0dd; }
#zalia-panel .z-close { margin-left: auto; background: none; border: 0; color: #c7d9ec; font-size: 15px; cursor: pointer; padding: 6px 8px; }
#zalia-panel .z-close:hover { color: #fff; }
#zalia-log { padding: 15px 14px 17px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #f7fafd; }
.z-ava { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(145deg, #1287c4, #0b6b9e); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.z-ava.big { width: 34px; height: 34px; font-size: 15px; background: rgba(255, 255, 255, .14); }
.z-msg { display: flex; gap: 9px; align-items: flex-end; }
.z-msg.me { justify-content: flex-end; }
.z-bub { background: #fff; border: 1px solid #e3ebf5; border-radius: 13px 13px 13px 4px; padding: 10px 13px; font-size: 13px; line-height: 1.55; color: #22354f; max-width: 86%; }
.z-bub.me { background: #0e2a46; border: 0; color: #eaf3fc; border-radius: 13px 13px 4px 13px; font-weight: 600; }
.z-bub .z-date { color: #7e93ad; display: block; margin-top: 6px; }
.z-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 37px; }
.z-btn { border: 1px solid #c9dcee; background: #fff; color: #0b5b86; border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.z-btn:hover { background: #eef6fc; border-color: #8fc2e2; }
.z-btn.pri { background: #10233c; border-color: #10233c; color: #fff; }
.z-btn.pri:hover { background: #1b3a5f; }
#z-sugg { display: grid; gap: 8px; min-width: 240px; }
#z-sugg select, #z-sugg textarea { width: 100%; border: 1px solid #cddcec; border-radius: 9px; padding: 9px 10px; font-size: 12.5px; font-family: inherit; background: #fbfdff; margin: 0; }
#z-sugg textarea { resize: vertical; }
#z-sugg .z-btn { justify-self: start; }
.nav-item.zalia-glow { position: relative; animation: zaliaPulse 1.6s ease-in-out infinite; border-radius: 12px; }
@keyframes zaliaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 135, 196, .55); } 50% { box-shadow: 0 0 0 7px rgba(18, 135, 196, 0); } }
@media (max-width: 700px) {
  #zalia-fab { right: 14px; bottom: 76px; width: 48px; height: 48px; }
  #zalia-panel { right: 10px; left: 10px; width: auto; bottom: 132px; max-height: calc(100dvh - 180px); }
}

/* --- inscription par invitation : formulaire en place du formulaire de connexion --- */
.auth-card .field select { width: 100%; border: 1px solid #d5e2f0; border-radius: 11px; padding: 13px 14px 13px 42px; font-size: 14.5px; font-family: inherit; color: #16304f; background: #fbfdff; appearance: auto; transition: border-color .16s, box-shadow .16s, background .16s; }
.auth-card .field select:focus { outline: none; border-color: #1287c4; background: #fff; box-shadow: 0 0 0 4px rgba(18, 135, 196, .13); }
.auth-card .consent-line { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; font-weight: 600; color: #44597a; line-height: 1.55; cursor: pointer; }
.auth-card .consent-line input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: #1287c4; }
.auth-card .consent-line a { color: #0b6b9e; }
.auth-card.register form label { margin: 12px 0 4px; }
.auth-card.register .consent-line { margin-top: 16px; }
@media (max-width: 700px) {
  .auth-card.register h1 { font-size: 27px; }
  .auth-card.register form label { margin: 8px 0 3px; }
  .auth-card.register form input, .auth-card.register .field select { padding-top: 11px; padding-bottom: 11px; font-size: 14px; }
  .auth-card.register .consent-line { font-size: 11.5px; }
}

/* Mes revenus : sections organisées par onglets */
.tab-bar.rev-tabs { margin: 26px 0 20px; }
@media (max-width: 700px) { .tab-bar.rev-tabs { margin: 18px 0 14px; } .tab-bar.rev-tabs .tab { padding: 9px 11px 11px; font-size: 12px; } }

/* ══ Scène en direct façon TikTok : contrôles, vignettes et discussion SUR la vidéo ══ */
.video-stage .media-controls{position:absolute;left:50%;transform:translateX(-50%);bottom:12px;z-index:8;width:auto;max-width:calc(100% - 20px);margin:0;padding:8px 10px;border-radius:999px;background:rgba(8,18,32,.58);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.14);gap:10px;opacity:0;pointer-events:none;transition:opacity .25s}
.video-stage.controls-on .media-controls,.video-stage:not(.video-active) .media-controls,.video-stage .media-controls:focus-within{opacity:1;pointer-events:auto}
.video-stage .media-button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);color:#eaf4fd;min-width:56px;border-radius:12px}
.video-stage .media-button[aria-pressed="true"]{background:#2aa7e0;border-color:#2aa7e0;color:#06121f}
.video-stage .media-button:disabled{opacity:.45}
.video-stage .leave-button{background:rgba(220,38,38,.88);color:#fff;border:0;border-radius:999px;padding:9px 14px}

/* Mini-vignettes vidéo des participants, superposées (colonne à droite) */
.video-stage .video-grid{position:absolute;top:52px;right:12px;z-index:7;display:flex;flex-direction:column;gap:8px;margin:0;width:150px;max-height:calc(100% - 150px);overflow-y:auto;scrollbar-width:none}
.video-stage .video-grid::-webkit-scrollbar{display:none}
.video-stage .grid-tile{flex:none;border:1px solid rgba(255,255,255,.25);border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.video-stage .grid-tile figcaption{font-size:8px;padding:3px 6px}
.video-stage .grid-avatar{width:34px;height:34px;font-size:12px}

/* Bulles de discussion translucides qui vivent sur le direct */
.stage-chat{position:absolute;left:12px;bottom:78px;z-index:7;display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:min(62%,420px);pointer-events:none}
.stage-bubble{background:rgba(8,18,32,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:14px;padding:6px 11px;font-size:12px;line-height:1.4;max-width:100%;opacity:0;transform:translateY(8px);animation:bulle-in .25s forwards}
.stage-bubble b{color:#7fd3ff;font-size:11px;margin-right:6px}
.stage-bubble.out{transition:opacity .45s;opacity:0}
@keyframes bulle-in{to{opacity:1;transform:none}}

/* Ambiance par service : badge coloré selon cours / réunion / conférence / webinaire / entretien */
.video-stage.type-conference .stage-badge{background:#0ea5e9;color:#04121f}
.video-stage.type-meeting .stage-badge{background:#8b5cf6;color:#120a26}
.video-stage.type-webinar .stage-badge{background:#f59e0b;color:#231503}
.video-stage.type-interview .stage-badge{background:#10b981;color:#06231a}

/* Les sous-titres restent lisibles au-dessus de la barre de contrôles */
.video-stage .floating-caption{bottom:84px}

@media (max-width:900px){
  .video-stage .video-grid{top:44px;right:8px;width:98px;gap:6px}
  .video-stage .media-controls{bottom:8px;padding:6px 8px;gap:6px}
  .video-stage .media-button{min-width:42px;padding:7px 6px}
  .video-stage .media-button span{display:none}
  .video-stage .leave-button{padding:8px 10px}
  .stage-chat{bottom:62px;max-width:74%}
  .stage-bubble{font-size:11px}
}

/* ══ Mobile : le direct occupe TOUT l'écran ; discussion et options en feuilles ══ */
.stage-rail{display:none}
.room-extras{display:contents}
.room-extras .sheet-head{display:none}
.room-panel .sheet-close{display:none}
.sheet-close{border:0;background:#eef4fa;border-radius:50%;width:34px;height:34px;font-size:15px;color:#33506b;cursor:pointer}
@media (max-width:900px){
  .video-stage{position:fixed;inset:0;z-index:70;height:100dvh;aspect-ratio:auto;border-radius:0}
  .room-heading{position:fixed;top:0;left:0;right:0;z-index:72;margin:0;padding:10px 12px 20px;background:linear-gradient(rgba(4,11,20,.82),rgba(4,11,20,0));display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
  .room-heading h1{color:#fff;font-size:1.02rem;line-height:1.2;margin:2px 0 0;max-width:50vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .room-heading .back-link{color:#bcd7ee}
  .room-heading .room-meta{display:none}
  .room-heading-actions #panel-expand{display:none}
  .room-heading-actions [data-action="invite"]{display:none}
  .stage-rail{position:absolute;right:10px;bottom:168px;z-index:9;display:flex;flex-direction:column;gap:10px}
  .rail-btn{width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.26);background:rgba(8,18,32,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:19px;line-height:1;cursor:pointer}
  .video-stage .video-grid{top:70px}
  .video-stage .media-controls{bottom:calc(10px + env(safe-area-inset-bottom))}
  .stage-chat{bottom:calc(72px + env(safe-area-inset-bottom));max-width:68%}
  /* tout le reste passe en feuilles au-dessus du direct */
  .room-extras{display:none}
  body.sheet-more .room-extras{display:block;position:fixed;left:0;right:0;bottom:0;top:auto;max-height:72dvh;overflow:auto;z-index:80;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -18px 50px rgba(5,15,30,.5);padding:12px 14px calc(16px + env(safe-area-inset-bottom))}
  .room-extras .sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
  .classroom-layout .room-panel{display:none}
  body.sheet-chat .classroom-layout .room-panel{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;top:auto;height:68dvh;max-height:none;z-index:80;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -18px 50px rgba(5,15,30,.5)}
  body.sheet-chat .room-panel .chat-panel{flex:1;min-height:0}
  .room-panel .sheet-close{display:inline-flex;align-items:center;justify-content:center}
  .room-panel .panel-collapse{display:none}
  /* En salle plein écran, le bouton flottant Zalia gênerait le direct et les feuilles. */
  body:has(#video-stage) #zalia-fab{display:none}
}
body.sheet-chat #zalia-fab,body.sheet-more #zalia-fab{display:none}

/* Page Profil : informations du compte */
.account-facts{display:grid;gap:8px;margin:10px 0 14px}
.account-facts p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:9px 12px;background:#f4f8fc;border:1px solid #e3ecf5;border-radius:10px;font-size:.85rem}
.account-facts b{color:#51677f;font-weight:600}
.account-facts span{font-weight:700;color:#12263f}
#profile-form label{display:block;margin:0 0 10px;font-size:.8rem;color:#51677f}
#profile-form input{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid #d7e2ee;border-radius:9px;font:inherit}
#profile-form .primary-button{margin-top:4px}

/* Mes achats : état de chaque paiement */
.pay-pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:700}
.pay-pill.ok{background:#e5f7ec;color:#157347}
.pay-pill.wait{background:#fff5df;color:#92610a}
.pay-pill.bad{background:#fdeaea;color:#b32626}
.pay-pill.exp{background:#eef1f5;color:#5c6f84}
.empty-cell{text-align:center;color:#70869d;padding:18px 10px!important}

/* Hub « Salle » : sessions groupées par catégorie */
.salle-stats{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.salle-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:#f1f6fb;border:1px solid #dde8f3;font-size:12.5px;font-weight:700;color:#33506b}
.salle-chip i{width:8px;height:8px;border-radius:50%;background:#94a9bf}
.salle-chip.live i{background:#dc2626}.salle-chip.scheduled i{background:#0ea5e9}.salle-chip.paused i{background:#f59e0b}.salle-chip.ended i{background:#64748b}
.salle-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 20px;padding:14px 18px;border-radius:14px;border:1px solid #d8e9f7;background:linear-gradient(115deg,#f3faff,#e7f4fe)}
.salle-banner.live{border-color:#fecaca;background:linear-gradient(115deg,#fff5f5,#fee9e9)}
.salle-banner b{display:block;font-size:13px;margin-bottom:2px}
.salle-banner span{font-size:13.5px;color:#51677f}
.salle-group{margin:0 0 22px}
.salle-group h2{font-size:15px;margin:0 0 8px;color:#12263f}
.salle-group h2 span{display:inline-block;min-width:22px;text-align:center;background:#eaf2fa;border-radius:999px;font-size:11.5px;padding:2px 7px;color:#44607c;vertical-align:2px;margin-left:6px}
.salle-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
.salle-row{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e3ecf5;border-radius:14px;padding:16px 18px;box-shadow:0 6px 18px rgba(14,45,77,.05);transition:box-shadow .15s,transform .15s}
.salle-row:hover{box-shadow:0 12px 28px rgba(14,45,77,.1);transform:translateY(-1px)}
.salle-row.st-live{border-color:#fecaca}
.salle-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#94a9bf;margin-top:5px}
.salle-dot.live{background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.15)}
.salle-dot.scheduled{background:#0ea5e9}.salle-dot.paused{background:#f59e0b}.salle-dot.ended{background:#64748b}
.salle-row{position:relative}
.salle-row .salle-dot{position:absolute;top:18px;right:16px;margin:0}
.salle-info{flex:1;min-width:0}
.salle-info b{display:block;font-size:15px;color:#12263f;padding-right:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.salle-info small{display:block;color:#5d7a94;font-size:12px;margin-top:4px}
.salle-info p{margin:6px 0 0;font-size:12.5px;color:#70869d;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.salle-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid #eef4fa}
.salle-actions .secondary-button,.salle-actions .primary-button{padding:9px 14px;font-size:13px}
@media (max-width:760px){.salle-list{grid-template-columns:1fr}.salle-banner{flex-direction:column;align-items:flex-start}}

/* Mes revenus : abonnés, encaissements et achats en cartes */
.rev-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.rev-card{position:relative;display:flex;flex-direction:column;gap:3px;border:1px solid #e3eaf5;border-radius:14px;padding:16px 18px;box-shadow:0 6px 18px rgba(14,45,77,.05);transition:box-shadow .15s,transform .15s;background:#fff}
.rev-card:hover{box-shadow:0 12px 28px rgba(14,45,77,.1);transform:translateY(-1px)}
.rev-card>b{color:#10213b;font-size:14.5px;padding-right:22px;line-height:1.35}
.rev-card>small{color:#5b6b85;font-size:12px}
.rev-card>p{margin:4px 0 0;font-size:12.5px;color:#70869d}
.rev-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid #eef4fa}
.rev-amount{font-size:15px;color:#10213b}
.rev-amounts{display:flex;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #eef4fa;flex-wrap:wrap}
.rev-amounts span{flex:1;min-width:88px;background:#f6f9fc;border:1px solid #e8eff7;border-radius:10px;padding:8px 10px}
.rev-amounts small{display:block;font-size:10.5px;color:#70869d;letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px}
.rev-amounts b{font-size:13.5px;color:#10213b}
.rev-amounts b.neg{color:#b32626}
.rev-amounts b.pos{color:#157347}
@media (max-width:760px){.rev-cards{grid-template-columns:1fr}}

/* Zalia configure le tableau de bord */
.z-config-bar{padding:10px 14px;border-top:1px solid #e3ecf5;background:#f7fbff}
.z-config-bar button{width:100%;padding:10px 12px;border:1px solid #cfe4f3;border-radius:10px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:#0e2d4d;cursor:pointer}
.z-config-bar button:hover{border-color:#2aa7e0}
.z-secure{margin:12px 0;padding:12px 14px;border:1px solid #ffe2b8;background:#fff9ef;border-radius:12px}
.z-otp-row{display:flex;gap:8px;margin-top:4px}
.z-otp-row input{width:110px;letter-spacing:4px;text-align:center;font-weight:700}
.z-otp-row .secondary-button{white-space:nowrap}

/* Zalia conversationnelle : barre de message du panneau */
#zalia-chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e3ecf5;background:#fff}
#zalia-chat-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid #cfdeee;border-radius:999px;font:inherit;font-size:13px}
#zalia-chat-form button{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:#0e2d4d;color:#fff;font-size:15px;cursor:pointer}
#zalia-chat-form button:hover{background:#164a7c}
.z-msg.z-wait .z-bub{color:#8aa0b6;letter-spacing:3px}

/* Appel vocal Zalia dans l'espace */
.z-call{border:0;background:#e5f7ec;color:#157347;width:34px;height:34px;border-radius:50%;font-size:15px;cursor:pointer;margin-right:6px}
.z-call.on{background:#fdeaea;color:#b32626;animation:zv-pulse 1.6s infinite}
@keyframes zv-pulse{0%,100%{box-shadow:0 0 0 0 rgba(179,38,38,.25)}50%{box-shadow:0 0 0 7px rgba(179,38,38,0)}}

/* Messages vocaux de la chat box Zalia */
#zalia-mic-btn{flex:none;width:40px;height:40px;border:1px solid #cfdeee;border-radius:50%;background:#fff;font-size:15px;cursor:pointer}
#zalia-mic-btn.rec{background:#fdeaea;border-color:#f3b4b4;animation:zv-pulse 1.4s infinite}
.z-bub.z-audio{padding:6px}
.z-bub.z-audio audio{width:220px;height:36px;display:block}
.z-sep{text-align:center;color:#9db1c5;font-size:11px;margin:8px 0}

/* Zalia montre l'écran : cercle animé + étiquette (dessiné côté client) */
.zalia-ring{position:fixed;z-index:4000;border:3px dashed #16a34a;border-radius:18px;pointer-events:none;animation:zr-pulse 1.1s infinite;box-shadow:0 0 0 6px rgba(22,163,74,.12)}
@keyframes zr-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
.zalia-ring-tag{position:absolute;left:50%;top:-38px;transform:translateX(-50%);white-space:nowrap;background:#16a34a;color:#fff;font-size:12.5px;font-weight:700;padding:6px 12px;border-radius:999px;box-shadow:0 8px 20px rgba(22,163,74,.35)}

/* ---------------------------------------------------------------------
   Règle de marque : l'emblème Zaloria est TOUJOURS présenté en cercle,
   sur tous les écrans (espace, salle, connexion, chargement, erreurs).
   Aucun redessin : seul le cadrage change.
   --------------------------------------------------------------------- */
img[src*="zaloria-icon"],
img[src*="zaloria-favicon"],
.loading-logo,
.pre-mark img,
.failure-page > img {
  border-radius: 50%;
}
