/* landing.css — page de présentation Jaikit Discussion.
 * Style autonome (aucune police externe), jour par défaut, nuit via body.sombre.
 */

[hidden] { display: none !important; }

:root {
  --land-bg: #f7f4ee;
  --land-bg-2: #efe9df;
  --land-surface: #fffdf9;
  --land-surface-2: #f5f0e7;
  --land-ink: #171522;
  --land-muted: #6e687b;
  --land-line: rgba(23, 21, 34, .1);
  --land-line-strong: rgba(23, 21, 34, .18);
  --land-accent: #6757f5;
  --land-accent-2: #ff7a59;
  --land-accent-3: #17a67a;
  --land-glow: rgba(103, 87, 245, .18);
  --land-danger: #b3261e;
  --land-shadow: 0 24px 70px rgba(40, 26, 70, .12);
  --land-radius: 22px;
  --land-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --land-display: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --land-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

body.sombre {
  --land-bg: #0d0b14;
  --land-bg-2: #14111f;
  --land-surface: #191524;
  --land-surface-2: #211b30;
  --land-ink: #f4f0ff;
  --land-muted: #b6aec8;
  --land-line: rgba(255, 255, 255, .1);
  --land-line-strong: rgba(255, 255, 255, .18);
  --land-accent: #a99cff;
  --land-accent-2: #ff9b82;
  --land-accent-3: #5ee0b4;
  --land-glow: rgba(169, 156, 255, .2);
  --land-danger: #ff9b9b;
  --land-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

body.land-page {
  margin: 0;
  min-height: 100vh;
  color: var(--land-ink);
  font-family: var(--land-font);
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(255, 169, 77, .16), transparent 60%),
    radial-gradient(ellipse 60% 60% at 92% 8%, rgba(103, 87, 245, .16), transparent 55%),
    radial-gradient(ellipse 55% 50% at 55% 100%, rgba(23, 166, 122, .1), transparent 60%),
    var(--land-bg);
  transition: background-color .25s ease, color .25s ease;
}
body.land-page.sombre {
  background:
    radial-gradient(ellipse 65% 50% at 10% 0%, rgba(255, 169, 77, .1), transparent 60%),
    radial-gradient(ellipse 60% 55% at 92% 8%, rgba(169, 156, 255, .16), transparent 55%),
    radial-gradient(ellipse 55% 50% at 55% 100%, rgba(23, 166, 122, .08), transparent 60%),
    var(--land-bg);
}

.land-page * { box-sizing: border-box; }
.land-page a { color: inherit; }
.land-page button, .land-page input, .land-page select { font: inherit; }

.land-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--land-bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--land-line);
}
.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--land-ink);
  text-decoration: none;
  font-family: var(--land-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.6px;
  white-space: nowrap;
}
.land-brand em { font-style: normal; color: var(--land-accent); }
.land-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--land-accent), var(--land-accent-2));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 24px var(--land-glow);
}
.land-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.land-links a {
  color: var(--land-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.land-links a:hover { color: var(--land-accent); }
.land-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.land-theme {
  width: 38px;
  height: 38px;
  border: 1px solid var(--land-line);
  border-radius: 12px;
  background: var(--land-surface);
  color: var(--land-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: transform .15s, border-color .15s;
}
.land-theme:hover { transform: translateY(-1px); border-color: var(--land-accent); }
.land-nav-auth { display: flex; align-items: center; gap: 8px; }
.land-nav-login, .land-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.land-nav-login {
  color: var(--land-ink);
  border: 1px solid var(--land-line-strong);
  background: var(--land-surface);
}
.land-nav-login:hover { border-color: var(--land-accent); }
.land-nav-chip {
  color: var(--land-accent);
  background: color-mix(in srgb, var(--land-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--land-accent) 30%, transparent);
}

.land-main { max-width: 1220px; margin: 0 auto; padding: 28px 24px 60px; }
.land-scene { display: block; }

.land-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 46px;
  align-items: center;
  padding: 54px 0 64px;
}
.land-eyebrow, .land-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--land-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.land-kicker { letter-spacing: 1.5px; margin-bottom: 8px; }
.land-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--land-accent-3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--land-accent-3) 16%, transparent);
}
.land-hero h1 {
  margin: 0 0 22px;
  font-family: var(--land-display);
  font-size: clamp(44px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -3.5px;
  font-weight: 800;
}
.land-gradient {
  background: linear-gradient(100deg, var(--land-accent), var(--land-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.land-lead {
  max-width: 600px;
  margin: 0 0 28px;
  color: var(--land-muted);
  font-size: 17px;
  line-height: 1.65;
}
.land-hero-actions, .land-actions, .land-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.land-btn:hover { transform: translateY(-1px); }
.land-btn-primary {
  background: linear-gradient(100deg, var(--land-accent), var(--land-accent-2));
  color: #fff;
  box-shadow: 0 12px 30px var(--land-glow);
}
.land-btn-primary:hover { box-shadow: 0 16px 38px var(--land-glow); }
.land-btn-ghost {
  background: var(--land-surface);
  color: var(--land-ink);
  border-color: var(--land-line-strong);
}
.land-btn-ghost:hover { border-color: var(--land-accent); }
.land-btn-small { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.land-btn-wide { width: 100%; }

.land-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 36px 0 0;
}
.land-stats div { display: flex; flex-direction: column; gap: 2px; }
.land-stats dt {
  font-family: var(--land-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.land-stats dd {
  margin: 0;
  color: var(--land-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.land-live-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--land-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 89, .16), transparent 45%),
    linear-gradient(160deg, #1a1626, #241c36);
  color: #f6f2ff;
  box-shadow: var(--land-shadow);
  border: 1px solid rgba(255, 255, 255, .08);
}
.land-live-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at 50% 20%, black, transparent 80%);
}
.land-live-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: .4px;
}
.land-live-head .land-dot { background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110, 231, 183, .14); }
.land-live-sub { margin-left: auto; color: #b7aec9; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.land-hero-salons { position: relative; z-index: 1; margin: 20px 0 16px; display: flex; flex-direction: column; gap: 9px; }
.land-hero-salon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
}
.land-hero-salon strong { font-family: var(--land-mono); letter-spacing: 2px; font-size: 14px; }
.land-hero-salon .land-hero-seats { margin-left: auto; color: #c9c0db; font-size: 12px; }
.land-live-note { position: relative; z-index: 1; margin: 0; color: #aaa0bd; font-size: 11px; line-height: 1.5; }
.land-live-card .land-muted { color: #b7aec9; }

.land-section { margin: 64px 0; }
.land-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.land-section-head h2 {
  margin: 0;
  font-family: var(--land-display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -1.4px;
  line-height: 1.05;
}
.land-salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.land-salon-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--land-line);
  border-radius: 18px;
  background: var(--land-surface);
  box-shadow: 0 8px 26px rgba(40, 26, 70, .05);
  transition: transform .15s, border-color .15s;
}
.land-salon-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--land-accent) 40%, var(--land-line)); }
.land-salon-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.land-salon-code {
  font-family: var(--land-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}
.land-salon-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--land-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.land-salon-status .land-dot { width: 6px; height: 6px; }
.land-salon-meta { color: var(--land-muted); font-size: 13px; }
.land-salon-card .land-btn { align-self: flex-start; margin-top: 2px; }
.land-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--land-line-strong);
  border-radius: 18px;
  color: var(--land-muted);
  background: color-mix(in srgb, var(--land-surface) 60%, transparent);
  font-size: 14px;
}

.land-join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 56px 0;
  scroll-margin-top: 90px;
}
.land-card {
  padding: 24px;
  border-radius: var(--land-radius);
  border: 1px solid var(--land-line);
  background: var(--land-surface);
  box-shadow: var(--land-shadow);
}
.land-card h2 { margin: 0 0 8px; font-family: var(--land-display); font-size: 25px; letter-spacing: -1px; }
.land-card .land-muted { margin: 0 0 18px; }
.land-muted { color: var(--land-muted); font-size: 13px; line-height: 1.55; }
.land-form { display: flex; flex-direction: column; gap: 12px; }
.land-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; }
.land-field span { color: var(--land-muted); text-transform: uppercase; letter-spacing: .7px; font-size: 10px; }
.land-field input, .land-field select {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--land-line-strong);
  background: var(--land-bg);
  color: var(--land-ink);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.land-field input:focus, .land-field select:focus {
  border-color: var(--land-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--land-accent) 16%, transparent);
}
.land-msg { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.land-msg.err { color: var(--land-danger); }
.land-msg.ok { color: var(--land-accent-3); }
.land-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--land-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.land-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: stretch;
  margin: 18px 0;
}
.land-create-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--land-accent) 35%, var(--land-line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--land-accent) 12%, transparent), transparent),
    var(--land-surface-2);
  color: var(--land-ink);
  text-align: left;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.land-create-btn:hover { transform: translateY(-2px); border-color: var(--land-accent); }
.land-create-btn strong { display: block; font-size: 15px; }
.land-create-btn small { display: block; margin-top: 2px; color: var(--land-muted); font-size: 11px; font-weight: 500; }
.land-plus {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--land-accent), var(--land-accent-2));
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 20px var(--land-glow);
}
.land-capacity { margin: 0; }
.land-auth-actions { margin-top: 16px; }

.land-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.land-feature {
  padding: 20px;
  border: 1px solid var(--land-line);
  border-radius: 18px;
  background: var(--land-surface);
  transition: transform .15s, border-color .15s;
}
.land-feature:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--land-accent) 35%, var(--land-line)); }
.land-feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--land-accent) 11%, transparent);
  font-size: 19px;
}
.land-feature h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.2px; }
.land-feature p { margin: 0; color: var(--land-muted); font-size: 13px; line-height: 1.55; }

.land-security {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--land-radius);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--land-accent) 18%, transparent), transparent 55%),
    var(--land-surface);
  border: 1px solid var(--land-line);
  box-shadow: var(--land-shadow);
}
.land-security h2 { margin: 0 0 10px; font-family: var(--land-display); font-size: 30px; letter-spacing: -1.4px; }
.land-security-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.land-security-list li {
  position: relative;
  padding-left: 20px;
  color: var(--land-muted);
  font-size: 13px;
  line-height: 1.5;
}
.land-security-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--land-accent-3);
  font-weight: 800;
}
.land-security-list strong { color: var(--land-ink); }

.land-server {
  margin: 30px 0 0;
  border-top: 1px solid var(--land-line);
  padding-top: 14px;
}
.land-server summary {
  cursor: pointer;
  color: var(--land-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
}
.land-server-body { max-width: 520px; margin-top: 12px; }
.land-server-body .land-field { margin-bottom: 10px; }

.land-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 24px 30px;
  color: var(--land-muted);
  font-size: 12px;
  border-top: 1px solid var(--land-line);
}
.land-footer a { color: var(--land-muted); text-decoration: none; }
.land-footer a:hover { color: var(--land-accent); }
.land-footer-sep { opacity: .5; }

/* Salle */
#comm-room {
  background: var(--land-surface);
  border: 1px solid var(--land-line);
  border-radius: var(--land-radius);
  padding: 22px;
  box-shadow: var(--land-shadow);
  min-height: 420px;
}
#comm-room h2, #comm-room h3 { font-family: var(--land-display); }
#comm-room .comm-help { color: var(--land-muted); }
#comm-room .comm-diag {
  background: var(--land-bg-2);
  color: var(--land-ink);
  border: 1px solid var(--land-line);
}
#comm-room .comm-code-line strong { color: var(--land-accent); }

/* Mode salon : la page de présentation disparaît, la nav reste sobre. */
body.dans-salon .land-links,
body.dans-salon .land-nav-auth,
body.dans-salon .land-footer { display: none; }
body.dans-salon .land-nav { max-width: 980px; }

@media (max-width: 980px) {
  .land-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
  .land-live-card { max-width: 560px; }
  .land-join-grid { grid-template-columns: 1fr; }
  .land-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-security { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .land-nav { padding: 12px 14px; gap: 10px; }
  .land-links { display: none; }
  .land-main { padding: 16px 14px 42px; }
  .land-hero h1 { letter-spacing: -2.4px; }
  .land-lead { font-size: 15px; }
  .land-stats { gap: 20px; }
  .land-features { grid-template-columns: 1fr; }
  .land-create { grid-template-columns: 1fr; }
  .land-capacity { max-width: 150px; }
  .land-card { padding: 18px; }
  .land-section { margin: 46px 0; }
  .land-section-head { align-items: flex-start; }
  .land-section-head h2 { font-size: 28px; }
  #comm-room { padding: 16px; }
}

.land-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 6px;
  color: var(--land-muted);
  font-size: 12px;
  line-height: 1.45;
}
.land-check input { margin-top: 2px; accent-color: var(--land-accent); }
