/* ==========================================================================
   GROUPE MASTERY — Modern Premium Design System (Linear / Vercel / Stripe Grade)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

img {
  pointer-events: none !important;
  -webkit-user-drag: none !important;
}

:root {
  /* Matte Obsidian & Deep Slate Palette */
  --bg-main: #06070a;
  --bg-nav: rgba(10, 12, 17, 0.82);
  --bg-section: #0a0c11;
  --bg-card: #11141d;
  --bg-card-hover: #161a26;
  
  /* Precision Border Tokens */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  
  /* Editorial Typography Tokens */
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  /* Brand Metallic & Platform Color Tokens */
  --accent-metallic: #e2e8f0;
  --telegram-color: #0088cc;
  --twitch-color: #9146ff;
  --guns-color: #ef4444;
  --klone-color: #3b82f6;
  --discord-color: #5865f2;

  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header & Navigation (Vercel / Linear Style Blur Bar)
   ========================================================================== */
.top-nav {
  width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.95rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.76rem;
  color: #38bdf8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-telegram-btn {
  background: var(--telegram-color);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-telegram-btn:hover {
  background: #0099e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Hero Section (Editorial & Clean Matte Layout)
   ========================================================================== */
.hero-banner {
  width: 100%;
  background: var(--bg-main);
  padding: 5rem 2rem 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.hero-content {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
}

.hero-logo-center {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.1;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-sub);
  max-width: 720px;
  line-height: 1.65;
  font-weight: 400;
}

.casino-notice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: #cbd5e1;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  font-size: 0.92rem;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.casino-notice i {
  color: #38bdf8;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.main-telegram-cta {
  background: #0088cc;
  color: #ffffff;
  padding: 1.05rem 2.2rem;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.main-telegram-cta:hover {
  background: #0099e6;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   5-Cards Grid Section (Refined Modern Cards)
   ========================================================================== */
.full-links-section {
  width: 100%;
  padding: 5rem 2rem;
  background: var(--bg-section);
  flex-grow: 1;
}

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
}

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

.cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.22s ease;
}

.grid-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Card Header & Icons */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

/* Brand Card Themes */
.telegram-grid-card::before { background: var(--telegram-color); }
.icon-telegram { color: var(--telegram-color); background: rgba(0, 136, 204, 0.12); border-color: rgba(0, 136, 204, 0.25); }
.telegram-grid-card .card-badge { background: rgba(0, 136, 204, 0.15); color: #38bdf8; border: 1px solid rgba(0, 136, 204, 0.3); }

.twitch-grid-card::before { background: var(--twitch-color); }
.icon-twitch { color: var(--twitch-color); background: rgba(145, 70, 255, 0.12); border-color: rgba(145, 70, 255, 0.25); }

.guns-grid-card::before { background: var(--guns-color); }
.icon-guns { color: var(--guns-color); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.25); }

.klone-grid-card::before { background: var(--klone-color); }
.icon-klone { color: var(--klone-color); background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.25); }

.discord-grid-card::before { background: var(--discord-color); }
.icon-discord { color: var(--discord-color); background: rgba(88, 101, 242, 0.12); border-color: rgba(88, 101, 242, 0.25); }

/* Card Content Body */
.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.015em;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.card-footer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.grid-card:hover .card-footer-btn {
  background: #ffffff;
  color: #06070a;
  border-color: #ffffff;
}

/* ==========================================================================
   Section Jeu Responsable & Mentions Légales
   ========================================================================== */
.tos-warning-section {
  width: 100%;
  padding: 4.5rem 2rem;
  background: #07080d;
  border-top: 1px solid var(--border-subtle);
}

.tos-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tos-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.badge-age {
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.tos-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

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

.tos-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tos-icon {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.tos-icon.red { color: #ef4444; }
.tos-icon.amber { color: #f59e0b; }
.tos-icon.blue { color: #38bdf8; }

.tos-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.tos-card p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.help-link {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s ease;
}

.help-link:hover {
  color: #7dd3fc;
}

.tos-disclaimer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Vercel-Grade Clean Footer
   ========================================================================== */
.full-footer {
  width: 100%;
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem 2.5rem;
}

.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-brand-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.footer-badge-18 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.badge-18-pill {
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}

/* ==========================================================================
   Mandatory 18+ Confirmation Modal (Clean Refined Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 7, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 2.2rem 1.8rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.modal-rules-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.modal-rules-box p {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.icon-red { color: #ef4444; margin-right: 0.4rem; }
.icon-amber { color: #f59e0b; margin-right: 0.4rem; }
.icon-blue { color: #38bdf8; margin-right: 0.4rem; }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-confirm-telegram {
  width: 100%;
  background: #0088cc;
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-confirm-telegram:hover {
  background: #0099e6;
}

.btn-cancel-modal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-modal:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.3rem;
  }

  .main-telegram-cta {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
  }

  .nav-content, .hero-banner, .full-links-section, .tos-warning-section, .full-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
