/* france-football-media.org — graphite_lime */

:root {
  --bg: #131313;
  --surface: #1C1C1C;
  --surface-alt: #262626;
  --primary: #A3E635;
  --primary-hover: #84CC16;
  --secondary: #22D3EE;
  --accent: #F472B6;
  --text: #FAFAFA;
  --text-secondary: #C4C4C4;
  --text-muted: #7C7C7C;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 8px;
  --font-display: "Avenir Next", Avenir, "Century Gothic", Candara, "Gill Sans", sans-serif;
  --font-body: "Avenir Next", Avenir, Candara, "Gill Sans", "Segoe UI", sans-serif;
  --max-width: 720px;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(163, 230, 53, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(34, 211, 238, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(244, 114, 182, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0e0e0e 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(19, 19, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

@media (min-width: 480px) {
  .brand-name {
    max-width: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

/* Main */

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero / Coming soon */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  animation: grid-fade 8s ease-in-out infinite alternate;
}

@keyframes grid-fade {
  from { opacity: 0.4; }
  to { opacity: 0.85; }
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-brand span {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero-copy {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.notify {
  max-width: 26rem;
  margin: 0 auto;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .notify-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.notify-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notify-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify-form input[type="email"]:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.notify-form input[type="email"]:focus {
  border-color: var(--primary);
  background: var(--surface-alt);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #131313;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface);
}

.notify-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.notify-success {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.notify-success.is-visible {
  display: block;
  animation: rise-in 0.4s ease both;
}

/* Legal pages */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  animation: rise-in 0.6s ease both;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.page article section {
  margin-bottom: 1.75rem;
}

.page h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page p,
.page li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.page ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page li::marker {
  color: var(--primary);
}

.page code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--secondary);
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(19, 19, 19, 0.6);
  padding: 1.5rem 1.25rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease,
              visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content,
  .notify,
  .page {
    animation: none;
  }
}
