/* ==========================================================================
   MEEVO — Styles (inspirés de l'interface Discord)
   ========================================================================== */

:root {
  /* Palette Discord */
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --blurple-soft: rgba(88, 101, 242, 0.16);
  --green: #23a559;
  --yellow: #f0b232;
  --red: #f23f43;
  --fuchsia: #eb459e;

  --bg-0: #1e1f22; /* rail serveurs */
  --bg-1: #2b2d31; /* liste salons */
  --bg-2: #313338; /* zone messages */
  --bg-3: #383a40; /* champs, survol */
  --bg-4: #404249; /* sélection */
  --bg-deep: #111214; /* landing */
  --border: rgba(255, 255, 255, 0.06);

  --text: #dbdee1;
  --text-strong: #f2f3f5;
  --muted: #949ba4;
  --faint: #6d6f78;

  --premium: linear-gradient(135deg, #8547c6 0%, #b845c1 50%, #ab5d8a 100%);

  --radius: 8px;
  --radius-lg: 16px;
  --font: "Noto Sans", "gg sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --mono: "JetBrains Mono", Consolas, "Andale Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-0);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--text-strong);
}
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }

/* -------------------------------------------------------------------------- */
/* Boutons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: background 0.17s, transform 0.17s, box-shadow 0.17s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blurple); color: #fff; box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35); }
.btn-primary:hover { background: var(--blurple-hover); }
.btn-secondary { background: var(--bg-3); color: var(--text-strong); }
.btn-secondary:hover { background: var(--bg-4); }
.btn-white { background: #fff; color: #23272a; }
.btn-white:hover { color: var(--blurple); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.btn-premium { background: var(--premium); color: #fff; }
.btn-premium:hover { box-shadow: 0 8px 24px rgba(184, 69, 193, 0.4); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--premium);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-premium [data-lucide], .badge-premium .lucide { width: 12px; height: 12px; }

/* -------------------------------------------------------------------------- */
/* Navigation                                                                 */
/* -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 18, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--font-display); color: #fff; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

@media (max-width: 860px) {
  .nav-inner { gap: 12px; padding: 0 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-0);
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-actions .btn-secondary { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Landing                                                                    */
/* -------------------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 900px;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(88, 101, 242, 0.45), transparent),
    radial-gradient(closest-side at 75% 35%, rgba(235, 69, 158, 0.22), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}
.eyebrow .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green);
}
.eyebrow .dot [data-lucide], .eyebrow .dot .lucide { width: 13px; height: 13px; color: #fff; }
.hero h1 {
  margin: 20px 0 18px;
  font: 800 clamp(40px, 6vw, 68px)/1.04 var(--font-display);
  letter-spacing: -0.03em;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #8d96ff, #c9a8ff 60%, #ff8ccf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 24px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta [data-lucide], .hero-meta .lucide { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Fenêtre Discord factice */
.dc-window {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  overflow: hidden;
  font-size: 15px;
}
.dc-window-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: var(--text-strong);
}
.dc-window-bar [data-lucide], .dc-window-bar .lucide { color: var(--muted); }
.dc-window-bar .topic { color: var(--muted); font-weight: 400; font-size: 14px; border-left: 1px solid var(--bg-4); padding-left: 10px; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-messages { padding: 16px 0 8px; }
.dc-msg { display: flex; gap: 16px; padding: 4px 16px; }
.dc-msg + .dc-msg { margin-top: 14px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }
.dc-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.dc-name { font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: 6px; }
.dc-name time { font-size: 12px; color: var(--faint); font-weight: 400; }
.dc-app-tag {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--blurple); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; text-transform: uppercase;
}
.dc-app-tag [data-lucide], .dc-app-tag .lucide { width: 10px; height: 10px; stroke-width: 3; }
.dc-cmd-used { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dc-cmd-used b { color: var(--blurple); font-weight: 500; }
.dc-embed {
  margin-top: 6px;
  background: var(--bg-1);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 10px 14px 12px;
  max-width: 440px;
}
.dc-embed-title { font-weight: 700; color: var(--text-strong); display: flex; gap: 8px; align-items: center; }
.dc-embed-title [data-lucide], .dc-embed-title .lucide { width: 18px; height: 18px; color: var(--green); }
.dc-embed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 8px; font-size: 14px; }
.dc-embed-fields small { display: block; font-weight: 700; color: var(--text-strong); font-size: 12px; }
.dc-buttons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #fff; background: var(--bg-4); }
.dc-btn.blurple { background: var(--blurple); }
.dc-btn.green { background: var(--green); }
.dc-btn [data-lucide], .dc-btn .lucide { width: 16px; height: 16px; }
.dc-input {
  margin: 12px 16px 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--faint);
}
.dc-input .typed { color: var(--text-strong); }
.dc-input .caret { display: inline-block; width: 2px; height: 18px; background: var(--text-strong); animation: blink 1s steps(1) infinite; vertical-align: middle; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { color: var(--blurple); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* Catégories */
.cat-block + .cat-block { margin-top: 56px; }
.cat-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cat-title h3 { font: 700 22px var(--font-display); color: #fff; margin: 0; }
.cat-title a { margin-left: auto; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.cat-title a:hover { color: #fff; }
.cat-title a [data-lucide], .cat-title a .lucide { width: 16px; height: 16px; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--tile, var(--blurple));
  color: #fff;
  flex-shrink: 0;
}
.icon-tile.sm { width: 36px; height: 36px; border-radius: 10px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(88, 101, 242, 0.5); background: #2f3136; }
.feature-card h4 { margin: 0; color: #fff; font-size: 17px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-card .count { margin-top: auto; font-size: 13px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.feature-card .count [data-lucide], .feature-card .count .lucide { width: 14px; height: 14px; }
.feature-card .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tile-soft); color: var(--tile); }

/* Stats bande */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.stat b { display: block; font: 800 36px var(--font-display); color: #fff; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* Premium */
.premium {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 56px;
  background: var(--premium);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.premium::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}
.premium h2 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--font-display); margin: 12px 0; letter-spacing: -0.02em; }
.premium p { opacity: 0.9; font-size: 17px; margin: 0 0 28px; }
.premium .kicker { color: rgba(255, 255, 255, 0.85); display: inline-flex; gap: 6px; align-items: center; }
.premium-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.premium-list li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 500;
}
.premium-list li [data-lucide], .premium-list li .lucide { color: #ffd6f2; }
@media (max-width: 860px) {
  .premium { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* CTA final */
.cta {
  text-align: center;
  padding: 72px 24px;
  border-radius: 24px;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(88, 101, 242, 0.45), transparent),
    var(--bg-1);
  border: 1px solid var(--border);
}
.cta img { width: 72px; height: 72px; margin: 0 auto 20px; }
.cta h2 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--font-display); color: #fff; margin: 0 0 12px; }
.cta p { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 96px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.lang-switch button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 12px/1 var(--font);
  letter-spacing: 0.04em;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--blurple); color: #fff; }
.nav-links a.active { background: rgba(255, 255, 255, 0.06); color: #fff; }
@media (max-width: 860px) {
  .nav-actions .lang-switch button { padding: 0 8px; }
}
@media (max-width: 420px) {
  .nav-actions .btn-primary span { display: none; }
  .nav-actions .btn-primary { padding: 0 12px; }
}

/* -------------------------------------------------------------------------- */
/* Emojis Fluent                                                              */
/* -------------------------------------------------------------------------- */
img.emoji { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; display: inline-block; }
.emoji-tile {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tile-soft, rgba(255, 255, 255, 0.06));
  flex-shrink: 0;
}
.emoji-tile img.emoji { width: 28px; height: 28px; }
.emoji-tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.emoji-tile.sm img.emoji { width: 22px; height: 22px; }
.emoji-tile.lg { width: 64px; height: 64px; border-radius: 18px; }
.emoji-tile.lg img.emoji { width: 42px; height: 42px; }

/* -------------------------------------------------------------------------- */
/* Panneau Components V2 (aperçu d'un message de Meevo)                       */
/* -------------------------------------------------------------------------- */
.cv2-msg { display: flex; gap: 14px; font-size: 14px; color: var(--text); text-align: left; }
.cv2-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.cv2-body { flex: 1; min-width: 0; }
.cv2-author { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-strong); font-size: 15px; margin-bottom: 6px; }
.cv2-author time { font-size: 12px; color: var(--faint); font-weight: 400; margin-left: 2px; }
.cv2 {
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cv2-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.cv2-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: #fff; }
.cv2-head p { margin: 4px 0 0; font-size: 14px; color: var(--text); line-height: 1.45; }
.cv2-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cv2-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border-radius: 8px;
  background: #3a3c42;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-weight: 600; font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv2-btn img.emoji { width: 18px; height: 18px; }
.cv2-btn [data-lucide], .cv2-btn .lucide { width: 15px; height: 15px; color: var(--muted); }
.cv2-btn.primary { background: rgba(88, 101, 242, 0.45); border-color: transparent; color: rgba(255, 255, 255, 0.7); }
.cv2-btn.primary [data-lucide], .cv2-btn.primary .lucide { color: rgba(255, 255, 255, 0.7); }
.cv2-btn.primary.solid { background: var(--blurple); color: #fff; }
a.cv2-btn:hover { filter: brightness(1.12); }
.cv2-btn.icon { width: 60px; justify-content: center; padding: 0; }
.cv2-toggle { position: relative; width: 22px; height: 13px; border-radius: 999px; background: var(--faint); }
.cv2-toggle::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.cv2-toggle.on { background: var(--green); }
.cv2-toggle.on::after { left: 11px; }
.cv2-sep { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 2px 0; }
.cv2-field { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.cv2-field-main { flex: 1; min-width: 0; }
.cv2-label { font-weight: 700; color: #fff; }
.cv2-label .star { color: var(--red); }
.cv2-label .note { font-weight: 400; color: var(--text); }
.cv2-quote {
  margin-top: 4px;
  padding-left: 12px;
  border-left: 4px solid #4e5058;
  border-radius: 2px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}
.mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.mention.role { background: rgba(240, 178, 50, 0.18); color: #f0c35a; }
.cv2-link { color: #00a8fc; }
.cv2-select {
  margin-top: 10px;
  max-width: 400px;
  height: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.cv2-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv2-select [data-lucide], .cv2-select .lucide { width: 18px; height: 18px; color: var(--text); }
@media (max-width: 520px) {
  .cv2-msg { gap: 10px; }
  .cv2-avatar { width: 32px; height: 32px; }
  .cv2 { padding: 12px; }
  .cv2-btn.icon { width: 46px; }
}

/* Aperçu dans le hero */
.hero-panel { position: relative; }
#hero-panel { transition: opacity 0.25s; min-height: 470px; }
#hero-panel.fade { opacity: 0; }
@media (max-width: 520px) { #hero-panel { min-height: 0; } }
.hero-panel .dc-window { padding: 16px 16px 0; }
.hero-panel .cv2-msg { padding: 0 0 4px; }
.hero-panel .dc-window-bar { margin: -16px -16px 16px; }

