/* ═══════════════════════════════════════════════════════
   AFK Club — Page d'accueil publique
   Système de design volontairement séparé du dashboard (style.css) : variables
   préfixées --home-*, classes préfixées .home-, aucun partage avec style.css.
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --home-bg: #08090B;
  --home-bg-alt: #0E1012;
  --home-card: #111315;
  --home-card-hover: #15181B;
  --home-border: #1E2226;
  --home-border-light: #2A2F34;

  --home-text: #F4F6F7;
  --home-text-muted: #8C949C;
  --home-text-dim: #5C636A;

  --home-accent: #2FE8A6;
  --home-accent-dark: #19B37E;
  --home-accent-glow: rgba(47, 232, 166, .14);
  --home-danger: #F43F5E;

  --home-radius-sm: 8px;
  --home-radius-md: 14px;
  --home-radius-lg: 20px;
  --home-maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Sora', 'Manrope', system-ui, sans-serif; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.home-wrap { max-width: var(--home-maxw); margin: 0 auto; padding: 0 24px; }
.home-eyebrow { color: var(--home-accent); font-weight: 700; font-size: .8rem; letter-spacing: .4px; text-transform: uppercase; }
.home-section { padding: 90px 0; }
.home-section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.home-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.home-section-head p { color: var(--home-text-muted); font-size: 1.02rem; }

/* ─── Boutons ─── */
.home-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--home-radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.home-btn-primary { background: var(--home-accent); color: #06130D; }
.home-btn-primary:hover { background: var(--home-accent-dark); }
.home-btn-ghost { background: var(--home-card); border-color: var(--home-border-light); color: var(--home-text); }
.home-btn-ghost:hover { background: var(--home-card-hover); }
.home-btn-block { width: 100%; }

/* ─── Nav ─── */
.home-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 11, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--home-border);
}
.home-nav .home-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.home-nav-left { display: flex; align-items: center; gap: 36px; }
.home-brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.05rem; }
.home-brand img { height: 26px; width: auto; }
.home-nav-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 600; color: var(--home-text-muted); }
.home-nav-links > a, .home-nav-links > .home-nav-feat { color: var(--home-text-muted); display: flex; align-items: center; gap: 6px; }
.home-nav-links > a:hover, .home-nav-feat:hover { color: var(--home-text); }
.home-nav-right { display: flex; align-items: center; gap: 12px; }
.home-discord-link {
  width: 38px; height: 38px; border-radius: var(--home-radius-sm); display: flex; align-items: center; justify-content: center;
  background: var(--home-card); border: 1px solid var(--home-border-light); color: var(--home-text-muted); font-size: 1.05rem;
}
.home-discord-link:hover { color: var(--home-text); }

.home-nav-feat { position: relative; background: none; border: none; }
.home-mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--home-card); border: 1px solid var(--home-border-light); border-radius: var(--home-radius-md);
  padding: 18px; display: none; gap: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.5); min-width: 420px;
}
.home-nav-feat.open .home-mega { display: flex; }
.home-mega-col { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.home-mega-col strong { color: var(--home-text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.home-mega-col a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--home-text-muted); }
.home-mega-col a:hover { background: var(--home-bg-alt); color: var(--home-text); }
.home-mega-col a i { width: 16px; color: var(--home-accent); font-size: .85rem; }

/* ─── Hero ─── */
.home-hero { padding: 90px 0 60px; text-align: center; position: relative; overflow: hidden; }
.home-hero > .home-wrap { position: relative; z-index: 1; }
/* Mascotte décorative, cachée sous ~1150px pour ne jamais chevaucher le texte centré
   (sa marge latérale devient trop étroite en dessous) — purement décoratif (alt=""). */
.home-hero-mascot {
  display: none; position: absolute; right: 2%; bottom: -10px; height: 430px; width: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); pointer-events: none; z-index: 0;
}
@media (min-width: 1150px) {
  .home-hero-mascot { display: block; }
}
.home-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; margin: 16px 0 18px; }
.home-hero p.home-sub { color: var(--home-text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; }
.home-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.home-stats { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.home-stat { text-align: center; }
.home-stat strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; }
.home-stat span { color: var(--home-text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; }

/* ─── Bento features ─── */
.home-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-bento-cell {
  background: var(--home-card); border: 1px solid var(--home-border); border-radius: var(--home-radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.home-bento-cell.span-2 { grid-column: span 2; }
.home-bento-cell.span-4 { grid-column: span 4; }
.home-bento-visual {
  border-radius: var(--home-radius-sm); overflow: hidden; background: var(--home-bg-alt); border: 1px solid var(--home-border);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: var(--home-text-dim); font-size: .85rem;
}
.home-bento-visual img { width: 100%; height: 100%; object-fit: cover; }
.home-bento-cell h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.home-bento-cell h3 i { color: var(--home-accent); }
.home-bento-cell p { color: var(--home-text-muted); font-size: .88rem; }

/* ─── Pricing ─── */
.home-billing-toggle {
  display: inline-flex; align-items: center; gap: 2px; background: var(--home-card); border: 1px solid var(--home-border-light);
  border-radius: 999px; padding: 4px; margin: 0 auto 40px; justify-content: center;
}
.home-billing-toggle { display: flex; width: fit-content; }
.home-billing-btn { padding: 8px 18px; border-radius: 999px; border: none; background: none; color: var(--home-text-muted); font-weight: 700; font-size: .88rem; }
.home-billing-btn.active { background: var(--home-accent); color: #06130D; }
.home-billing-btn .home-save-tag { margin-left: 6px; color: var(--home-accent); font-size: .76rem; }
.home-billing-btn.active .home-save-tag { color: #06130D; opacity: .75; }

.home-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.home-price-card {
  background: var(--home-card); border: 1px solid var(--home-border); border-radius: var(--home-radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative;
}
.home-price-card.highlight { border-color: var(--home-accent); box-shadow: 0 0 0 1px var(--home-accent), 0 20px 60px var(--home-accent-glow); }
.home-price-badge {
  position: absolute; top: -13px; right: 24px; background: var(--home-accent); color: #06130D; font-size: .72rem;
  font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .3px;
}
.home-price-card h3 { font-size: 1.1rem; }
.home-price-amount { display: flex; align-items: baseline; gap: 6px; }
.home-price-amount strong { font-family: 'Sora', sans-serif; font-size: 2.3rem; font-weight: 800; }
.home-price-amount span { color: var(--home-text-dim); font-size: .85rem; }
.home-price-desc { color: var(--home-text-muted); font-size: .88rem; }
.home-price-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: var(--home-text); flex: 1; }
.home-price-feats li { display: flex; align-items: flex-start; gap: 9px; }
.home-price-feats li i { color: var(--home-accent); margin-top: 3px; font-size: .78rem; }
.home-slider-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-slider-row strong { font-family: 'Sora', sans-serif; font-size: 1.1rem; }
.home-slider { width: 100%; accent-color: var(--home-accent); }

/* ─── Démo interactive ─── */
.home-demo-panel {
  background: var(--home-card); border: 1px solid var(--home-border); border-radius: var(--home-radius-lg);
  padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.home-demo-panel h3 { font-size: 1.4rem; margin-bottom: 8px; }
.home-demo-panel p { color: var(--home-text-muted); max-width: 440px; }

/* ─── FAQ ─── */
.home-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.home-faq-item { background: var(--home-card); border: 1px solid var(--home-border); border-radius: var(--home-radius-md); overflow: hidden; }
.home-faq-q {
  width: 100%; background: none; border: none; color: var(--home-text); text-align: left; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .96rem;
}
.home-faq-q i { color: var(--home-text-dim); transition: transform .15s; }
.home-faq-item.open .home-faq-q i { transform: rotate(180deg); color: var(--home-accent); }
.home-faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.home-faq-item.open .home-faq-a { max-height: 240px; }
.home-faq-a div { padding: 0 20px 18px; color: var(--home-text-muted); font-size: .9rem; }

/* ─── CTA final ─── */
.home-final-cta {
  background: linear-gradient(135deg, var(--home-card), var(--home-bg-alt)); border: 1px solid var(--home-border-light);
  border-radius: var(--home-radius-lg); padding: 50px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.home-final-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 560px; }

/* ─── Footer ─── */
.home-footer { border-top: 1px solid var(--home-border); padding: 50px 0 30px; }
.home-footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.home-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 36px; }
.home-footer-col strong { display: block; color: var(--home-text-dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.home-footer-col a { display: block; color: var(--home-text-muted); font-size: .88rem; padding: 4px 0; }
.home-footer-col a:hover { color: var(--home-text); }
.home-footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--home-text-dim); font-size: .82rem; flex-wrap: wrap; gap: 10px; }

/* ─── Modale démo ─── */
.home-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.home-modal-overlay.open { display: flex; }
.home-modal {
  background: var(--home-card); border: 1px solid var(--home-border-light); border-radius: var(--home-radius-md);
  padding: 28px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px;
}
.home-modal h3 { font-size: 1.1rem; }
.home-modal p { color: var(--home-text-muted); font-size: .9rem; }
.home-modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.home-modal-error { color: var(--home-danger); font-size: .85rem; display: none; }

@media (max-width: 860px) {
  .home-nav-links { display: none; }
  .home-bento { grid-template-columns: 1fr 1fr; }
  .home-bento-cell.span-2, .home-bento-cell.span-4 { grid-column: span 2; }
  .home-pricing-grid { grid-template-columns: 1fr; }
  .home-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .home-demo-panel { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .home-bento { grid-template-columns: 1fr; }
  .home-bento-cell.span-2, .home-bento-cell.span-4 { grid-column: span 1; }
  .home-stats { gap: 26px; }
  .home-footer-cols { grid-template-columns: 1fr 1fr; }
}
