/* ============================================================
   Ultimate Pool Belgium — Style principal
   Fidèle au design de ultimatepoolgroup.com
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-light: #f5d77e;
  --dark:       #0d0d0d;
  --dark2:      #1a1a1a;
  --dark3:      #242424;
  --white:      #ffffff;
  --grey:       #999999;
  --grey-light: #cccccc;
  --red:        #e63946;
  --green:      #2cb67d;
  --font:       'Montserrat', 'Segoe UI', Arial, sans-serif;
  --radius:     8px;
  --transition: 0.25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  line-height: 1.3;
}

/* Nav principale */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--grey-light);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(201,168,76,0.12);
}

.main-nav a.active {
  color: var(--gold);
}

/* Bouton store (doré) */
.nav-store {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: #000 !important;
  border-radius: 30px !important;
  padding: 8px 20px !important;
}
.nav-store:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

/* Header droite : langue + login */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Sélecteur de langue */
.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-switcher a {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--grey);
  transition: all var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Login */
.btn-login {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  color: var(--white);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-login:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0d1117 100%);
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--grey-light);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.72rem;
  padding: 8px 18px;
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section {
  padding: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title span {
  color: var(--gold);
}

.section-link {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.section-link:hover { opacity: 0.75; }

/* Séparateur doré */
.gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 10px 0 0;
}

/* ============================================================
   CARDS TOURNOIS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card-tournoi {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.card-tournoi:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  border-color: rgba(201,168,76,0.3);
}

.card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark3);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-tournoi:hover .card-img img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--gold);
  color: #000;
}

.card-badge.live {
  background: var(--red);
  color: var(--white);
  animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-date {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
}

.card-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.card-lieu {
  font-size: 0.78rem;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-prix {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-light);
}

.card-places {
  font-size: 0.7rem;
  color: var(--grey);
}

/* ============================================================
   CARDS VIDÉO
   ============================================================ */
.card-video {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card-video:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.3);
}

.card-video .card-img {
  cursor: pointer;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: background var(--transition);
}
.play-btn:hover { background: rgba(0,0,0,0.6); }

.play-btn svg {
  width: 52px;
  height: 52px;
  fill: var(--white);
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* ============================================================
   CARDS JOUEURS
   ============================================================ */
.card-joueur {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.card-joueur:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.25);
}

.joueur-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
  margin: 0 auto 12px;
}

.joueur-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dark3);
  border: 2px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.8rem;
  color: var(--grey);
}

.joueur-nom {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.joueur-club {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 4px;
}

.joueur-niveau {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

/* ============================================================
   UPCOMING MATCHES (homepage)
   ============================================================ */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.upcoming-item:hover {
  border-color: rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.03);
}

.upcoming-date {
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.upcoming-date .day {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.upcoming-date .month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey);
}

.upcoming-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.upcoming-info {
  flex: 1;
}

.upcoming-info .name {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.upcoming-info .meta {
  font-size: 0.72rem;
  color: var(--grey);
  margin-top: 3px;
}

.upcoming-status {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

.upcoming-status.open {
  background: rgba(44,182,125,0.15);
  color: var(--green);
}

.upcoming-status.complet {
  background: rgba(230,57,70,0.12);
  color: var(--red);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #080808;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.8rem;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

/* Réseaux sociaux */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: #555;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-size: 0.72rem;
  color: #555;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--grey); }

/* ============================================================
   PAGES INTÉRIEURES — BANNIÈRE
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 48px 24px;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 0.9rem;
  color: var(--grey);
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--grey-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.form-group select option { background: #1a1a1a; }

/* ============================================================
   STATUTS / BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-green   { background: rgba(44,182,125,0.15); color: var(--green); }
.badge-red     { background: rgba(230,57,70,0.15);  color: var(--red); }
.badge-grey    { background: rgba(153,153,153,0.12); color: var(--grey); }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-gold  { color: var(--gold); }
.text-grey  { color: var(--grey); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 12px 16px 20px;
    gap: 2px;
  }
  .main-nav.open a { padding: 10px 14px; }
  .burger { display: flex; }
  .hero { height: 380px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 40px 16px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .site-logo-text { display: none; }
  .hero h1 { font-size: 1.6rem; }
}
