/* ==========================================================================
   MyTranslateChat — feuille de style principale
   Style « Coloré / Fun » : fond clair légèrement teinté, cartes très arrondies,
   couleur de marque violette, touches corail / turquoise / jaune.
   ========================================================================== */

:root {
  --brand: #6C5CE7;
  --brand-dark: #4F3FD0;
  --brand-soft: #F1EEFF;
  --coral: #FF6B6B;
  --teal: #4ECDC4;
  --yellow: #FFD93D;
  --green: #00B894;
  --pink: #E84393;
  --blue: #0984E3;
  --ink: #14142B;
  --muted: #6B6B85;
  --line: #EAE7F5;
  --card: #FFFFFF;
  --bg: #F6F5FC;
  --radius-lg: 22px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 20px rgba(29, 20, 80, .07);
  --shadow-soft: 0 3px 12px rgba(29, 20, 80, .05);
  --tabbar-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  padding-bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom, 0px));
}

body.menu-open { overflow: hidden; }

h1, h2, h3 { margin: 0 0 6px; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 10px; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* ------------------------------ Mise en page ------------------------------ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(74px + env(safe-area-inset-top, 0px)) 18px 10px;
}
.page-head { margin-bottom: 22px; }
.page-title { margin-bottom: 8px; }
.page-sub { color: var(--muted); font-size: 15px; max-width: 62ch; }
.section { margin: 30px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.link-more { font-size: 14px; color: var(--muted); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.empty {
  color: var(--muted);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.muted { color: var(--muted); }

/* -------------------------- Écran d'ouverture ---------------------------- */
#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--brand);
  color: #fff;
}
#app-splash img { border-radius: 24px; }
#app-splash p { font-size: 18px; font-weight: 700; margin: 0; }
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* --------------------------- Bouton menu ------------------------------- */
.burger {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 14px;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.burger:active { transform: scale(.97); }

/* --------------------------- Menu latéral -------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 43, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 80;
}
.menu-overlay.show { opacity: 1; visibility: visible; }
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #fff;
  border-radius: 0 24px 24px 0;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .26s ease, visibility .26s ease;
  z-index: 90;
  overflow-y: auto;
}
.side-menu.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.side-head { display: flex; align-items: center; gap: 12px; }
.side-logo { border-radius: 14px; }
.side-brand { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.side-brand strong { font-size: 16px; }
.side-brand span { font-size: 12px; color: var(--muted); }
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.side-links a:hover { background: var(--brand-soft); text-decoration: none; }
.side-links a svg { color: var(--brand); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--brand-soft); border-radius: 14px; }
.side-user div { display: flex; flex-direction: column; }
.side-user span { font-size: 12px; color: var(--muted); }
.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.icon-btn.inside { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* ------------------------ Barre de navigation basse ---------------------- */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: var(--tabbar-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(29, 20, 80, .14);
  z-index: 70;
  padding: 6px;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}
.tab:hover { text-decoration: none; }
.tab.active { color: var(--brand-dark); background: var(--brand-soft); }
.tab:active { transform: scale(.97); }
.tab-ico { display: flex; }

/* -------------------- Navigation ordinateur (900px et +) ----------------- */
.pc-nav { display: none; }

/* ------------------------------- Boutons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  background: #fff;
  color: var(--ink);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(108, 92, 231, .28); }
.btn-primary:hover { text-decoration: none; background: var(--brand-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-dark); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* -------------------------------- Champs --------------------------------- */
.field { margin-bottom: 16px; position: relative; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  min-height: 50px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 92, 231, .14); }
.input-row { position: relative; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.field-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.field-note.ok { color: var(--green); }
.field-note.ko { color: var(--coral); }
.filters { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 10px; }
.result-count { font-size: 13px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1; min-width: 140px; }
.form-error {
  background: #FFF1F1;
  color: #B3202C;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.chip small { color: var(--muted); font-weight: 500; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.active small { color: rgba(255, 255, 255, .85); }
.chip.suggested { border-color: var(--yellow); }

/* -------------------------------- Cartes --------------------------------- */
.room-list, .member-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.room-card, .member-card, .auth-card, .translate-panel, .translate-result, .cta-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.room-card:active, .member-card:active { transform: scale(.995); }
.room-card-head { display: flex; gap: 12px; align-items: flex-start; }
.room-ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.room-title-block { min-width: 0; }
.room-desc { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.room-meta span { background: var(--bg); border-radius: 999px; padding: 4px 10px; }
.room-last { font-size: 14px; color: var(--ink); margin: 6px 0 12px; overflow-wrap: anywhere; }
.room-ago { color: var(--muted); font-size: 12px; }
.room-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.room-actions .btn { flex: 1; min-width: 150px; }

.member-card { display: flex; gap: 14px; align-items: flex-start; }
.member-card.small { padding: 12px; border-radius: var(--radius); }
.member-info h3 { margin-bottom: 2px; }
.member-lang { color: var(--muted); font-size: 13px; margin: 0 0 2px; }
.member-country, .member-seen { color: var(--muted); font-size: 12.5px; margin: 0; }
.member-bio { font-size: 13.5px; margin: 6px 0; }
.you { font-size: 11px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 8px; }

.avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.avatar.big { width: 52px; height: 52px; font-size: 20px; }
.lang-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

/* --------------------------- Pages de compte ----------------------------- */
.auth-body { background: linear-gradient(160deg, #6C5CE7 0%, #4ECDC4 55%, #FFD93D 130%); background-attachment: fixed; }
.auth-body .page { padding-top: calc(84px + env(safe-area-inset-top, 0px)); max-width: 620px; }
.auth-card { box-shadow: 0 18px 50px rgba(20, 20, 43, .18); }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head img { border-radius: 18px; margin-bottom: 10px; }
.auth-head h1 { font-size: 26px; }
.auth-head p { color: var(--muted); font-size: 14.5px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step.active { color: var(--brand-dark); }
.step.active .step-dot { background: var(--brand); color: #fff; }
.step.done .step-dot { background: var(--green); color: #fff; }
.form-step { display: none; }
.form-step.active { display: block; }
.lang-auto { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 14px; font-size: 15px; }
.lang-question { font-weight: 600; margin-bottom: 12px; }

/* ------------------------------- Chat ------------------------------------ */
.chat-page { padding-left: 0; padding-right: 0; max-width: 900px; }
.chat-head { padding: 0 18px 12px; }
.chat-title { font-size: 26px; }
.chat-sub { color: var(--muted); font-size: 14px; }
.chat-lang { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.chat-lang svg { color: var(--brand); flex: 0 0 auto; }
.chat-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-notice {
  font-size: 12.5px;
  color: var(--muted);
  background: #FFFDF0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
}
.room-members-panel { padding: 0 18px 10px; }
.room-members-panel h2 { font-size: 17px; }
.chat-messages { padding: 6px 14px 210px; }
.chat-empty { text-align: center; }
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  transition: opacity .2s ease;
}
.msg.mine { background: var(--brand-soft); }
.msg-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}
.msg-body { min-width: 0; flex: 1; }
.msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.msg-ago { color: var(--muted); }
.msg-text { font-size: 15px; margin: 6px 0 0; overflow-wrap: anywhere; }
.msg-original {
  font-size: 13.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 8px 0 0;
}
.original-toggle {
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 0 0;
  cursor: pointer;
}
.msg-delete {
  align-self: flex-end;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}
.msg-delete:hover { color: var(--coral); }
.quality-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: 6px;
}
.quality-badge.warn { background: #FFF6E5; color: #8A6100; }
.quality-badge.good { background: #E9FBF3; color: #0A6B45; }

.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  z-index: 50;
}
.composer-row { display: flex; align-items: flex-end; gap: 10px; }
.composer textarea {
  min-height: 48px;
  max-height: 140px;
  border-radius: 22px;
  padding: 13px 16px;
  resize: none;
}
.composer-send { width: 50px; min-height: 50px; padding: 0; border-radius: 50%; flex: 0 0 auto; }
.detected { font-size: 11.5px; color: var(--brand-dark); margin: 0 0 6px 4px; min-height: 14px; }

/* ----------------------------- Traduction -------------------------------- */
.translate-controls { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; margin-bottom: 8px; }
.translate-controls .field { margin-bottom: 0; }
.translate-controls .swap { background: var(--brand-soft); color: var(--brand-dark); width: 46px; height: 46px; border-radius: 14px; }
.translate-result { margin-top: 20px; }
.result-langs { font-size: 13px; color: var(--muted); font-weight: 500; }
.result-text { font-size: 17px; font-weight: 600; margin-top: 10px; overflow-wrap: anywhere; }
.result-meta { font-size: 12.5px; color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 14.5px;
}
.info-list svg { color: var(--brand); flex: 0 0 auto; }
.cta-section { text-align: center; }

/* ------------------------------ Pied de page ----------------------------- */
.site-footer {
  margin-top: 34px;
  background: var(--brand-soft);
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { border-radius: 12px; }
.footer-text { font-size: 14px; color: var(--muted); max-width: 60ch; }
.footer-info { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 9px; }
.footer-info li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); }
.footer-info svg { color: var(--brand); flex: 0 0 auto; }
.footer-info a { color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.footer-admin { color: var(--muted); font-size: 12px; }
.footer-copy { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* --------------------- Notifications et fenêtres ------------------------ */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #fff;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(20, 20, 43, .18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-error { background: #FFF1F1; color: #B3202C; }
.toast-ok { background: #fff; border-left: 4px solid var(--brand); }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 43, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(20, 20, 43, .3);
}
.modal h3 { margin-bottom: 12px; }
.modal-steps { padding-left: 20px; margin: 0 0 14px; font-size: 14.5px; }
.modal-steps li { margin-bottom: 8px; }
.modal svg { color: var(--brand); margin-bottom: 10px; }
.modal-note { font-size: 13px; color: var(--muted); }

/* --------------------- Bandeau d'accueil public -------------------------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #6C5CE7 0%, #0984E3 60%, #4ECDC4 100%);
  color: #fff;
  padding: 26px 20px;
}
.hero h1 { font-size: 32px; }
.hero p { font-size: 15.5px; opacity: .95; max-width: 46ch; }
.hero .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.hero .btn-ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-badges span {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.demo-window {
  margin-top: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}
.demo-window h3 { font-size: 15px; color: var(--muted); font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.stat-tile { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.stat-tile strong { display: block; font-size: 26px; font-weight: 800; color: var(--brand-dark); }
.stat-tile span { font-size: 12.5px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.feature-card svg { color: var(--brand); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }
.legal-text { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); font-size: 14.5px; }

/* ------------------------- Partage de l'application ---------------------- */
.share-poster { display: grid; grid-template-columns: 1fr; gap: 18px; }
.share-qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid var(--brand-soft);
}
.share-brandline { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 16px; }
.share-brandline img { border-radius: 14px; flex: 0 0 auto; }
.share-brandline strong { display: block; font-size: 17px; }
.share-brandline span { font-size: 12.5px; color: var(--muted); }
.qr-box {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  max-width: 320px;
  margin: 0 auto;
}
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-box p { margin: 6px 0; font-size: 14px; }
.qr-caption { font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.qr-url { font-size: 13px; font-weight: 700; color: var(--brand-dark); overflow-wrap: anywhere; margin: 0; }

.share-side { display: grid; grid-template-columns: 1fr; gap: 16px; }
.share-block { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.share-h { font-size: 16px; margin-bottom: 12px; }
.share-link-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-link-row input { flex: 1 1 200px; min-width: 0; font-size: 14px; }
.share-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s ease, transform .12s ease;
}
.share-btn:hover { text-decoration: none; border-color: var(--brand); }
.share-btn:active { transform: scale(.99); }
.share-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
}
.share-btn.wa .share-ico { background: #25D366; }
.share-btn.sms .share-ico { background: var(--blue); }
.share-btn.mail .share-ico { background: var(--coral); }
.share-btn.more .share-ico { background: var(--brand); }
.share-label { display: flex; flex-direction: column; font-weight: 700; font-size: 14.5px; }
.share-label small { font-weight: 500; font-size: 12px; color: var(--muted); }

@media print {
  .no-print, .site-footer, .burger, .tabbar, .pc-nav, .side-menu, .menu-overlay, #app-splash { display: none !important; }
  body { background: #fff; padding: 0 !important; font-size: 13px; }
  .page { padding: 0 !important; max-width: 100% !important; }
  .page-head { display: none !important; }
  .share-poster { display: block !important; }
  .share-qr-card { border: 2px solid #14142B; box-shadow: none; page-break-inside: avoid; }
  .qr-url { font-size: 15px; }
  .qr-caption { display: block; }
}

/* =========================== Écran ordinateur ============================ */
@media (min-width: 768px) {
  .room-list, .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .translate-controls { grid-template-columns: 1fr auto 1fr; }
  .form-actions .btn { flex: 0 0 auto; min-width: 180px; }
  .share-poster { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; gap: 22px; }
  .share-side { gap: 18px; }
  .share-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  body { padding-bottom: 40px; padding-left: 260px; }
  .burger, .tabbar, .side-menu, .menu-overlay { display: none !important; }
  .pc-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    padding: 24px 18px;
    z-index: 60;
  }
  .pc-brand { display: flex; align-items: center; gap: 10px; }
  .pc-brand img { border-radius: 12px; }
  .pc-links { display: flex; flex-direction: column; gap: 4px; }
  .pc-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--ink);
    font-weight: 600;
    font-size: 14.5px;
  }
  .pc-links a:hover { background: var(--brand-soft); text-decoration: none; }
  .pc-links a svg { color: var(--brand); }
  .pc-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .page { margin-left: auto; margin-right: auto; padding-top: 34px; }
  .auth-body .page { padding-top: 40px; }
  .chat-page { padding-left: 18px; padding-right: 18px; }
  .chat-messages { padding: 6px 4px 120px; }
  .composer { position: sticky; bottom: 0; border-radius: 20px; margin-top: 10px; }
  .room-list, .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { border-radius: 24px; margin-bottom: 24px; }
  .toasts { left: auto; right: 24px; width: 360px; bottom: 24px; }
}
