/* =========================================================================
   MONDIAL DES POTES — Frontpage (Stade de nuit)
   Self-contained CSS for the public landing page (views/landing.php).
   Every other page uses public/assets/app.css via views/layout.php.
   ========================================================================= */
:root {
  --bg:        #0a1426;
  --bg-deep:   #060c1a;
  --ink:       #f5f7ff;
  --muted:     #8aa0c8;
  --rule:      rgba(255, 255, 255, 0.12);
  --rule-soft: rgba(255, 255, 255, 0.06);
  --surface:   rgba(255, 255, 255, 0.04);
  --accent:    #f5c14b;  /* floodlight amber */
  --accent-2:  #e89a2b;
  --cool:      #5b8ce8;  /* electric blue */

  --font-display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(60% 50% at 50% -5%, rgba(91, 140, 232, 0.35) 0%, transparent 65%),
    radial-gradient(40% 35% at 80% 100%, rgba(245, 193, 75, 0.20) 0%, transparent 60%),
    radial-gradient(40% 35% at 20% 100%, rgba(91, 140, 232, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Floodlight bloom — purely decorative */
body::before {
  content: '';
  position: fixed;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 140vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 193, 75, 0.35) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Faint pitch lines */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ----- Layout ---------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 18px;
}

.site-header,
.hero,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* ----- Header ---------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.brand-name { white-space: nowrap; }
.brand-name .short { display: inline; }
.brand-name .full  { display: none; }

.status {
  color: var(--muted);
  white-space: nowrap;
}

@media (min-width: 720px) {
  .site-header { padding: 24px 0; font-size: 12px; }
  .brand-name .short { display: none; }
  .brand-name .full  { display: inline; }
  .page { padding: 0 56px; }
}

/* ----- Hero ------------------------------------------------------------ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 0 24px;
  gap: 22px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cool);
  margin: 0;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 13vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(91, 140, 232, 0.35);
}

.headline .accent {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tagline {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
}

/* Countdown chips */
.countdown {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 6px 0 4px;
}
.chip {
  padding: 10px 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 84px;
  text-align: center;
}
.chip .v {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--accent);
  display: block;
  line-height: 1;
}
.chip .l {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.chip-sep {
  align-self: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 18px;
  opacity: 0.5;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 17px 28px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  border: none;
  color: #1a1408;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow:
    0 12px 32px rgba(245, 193, 75, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover {
  box-shadow:
    0 16px 38px rgba(245, 193, 75, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  border: 1.5px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.20);
}

@media (min-width: 720px) {
  .hero { padding: 60px 0 48px; gap: 28px; }
  .cta-row {
    flex-direction: row;
    max-width: none;
    width: auto;
    gap: 14px;
  }
  .btn { padding: 18px 32px; }
}

/* ----- Footer ---------------------------------------------------------- */
.site-footer {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (min-width: 720px) {
  .site-footer { font-size: 11px; padding: 22px 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
