/* ============================================================
   TFS 2026 — assets/css/tfs-base.css
   Variables & styles partagés sur toutes les pages
============================================================ */

/* ── IMPORTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  --yellow:      #ffc107;
  --yellow-dark: #e6a800;
  --yellow-glow: rgba(255, 193, 7, 0.25);
  --blue:        #00448d;
  --blue-light:  #1565c0;
  --dark:        #080808;
  --dark-2:      #111111;
  --dark-3:      #1a1a1a;
  --dark-4:      #242424;
  --dark-5:      #2e2e2e;
  --text-muted:  #888888;
  --white:       #ffffff;
  --border:      rgba(255, 255, 255, 0.06);
  --border-y:    rgba(255, 193, 7, 0.15);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --transition:  all 0.3s ease;
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 0.04em;
}

a { text-decoration: none; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 193, 7, 0.12);
  padding: 0.6rem 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.navbar-brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover { transform: scale(1.06); }

.nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--yellow) !important; }

.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.5rem); }

.dropdown-menu.dropdown-menu-dark {
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid var(--border-y);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(255, 193, 7, 0.08);
  color: var(--yellow);
}

.navbar-toggler {
  border: 1px solid rgba(255, 193, 7, 0.4);
  padding: 0.3rem 0.6rem;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,193,7,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Bouton connexion navbar */
.btn-nav-login {
  background: var(--yellow);
  color: #000 !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-nav-login:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--yellow-glow);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(8, 8, 8, 0.98);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 193, 7, 0.1);
    margin-top: 0.5rem;
    border-radius: 0 0 12px 12px;
  }

  .nav-link { font-size: 1rem; padding: 0.6rem 0 !important; }
  .nav-link::after { left: 0; }
  .nav-link:hover::after,
  .nav-link.active::after { width: 40px; }
  .btn-nav-login { display: inline-block; margin-top: 0.5rem; }
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0, 68, 141, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 60%);
}

.page-header-content { position: relative; z-index: 1; }

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--yellow);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-title .accent { color: var(--yellow); }

.page-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  max-width: 500px;
}

/* ── SECTION STYLES ──────────────────────────────────────── */
.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.section-bg-dark { background: var(--dark); }
.section-bg-dark2 { background: var(--dark-2); }

/* ── CARDS ───────────────────────────────────────────────── */
.tfs-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.tfs-card:hover {
  border-color: var(--border-y);
  transform: translateY(-4px);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-tfs-primary {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  display: inline-block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-tfs-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-tfs-primary:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--yellow-glow);
}

.btn-tfs-primary:hover::before { transform: translateX(0); }

.btn-tfs-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  transition: var(--transition);
}

.btn-tfs-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ── BADGES ──────────────────────────────────────────────── */
.tfs-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-annonce  { background: rgba(255, 193, 7, 0.15); color: var(--yellow); }
.badge-resultat { background: rgba(0, 68, 141, 0.25); color: #7eb8ff; }
.badge-partena  { background: rgba(46, 125, 50, 0.2); color: #81c784; }
.badge-live     { background: rgba(211, 47, 47, 0.2); color: #ef5350;
                  animation: pulse-live 1.5s ease-in-out infinite; }

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.tfs-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 193, 7, 0.3), transparent);
  margin: 0;
}

/* ── FORM STYLES ─────────────────────────────────────────── */
.tfs-form-group { margin-bottom: 1.25rem; }

.tfs-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  display: block;
}

.tfs-input,
.tfs-select,
.tfs-textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.tfs-input:focus,
.tfs-select:focus,
.tfs-textarea:focus {
  border-color: rgba(255, 193, 7, 0.4);
  background: var(--dark-4);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08);
}

.tfs-input::placeholder { color: rgba(255, 255, 255, 0.25); }

.tfs-select option { background: var(--dark-3); }

.tfs-textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.tfs-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-y);
  padding: 2.5rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  margin: 0 0.8rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.8rem;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-yellow  { color: var(--yellow) !important; }
.text-muted-c { color: rgba(255, 255, 255, 0.45); }

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Live dot */
.live-dot {
  width: 8px;
  height: 8px;
  background: #ef5350;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-live 1.2s ease-in-out infinite;
}

/* Score card */
.score-box {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: var(--transition);
}

.score-box.live-box {
  border-color: rgba(239, 83, 80, 0.3);
  background: rgba(239, 83, 80, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
  .page-header { padding: 4rem 0 2.5rem; }
}
