/* ============================================================
   Zaloria · Salle « Meet » — couche d'interface v3
   Feuille autonome : ne s'applique QUE dans .meet-shell (salle)
   et .meet-lobby (pré-salle). Aucune règle globale, aucun impact
   sur le tableau de bord, le site public ou l'administration.
   Convention : tout ce qui est propre à Meet est préfixé .meet-
   ============================================================ */

.meet-shell,
.meet-lobby {
  --meet-bg: #202124;
  --meet-tile: #3c4043;
  --meet-tile-2: #303134;
  --meet-line: #5f6368;
  --meet-txt: #e8eaed;
  --meet-gris: #9aa0a6;
  --meet-bleu: #8ab4f8;
  --meet-bleu-fort: #1a73e8;
  --meet-rouge: #ea4335;
  --zal-cyan: #22d3ee;
  --meet-radius: 12px;
  --meet-ombre: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* ---------- Racine de la salle : plein écran, sombre ---------- */
.meet-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--meet-bg);
  color: var(--meet-txt);
  font-family: "Manrope", "Google Sans", Roboto, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.meet-shell * {
  box-sizing: border-box;
}
.meet-shell svg.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Barre supérieure ---------- */
.meet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px 10px;
  flex: none;
}
.meet-top-l {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.meet-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  flex: none;
}
.meet-top-title {
  min-width: 0;
}
.meet-top-title > b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}
.meet-top-title > small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--meet-gris);
  flex-wrap: wrap;
}
.meet-top-title > small > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meet-top-title > small svg.icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.meet-top-title .badge {
  background: rgba(255, 255, 255, 0.09);
  color: var(--meet-txt);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.meet-top-title .badge.status-badge.live {
  background: rgba(234, 67, 53, 0.18);
  border-color: rgba(234, 67, 53, 0.45);
  color: #f28b82;
}
.meet-top-title .badge.status-badge.paused {
  background: rgba(253, 214, 99, 0.16);
  border-color: rgba(253, 214, 99, 0.4);
  color: #fdd663;
}
.meet-top-title .dot {
  opacity: 0.5;
}
.meet-top-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.meet-ghost,
.meet-primary,
.meet-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}
.meet-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--meet-txt);
  padding: 9px 16px;
  font-size: 13.5px;
}
.meet-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}
.meet-primary {
  background: var(--meet-bleu-fort);
  color: #fff;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
}
.meet-primary:hover {
  background: #2b7de9;
}
.meet-icon-btn {
  width: 40px;
  height: 40px;
  justify-content: center;
  background: transparent;
  color: var(--meet-gris);
}
.meet-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--meet-txt);
}
.meet-icon-btn[aria-pressed="true"] {
  color: var(--meet-bleu);
}
.live-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--meet-txt);
}
.live-timer.low {
  background: rgba(234, 67, 53, 0.2);
  color: #f28b82;
}

/* ---------- Corps : scène + panneau ---------- */
.meet-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 14px;
  padding: 0 14px 6px;
}
.meet-body.classroom-layout.panel-collapsed .meet-panel {
  display: none;
}

/* ---------- Scène vidéo ---------- */
.meet-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--meet-radius);
  background: #17181a;
  overflow: hidden;
  isolation: isolate;
}
.meet-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.meet-stage > #stage-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}
.meet-stage > #stage-video[hidden] {
  display: none;
}
/* État vide / démonstration */
.meet-stage .empty-video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--meet-gris);
  font-size: 14px;
  z-index: 0;
}
.meet-stage .empty-video svg.icon {
  width: 40px;
  height: 40px;
  opacity: 0.55;
}
.meet-stage .demo-teacher {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 0;
}

/* Grille de tuiles façon Meet (remplace le rail de vignettes) */
.meet-shell .meet-stage .video-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 10px;
  margin: 0;
  width: auto;
  max-height: none;
  overflow: hidden;
}
.meet-shell .meet-stage .video-grid[hidden] {
  display: none;
}
.meet-shell .meet-stage .video-grid:has(.grid-tile:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.meet-shell .meet-stage .video-grid:has(.grid-tile:nth-child(5)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.meet-shell .meet-stage .grid-tile {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--meet-radius);
  background: var(--meet-tile);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  transition: box-shadow 0.16s ease;
}
.meet-shell .meet-stage .grid-tile:hover {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.meet-shell .meet-stage .grid-tile.speaking {
  box-shadow: inset 0 0 0 3px var(--meet-bleu);
  border: 0;
}
.meet-shell .meet-stage .grid-tile.pinned {
  box-shadow: inset 0 0 0 3px var(--zal-cyan);
}
.meet-shell .meet-stage .grid-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meet-shell .meet-stage .grid-tile video[hidden] {
  display: none;
}
.meet-shell .meet-stage .grid-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  background: #a142f4;
}
.meet-shell .meet-stage .grid-avatar.tone-1 {
  background: #f29900;
}
.meet-shell .meet-stage .grid-avatar.tone-2 {
  background: #1e8e3e;
}
.meet-shell .meet-stage .grid-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 16px 12px 9px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.meet-shell .meet-stage .grid-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meet-shell .meet-stage .grid-state {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.meet-shell .meet-stage .grid-mic,
.meet-shell .meet-stage .grid-cam {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: rgba(32, 33, 36, 0.72);
}
.meet-shell .meet-stage .grid-mic.on {
  background: var(--meet-bleu-fort);
}
.meet-shell .meet-stage .grid-mic.off::after,
.meet-shell .meet-stage .grid-cam.off::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 9px;
  height: 1.6px;
  background: #f28b82;
  transform: rotate(-45deg);
  border-radius: 2px;
}
.meet-shell .meet-stage .grid-tile.reacting {
  animation: meet-tile-react 0.9s ease;
}
@keyframes meet-tile-react {
  0% { box-shadow: inset 0 0 0 3px var(--zal-cyan); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* Vignette de soi (PiP) */
.meet-stage > #local-video {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 200px;
  max-width: 28%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--meet-ombre);
  z-index: 6;
  background: #141e2c;
}
.meet-stage > #local-video[hidden] {
  display: none;
}
/* Mode « duo » : la vignette locale est déjà positionnée par la scène */
.meet-stage.duo > #local-video {
  width: 26%;
  right: 1%;
  bottom: 3%;
}
.duo-local-label {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 7;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* Bandeaux d'information sur la scène */
.meet-stage .video-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
}
.stage-badge {
  background: rgba(32, 33, 36, 0.72);
  color: var(--meet-txt);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}
.stage-encryption {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(32, 33, 36, 0.62);
  color: var(--meet-txt);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}
.stage-encryption svg.icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
  color: #81c995;
}
.meet-stage .video-bottom {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.meet-stage .video-bottom b {
  font-size: 13.5px;
  font-weight: 600;
}
.meet-stage .video-bottom small {
  font-size: 11.5px;
  color: #d5d8dc;
}
.meet-stage .mic-indicator {
  display: none;
}
#speaking-label {
  display: none;
}

/* ---------- Sous-titres traduits ---------- */
.floating-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 8;
  max-width: min(78%, 780px);
  text-align: center;
  color: #fff;
  font-size: 15.5px;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  padding: 0 10px;
}
.floating-caption[hidden] {
  display: none;
}
.floating-caption .who {
  display: inline-block;
  background: rgba(60, 64, 67, 0.92);
  border-radius: 6px;
  font-size: 11.5px;
  color: #dadce0;
  padding: 2px 9px;
  margin-bottom: 6px;
  text-shadow: none;
}
.floating-caption .who b {
  color: var(--zal-cyan);
  font-weight: 700;
}
body.cc-off .floating-caption {
  display: none;
}

/* Bulles de discussion sur la scène (conservées, discrètes) */
.meet-stage .stage-chat {
  position: absolute;
  left: 12px;
  bottom: 74px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(60%, 420px);
  pointer-events: none;
}
.meet-stage .stage-bubble {
  background: rgba(32, 33, 36, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  animation: bulle-in 0.25s forwards;
}
.meet-stage .stage-bubble b {
  color: var(--zal-cyan);
  font-size: 11px;
  margin-right: 6px;
}
.meet-stage .stage-bubble.out {
  transition: opacity 0.45s;
  opacity: 0;
}
@keyframes bulle-in {
  to { opacity: 1; transform: none; }
}

/* Rail mobile (💬 / ⋮) — masqué sur ordinateur */
.stage-rail {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(32, 33, 36, 0.78);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

/* ---------- Réactions volantes ---------- */
.meet-reactions-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}
.meet-react {
  position: absolute;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: meet-react-fly 2.8s ease-out forwards;
}
.meet-react b {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}
.meet-react small {
  font-size: 10.5px;
  color: #fff;
  background: rgba(32, 33, 36, 0.72);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
@keyframes meet-react-fly {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  14% { opacity: 1; transform: translateY(-14px) scale(1); }
  100% { transform: translateY(-190px) scale(1.05); opacity: 0; }
}

/* ---------- Panneau latéral (messages) ---------- */
.meet-panel {
  width: 352px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #202124;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--meet-ombre);
}
.meet-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 12px 10px 20px;
}
.meet-panel .panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.meet-panel .panel-head svg.icon {
  width: 18px;
  height: 18px;
  color: #5f6368;
}
.meet-panel .panel-collapse,
.meet-panel .sheet-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.meet-panel .panel-collapse:hover,
.meet-panel .sheet-close:hover {
  background: #f1f3f4;
}
.meet-panel .panel-collapse svg.icon {
  transform: rotate(180deg);
}
.meet-panel .sheet-close {
  display: none;
}
.meet-panel .chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.meet-panel .chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.meet-panel .chat-message b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #202124;
}
.meet-panel .chat-message p {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3c4043;
  word-break: break-word;
}
.meet-panel .chat-message small {
  font-size: 10.5px;
  color: #80868b;
}
.meet-panel .chat-message.own b {
  color: var(--meet-bleu-fort);
}
.meet-panel .panel-empty {
  margin: auto;
  text-align: center;
  color: #5f6368;
  font-size: 13px;
  padding: 24px 10px;
  line-height: 1.55;
}
.meet-panel .chat-list form,
.meet-panel form#chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 14px 14px;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  flex: none;
}
.meet-panel form#chat-form input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  color: #202124;
  min-width: 0;
  padding: 10px 0;
}
.meet-panel form#chat-form button {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--meet-bleu-fort);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.meet-panel form#chat-form button:hover {
  background: #e8f0fe;
}
.meet-panel .caption-footer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 14px 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 11.5px;
  line-height: 1.5;
  flex: none;
}
.meet-panel .caption-footer svg.icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}
.meet-panel .tab-badge {
  background: var(--meet-rouge);
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  padding: 1px 6px;
  font-style: normal;
}

/* ---------- Panneau d'options (participants, langue) ---------- */
.meet-extras {
  position: absolute;
  top: 0;
  right: 14px;
  bottom: 6px;
  width: 352px;
  z-index: 12;
  display: none;
  flex-direction: column;
  background: #fff;
  color: #202124;
  border-radius: 14px;
  box-shadow: var(--meet-ombre);
  overflow: hidden;
}
body.sheet-more .meet-extras {
  display: flex;
}
body.sheet-more .meet-panel {
  display: none;
}
.meet-extras .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 8px 20px;
  font-size: 16px;
  font-weight: 500;
}
.meet-extras .sheet-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  font-size: 15px;
  cursor: pointer;
}
.meet-extras .sheet-close:hover {
  background: #f1f3f4;
}
.meet-extras .language-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 16px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 12.5px;
}
.meet-extras .language-strip .language-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--meet-bleu-fort);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.meet-extras .language-strip > div {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meet-extras .language-strip b {
  font-size: 12.5px;
  font-weight: 600;
}
.meet-extras .language-strip small {
  color: #5f6368;
  font-size: 11px;
  line-height: 1.4;
}
.meet-extras .language-strip small.bad {
  color: #c5221f;
}
.meet-extras .language-strip select {
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font: inherit;
  font-size: 12.5px;
  padding: 7px 9px;
  max-width: 100%;
}
.meet-extras .participants-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 16px 14px;
}
.meet-extras .participants-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.meet-extras .participants-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  margin: 0;
}
.meet-extras .participants-title svg.icon {
  width: 16px;
  height: 16px;
  color: #5f6368;
}
.meet-extras .participant-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meet-extras .participant-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
  opacity: 0.55;
}
.meet-extras .participant-card.is-online {
  opacity: 1;
}
.meet-extras .participant-card > .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  flex: none;
}
.meet-extras .participant-card > .avatar.tone-0 { background: #a142f4; }
.meet-extras .participant-card > .avatar.tone-1 { background: #f29900; }
.meet-extras .participant-card > .avatar.tone-2 { background: #1e8e3e; }
.meet-extras .participant-card .presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34a853;
  border: 2px solid #fff;
}
.meet-extras .participant-card > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.meet-extras .participant-card b {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meet-extras .participant-card small {
  font-size: 11px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meet-extras .participant-card.speaking b {
  color: var(--meet-bleu-fort);
}
.meet-extras .hand-indicator {
  color: #f29900;
  display: inline-flex;
}
.meet-extras .hand-indicator svg.icon {
  width: 16px;
  height: 16px;
}
.meet-extras .floor-button {
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  border-radius: 999px;
  font: inherit;
  font-size: 11.5px;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meet-extras .floor-button.cut {
  color: #c5221f;
  border-color: #f4c7c3;
}
.meet-extras .floor-button svg.icon {
  width: 13px;
  height: 13px;
}
.meet-extras .cohost-btn {
  border: 0;
  background: none;
  color: var(--meet-bleu-fort);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 4px 6px;
}
.meet-extras .text-button {
  border: 0;
  background: none;
  color: var(--meet-bleu-fort);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.meet-extras .demo-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 16px 14px;
  padding: 12px;
  border-radius: 10px;
  background: #fef7e0;
  color: #3c4043;
  font-size: 11.5px;
  line-height: 1.45;
}
.meet-extras .demo-tools p {
  margin: 2px 0 0;
  color: #5f6368;
}
.meet-extras .demo-tools .secondary-button {
  flex: none;
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: 11.5px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* ---------- Barre de contrôle ---------- */
.meet-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 14px;
  color: var(--meet-txt);
}
.meet-bar-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.meet-bar-side.right {
  justify-content: flex-end;
}
.meet-bar-side.left {
  font-size: 12.5px;
  color: var(--meet-gris);
  gap: 8px;
}
.meet-bar-side.left b {
  color: var(--meet-txt);
  font-variant-numeric: tabular-nums;
}
.meet-bar-side.left .sep {
  opacity: 0.5;
}
.meet-bar-side.left .room-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meet-bar-center {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Boutons ronds de la barre */
.meet-btn {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--meet-tile);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.meet-btn:hover {
  background: #4a4e53;
}
.meet-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.meet-btn[aria-pressed="false"] {
  background: var(--meet-rouge);
}
.meet-btn[aria-pressed="false"]:hover {
  background: #f0544a;
}
.meet-btn[aria-pressed="true"] {
  background: var(--meet-bleu-fort);
}
.meet-btn .ico-off,
.meet-btn .ico-on {
  display: inline-flex;
}
.meet-btn[aria-pressed="true"] .ico-off,
.meet-btn[aria-pressed="false"] .ico-on {
  display: none;
}
/* Le bouton sous-titres garde son fond sombre même actif */
.meet-btn#cc-button[aria-pressed="true"] {
  background: var(--meet-tile);
  color: var(--meet-bleu);
}
.meet-btn#cc-button[aria-pressed="true"]:hover {
  background: #4a4e53;
}
.meet-btn.end {
  width: 74px;
  border-radius: 999px;
  background: var(--meet-rouge);
}
.meet-btn.end:hover {
  background: #f0544a;
}
.meet-btn.end svg.icon {
  transform: rotate(135deg);
}
.meet-btn .count-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--meet-rouge);
  color: #fff;
  font-size: 9.5px;
  border-radius: 999px;
  padding: 1px 5px;
  font-style: normal;
}

/* Boutons de droite (barre d'actions) */
.meet-rbtn {
  position: relative;
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--meet-txt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.meet-rbtn:hover {
  background: rgba(255, 255, 255, 0.09);
}
.meet-rbtn.active {
  color: var(--meet-bleu);
}
.meet-rbtn .count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.meet-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.13);
  color: var(--zal-cyan);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 4px;
}
.meet-lang-pill:hover {
  background: rgba(34, 211, 238, 0.2);
}
.meet-lang-pill b {
  font-weight: 700;
}

/* Popover réactions */
.meet-react-pop {
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: var(--meet-tile-2);
  border-radius: 999px;
  box-shadow: var(--meet-ombre);
}
.meet-react-pop[hidden] {
  display: none;
}
.meet-react-pop::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--meet-tile-2);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.meet-react-pop button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.meet-react-pop button:hover {
  background: #4a4e53;
  transform: scale(1.12);
}

/* ---------- Lobby « Prêt à participer ? » ---------- */
.meet-lobby {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #f8f9fb;
  color: #202124;
  font-family: "Manrope", "Google Sans", Roboto, "Segoe UI", Arial, sans-serif;
  overflow-y: auto;
}
.meet-lobby * {
  box-sizing: border-box;
}
.lobby-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  flex: none;
}
.lobby-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #10213b;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.lobby-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
}
.lobby-brand small {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: #5f6368;
  text-transform: uppercase;
}
.lobby-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: #5f6368;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
}
.lobby-back:hover {
  background: #eceff3;
  color: #202124;
}
.lobby-back svg.icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
.lobby-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 20px 32px 60px;
  flex-wrap: wrap;
}
.lobby-video {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 16 / 9.3;
  background: #202124;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 12px 34px rgba(60, 64, 67, 0.18);
  flex: none;
}
.lobby-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.lobby-video video[hidden] {
  display: none;
}
.lobby-video-off {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #bdc1c6;
  font-size: 15px;
}
.lobby-video-off[hidden] {
  display: none;
}
.lobby-video-off svg.icon {
  width: 42px;
  height: 42px;
  opacity: 0.6;
}
.lobby-name {
  position: absolute;
  top: 12px;
  left: 16px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.lobby-ctl {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}
.lobby-rond {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(32, 33, 36, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.lobby-rond:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lobby-rond[aria-pressed="false"] {
  background: var(--meet-rouge, #ea4335);
  border-color: var(--meet-rouge, #ea4335);
}
.lobby-rond[aria-pressed="true"] {
  background: rgba(32, 33, 36, 0.35);
}
.lobby-rond .ico-off,
.lobby-rond .ico-on {
  display: inline-flex;
}
.lobby-rond[aria-pressed="true"] .ico-off,
.lobby-rond[aria-pressed="false"] .ico-on {
  display: none;
}
.lobby-side {
  min-width: 300px;
  max-width: 420px;
  text-align: center;
}
.lobby-side h1 {
  font-size: 27px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #202124;
}
.lobby-sub {
  margin: 0 0 4px;
  color: #5f6368;
  font-size: 14px;
}
.lobby-deja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5f6368;
  font-size: 13px;
  margin: 16px 0 22px;
  flex-wrap: wrap;
}
.lobby-deja i {
  display: inline-flex;
}
.avmini {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #a142f4;
  font-style: normal;
}
.avmini.tone-1 {
  background: #f29900;
}
.avmini.tone-2 {
  background: #1e8e3e;
}
.lobby-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lobby-join {
  background: var(--meet-bleu-fort, #1a73e8);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.35);
}
.lobby-join:hover {
  background: #2b7de9;
}
.lobby-present {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--meet-bleu-fort, #1a73e8);
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 13px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.lobby-present:hover {
  background: #f1f3f4;
}
.lobby-present svg.icon {
  width: 18px;
  height: 18px;
}
.lobby-langue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: #3c4043;
  flex-wrap: wrap;
  justify-content: center;
}
.lobby-langue select {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #202124;
  cursor: pointer;
  max-width: 190px;
}
.zbadge {
  display: inline-block;
  background: #e6f7fd;
  border: 1px solid #b8e8f7;
  color: #0b7ea6;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .meet-panel,
  .meet-extras {
    width: 300px;
  }
  .meet-top-title > b {
    max-width: 34vw;
  }
  .meet-btn {
    width: 44px;
    height: 44px;
  }
  .meet-btn.end {
    width: 66px;
  }
}

@media (max-width: 900px) {
  .meet-top {
    padding: 10px 12px 6px;
  }
  .meet-top-title > b {
    font-size: 14.5px;
    max-width: 52vw;
  }
  .meet-top-title > small {
    font-size: 11px;
    gap: 6px;
  }
  .meet-ghost span {
    display: none;
  }
  .meet-ghost {
    padding: 9px;
  }
  .meet-primary {
    padding: 9px 13px;
    font-size: 12.5px;
  }
  .meet-body {
    padding: 0 8px 4px;
  }
  .meet-stage > #local-video {
    width: 108px;
    right: 10px;
    bottom: 64px;
  }
  .stage-rail {
    display: flex;
  }
  .floating-caption {
    bottom: 8px;
    font-size: 14px;
    max-width: 92%;
  }
  /* Le panneau et les options deviennent des feuilles plein écran (fixes,
     indépendantes de la hauteur de la scène) */
  .meet-panel,
  .meet-extras {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 18vh;
    width: auto;
    border-radius: 16px 16px 0 0;
    z-index: 90;
    display: none;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  }
  .meet-panel {
    top: 12vh;
  }
  /* La barre d'action reste accessible au-dessus des feuilles */
  .meet-bar {
    position: relative;
    z-index: 95;
  }
  body.sheet-chat .meet-panel {
    display: flex;
  }
  body.sheet-more .meet-extras {
    display: flex;
  }
  .meet-panel .sheet-close {
    display: inline-flex;
  }
  .meet-panel .panel-collapse {
    display: none;
  }
  .meet-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 6px 8px 12px;
  }
  .meet-bar-side {
    display: none;
  }
  .meet-bar-center {
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .meet-bar-center::-webkit-scrollbar {
    display: none;
  }
  .meet-btn {
    width: 46px;
    height: 46px;
  }
  .meet-btn.end {
    width: 58px;
  }
  .meet-react-pop {
    bottom: 58px;
    max-width: 94vw;
    overflow-x: auto;
  }
  .meet-react-pop button {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .lobby-main {
    gap: 24px;
    padding: 8px 16px 40px;
  }
  .lobby-side h1 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .meet-top-title > small .type-badge,
  .meet-top-title > small .dot {
    display: none;
  }
  .meet-btn {
    width: 42px;
    height: 42px;
  }
  .meet-btn svg.icon {
    width: 19px;
    height: 19px;
  }
  .meet-btn.end {
    width: 54px;
  }
  .meet-shell .meet-stage .grid-avatar {
    width: 62px;
    height: 62px;
    font-size: 22px;
  }
  .lobby-video {
    border-radius: 12px;
  }
  .lobby-langue {
    font-size: 12.5px;
    padding: 8px 10px;
  }
  .lobby-join,
  .lobby-present {
    padding: 12px 22px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meet-react,
  .meet-stage .stage-bubble,
  .meet-shell .meet-stage .grid-tile.reacting {
    animation: none !important;
  }
}

/* Le shell de l'application ne doit pas défiler sous la salle */
body:has(.meet-shell) {
  overflow: hidden;
}

/* ---------- Transcription (liste des sous-titres) ---------- */
.meet-extras .transcript-section {
  max-height: 34%;
  border-top: 1px solid #eceff3;
  padding-top: 10px;
  margin-top: 4px;
}
.meet-transcript {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.meet-transcript .caption-item {
  background: #f8f9fb;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #3c4043;
}
.meet-transcript .caption-item > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.meet-transcript .caption-item b {
  font-size: 11.5px;
  color: #202124;
}
.meet-transcript .caption-item small {
  color: #80868b;
  font-size: 10px;
}
.meet-transcript .caption-item p {
  margin: 0;
  line-height: 1.45;
}
.meet-transcript .caption-item.translated {
  background: #e8f0fe;
}
.meet-transcript .caption-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--meet-bleu-fort, #1a73e8);
}
.meet-transcript .tiny-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #a142f4;
  color: #fff;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.meet-transcript .panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #5f6368;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 12px 6px;
}
.meet-transcript .panel-empty svg.icon {
  width: 20px;
  height: 20px;
}

/* ---------- Quand la grille occupe la scène ---------- */
.meet-stage.grid-on > #stage-video,
.meet-stage.grid-on > .demo-teacher,
.meet-stage.grid-on > .empty-video,
.meet-stage.grid-on .video-bottom,
.meet-stage.grid-on .video-top {
  display: none;
}
.meet-stage.grid-on > #local-video {
  z-index: 8;
  width: 168px;
  right: 16px;
  bottom: 16px;
}

/* ---------- Icônes d'état des tuiles ---------- */
.meet-shell .meet-stage .grid-state i.grid-mic,
.meet-shell .meet-stage .grid-state i.grid-cam {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 33, 36, 0.72);
}
.meet-shell .meet-stage .grid-state svg {
  width: 14px;
  height: 14px;
  stroke: #e8eaed;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.meet-shell .meet-stage .grid-mic.off {
  background: var(--meet-rouge, #ea4335);
}
.meet-shell .meet-stage .grid-mic.off svg {
  stroke: #fff;
}
.meet-shell .meet-stage .grid-cam.off svg {
  stroke: #f28b82;
}

/* ---------- Lobby : alignement et drapeau ---------- */
.lobby-main {
  align-items: center;
}
.lobby-side {
  text-align: left;
}
.lobby-deja {
  justify-content: flex-start;
}
.lobby-actions {
  justify-content: flex-start;
}
.lobby-langue {
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .lobby-side {
    text-align: center;
  }
  .lobby-deja,
  .lobby-actions,
  .lobby-langue {
    justify-content: center;
  }
}

/* ============================================================
   Neutralisation des contraintes héritées de l'ancienne salle
   (aspect-ratio fixes sur la scène et les tuiles) : dans Meet,
   la scène remplit la hauteur disponible et les tuiles suivent
   leur rangée de grille.
   ============================================================ */
.meet-shell .meet-stage,
.meet-shell .video-stage {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}
.meet-shell .meet-stage .grid-tile {
  aspect-ratio: auto;
  min-height: 0;
  border: 0;
  background: var(--meet-tile);
}
.meet-shell .meet-body {
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.meet-shell .meet-stage {
  align-self: stretch;
}
.meet-shell .meet-stage .video-grid {
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
}

/* ---------- En-tête compact sur petit écran ---------- */
@media (max-width: 700px) {
  .meet-top {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
  }
  .meet-top-l {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .meet-top-title {
    min-width: 0;
    flex: 1;
  }
  .meet-top-title > b {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }
  .meet-top-title > small {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 10.5px;
    gap: 5px;
    white-space: nowrap;
  }
  .meet-top-title > small .dot,
  .meet-top-title > small .type-badge {
    display: none;
  }
  .meet-ghost {
    display: none;
  }
  .meet-primary {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .meet-icon-btn {
    width: 34px;
    height: 34px;
  }
  .meet-logo {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 420px) {
  .meet-primary {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- Ajustements mobiles (vérifiés en 390 px) ---------- */
@media (max-width: 700px) {
  /* Le rail d'actions reste sur une seule ligne, défilable, aligné à gauche */
  .meet-bar-center {
    justify-content: flex-start;
    padding: 0 12px 2px;
  }
  /* Une seule colonne de tuiles, comme Meet sur téléphone */
  .meet-shell .meet-stage .video-grid,
  .meet-shell .meet-stage .video-grid:has(.grid-tile:nth-child(2)),
  .meet-shell .meet-stage .video-grid:has(.grid-tile:nth-child(5)) {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
  }
  /* Les raccourcis 💬 / ⋮ ne masquent plus les tuiles */
  .stage-rail {
    top: auto;
    bottom: 74px;
    transform: none;
    flex-direction: column;
  }
  .meet-top-title > small > span:has(#room-language),
  .meet-top-title > small > .dot {
    display: none;
  }
}

/* ---------- Barre : 8 boutons doivent tenir sur 360–390 px ---------- */
@media (max-width: 700px) {
  .meet-bar-center {
    gap: 6px;
    padding: 0 8px 2px;
  }
  .meet-btn {
    width: 40px;
    height: 40px;
  }
  .meet-btn svg.icon {
    width: 18px;
    height: 18px;
  }
  .meet-btn.end {
    width: 48px;
  }
}

/* Le mode « zen » hérité agrandissait l'ancienne mise en page (min-height 100vh - 110px).
   Dans la salle Meet, le corps doit se contenter de l'espace restant. */
body.zen-live .meet-shell .meet-body,
.meet-shell .meet-body {
  min-height: 0;
}
body.zen-live .meet-shell .meet-stage,
.meet-shell .meet-stage {
  min-height: 0;
}

/* Comme Meet : la dernière tuile d'une grille impaire est centrée */
.meet-shell .meet-stage .video-grid:has(.grid-tile:nth-child(2)):not(:has(.grid-tile:nth-child(4))) > .grid-tile:nth-child(3) {
  grid-column: 1 / -1;
  width: calc(50% - 5px);
  justify-self: center;
}
@media (max-width: 700px) {
  .meet-shell .meet-stage .video-grid > .grid-tile:nth-child(3) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}
