/* ========================================
   THÈME : L'AURORE BORÉALE
   Palette : Indigo profond, Violet cosmique, Vert aurore, Or pâle
   Typo : Playfair Display + Inter
   Design : Élégant, fluide, immersif, accessible
   ======================================== */

:root {
  --bg-dark: #0B0B1A;
  --bg-card: #141428;
  --text-primary: #E8E8F5;
  --text-secondary: #A0A0C0;
  --accent-violet: #8B5CF6;
  --accent-green: #10B981;
  --accent-gold: #FBBF24;
  --border: #2D2D44;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16.5px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

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

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

img, .card-image-placeholder {
  display: block;
  width: 100%;
  height: auto;
}

/* ======================================== */
/* Layout & Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-violet);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* ======================================== */
/* Header */
.nav-bar {
  background: rgba(11, 11, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-green));
  color: white;
  font-weight: 900;
  font-size: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.brand-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}

.update-tag {
  background: var(--accent-green);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

/* Buttons */
.btn-primary, .btn-action, .btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary, .btn-action {
  background: linear-gradient(135deg, var(--accent-violet), #6366F1);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover, .btn-action:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
}

.btn-outline:hover {
  background: var(--accent-green);
  color: white;
  transform: scale(1.03);
}

/* ======================================== */
/* Hero */
.hero-section {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  color: white;
  margin-bottom: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  opacity: 0.9;
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: clamp(38px, 7vw, 64px);
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 18.5px;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin-top: 24px;
}

.highlight-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14.5px;
  color: white;
}

/* ======================================== */
/* Sections */
.section-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.section-header {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 32px;
  color: white;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px;
}

.site-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.site-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.25);
  border-color: var(--accent-violet);
}

.card-media {
  height: 200px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-media img{
  width: 50%;
}

.card-image-placeholder {
  height: 100%;
  background: #2d2d44 center/cover no-repeat;
  transition: transform 0.6s ease;
}

.site-card:hover .card-image-placeholder {
  transform: scale(1.08);
}

.card-image-placeholder::after {
  content: 'Course en direct';
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 26px;
  color: white;
}

.card-score {
  background: var(--accent-green);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}

.star { color: var(--accent-gold); }

.card-tagline {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15.5px;
}

.info-grid {
  display: grid;
  gap: 16px;
  flex: 1;
}

.info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.info-row:last-child {
  border: none;
  padding-bottom: 0;
}

.info-label {
  font-weight: 700;
  color: var(--accent-gold);
  min-width: 120px;
}

.info-value {
  color: var(--text-secondary);
  font-size: 15px;
}

.card-footer {
  padding: 24px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  margin: 20px 0;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #1a1a2e;
}

thead th {
  background: linear-gradient(90deg, var(--accent-violet), #6366F1);
  color: white;
  padding: 18px 22px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
}

.table-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 16px;
}

/* FAQ */
.faq-block details {
  border-bottom: 1px solid var(--border);
  padding: 20px;
}

.faq-block details:last-child {
  border: none;
}

.faq-question {
  font-weight: 700;
  font-size: 18.5px;
  color: var(--accent-violet);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-question::after {
  content: '+';
  font-weight: 900;
  color: var(--accent-green);
  font-size: 22px;
}

details[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 4px;
}

/* Responsible Gaming */
.rg-block {
  text-align: center;
  padding: 50px 20px;
}

.rg-block h3 {
  font-size: 38px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.rg-text {
  max-width: 780px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-secondary);
}

.rg-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.rg-btn {
  background: var(--accent-violet);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  transition: var(--transition);
}

.rg-btn:hover {
  background: var(--accent-green);
  transform: scale(1.08);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  padding: 60px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-nav a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-section {
    padding: 80px 15px;
  }
  .section-header, .card-content, .card-footer {
    padding: 20px;
  }
  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .info-label {
    min-width: auto;
  }
}

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

/* Legal Pages */
.legal-page .section-block {
  max-width: 900px;
  margin: 40px auto;
}

.legal-content{
  padding: 20px;
}

.legal-content section {
  margin-bottom: 36px;
}

.legal-content h2 {
  font-size: 26px;
  color: var(--accent-gold);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.legal-content ul {
  padding-left: 20px;
  margin: 16px 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 12px;
}

.cookie-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.cookie-table th {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-gold);
  font-weight: 600;
}

.cookie-table code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* Responsible Grid */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.rg-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.rg-card h3 {
  color: var(--accent-green);
  margin-bottom: 16px;
  font-size: 20px;
}

.rg-card ul {
  list-style: none;
  padding: 0;
}

.rg-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.rg-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}