:root {
  --bg: #020b06;
  --bg-alt: #041107;
  --card: #072112;
  --card-alt: #0c2f1b;
  --text: #e7ffe8;
  --muted: #7de7a0;
  --accent: #39ff80;
  --accent-strong: #19d85a;
  --pill: rgba(57, 255, 128, 0.16);
  --border: rgba(57, 255, 128, 0.35);
  --shadow: 0 0 30px rgba(57, 255, 128, 0.25);
  --banner-fallback: url("../image/banner.gif");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(57, 255, 128, 0.18), transparent 50%), var(--bg);
  line-height: 1.6;
}

body.lmao-page {
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, rgba(57, 255, 128, 0.18), transparent 50%), var(--banner-fallback);
  background-size: 900px 900px, cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top, center center;
}

@media (max-width: 768px) {
  body.lmao-page {
    background-attachment: scroll;
    background-size: 600px 600px, cover;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 13, 6, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg);
  font-size: 1.3rem;
}

.brand-label {
  margin: 0;
  font-weight: 600;
}

.brand-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(57, 255, 128, 0.18);
  color: var(--text);
}

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}

.cta-button {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  padding: 5rem 0;
}

.hero.slim {
  padding: 3.5rem 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.metrics dt {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4rem 0;
}

.section.highlight {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.timeline li {
  background: var(--card-alt);
  border-radius: 16px;
  padding: 1.4rem;
  border: 1px dashed var(--border);
}

.command-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.meta-card {
  text-align: center;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  padding: 1rem;
  text-align: left;
}

thead {
  background: var(--card-alt);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

code {
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.command-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.command-list li p {
  margin: 0;
}

.highlight-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}

.site-footer {
  background: #030305;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
}

.meta-small {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.cta-link {
  display: inline-flex;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.nav-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 13, 6, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  flex: 1;
  max-width: 320px;
  min-width: 220px;
}

.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.nav-search-input::placeholder {
  color: var(--muted);
}

.nav-search-button {
  border: none;
  background: var(--accent);
  color: #041205;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-search-input.nav-search-error {
  animation: nav-search-error 0.3s ease;
}

@keyframes nav-search-error {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

.support-badge {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(2, 11, 6, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.support-badge:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.support-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.discord-lmao {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(2, 11, 6, 0.8);
  box-shadow: var(--shadow);
  position: relative;
}

.discord-banner {
  background-size: cover;
  background-position: center;
  min-height: 220px;
  position: relative;
  background-color: var(--card);
}

.discord-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 11, 6, 0.1), rgba(2, 11, 6, 0.9));
}

.discord-meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem;
  position: relative;
}

.discord-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(7, 33, 18, 0.85);
  box-shadow: var(--shadow);
  object-fit: cover;
  background: #031005;
}

.discord-text h2 {
  margin: 0.1rem 0;
  font-size: 1.9rem;
}

.lmao-handle {
  margin: 0;
  color: var(--muted);
}

.view-count {
  margin: 0.5rem 0 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(57, 255, 128, 0.75);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.spotify-section {
  margin-top: 2rem;
  padding: 0 2rem 2rem;
}

.spotify-card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}

.spotify-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spotify-icon {
  width: 48px;
  height: 48px;
  color: #1db954;
  flex-shrink: 0;
}

.spotify-info {
  flex: 1;
  min-width: 0;
}

.spotify-label {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.spotify-title {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-container {
  margin-top: 1rem;
}

.spotify-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--card-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.spotify-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1db954, #1ed760);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.spotify-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.spotify-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 12px;
  color: #1db954;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}

.spotify-link:hover {
  background: rgba(29, 185, 84, 0.2);
  border-color: rgba(29, 185, 84, 0.5);
  transform: translateY(-2px);
}

/* Version Mobile */
@media (max-width: 768px) {
  .container {
    width: 95vw;
    padding: 0 1rem;
  }

  /* Header */
  .header-content {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }

  .brand-block {
    justify-content: center;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .brand-label {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .main-nav a {
    padding: 0.35rem 0.65rem;
  }

  .nav-search-form {
    max-width: 100%;
    min-width: auto;
    order: 3;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Support Badge */
  .support-badge {
    top: 8px;
    left: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .support-badge svg {
    width: 16px;
    height: 16px;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .cta-button,
  .hero-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .metrics dt {
    font-size: 1.5rem;
  }

  /* Sections */
  .section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Grilles */
  .grid.two-columns,
  .grid.three-columns {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  /* Profil Discord */
  .discord-banner {
    min-height: 150px;
  }

  .discord-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .discord-avatar {
    width: 100px;
    height: 100px;
  }

  .discord-text {
    width: 100%;
  }

  .discord-text h2 {
    font-size: 1.5rem;
  }

  .status-row {
    justify-content: center;
  }

  /* Activités */
  .activities-section {
    padding: 1.5rem 0;
  }

  .activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .activity-card {
    padding: 1rem;
  }

  /* Spotify */
  .spotify-section {
    padding: 0 1rem 1rem;
  }

  .spotify-card {
    padding: 1.2rem;
  }

  .spotify-header {
    gap: 0.75rem;
  }

  .spotify-icon {
    width: 40px;
    height: 40px;
  }

  .spotify-title {
    font-size: 1rem;
  }

  .spotify-artist {
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline {
    gap: 1rem;
  }

  .timeline li {
    padding: 1.2rem;
  }

  /* Commandes */
  .command-meta-grid {
    grid-template-columns: 1fr;
  }

  .command-list {
    gap: 0.5rem;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  /* Tables */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 500px;
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
  }

  /* Navigation search */
  .nav-search-form {
    width: 100%;
  }

  /* Highlight content */
  .highlight-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-stack {
    width: 100%;
    min-width: auto;
  }

  /* Lead text */
  .lead {
    font-size: 0.95rem;
  }

  /* Pill */
  .pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
  }
}

/* Version Mobile Petite */
@media (max-width: 480px) {
  .container {
    width: 98vw;
    padding: 0 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .card {
    padding: 1.2rem;
  }

  .discord-banner {
    min-height: 120px;
  }

  .discord-avatar {
    width: 80px;
    height: 80px;
  }

  .discord-text h2 {
    font-size: 1.3rem;
  }

  .support-badge {
    top: 6px;
    left: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .main-nav {
    font-size: 0.8rem;
  }

  .main-nav a {
    padding: 0.3rem 0.5rem;
  }

  .cta-button,
  .ghost-button {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .metrics dt {
    font-size: 1.3rem;
  }
}


