/* site/css/style.css - Premium Dark Theme Foundation for JeuFranceJoueurs */

/* CSS Custom Properties (Variables) for Thematic Colors and Spacing */
:root {
  /* Color Palette: Dark Premium (Blue/Graphite base, Yellow/Turquoise accents) */
  --primary-blue: #1e3a8a; /* Deep blue for trust and professionalism */
  --graphite: #2d3748; /* Dark graphite for stability and luxury */
  --accent-yellow: #fbbf24; /* Energetic yellow for highlights and CTAs */
  --accent-turquoise: #0ea5e9; /* Innovative turquoise for balance and opportunities */
  --bg-dark: #0f172a; /* Primary background - sophisticated dark slate */
  --surface-dark: #1e293b; /* Cards and sections - slightly lighter dark */
  --text-primary: #f8fafc; /* Light text for readability on dark */
  --text-secondary: #cbd5e1; /* Subtle secondary text */
  --border-light: #334155; /* Subtle borders */
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--graphite) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-turquoise) 0%, var(--accent-yellow) 100%);

  /* Typography */
  --font-primary: 'Montserrat', sans-serif; /* Modern titles */
  --font-secondary: 'Open Sans', sans-serif; /* Readable body */
  --font-size-xl: 3.5rem;
  --font-size-lg: 2.5rem;
  --font-size-md: 1.5rem;
  --font-size-sm: 1rem;
  --line-height: 1.6;

  /* Spacing and Layout */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --border-radius: 0.75rem; /* Rounded for premium feel */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
}

/* Ensure Visibility and Accessibility - Critical Overrides */
* {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-aos] {
  opacity: 1 !important;
}

.menu-item, .card, .content-block {
  display: block !important;
  opacity: 1 !important;
}

/* Base Reset and Typography (Enhance Bootstrap) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Improved contrast for readability */
.card-body p,
.card-text,
.lead {
  color: #e2e8f0 !important; /* Higher contrast gray for better readability */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for better contrast on dark backgrounds */
}

a {
  color: var(--accent-turquoise);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

/* Layout Enhancements (Bootstrap Grid Override) */
.container {
  max-width: 1200px;
  padding: 0 var(--spacing-md);
}

.row {
  --bs-gutter-x: 1.5rem;
}

.col, .col-md-6, .col-lg-4 {
  padding: var(--spacing-sm);
}

/* Navigation - Premium Dark Navbar */
.navbar {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-elevated);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  transition: var(--transition);
  border-radius: var(--border-radius);
  margin: 0 var(--spacing-xs);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-yellow) !important;
  background: rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
}

/* Mobile Hamburger Menu */
.navbar-toggler {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25);
}

/* Hero Section - Dynamic and Engaging */
.hero {
  background: var(--gradient-primary);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23fbbf24" stop-opacity="0.1"/><stop offset="100%" stop-color="%230ea5e9" stop-opacity="0.05"/></radialGradient></defs><rect width="100" height="100" fill="url(%23a)"/></svg>') no-repeat center/cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-primary);
}

.hero .lead,
.hero p {
  color: #e2e8f0 !important; /* Improved contrast for hero text */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--spacing-lg);
}

.hero .btn-primary {
  background: var(--gradient-accent);
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-turquoise) 100%);
}

/* Cards - For Platforms, Testimonials, etc. (Premium Glassmorphism) */
.card {
  background: rgba(30, 41, 59, 0.8); /* Glassmorphism effect */
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--spacing-lg);
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-turquoise);
  background: rgba(30, 41, 59, 0.95);
}

.card-header {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: var(--spacing-md);
  font-weight: 600;
}

.card-body {
  padding: var(--spacing-md);
  color: #e2e8f0 !important; /* Improved contrast for card body text */
}

.card-body h5,
.card-body h6,
.platform-name {
  color: var(--text-primary) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card .btn {
  background: var(--accent-yellow);
  color: var(--graphite);
  border: none;
  transition: var(--transition);
}

.card .btn:hover {
  background: var(--accent-turquoise);
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Platform Cards Specific - Interactive with ANJ Badges */
.platform-card {
  position: relative;
}

.anj-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-yellow);
  color: var(--graphite);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: var(--shadow-soft);
}

.platform-logo {
  width: 100px;
  height: auto;
  transition: var(--transition);
}

.platform-card:hover .platform-logo {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Filters and Search - For Platforms Page */
.filters {
  background: var(--surface-dark);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

.filter-select, .search-input {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  transition: var(--transition);
}

.filter-select:focus, .search-input:focus {
  border-color: var(--accent-turquoise);
  box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25);
  outline: none;
}

/* Accordions - For FAQ, Legal Pages */
.accordion-item {
  background: var(--surface-dark);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius);
}

.accordion-button {
  background: var(--gradient-primary);
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: var(--accent-turquoise);
  color: var(--text-primary);
}

.accordion-body {
  background: var(--bg-dark);
  color: var(--text-secondary);
}

/* Footer - Comprehensive with Responsible Gaming Links */
footer {
  background: var(--graphite);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.responsible-logo {
  width: 80px;
  height: auto;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.7;
}

.responsible-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.footer-section {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  color: var(--accent-turquoise);
}

/* Cookie Banner - Subtle and Compliant */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--text-primary);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-elevated);
  z-index: 1050;
  display: none; /* JS controlled */
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.cookie-accept {
  background: var(--accent-yellow);
  color: var(--graphite);
}

.cookie-partial {
  background: var(--accent-turquoise);
  color: var(--text-primary);
}

.cookie-reject {
  background: transparent;
  color: var(--accent-turquoise);
  border: 1px solid var(--accent-turquoise);
}

/* Quiz and Interactive Elements */
.quiz-question {
  background: var(--surface-dark);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.quiz-question:hover {
  border-color: var(--accent-turquoise);
}

.quiz-option {
  display: block;
  padding: var(--spacing-sm);
  margin: var(--spacing-xs) 0;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option.selected {
  background: var(--accent-turquoise);
  color: var(--text-primary);
  border-color: var(--accent-yellow);
}

/* Comparer Table */
.comparer-table {
  background: var(--surface-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comparer-table th {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: var(--spacing-md);
}

.comparer-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  color: #e2e8f0 !important; /* Improved contrast for table text */
}

/* Animations and Micro-Interactions (Light CSS Effects) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Swiper Overrides for Testimonials/Galleries */
.swiper {
  padding: var(--spacing-md);
}

.swiper-slide {
  background: var(--surface-dark);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
}

.swiper-pagination-bullet-active {
  background: var(--accent-yellow);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  :root {
    --font-size-xl: 2.5rem;
    --font-size-lg: 2rem;
    --font-size-md: 1.25rem;
  }

  .hero {
    padding: var(--spacing-lg) 0;
  }

  .navbar-nav {
    background: var(--gradient-primary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
  }

  .filters {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-turquoise);
  outline-offset: 2px;
}

/* High Contrast for Readability */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --bg-dark: #000000;
    --surface-dark: #1a1a1a;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  .card, .navbar, footer {
    box-shadow: none;
    background: white;
  }
}

/* End of style.css */
