/*
Theme Name: JeuxArgeFr Esport
Theme URI: https://jeuxargefr.com
Author: JeuxArgeFr
Author URI: https://jeuxargefr.com
Description: Thème pour JeuxArgeFr - Comparateur de bookmakers esport en France
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jeuxargefr
Tags: one-column, custom-colors, custom-menu, featured-images, gambling, esport
*/

/* ==========================================
   ROOT VARIABLES
   ========================================== */
:root {
  --bg-primary: #0d0600;
  --bg-secondary: #1a0c02;
  --bg-card: #1e1008;
  --bg-card-hover: #271404;
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --orange-light: #fb923c;
  --gold: #fbbf24;
  --text-primary: #f5f0eb;
  --text-secondary: #c4b5a5;
  --text-muted: #8b7355;
  --border: #2d1a08;
  --border-orange: rgba(249,115,22,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-orange: 0 4px 20px rgba(249,115,22,0.2);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-light); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; }

/* ==========================================
   TYPOGRAPHY HELPERS
   ========================================== */
.text-orange { color: var(--orange); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }

/* ==========================================
   LAYOUT HELPERS
   ========================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 60px 0; }
.section-dark { background: var(--bg-secondary); }

/* ==========================================
   TOP NOTICE BAR
   ========================================== */
.top-notice {
  background: #7c0000;
  color: #fca5a5;
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
  line-height: 1.5;
}
.top-notice a { color: #fca5a5; text-decoration: underline; }

/* ==========================================
   AFFILIATE NOTICE
   ========================================== */
.affiliate-notice {
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border);
  padding: 6px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.affiliate-notice a { color: var(--text-muted); text-decoration: underline; }

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
  background: rgba(13,6,0,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-left { display: flex; gap: 24px; }
.nav-left a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-left a:hover { color: var(--orange); }
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.site-logo span { color: var(--text-primary); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-right a {
  color: var(--text-secondary);
  font-size: 13px;
}
.nav-right .age-badge {
  background: #7c0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background:
    linear-gradient(180deg, rgba(13,6,0,0.7) 0%, rgba(13,6,0,0.85) 60%, var(--bg-primary) 100%),
    radial-gradient(ellipse at 50% 30%, #7c2d12 0%, #1a0c02 60%, #0d0600 100%);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 .highlight { color: var(--orange); }
.hero-desc {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 120px;
}
.hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  display: block;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-trust-item .dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-title .highlight { color: var(--orange); }
.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ==========================================
   BOOKMAKER CARDS
   ========================================== */
.bookmakers-section { padding: 60px 0; }
.bookmakers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bookmaker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.bookmaker-card:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-orange);
}
.bookmaker-card.top-pick {
  border-color: var(--orange);
}
.rank-badge {
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--orange);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}
.bookmaker-logo-wrap {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bookmaker-logo-wrap img {
  max-height: 44px;
  width: auto;
  filter: brightness(1.1);
}
.bookmaker-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.bookmaker-info { flex: 1; }
.bookmaker-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.star { color: var(--gold); font-size: 14px; }
.rating-text { color: var(--text-muted); font-size: 13px; margin-left: 4px; }
.bookmaker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag {
  background: rgba(249,115,22,0.1);
  border: 1px solid var(--border-orange);
  color: var(--orange-light);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
}
.bookmaker-offer { text-align: right; flex-shrink: 0; }
.offer-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.offer-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.offer-amount span { color: var(--orange); }
.btn-bonus {
  display: inline-block;
  background: var(--orange);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.btn-bonus:hover {
  background: var(--orange-light);
  color: #000;
  transform: translateY(-1px);
}

/* ==========================================
   WHY SECTION
   ========================================== */
.why-section {
  background: var(--bg-secondary);
  padding: 60px 0;
}
.why-section h2 { margin-bottom: 20px; }
.why-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}
.why-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}
.why-section a { color: var(--orange); }
.why-section a:hover { text-decoration: underline; }

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-section { padding: 60px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 15px; }
.author-role { font-size: 12px; color: var(--text-muted); }
.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #7c2d12, #431407);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.65;
}
.btn-cta {
  display: inline-block;
  background: #000;
  color: var(--orange);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
}
.btn-cta:hover {
  background: #1a0c02;
  color: var(--orange-light);
  transform: translateY(-1px);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section { padding: 60px 0; }
.faq-list { margin-top: 32px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--orange); }
.faq-chevron {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--orange);
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { font-size: 20px; margin-bottom: 12px; }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 12px;
}
.footer-age {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-legal-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-legal-logos img { height: 32px; width: auto; filter: brightness(0.7); }
.legal-text-block {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  padding: 20px;
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 700px;
  line-height: 1.55;
}
.cookie-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cookie-option { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cookie-option label { color: var(--text-secondary); }
.cookie-option .always-on {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 1px 8px;
  border-radius: 4px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
}
.cookie-btn-accept:hover { background: var(--orange-light); }
.cookie-btn-refuse { background: transparent; color: var(--text-secondary); }
.cookie-btn-refuse:hover { border-color: var(--orange); color: var(--orange); }
.cookie-btn-save { background: transparent; color: var(--text-muted); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .nav-left, .nav-right .cgu-link { display: none; }
  .hamburger { display: flex; }
  .bookmaker-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  .bookmaker-logo-wrap { width: 100px; }
  .bookmaker-offer { text-align: left; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .hero-stat { min-width: 100px; padding: 12px 16px; }
}

/* ==========================================
   WORDPRESS SPECIFIC
   ========================================== */
.wp-block-group { margin: 0; }
.alignwide { max-width: 100%; }
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
