/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --surface2: #22222f;
  --border: #2e2e3e;
  --text: #e8e8f0;
  --text-muted: #7a7a9a;
  --primary: #6c63ff;
  --primary-h: #574fd6;
  --ouvert: #22c55e;
  --ferme: #ef4444;
  --deplacement: #f59e0b;
  --aucun: #6b7280;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

html,
body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* ══════════════════════════════════════════
   PAGE CONNEXION
   ══════════════════════════════════════════ */
.page-connexion {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
  background: linear-gradient(135deg, #0f0f13 0%, #1a1a2e 100%);
}

.page-connexion .container {
  width: 100%;
  max-width: 480px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-login {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label,
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   BOUTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-login,
.btn-primary {
  width: 100%;
  justify-content: center;
  background: var(--primary);
  color: #fff;
}

.btn-login:hover,
.btn-primary:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.btn-add {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.btn-add:hover {
  background: rgba(108, 99, 255, 0.25);
}

.btn-save {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ouvert);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-save:hover {
  background: rgba(34, 197, 94, 0.25);
}

.btn-cancel {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-icon {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.85rem;
}

.btn-icon:hover {
  background: var(--surface2);
  color: var(--text);
}

.btn-icon.delete:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* ══════════════════════════════════════════
   PAGE ADMIN — HEADER
   ══════════════════════════════════════════ */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  font-size: 1.5rem;
}

.admin-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

/* ══════════════════════════════════════════
   PREVIEW BADGE
   ══════════════════════════════════════════ */
.preview-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   STATUT BUTTONS
   ══════════════════════════════════════════ */
.statut-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.statut-btn {
  padding: 16px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.statut-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.statut-btn[data-statut="ouvert"] {
  border-color: var(--ouvert);
  background: rgba(34, 197, 94, 0.1);
  color: var(--ouvert);
}

.statut-btn[data-statut="ferme"] {
  border-color: var(--ferme);
  background: rgba(239, 68, 68, 0.1);
  color: var(--ferme);
}

.statut-btn[data-statut="deplacement"] {
  border-color: var(--deplacement);
  background: rgba(245, 158, 11, 0.1);
  color: var(--deplacement);
}

.statut-btn[data-statut="aucun"] {
  border-color: var(--aucun);
  background: rgba(107, 114, 128, 0.1);
  color: var(--aucun);
}

.statut-btn.active {
  box-shadow: 0 0 0 3px currentColor;
  filter: brightness(1.3);
}

/* ══════════════════════════════════════════
   MESSAGE FORM
   ══════════════════════════════════════════ */
.message-form {
  margin-bottom: 8px;
}

.message-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
}

.message-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ══════════════════════════════════════════
   TOGGLE SWITCH
   ══════════════════════════════════════════ */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translate(22px, -50%);
  background: #fff;
}

/* ══════════════════════════════════════════
   QR FIELDS (ADMIN)
   ══════════════════════════════════════════ */
.qr-fields {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-fields .form-group {
  margin-bottom: 0;
}

.qr-fields input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.qr-fields input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.qr-preview-box canvas,
.qr-preview-box img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: block;
}

.qr-preview-box span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */
.toast {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.toast.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* ══════════════════════════════════════════
   STATUT BADGES (partagé)
   ══════════════════════════════════════════ */
.statut-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.statut-badge.ouvert {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ouvert);
  border: 1px solid var(--ouvert);
}

.statut-badge.ferme {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ferme);
  border: 1px solid var(--ferme);
}

.statut-badge.deplacement {
  background: rgba(245, 158, 11, 0.15);
  color: var(--deplacement);
  border: 1px solid var(--deplacement);
}

.statut-badge.aucun {
  background: rgba(107, 114, 128, 0.15);
  color: var(--aucun);
  border: 1px solid var(--aucun);
}

/* ══════════════════════════════════════════
   PAGE STATUT — VERSION TV (PLEIN ÉCRAN)
   ══════════════════════════════════════════ */
.page-statut {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: var(--bg);
  overflow: hidden;
}

.statut-fullscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  padding: 4vh 4vw;
  gap: 0;
}

.statut-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vh;
  flex: 1;
  justify-content: center;
  width: 100%;
}

.statut-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.statut-divider {
  width: 15vw;
  height: 6px;
  border-radius: 3px;
}

/* ══════════════════════════════════════════
   BADGE STATUT — TRÈS GROS
   ══════════════════════════════════════════ */
.page-statut .statut-badge {
  padding: 4vh 8vw;
  font-size: clamp(4rem, 12vw, 10rem);
  border-radius: 24px;
  border-width: 3px;
}

/* ══════════════════════════════════════════
   MESSAGE — PLUS GROS
   ══════════════════════════════════════════ */
.statut-message-box {
  max-width: 85vw;
  width: 100%;
  text-align: center;
}

.statut-message {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text);
  line-height: 1.5;
  padding: 3vh 4vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   QR CODE — PLUS GROS SUR TV
   ══════════════════════════════════════════ */
.statut-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
  margin-top: 2vh;
  padding: 3vh;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.statut-qr-wrapper #statutQrCanvas img,
.statut-qr-wrapper #statutQrCanvas canvas {
  width: clamp(150px, 22vw, 350px) !important;
  height: clamp(150px, 22vw, 350px) !important;
  display: block;
  border-radius: 12px;
}

.statut-qr-label {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--text-muted);
  text-align: center;
}

/* ══════════════════════════════════════════
   FOOTER STATUT
   ══════════════════════════════════════════ */
.statut-footer {
  padding: 2vh;
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
}

/* ══════════════════════════════════════════
   RESPONSIVE — PETIT ÉCRAN (mobile)
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
  .statut-title {
    font-size: 2rem;
  }

  .page-statut .statut-badge {
    padding: 14px 28px;
    font-size: clamp(1.8rem, 8vw, 4rem);
  }

  .statut-message {
    font-size: 1.1rem;
  }

  .statut-content {
    gap: 20px;
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════════
   QR CODE — PAGE STATUT
   ══════════════════════════════════════════ */
.qr-statut-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  animation: fadeIn 0.4s ease;
}

.qr-statut-box canvas,
.qr-statut-box img {
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  display: block;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.qr-statut-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   FOOTER STATUT
   ══════════════════════════════════════════ */
.statut-footer {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════
   USERS — PAGE CONNEXION
   ══════════════════════════════════════════ */
.users-section {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.users-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.add-user-form {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.add-user-form h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-muted);
}

.add-user-form .form-actions {
  justify-content: flex-start;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
}

.user-item:hover {
  border-color: var(--primary);
}

.user-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-item-actions {
  display: flex;
  gap: 8px;
}

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-badge.admin {
  background: rgba(108, 99, 255, 0.2);
  color: var(--primary);
}

.role-badge.viewer {
  background: rgba(107, 114, 128, 0.2);
  color: var(--aucun);
}

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.3s ease;
}

.modal h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
  .admin-header {
    padding: 12px 16px;
  }

  .admin-header h1 {
    font-size: 1rem;
  }

  .statut-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-statut .statut-badge {
    padding: 14px 28px;
    font-size: clamp(1.8rem, 8vw, 4rem);
  }

  .statut-content {
    gap: 20px;
    padding: 0 16px;
  }

  .modal {
    padding: 24px;
  }

  .form-login {
    padding: 24px;
  }
}

/* ══════════════════════════════════════════
   QR CODE - ADMIN
   ══════════════════════════════════════════ */

/* Cache le formulaire QR par défaut */
.qr-config {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Visible quand le toggle est activé */
.qr-config--visible {
  display: flex;
}

/* Ligne toggle */
.qr-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Prévisualisation QR */
.qr-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}

.qr-preview-box #qrPreviewCanvas img,
.qr-preview-box #qrPreviewCanvas canvas {
  display: block;
  border-radius: 4px;
}

.qr-preview-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

/* Fix toggle-row alignement */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 0;
  padding: 12px 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  /* ← empêche le rétrécissement */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
  left: calc(100% - 22px);
  background: #fff;
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  user-select: none;
}

/* ══════════════════════════════════════════
   QR CODE - PAGE STATUT
   ══════════════════════════════════════════ */
.statut-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.statut-qr-wrapper #statutQrCanvas {
  display: flex;
  align-items: center;
  justify-content: center;
}

.statut-qr-wrapper #statutQrCanvas img,
.statut-qr-wrapper #statutQrCanvas canvas {
  display: block;
  border-radius: 8px;
}

.statut-qr-label {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  text-align: center;
}

/* Cache la box message si vide */
.statut-message-box.hidden {
  display: none;
}

/* Statut centré seul = plus grand */
.statut-content:not(:has(#messageBox:not(.hidden))):not(:has(#statutQrWrapper:not(.hidden))) .statut-badge {
  font-size: clamp(6rem, 18vw, 14rem);
  padding: 60px 160px;
}